Micro Focus QTP (UFT) Forums

Full Version: General run error after launching IE browser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I have a script "Login", in Test Settings\Resources i have associated with function "Init.vbs".

Before, i ran it successfully, but for now when i run it, after QTP launching IE browser, a General run error generated as the attachment.

I can not understand what's wrong with this.

So, could anybody help me on that?

Many thanks
Hi,

Please use the full file path whenever you are using the statement "ExecuteFile"

Syntax is

ExecuteFile "<Full File PATh of the library file.>"

I guess with your file you have some syntax error. Plz check the syntax using Ctrl+F7

Regards,
Ankesh
Hi Ankesh,

Thanks for your answer. I tried your solution but it has not been solved.

Plz note that, it ran successfully before.

Regards,
Linh
Please check that all the files are added in the resources.
(associated function library)
In the Resources, i only associate the function "Init.vbs".
I think my sources have no problem because they are run successfully.

Can anything be incorrupted with QTP?
Did you check the file whether it has some syntax errors or not? I feel there is something wrong with file. Plz check the syntax.
I checked them. All of them are valid
Hi,

In Test Settings\Resources, i tried to change from using relative function (Init.vbs) to using absolute (C:\QTPAutomation\VBS\Init.vbs) function then this error is dismissed.

Can you let me know why does the General run error happen when i use the relative function, although in Tools\Options\Folders i added the path (C:\QTPAutomation\VBS).