How do I pause a test case and move on to running the next test case?


Here is the exact scenario that one of the customer asked:

Testers want to pause some test case and want to resume it later point of time since they don’t have the required data to proceed with the test case and they don’t want to mark them as pass/fail.

Here is the brief description:

1. Test cases are in active state

2. Running the first test case and stopped in between since lack of data.

3. Return to MTM, 1st test case will be “In progress”

4. Select 2nd test case and run that with-out disturbing the state of first test case. (But here MTM prompt to save/don’t save, on click of save, MTM marks the test case as pass. )

5. Later point of time, when he got data he want to resume the paused first test case. 

unfortunately MTM doesn't support the step 4 here. When the first test case is “In Progress” and want to execute 2nd test case, MTM pop-up a dialog asking for save/don't save. On click on save, saves the result and marks the test case as pass. 

The closest thing that tester can do is to mark that test case as blocked (after going through some steps, say step#1 as passed) and pick it up next time.

The Test result will show that certain steps (step#1) were marked passed, but the test case was marked as Blocked. However, the next time around will be a new run and will have to start again from step#1 – you can not start over from middle of a test case.

Comments (11)

  1. Boyd Patterson says:

    The lack of this feature has been the #1 complaint by users at my organization and is blocking us from transitioning to TFS/MTM.  I really hope this is addressed in MTM vNext.

  2. Jörg B. says:

    Same here, I've have started writing a custom test runner with suspend/resume functionality (among other things) to compensate this for a large client.

  3. Aidan Ryan says:

    Hi Jörg – I am working on adding something similar to my TFS Test Steps Editor ( Interested in collaborating?

  4. Bj says:

    What is the test scenario in which someone would launch a test case in which the test cannot possibly complete because it is missing something?

    That seems like designing an automobile with a tank full of fuel but no way to refill the fuel tank.

  5. Boyd/Jorg/Aidan – can you guys please describe why you want this scenario to work? What is the exact requirement for this feature? That will help us understand this better to make a call on whether to stack this further up in our future releases backlog or not. Thanks

  6. Hanu says:

    Hi Anu,

    Taken from…/a96cf28b-818e-41de-aefa-8f861e2fbded

    This is what I am looking for-

    1) Tester is running test case, realises he has to pause the test case as he is waiting on same data flow, external activity or anything, or for some data which will flow only next day. He mark the few initial steps as pass and the step which requires a wait, puts up a comment there.

    2) Now he knows the test case will be complete the other day only, he doesnt want to wait and should run the other test cases in the Suite.  He runs them meanwhile

    3) Now next morning he wants to resume the test case which he was running the other night from the point he left.

  7. Hanu says:

    Like it is explained in the above comment, it happens everyday in testing. Most of the time, we cannot finish a test run from start to end in one go in real world.At the same time we cannot restart the test right from start every time we pause and move on to the next test.

  8. Angie Menegay says:

    Hi Anutthara,

    I concur with the other posters. In our current environment, we have multiple processes that we launch to constitute a test case. Very often one of processes fails (wrong code, wrong stored procedure etc.). We have the ability to pick up the next time after the developers fix that problem. However, with MTM, that's impossible. We have to start all over again and log the collected data for the previous steps even though they don't really  have to be re-executed.

    Please implement this ability to just "pause" a test if needed and resume from where we left off the previous time.


  9. Dan Gawrecki says:

    I can't believe this feature is not in MTM – HP's Quality Center has had it for *years*, and I used it all the time.

    Regarding a "use case", how about this – a test takes 2 hours to run, but you've only got 1 hour left in the day so you start the test and then, when ready to go home, mark the test as "paused".  Next morning, boss tells you some other test must be run immediately for a customer has a problem within the scope of the now "hot" test case.

  10. Is this feature still not implemented? My customers are asking for the exact same thing now. We are using TFS2010 / MTM2010.

  11. Adam Morrell says:

    Another Use Case… Although different tests. There is a stage in which procedures need to ran by DBA's. We want to get all the tests up to this stage but cannot without a usable pause feature. Our workaround at the moment is to take screenshots of other tests then ran and insert into MTM when we're able. I really am surprised this feature hasn't been included as a day 1 high priority feature.

Skip to main content