General run error after launching IE browser - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: General run error after launching IE browser (/Thread-General-run-error-after-launching-IE-browser) |
General run error after launching IE browser - linhke - 06-14-2012 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 RE: General run error after launching IE browser - Ankesh - 06-14-2012 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 RE: General run error after launching IE browser - linhke - 06-14-2012 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 RE: General run error after launching IE browser - Shridevi.Salagare - 06-14-2012 Please check that all the files are added in the resources. (associated function library) RE: General run error after launching IE browser - linhke - 06-15-2012 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? RE: General run error after launching IE browser - Ankesh - 06-18-2012 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. RE: General run error after launching IE browser - linhke - 06-22-2012 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). |