Restarting application under test for every row in local data source

3 posts, 0 answers
  1. Asdf
    Asdf avatar
    2 posts
    Member since:
    May 2013

    Posted 16 May 2013 Link to this post

    We are trying to run a test multiple times with different parameters defined in the local data source. As there are some steps which can only be done after the startup of our WPF application, we need to restart the application for every iteration within our data source. Is this possible? It seems that for every iteration all steps of the test are run again but without a restart.
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 17 May 2013 Link to this post

    Hi,

    Yes there is a way to accomplish this. Create a new coded step as the last step in the test and put this code in that step:

    ActiveApplication.Quit();
    Manager.LaunchNewApplication(Settings.Current.Wpf.DefaultApplicationPath);


    This will force the currently running application to close and then immediately relaunch it.

    Greetings,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Asdf
    Asdf avatar
    2 posts
    Member since:
    May 2013

    Posted 21 May 2013 Link to this post

    Thank you very much!
Back to Top