question

bbaker avatar image
bbaker asked bbaker posted

Web Page Load Timeout

I need to be able to generate a test failure if a web page does not load within a specified amount of time.  I'd like to be able to set the timeout value in the Session Profile.

 

Is there a way to do this?  Hopefully I don't have to evaluate something after every command.

iTestGUI Testing(Web-Java Swing-etc)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
IvanS avatar image
IvanS answered IvanS posted

You can use "Step Properties:Timing->Duration" to specify timeout for open step

 

I think this topic can be useful too:

"How does iTest know that a page is loaded completely before executing the next command?"

http://forums.fanfaresoftware.com/t5/GUI-Testing-Web-Java-Swing-etc/How-does-iTest-know-that-a-page-is-loaded-completely-before/m-p/5602

4 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bbaker avatar image bbaker commented ·

Is there a way to set this in the Session Profile?  I can't set it for the entire test case since there are different are several different devices.  I also don't want to have to hand edit each step in the web sessions.

0 Likes 0 ·
IvanS avatar image IvanS bbaker commented ·

You can set default step timeout for all steps in a test case - go to "General" tab in test case editor and change "Default step timeout".

For Web sessions you can change wait and completion time (it is on "General" tab "Session properties: replay->Step Properties")

More info about wait and completion time you can find here:

"How does iTest know that a page is loaded completely before executing the next command?"
http://forums.fanfaresoftware.com/t5/GUI-Testing-Web-Java-Swing-etc/How-does-iTest-know-that-a-page-is-loaded-completely-before/m-p/5602

 

0 Likes 0 ·
PreetS avatar image PreetS IvanS commented ·

You can not achieve what you are looking for in the current version of iTest. 

Step execution time does not map with the page load time.

 

The best way, in the current release would be to look for a particular component on the page and see if that exists or not; but that will require you to change the test case which is not what you want. 

0 Likes 0 ·
KumarS avatar image KumarS PreetS commented ·

We are going to add this feature to a future release of iTest.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.