I have used a function to close browser for many months. But recently, it will return error sometimes. I said sometimes mean somethings it still works but sometimes not.
Here is the error message:
Not found Function file: C:\Automation Test Cases\UpgradeProductVerification_share\Function Libraries\CloseALLBrowser.qflLine (61): " objProcess.Terminate()".
In fact, I'm prety sure that the function lib .qfl is there in that path and the Line61 is "objProcess.Terminate()".
Any idea about this?
Are you using QTP or UFT?
Which browser version are you using?
Have you made any changes in your system, script, etc. at the time the problem started occurring?
Also, is only this library failing, and is only this method from the library failing?
How are you calling it? It would be great if you could provide more details about the libarary, the specific function and how you are using it from test script, if possible.
In addition, are you observing the problem under any specific circumstances?
QTP 11, win7 64bit, IE 8
This is the only function failing
The only change made recently is to save the test case with rescoure to local and run it from local.
It works well sometimes while not well sometimes.
Verify whether the locally saved solution also has reference to correct function. If you are calling an action of different solution from another action of different solution, then the function library should be referenced in both the solutions.
I'm pretty sure that the function is there in the local drive. And it works most time which also proves that the connection between test case and resource function is still good.
But it may fail sometimes which is a big trouble for us.