While working on script, I am facing this issue.
I can't post the whole code but this is a sample that does the samething that I wrote myself;
Dim qtpApp
Set qtpApp = createObject("QuickTest.Application")
qtpApp.Launch
I have also tried this:
Set qtpApp = createObject("QuickTest.application")
And This:
Set qtpApp = createObject("Quick Test.Application")
But I Keep Getting "Active X Component cant create object. on Line x: "Set qtpApp = createObject("QuickTest.Application")"
Any help appreciated. Thanks.
The correct prog-id is the one you tried first "QuickTest.Application"
.
The probable cause for this is that QTP isn't installed correctly on your machine. To verify if this is the case
HKEY_CLASSES_ROOT\\QuickTest.Application\\CLSID
HKEY_CLASSES_ROOT\\CLSID
(or if it's a 64 bit machine HKEY_CLASSES_ROOT\\Wow6432Node\\CLSID
) LocalServer32
points to "QtpAutomationAgent.exe" under QTP's bin directory
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.