Micro Focus QTP (UFT) Forums
Getting an error to open UFT using vbs file - 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 an error to open UFT using vbs file (/Thread-Getting-an-error-to-open-UFT-using-vbs-file)



Getting an error to open UFT using vbs file - Naresh - 04-17-2015

Hi All,

Am facing an issue while opening UFT using .vbs file through non-admin

The error is :

"Neither QTP license nor UFT license is installed, can't run QTP Automation"

Can help me on this

Note: The same is working fine through admin


RE: Getting an error to open UFT using vbs file - venkatesh9032 - 06-11-2015

If ur software is licenced and if u want to open your qtp application using vb script try this concept out.

AOM.

Code:
Set qtApp=CreateObject("QuickTest.Application")

Set qtResultOpt=CreateObject("QuickTest.RunResultsOptions")

qtResult.ResultsLocation="Path"

qtApp.Launch

qtApp.Visible=True

qtApp.Open "path", True

Set objTest=qtApp.Test

objTest.Run qtResultOpt