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

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

  • יום רביעי 25 ינואר 2012 09:15
     
     

    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
    • הועבר על-ידי niveditabawa_MSFTMicrosoft Employee יום חמישי 02 פברואר 2012 13:48 moving this to a more appropriate forum. Thanks (From:Testing with Visual Studio Test Manager (MTM))
    •  

כל התגובות

  • יום שישי 03 פברואר 2012 02:12
     
     

    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