Posts: 64
Threads: 17
Joined: Nov 2009
Reputation:
0
06-14-2012, 01:50 PM
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
Attached Files
Image(s)
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
06-14-2012, 03:16 PM
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
Posts: 64
Threads: 17
Joined: Nov 2009
Reputation:
0
06-14-2012, 04:35 PM
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
Posts: 66
Threads: 7
Joined: Sep 2011
Reputation:
0
06-14-2012, 04:39 PM
Please check that all the files are added in the resources.
(associated function library)
Posts: 64
Threads: 17
Joined: Nov 2009
Reputation:
0
06-15-2012, 03:01 PM
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?
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
06-18-2012, 06:40 PM
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.
Posts: 64
Threads: 17
Joined: Nov 2009
Reputation:
0
06-22-2012, 01:12 PM
(This post was last modified: 06-22-2012, 01:40 PM by linhke .)
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).