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

Keep browser open after test case

2 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dudi
Top achievements
Rank 1
dudi asked on 11 Aug 2011, 11:03 AM
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 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 11 Aug 2011, 12:03 PM
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!
0
dudi
Top achievements
Rank 1
answered on 11 Aug 2011, 01:59 PM
Super !!

10X
Tags
General Discussions
Asked by
dudi
Top achievements
Rank 1
Answers by
Plamen
Telerik team
dudi
Top achievements
Rank 1
Share this question
or