I use following code to open my site:
Sometimes site can't be opened fast so test is failed with timeout error.
I try to add Wait action, but test is failed on first step.
How I should do it?
[CodedStep(@
"Navigation to Form"
)]
public
void
NavigationToForm()
{
ActiveBrowser.NavigateTo((
string
)Data[
"ContributorPath"
]);
ActiveBrowser.Window.Maximize();
}
I try to add Wait action, but test is failed on first step.
[CodedStep(@
"Wait for url"
)]
public
void
WaitForUrl()
{
// Wait for url
ActiveBrowser.WaitForUrl((
string
)Data[
"ContributorPath"
],
true
, 60000);
}
5 Answers, 1 is accepted
0
Hi Alexander,
I'm sorry you are running into this problem. Is this an HTML or a Silverlight Application? What is the exception?
If this is a Silverlight application you can try to increase the Silverlight Connect Timeout settings in Project Settings->Recording Options. If this is an HTML, you can increase the global "Client (Frame/Window) ready timeout". See the bottom of this page on how to set it in Quick Execution Options.
Please, let me know if you are still unable to resolve this!
Kind regards,
Plamen
the Telerik team
I'm sorry you are running into this problem. Is this an HTML or a Silverlight Application? What is the exception?
If this is a Silverlight application you can try to increase the Silverlight Connect Timeout settings in Project Settings->Recording Options. If this is an HTML, you can increase the global "Client (Frame/Window) ready timeout". See the bottom of this page on how to set it in Quick Execution Options.
Please, let me know if you are still unable to resolve this!
Kind regards,
Plamen
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
algot
Top achievements
Rank 1
answered on 20 Jan 2012, 12:45 PM
This is HTML application. This step is initial opening of my application.
How could I increase timeout in VS?
How could I increase timeout in VS?
0
Hello Alexander,
If you are running your test from Quick Execution, check the first screenshot to see where to find the "Client (Frame/Window) ready timeout" settings. If you are running your test as part of a Test List, you need to increase the ClientReadyTimeout value from the Test List Settings(see screenshot).
Kind regards,
Plamen
the Telerik team
If you are running your test from Quick Execution, check the first screenshot to see where to find the "Client (Frame/Window) ready timeout" settings. If you are running your test as part of a Test List, you need to increase the ClientReadyTimeout value from the Test List Settings(see screenshot).
Kind regards,
Plamen
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
algot
Top achievements
Rank 1
answered on 20 Jan 2012, 03:12 PM
I have no such files as described in
http://www.telerik.com/libraries/automatedtesting-kb-files/vs-localtestsettings.sflb
My project looks like
http://screencast.com/t/wF7UiUFYXaoZ
http://www.telerik.com/libraries/automatedtesting-kb-files/vs-localtestsettings.sflb
My project looks like
http://screencast.com/t/wF7UiUFYXaoZ
0
Accepted
Hello Alexander,
You need to add this file manually by right-clicking on the solution and selecting "Add>New Item... --> Test Settings". Here's a quick video showing how you can do that.
All the best,
Plamen
the Telerik team
You need to add this file manually by right-clicking on the solution and selecting "Add>New Item... --> Test Settings". Here's a quick video showing how you can do that.
All the best,
Plamen
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items