I want to apply SpecFlow to a web test suite in Visual Studio. This will require a custom layer.
I want to know how to trigger webtests or loadtests from code (if that is possible). It feels like this should be supported, however I cant find any documentation.
Is this possible? Is there some API we can use to control the web test suite from an abstract layer? or do they have to be run from th Visual Studio UI or command line?
Thanks
You can execute them with the MSTest.exe command line see here https://blogs.msdn.microsoft.com/slumley/2008/12/22/running-web-and-load-tests-from-the-command-line/
This will produce output similar to the following:
Loading WebTest1.webtest…
Starting execution…
Results Top Level Tests ——- ————— Passed webtest1.webtest
1/1 test(s) Passed
Summary ——- Test Run Completed.
Passed 1 ——— Total 1