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

How to run all tests from a project in one browser instance

3 Answers 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vitaliy
Top achievements
Rank 1
Vitaliy asked on 05 Oct 2012, 10:58 AM
Hi -

I have two tests in the project, Test1 and Test2.
The Test1 is started first in web browser (Silverlight app) and then IE closed when the Test1 is completed and new IE instance is being started for the Test2.
But I want to continue with Test2 from where the Test1 was finished. I don't want to close IE and start new one. How to attain this?

Many thanks,
Vitaliy

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 05 Oct 2012, 11:26 AM
Hello Vitaliy,
put the two tests in a TestList and simply set RecycleBrowser to true from the Settings:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/test-execution/test-list-settings.aspx

  • RecycleBrowser - when set to true, one instance of the browser is launched and recycled throughout all tests until Manager.Dispose is called.

I hope this helps.

Regards,
Stoich
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Vitaliy
Top achievements
Rank 1
answered on 08 Oct 2012, 01:23 PM
Hello Stoich,

Yes, that helped, but partially. When the setting is on all tests performed in one browser - that's ok, but in additional i need to start new test from the place where the previous one is finished. Currently Telerik starts new test from navigating to base URL.

Thx
0
Stoich
Telerik team
answered on 11 Oct 2012, 11:48 AM
Hello Vitaliy,
you can chain the tests together by using the TestAsStep feature:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/add-custom-step/test-as-step.aspx

That way each test will pick up EXACTLY where the last test left off.

It seem to me this is exactly what you're looking for. Let me know how it goes.

Regards,
Stoich
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
Vitaliy
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Vitaliy
Top achievements
Rank 1
Share this question
or