2

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 ?

1

1 Answer 1

4

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:

enter image description here

Sign up to request clarification or add additional context in comments.

2 Comments

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 ?
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/…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.