I have configured a load test using VS 2013 ultimate to performance test a REST Api. We use TFS 2015 for source control and CI. Tests are pointing to a local (with in company's intranet) REST service endpoint. I want these test to run against every build and configured a build definition in TFS. TFS provides a build step called "Cloud-based Load Test" and thats is not going to help me as I am not planning to run tests on the cloud. what is the best approach to run *.loadtest files ? Has anyone done this ? Is command line my only option ?
- You may want to think again before rejecting "cloud" testing. See blogs.msdn.microsoft.com/visualstudioalm/2016/09/27/…AdrianHHH– AdrianHHH2016-11-25 09:04:02 +00:00Commented Nov 25, 2016 at 9:04
Add a comment |
1 Answer
Command line is the only option. You need to install VS/mstest on your build agent machine, then add a Command Line task in your build definition. In this task, specify the mstest tool path and add agrument /TestContainer:LoadTest1.loadtest to run the loadtest:
2 Comments
Rasika
Thanks for the hint, What sort of a approach you would take to publish test results. For example , At the end of the perf test run, I have a .trx file. Is there a build template that can used to display test results graphically just like you run your tests using Visual Studio in TFS 2015 ?
Cece Dong - MSFT
There is no default way to display the test results graphically. You would need to develop your own extension to show the test result: visualstudio.com/en-us/docs/integrate/extensions/develop/…
