This is a migrated thread and some comments may be shown as answers.

Restarting application under test for every row in local data source

2 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Asdf
Top achievements
Rank 1
Asdf asked on 16 May 2013, 12:58 PM
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 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 17 May 2013, 10:38 PM
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
0
Asdf
Top achievements
Rank 1
answered on 21 May 2013, 09:28 AM
Thank you very much!
Tags
General Discussions
Asked by
Asdf
Top achievements
Rank 1
Answers by
Cody
Telerik team
Asdf
Top achievements
Rank 1
Share this question
or