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

Leave Browser Open after Iteration

9 Answers 179 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 13 Jun 2013, 02:17 PM
I want to leave the browser open after an iteration finishes, then run the next iteration of the test in a new window.

Any way to do this?

9 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 13 Jun 2013, 08:57 PM
Hi Robert,

This is what our "Run To Here" feature was designed for. Give it a try and tell me if it meets your needs.

Regards,
Cody
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
0
Bob
Top achievements
Rank 1
answered on 13 Jun 2013, 09:00 PM
When running a data driven test, I need the browser to stay open at the end of each and every iteration. The "run to" option only runs the first iteration of a data driven test.
0
Cody
Telerik team
answered on 13 Jun 2013, 09:08 PM
Hi Robert,

Hmmm I see. Then what we really need to figure out is what is causing the browser to close in the first place. For a data driven test, the browser is NOT supposed to close between iterations. It's supposed to launch a new browser at the beginning of the test, run all iterations, then close the browser when the test is finished. To try and discover what's going wrong, can you share with me your test and/or entire test project (be sure to point out the problem test and in which step is the browser closing). I'll study it and try to determine what is causing the browser to close.

Regards,
Cody
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
0
Bob
Top achievements
Rank 1
answered on 14 Jun 2013, 12:32 PM
I'm running a test that starts a download in an ActiveX control. Unfortunately, I can't tell whether or not the download is complete, and if the window closes, the download stops. The download is the end of the test (manually verify it's downloaded). I am downloading over 10,000 different items.

Right now, to prevent the test from closing, I have set an execution delay at the end of 2 minutes. There are two issues with this. First, the browser closes in the middle of downloads that take longer than 2 minutes. Second, it does not begin running the next test until the 2 minutes are up, even if the download finishes in 15 seconds (the majority of the files).

By leaving the browser window open and starting a new iteration in a new window, I can leave the browser window open indefinitely, allowing long downloads to complete. I can run 40 iterations at a time (per my other forum post, though this issue is for a different test) then manually close all the windows.

0
Accepted
Cody
Telerik team
answered on 14 Jun 2013, 05:12 PM
Hello Robert,

I'm running a test that starts a download in an ActiveX control.

I see. That alone does complicate the automation simply because Test Studio cannot directly automate ActiveX controls.

...the browser closes in the middle of downloads that take longer than 2 minutes.

This sounds like the core problem. Do we know why this happens? Under no condition that I can think of should the browser close. It might abort the download, but this should cause the browser to close. Is it possible the ActiveX control is crashing and as a result the browser is closing?

 Is it possible for me to get direct access to your application so I can reproduce this problem, study it and try to come up with a solution? Since you do have a current license of Test Studio, you are welcome to create a new support ticket to pass me this information. Unlike public forum posts (like this one) only you and Telerik support can view the contents of your support tickets.

I can run 40 iterations at a time (per my other forum post, though this issue is for a different test) then manually close all the windows.

I didn't find this other forum post you're referencing. But with this in mind, while it would be a lot more complcated and require some careful programming, it would be possible to open multiple browser windows simultaneously and automate them in parallel.

Regards,
Cody
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
0
Bob
Top achievements
Rank 1
answered on 14 Jun 2013, 05:53 PM
http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/data-driven-test.aspx

Is my other forum post. It's a separate issue than this.

I can't give access to my current program and my script is rather simple, but here's some more information.

The files are downloaded INSIDE the ActiveX control, i.e. not using the Browser download whatsoever. That's why I can't set up any verification for it. I initialize the download by doing an off-set click into the ActiveX window, then run coded keyboard commands to navigate through the strange download dialogue box. After that, the download begins and is monitored inside the ActiveX control.

I'm going to try setting up my test as follows and I'll get back to you with my results.

Subtest - Login
-Navigate
-UN / PW
-Submit
Subtest - Get Active X Files - Data Driven - Run 10,000 Times
-Navigate (Data Driven)
-Download
-Open New Browser Tab
Subtest - Delay Forever

Can you see any issues with this setup?
0
Accepted
Cody
Telerik team
answered on 14 Jun 2013, 07:33 PM
Hello,

Is my other forum post. It's a separate issue than this.

Ah yes, I saw (and responded) to it as well.

These items concern me:

  • Run 10,000 Times - You'll create such a large test result set that Test Studio won't be able to handle it. You'll simply run out of memory.
  • Open New Browser Tab - Test Studio does not support tabbed browsing in IE. We do support opening additional browser windows however. See Pop-ups Open in a New Window.
Regards,
Cody
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
0
Bob
Top achievements
Rank 1
answered on 14 Jun 2013, 08:55 PM
Thanks!

I'll probably batch the job so that the file doesn't get large enough to crash and use New Windows instead of New Tabs.
0
Cody
Telerik team
answered on 14 Jun 2013, 10:03 PM
Hi,

Sounds good to me. I'll stand by for your results and assist if needed.

Regards,
Cody
Telerik
Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
Reserve your seat today!
Tags
General Discussions
Asked by
Bob
Top achievements
Rank 1
Answers by
Cody
Telerik team
Bob
Top achievements
Rank 1
Share this question
or