How to do not close browser after a test?

10 posts, 0 answers
  1. Feng
    Feng avatar
    10 posts
    Member since:
    Nov 2011

    Posted 28 Mar 2012 Link to this post

    hi,
    my english is not good,but i will try to express my question clearly.
    i do not want to close browser after the first test that is because my each test will open the same url,i hope other tests can execute without opening a new browser except the first one.
    i do not know how to do,thank you for your help.
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 28 Mar 2012 Link to this post

    Hello Feng,

    Are you executing multiple tests through a test list? To keep the browser open between tests and reuse it, toggle the RecycleBrowser to True in Test List Settings.

    Kind regards,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Feng
    Feng avatar
    10 posts
    Member since:
    Nov 2011

    Posted 31 Mar 2012 Link to this post

    hi,
    I try,it is very useful,But i still have some question.
    First ,if i have two test lists that use different browsers,how can i open first browser when executing tests in first two test list and open second browser when executing tests in first second test list?
    Second,can i execute the tests in the second test list with closing the first browser?
    Third,can i decide which test in a test list is responsible for opening browser so that other tests in the same test list can reuse the browser?
    thank you for your help.
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 02 Apr 2012 Link to this post

    Hello Feng,

    1. You can't execute two test lists simultaneously. As a work-around you can open two instances of Test Studio and execute a different test list in each instance, but we do not recommend this approach. 
    2. See point 1.
    3. I don't really understand this question. The browser isn't called by the tests themselves, but rather by the execution engine. It launches the desired browser type at the beginning of the test list run, and either keeps it open or closes/reopens it based on the RecycleBrowser setting we previously discussed. If a certain test relies on the browser being in a specific state caused by another test, you'll need to account for this in the test order within the list (second screen shot here).

    All the best,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Feng
    Feng avatar
    10 posts
    Member since:
    Nov 2011

    Posted 05 Apr 2012 Link to this post

    Maybe I did not express my meaning clear.I know  i can't execute two test lists simultaneously.I have to execute the tests in the first test list,and then execute the tests in the second test list.So i want to know which test is the first one to be executed in a test list.If i can decide which test is the first one to be executed in a test list.the test will be responsible for opening browser.
    thank you for your help.
  6. N1t1nA
    N1t1nA avatar
    37 posts
    Member since:
    Mar 2011

    Posted 10 Apr 2012 Link to this post

    Hi Feng 

    If you are using Visual Studio to Create Tests, then Create an Ordered Test List, See the Snapshot

    and Put your Test for opening browser in First also mark Continue on Failure

    Execute Ordered Test List

    Thanks
    -Nitin-
    twitter:@N1t1nA
  7. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 10 Apr 2012 Link to this post

    @Feng

    Nitin is right; a Visual Studio Test List may not respect the test order, so create an Order Test List instead.


    @Nitin
    Thank you, I awarded you Telerik points for assisting another customer. 

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  8. Naga
    Naga avatar
    15 posts
    Member since:
    Apr 2012

    Posted 08 Jun 2012 Link to this post

    Hi Nitin:
             I have recorded a test and once i start execution, at the end of the test the browser gets closed automatically.Is there a setting where in i can customize according to my need.

    Also i have couple of other issues.....Can you please share some start up documentation as we havbe started to automate an application....where we have to build object repository and reusable functions.

    Please help me on the following or it would be great if you can share some documentation
    1.How to create reusable functions and call them in other tests externally(i mean to have some external file as a libraray)
    2.How to create a seperate repository file and start adding objects manually without object explorer and then how can i pass these objects randomly to me test.
    3.How to parameterize my objects to test.
     
  9. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 08 Jun 2012 Link to this post

    Hello Naga,

    If I understand correctly, you'd like to keep to browser open after execution. Is that correct? There's no setting to do this for standard execution, however you can use the Run feature from the Test Step Context Menu:
    • To Here - launch the browser, execute the preceding (and selected) test steps, and enter record mode.
    • From Here - execute the subsequent steps in an existing browser instance (must have recording toolbar attached).
    • Selected Steps - execute the selected steps in an existing browser instance (must have recording toolbar attached).

    I believe your additional questions were answered in a previous forum post.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  10. Srikanth
    Srikanth avatar
    1 posts
    Member since:
    Oct 2012

    Posted 28 Nov 2012 Link to this post

    Hi Feng,

    If i understand your question properly The first Test displayed in the Test List will be executed first using a Standalone version of Telerik Test Studio.

    and we can reorder the tests in a test list by simply clicking on 'Move Up' and 'Move Down' button.

    For more information find the attached screenshot.

    Thanks,
    -SB
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!