12-30-2010, 02:56 PM
Hi,
I am using comspec to run a command line utility.
the algo of my code is something like this
1) capture the current time
2) run the command line utility.
3) capture the current time
4) find the difference between two time - this gives the time taken for the command line utility to complete.
Problem:
QTP is not waiting for the command line utility to finish, the flow moves on to the next line.
Is there anyway how we can make QTP wait till the command line utility completed and then move to the next line for execution???
I am using QTP 9.2
I am using comspec to run a command line utility.
the algo of my code is something like this
1) capture the current time
2) run the command line utility.
3) capture the current time
4) find the difference between two time - this gives the time taken for the command line utility to complete.
Problem:
QTP is not waiting for the command line utility to finish, the flow moves on to the next line.
Is there anyway how we can make QTP wait till the command line utility completed and then move to the next line for execution???
I am using QTP 9.2