Can’t launch UFT from VB code, but can from desktop icon.
Question ID: 106265
1
0

When using the VB code below on one of our VM’s UFT does not launch. It works find on other VMs, and I can launch UFT fine from the icon on the desktop. The error I’m getting is "Neither QTP license nor UFT license is installed, can’t run QTP Automation."

Option Explicit
Dim qtApp
Set qtApp=CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible=True

Marked as spam
Posted by (Questions: 387, Answers: 66)
Asked on July 30, 2015 10:09 pm
246 views
Answers (1)
0
Private answer

Check the elevation level of UFT. It needs to be the same as your launching script or lower. If it is higher, then you can get errors like this.

Marked as spam
Posted by (Questions: 17, Answers: 807)
Answered on July 30, 2015 10:10 pm
0
yes, that's it. Someone had changed the compatibility settings on UFT to Run As Administrator for all user. We changed that and now it works fine.
( at July 30, 2015 10:11 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top