Running a mstest method mutliple times RRS feed

  • Question

  • HI,

    I have a scenario where i need to upload files to a webservice, the files may be 100 or 1000, my code should handle parallel execution and async features, as some files upload may delay based on availability of the service.

    please help me about this

    iam using VS 2012



    Friday, April 24, 2015 6:55 AM


All replies

  • Hope this helps!


    Try-Fail-Learn-Improve http://speakingin.net

    • Marked as answer by Tina-Shi Monday, May 4, 2015 2:58 AM
    Friday, April 24, 2015 10:05 AM
  • Hi tmahender12,

    Based on your issue, I think that the JuanLao suggestion is really helpful for you, so please refer the JuanLao provided blog to check this issue.

    In addition, I know that if you want to run a unit test method mutliple times using mstest in command line.

    Generally, I know that an ordered test will let you add the same unit test multiple times; then you can schedule to run the ordered test, and you will get the behavior you're looking for.

    More info on ordered tests:

    After you create a ordered test, you could execute the ordered test using mstest in command line like the following command.

    mstest /testcontainer:OrderedTest1.orderedTest

    So I suggest you could also try the way to check this issue.

    Best Regards,

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 27, 2015 3:32 AM