QTP doesn't undestand "Option Explicit" - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: QTP doesn't undestand "Option Explicit" (/Thread-QTP-doesn-t-undestand-Option-Explicit) |
QTP doesn't undestand "Option Explicit" - hpham - 07-09-2008 Hi all, Pls help me. I write a sript in VBS, and QTP can't understand it. Each time I run the script, QTP show a run time error: "The test can't be run due to an unrecoverable error: File not found Line (1) Option Explicit". RE: QTP doesn't undestand "Option Explicit" - Ankur - 07-09-2008 Please put your properly formatted code here. RE: QTP doesn't undestand "Option Explicit" - hpham - 07-09-2008 Here is the code: Code: Option Explicit RE: QTP doesn't undestand "Option Explicit" - Ankur - 07-09-2008 ...by any chance have you given option explicit statement in startup.vbs also and have not defined the variable there...or check if the file path is correct.... this statement can also be reason for error... Code: Set keywordTest = New StartUp |