I hit up the QTP board already...no one had experience with this, but I got the suggestion to try this board in case its actually a Test Director timeout problem. I'll just paste my posts here....thanks for any help!!!
I have a function library that is called numerous times (in some tests, 10+ times)within a test. Here is the VBScript that is contained in the file:
'Launch IE Browser with passed in URL
set IE = CreateObject("InternetExplorer.Application")
IE.Visible = true
'Added line below to resolve intermittent General Error in function.-FWG 12/23/04
Set IE = nothing
As you can see from the comment, we "fixed" this code because the tests were erroring out when this function was called numerous times within a test; we thought maybe it was because initially, we were not setting IE = nothing after using it.
Now, we are receiving a different error. The test runs successfully and calls this function about 9 times, but on the 10th call I recieve the following error:
Test line (209): "LaunchIE(paramValue+".geoaccess.com/bsca/po/gateway.asp?gateway=true")".Error details:Function file: [TestDirector] Subject\QTP\VBScript Files\GlobalFunctions.vbs Line (34): "IE.Navigate(strURL)". Description: The remote server machine does not exist or is unavailable: 'IE.Navigate'.
Can anyone help me with what may be going on here?
OK, let me update this a little.
I am no longer receiving the error I noted above...maybe that was a temporary thing. I am now receiving the original error that cause me to "fix" the function in the first place. (Obviously, it had no effect):
Error in called function.
Test line (209): "LaunchIE(paramValue+".geoaccess.com/bsca/po/gateway.asp?gateway=true")".
Function file: [TestDirector] Subject\QTP\VBScript Files\GlobalFunctions.vbs
Line (33): "IE.Visible = true".
Description: General run error..
Weird thing is, if I hit Retry in the error dialog, the test continues on with no problems.
I use this function library with every auto test I create. As long as it is not called numerous times within a test, it works great. I am only having difficulties when this function is called more than 2-3 times. Has anyone seen anything like this?