Launching Applications (or Not)
I have a VB app that calls another VB app when exporting data. In other words, when I click on "Data > Export," a different exe, "exportutility.exe" is launched.
I need to test some functionality on this exe. However, the problem I am running into is that if I do not indicate this exe in the "Record and Run" settings, QTP will not recognize it and record the steps.
On the other hand, if I DO indicate that I want to record and run on "exportutility.exe," when I click on "Record" or "Run", it automatically STARTS the exe, which starts the export process.
In other words, I can't TEST that my original app calls the exportutility because as soon as I start the test, the utility opens.
Is there a way to indicate I want to record and run on the exportutility without actually forcing it to start when I sttempt to record or run?
The only solution I have found so far is to place it in the record and run settings when composing the test, then taking it out when I want to actually run the test. But there has to be a better way... Doesn't there?
Re: Launching Applications (or Not)
MoneyTrain8 -- in the Record and Run settings, select the top radio button to allow QTP to record and run on any application. This will place the added burden of starting the primary application on you...either manually, before starting the test run, or programatically in the script.
If you go with programatically in the script, keep in mind it will start the app each time the script iterates, so if you data drive, either shut down the app at the end of the script, or place the start up in a seperate action that does not iterate, or put an IF around the startup to only restart unless the app is already running.