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

Timeout error to connect with browser the first time

6 Answers 212 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 09 Jul 2012, 05:12 PM
Hi everyone,

Just to report you that most of the time that we run a test, the first time we are getting a timeout error when the test is trying to connect with the browser (IE8, IE9, Chrome, Safari or Firefox). We need to cancel the test and run it again, and in the this second time the test runs correctly without timeout errors. 

We are using VS and the Browsers extension are installed and enabled.
Does anyone know what is happening this?

Thanks in advance,
Juan

6 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 12 Jul 2012, 02:55 PM
Hello Juan,

We haven't experienced this issue on our side. Do the browsers launch quickly when opened manually? Is it possible the browser takes more time to load than the standard 20 second timeout?

You can increase the timeout used to wait for a client to be ready after initial launch like this:

Manager.Settings.ClientReadyTimeout = 60000;

Alternatively you can catch the timeout exception and launch again:

try
{
    Manager.LaunchNewBrowser();
}
catch (System.TimeoutException)
{
    Manager.LaunchNewBrowser();
}


All the best,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Juan
Top achievements
Rank 1
answered on 12 Jul 2012, 03:11 PM
Hi Anthony,
Thanks for your response!

The browser is launching quickly manually, the problem is when Telerik tries to connect to the browser, most of the time the browser window only show the message: "Preparing browser for automation..."

I've attached an example screenshot. But, let me try your suggestions and I'll let you know.

Thanks,
Juan
0
Patrick
Top achievements
Rank 1
answered on 12 Jul 2012, 07:07 PM
Have you tried running VS in Administrator Mode?
0
Juan
Top achievements
Rank 1
answered on 12 Jul 2012, 09:01 PM
Hi Patrick,

Yes, some of the machines that we use for the tests is with the Administrator user.
I don't think that could be the problem, at least not all the problem.

Thanks,
Juan
0
Patrick
Top achievements
Rank 1
answered on 12 Jul 2012, 09:03 PM
If these are win vista/7 platforms you have to right click "run as Admin".  I say this because I was getting the same issue prior to doing a run as admin.

Pat
0
Juan
Top achievements
Rank 1
answered on 12 Jul 2012, 09:14 PM
Actually, your suggestion make sense.

I'll let you know guys how it goes,
Thanks for that!
Tags
General Discussions
Asked by
Juan
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Juan
Top achievements
Rank 1
Patrick
Top achievements
Rank 1
Share this question
or