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

Automatic close browser

3 Answers 242 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
José
Top achievements
Rank 1
José asked on 18 Jun 2013, 01:54 PM
Hi everyone,

If I wanna run many tests, I can still the browser open between tests in Test Studio (StandAlone and VS Plugin)??

Thanks,

José Teles

3 Answers, 1 is accepted

Sort by
0
Accepted
Velin Koychev
Telerik team
answered on 18 Jun 2013, 02:44 PM
Hi José,

If the RecycleBrowser Test List Setting is set to True, all tests in the list will be executed against the same browser instance and the browser will close at the end of the list. If it is set to False, the browser will close and reopen between each test within the test list. This assumes that the start of test two is not dependent on the browser state at the end of test one.

I hope this helps.

Regards,
Velin Koychev
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
0
José
Top achievements
Rank 1
answered on 18 Jun 2013, 03:08 PM
Hi Velin,

I saw the link, but I use VS 2012 and test lists are deprecated in VS 2012, any sugestion???

best,

José Teles
0
Accepted
Velin Koychev
Telerik team
answered on 19 Jun 2013, 01:47 PM
Hi José,

Yes, you are right, the Test Lists are deprecated in VS2012, but you can still use them.

Here's the workaround:

     1) Open your solution.
     2) From the Solution Explorer right click the solution item.
     3) Select Add/New Item
     4) Do not click on any of the available items, instead type in the text box 'TestList.vsmdi' or any other item name that ends with '.vsmdi'. Just make sure not to click on any item as it would overwrite your input.
     5) Find 'Solution Items' sub folder directly under your solution
     6) Double click TestList.vsmdi and this will bring up the 'Test List Editor' in VS2012.
     7) Select a test from the 'Test List Editor' and you'll find the Test Properties.
  
See this video for a demonstration.

Unfortunately in VS2012 you can only create a test list and edit it, but in order to execute the test list you need to use MSTest via the command line. You can read in this article more information how to use MSTest and how to execute a test list with a custom settings file.

Regards,
Velin Koychev
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
Tags
General Discussions
Asked by
José
Top achievements
Rank 1
Answers by
Velin Koychev
Telerik team
José
Top achievements
Rank 1
Share this question
or