Keep browser open after test case

3 posts, 0 answers
  1. dudi
    dudi avatar
    9 posts
    Member since:
    Aug 2011

    Posted 11 Aug 2011 Link to this post

    Hi

    I need to create some small test cases, that together are a complete test scenario.
    For example:
    1. Test1 - do login and validate succeeded and redirected to main page.
    2. Test2 select an item in a combobox on main page

    I recorded the 2 test and the created a list executing the first the the second case.
    The problem is that after test1 ends the browser is closed and the reopen again when test 2 starts.

    But the second time the browser is open it should be after login and on main page for the second test to succeed - so it fail...

    Is there a way to create a test flow made out of sub test cases ?

    Thank
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 11 Aug 2011 Link to this post

    Hi Dudi,

    The first way to control this browser behavior is through the test list settings. Just select the test list and click Edit Settings, under the Web tab find the RecycleBrowser option and turn it on(see screenshot).

    The other way around this is to add your test "Test2" as a step of the login test "Test1" . You just need to open your login test and click "Test as Step" button from the "Add" menu. There you will see the other test and you can add it as step by clicking the name and then click the "Select" button.

    Hope this helps!

    Regards,
    Plamen
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. dudi
    dudi avatar
    9 posts
    Member since:
    Aug 2011

    Posted 11 Aug 2011 Link to this post

    Super !!

    10X
Back to Top