Based on any condition can we exit from the ordered list to block the remaining functions to run?

Blocat Based on any condition can we exit from the ordered list to block the remaining functions to run?

  • Wednesday, January 25, 2012 9:15 AM
     
     

    Hi,

    Based on any condition can we exit from the ordered list to block the remaining functions to run?

    Suppose, my ordered list is having 7 functions like 1. 2. 3 to 7

    If a conditions is true then I want to exit from the 3rd function and not to run the remaining functions in Ordered List?

    Please guide me on this. I really appreciate your help in this regards.

     

    Thanks,

    -Sabeer


    -Sabeer
    • Moved by niveditabawa_MSFTMicrosoft Employee Thursday, February 02, 2012 1:48 PM moving this to a more appropriate forum. Thanks (From:Testing with Visual Studio Test Manager (MTM))
    •  

All Replies

  • Friday, February 03, 2012 2:12 AM
     
     

    You might want to create a unit test where you can call the other unit tests 1,2,3, etc and skip some depending on a condition.

    Thanks,

    Anuj


    http://www.anujchaudhary.com