Can’t launch UFT from VB code, but can from desktop icon.

  • Questions
  • 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: 338, Answers: 20)
Asked on July 30, 2015 10:09 pm
10 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: 16, Answers: 748)
Answered on July 30, 2015 10:10 pm
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)