简体   繁体   中英

Running Load Tests against Visual Studio Online From TFS Build

I created a Load Test that I would like to run every night so that I can compare the results over time.

I'm trying to trigger the load test to run from a TFS build. Tests are run by Visual Studio Online agents.

Here is the MSTest command that is being executed, however I'm getting an error and the load tests never run.

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" /nologo /usestderr /testSettings:"F:\Builds\8269\Tests\LoadTests\src\Tests\xxxxx\Remote.testsettings" /searchpathroot:"F:\Builds\8269\Tests\LoadTests\bin" /resultsfileroot:"F:\Builds\8269\Tests\LoadTests\tst" /testcontainer:"F:\Builds\8269\Tests\LoadTests\bin\LoadTest2.loadtest" /publish:"https://xxxxx.visualstudio.com/defaultcollection" /noprompt /publishbuild:"vstfs:///Build/Build/13578" /teamproject:"Tests" /platform:"Any CPU" /flavor:"Release" /runtitle:"MySweetLoadTests" 

Error... The current SynchronizationContext may not be used as a TaskScheduler.

From here ( The current SynchronizationContext may not be used as a TaskScheduler ) It says I need to setup a SynchronizationContext, however I'm not sure how to do that within a load test.

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM