Highlighted
Absent Member.. Absent Member..
Absent Member..
197 views

VuGen TImeout Around Individual Function

Jump to solution
Is it possible to put a timeout around an individual function in VuGen (HTTP/HTML Protocol)?
The best way to describe this is if I want to give a function (e.g. web_url) 10 seconds to complete or abort and proceed with the script. This would be so the script wouldn't be hung-up on any one particular non-critical function.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.
I think you can use this function which waits script for some time eg. 60 sec.

web_set_timeout("CONNECT", "60");

View solution in original post

0 Likes
4 Replies
Highlighted
Absent Member.
Absent Member.
I think you can use this function which waits script for some time eg. 60 sec.

web_set_timeout("CONNECT", "60");

View solution in original post

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..
Interesting. So can I put that around a function for a shorter amount of time and then set it back to a higher time after the function?

e.g.
web_set_timeout("CONNECT", "10");
web_url(...);
web_set_timeout("CONNECT", "60");

Thanks for your quick reply
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..
yes.!

please refer LR documentation.

start->LR->documentaion->Functional reference,

You can obtain .chm (Help) from LR bin directory.

~~Shivaram
0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..
You guys are awesome. This did the trick.

Take care,
Adam
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.