Getting run time error while executing the QTP script in command prompt. - 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: Getting run time error while executing the QTP script in command prompt. (/Thread-Getting-run-time-error-while-executing-the-QTP-script-in-command-prompt) |
Getting run time error while executing the QTP script in command prompt. - vishruth143 - 07-15-2013 Hi All, I'm getting the below error when I tried to run the QTP script via command prompt. Error Message: cmd_QTP.vbs<13,1> Microsoft VBScript runtime error: Type mismatch: 'Run' In command prompt i'm using the command cscript //nologo cmd_QTP.vbs Code: Dim qtApp 'As QuickTest.Application ' Declare the Application object variable I doubt the error is on code line 13 which is higlighted in the above code. Please help me to get this resolved. Thanks Vishruth RE: Getting run time error while executing the QTP script in command prompt. - vinod123 - 07-15-2013 What you said was correct. I think i have solved the issue you are facing. Just check this code first you have to create an object and if not able to create. check if your running Admin mode Code: Dim App |