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

How to do not close browser after a test?

9 Answers 507 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Feng
Top achievements
Rank 1
Feng asked on 28 Mar 2012, 02:12 PM
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.

9 Answers, 1 is accepted

Sort by
1
Anthony
Telerik team
answered on 28 Mar 2012, 03:49 PM
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
0
Feng
Top achievements
Rank 1
answered on 31 Mar 2012, 11:48 PM
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.
0
Anthony
Telerik team
answered on 02 Apr 2012, 03:40 PM
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
0
Feng
Top achievements
Rank 1
answered on 05 Apr 2012, 03:19 PM
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.
0
N1t1nA
Top achievements
Rank 1
answered on 10 Apr 2012, 08:27 AM
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
0
Anthony
Telerik team
answered on 10 Apr 2012, 06:04 PM
@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
0
Naga
Top achievements
Rank 1
answered on 08 Jun 2012, 01:30 PM
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.
 
0
Anthony
Telerik team
answered on 08 Jun 2012, 07:39 PM
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
0
Srikanth
Top achievements
Rank 1
answered on 28 Nov 2012, 02:16 PM
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
Tags
General Discussions
Asked by
Feng
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Feng
Top achievements
Rank 1
N1t1nA
Top achievements
Rank 1
Naga
Top achievements
Rank 1
Srikanth
Top achievements
Rank 1
Share this question
or