Automatic close browser

4 posts, 2 answers
  1. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 18 Jun 2013 Link to this post

    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
  2. Answer
    Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 18 Jun 2013 Link to this post

    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!
  3. José
    José avatar
    19 posts
    Member since:
    Mar 2013

    Posted 18 Jun 2013 Link to this post

    Hi Velin,

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

    best,

    José Teles
  4. Answer
    Velin Koychev
    Admin
    Velin Koychev avatar
    88 posts

    Posted 19 Jun 2013 Link to this post

    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!
Back to Top