My team is new to QTP as am I. We are testing batch jobs and need to do a before / after compare of the database. We have created database checkpoints to verify the state of the database before the job has run. We then run the job through a scheduler and want to verify the results after. I need to figure out how to pause the script so that we can verify the results of the first checkpoint before execution the job. Help????
You could try the 'WaitProperty' statement providing you know exactly how long the batch job runs for. This is the simplest way I can think of. There probably will be (no doubt) other ways of doing this .... anyone else have any suggestions?
Can the batch job be run outside of the scheduler for testing purposes, or do you want to use QTP as a monitoring tool? The batch file could be started within QTP or the batch file could actually start and run QTP using COM Automation. Or, maybe your batch jobs are not on a windows system. In that case, could you take advantage of your shedulers loggin capability and have QTP watch for a log file or logfile entry before continuing with it's checkpoints?
I'm not sure how WaitProperty would help in your case.