Sometimes I am getting an error about Active X when I try to use an application's API. It usually gets thrown when I try to use the CreateObject method. For instance, if I try to connect to ALM from QTP using the TDConnection object, it gives me an error. I can't figure out what is happening.
Answer by Rich Text · Jul 28, 2014 at 03:01 PM
Usually when you get the kind of error you are describing, the classes of the application's api aren't registered, so QTP can't instantiate the object properly. You probably have something missing/not installed that needs to be (runtime libraries, etc.)
For example, if you want to use the TDConnection object like you mentioned, you would first need to go to QC/ALM's addins page and download the Connectivity installer and execute it. This file contains the QC/ALM libraries the QTP will use to connect. Once you have run that and installed it, I bet your CreateObject statment will now work if the syntax is correct.
Answer by Rich Text · Jan 10 at 02:44 AM
Here's a tip from something I ran into that was driving me crazy. If you get an Active X error when trying to launch QTP/UFT via the Automation Object Model, double-check the UFT shortcut you have (probably on your desktop). Right-click on it and check the properties, and go to the compatibility tab. Make sure that the 'Run as administrator' is not checked. This will cause an elevation mis-match and throw an error when trying to launch UFT.
Is it possible to write a VB Script that will read the path of application in the Outlook email received by a particular sender or a subject and copy it to a designated location in the hard drive ? 1 Answer
No script debugger in UFT 5 Answers