Queue sub suites for execution in MTM - microsoft-test-manager

I have a test plan which contains a test suite which has 4 sub suites of automated test cases. I want to execute all the subsuites one after the other without manual intervention. Is it possible?

try running test cases from command prompt, this requires the least manual intervention, as once all things are set you need to change only the build number to run your test cases.
refer this link

Related

How to use before test suite and after test suite in one test in testRigor?

I am using testRigor for Android application. I have testcases for before test suite and after test suite.
I added login test script in before test suite and logout script added in after test suite.
One Testcase for use login functions,so I can't use this three testsuite in one testing process
Because all of test cases for testRigor are executed in parallel, the way "Before test suite" works is it is executed before all other test cases. That also means that logout is unnecessary because every test case is execute on a new server in a new fresh incognito browser.
To achieve what you are looking for you need to specify app's the username and password in Settings/Authentication, and then start all of your test cases from the built-in command login

Cucumber rerun failed scenario runs only one scenario

I have a sample project in which, i have used Maven, TestNg and Cucumber. I run my test using testrunner class.
I have created a feature file with two scenarios and both the scenario are failing. I have two testrunner classes with different feature file -- 1. feature file points to all the features, 2. points to only failed scenarios.
When i try to rerun the scenario it runs only one scenario.
1-> features = "src/test/java/com/ag/features" = has all the features
2-> features = #target/rerun.txt = has reference to both the failed features.
Please advise how to make all failed scenarios execute.
You just need to tell cucumber to run the features/scenario lines defined in your rerun file.
cucumber #rerun.txt should be enough (Although in java you may need a little more)

How to create different suites and define their order of execution in Godog?

I want to create different test suites for execution of my test cases. The main idea is that I want to load some sample data into database using a feature file in a single suite. After this suite is completed I want to execute different suite containing the test scenarios. Is it possible in GoDog?
There is an example in DATA-DOG repo https://github.com/DATA-DOG/godog/tree/master/examples/db with DB connection it could be helpful. It gives you an opportunity to roll back inserted data before every scenario or suite if you want.

Abort mstest test from TestInitialize

I'm trying to Abort/Stop/Cancel test run from TestInitialize.
What I'm trying is to check if test method has custom attribute and if so ,abort the test.
TestContext doesn't have this ability ,
Is there any solutions to abort test using code?
Thanks
If you want to stop the test run, you can call Process.GetCurrentProcess().Kill() or Environment.Exit. This will stop the current process (where the tests are running).
If you want to stop only the test which is about to run. You not group your tests so that only the relevant tests are executed:
How to: Group and Run Automated Tests Using Test Categories

Cannot run VSTS LoadTest at a time

I have a VSTS project with a list of 30 LoadTest tests that I want to run sequentially. All tests are independent from each other.
When I try to run all the tests, it starts with the first test and it executes it perfectly, but once the first test is finished, it automatically starts to mark the rest of the tests as completed, but without executing them.
Do I have to configure any option to run all of them together? Am I missing something?
Note: when the first test is finished it also asks me if I want to view the "detailed results from the load test".
Any advice/comment is welcomed...
Thanks,
albert
UPDATE (16/07/2010)
More info... I'm trying to run the load tests as in the image that you can see at freeimagehosting.net/image.php?69cc93fa7b.gif. After the first loadtest is finished the rest of them are just marked as completed.
The load tests are individual tests, and have never seen a way to execute them simultaneously. You create individual web tests that you then put into a load test to run.

Resources