Posts: 2
Threads: 1
Joined: Dec 2010
Reputation:
0
12-03-2010, 07:55 AM
I use systemUtil.run to execute some applications or batch file.
I need to know the result of its execution if it fail or success.
However, systemUtil.run does not return any results.
any good idea?
Posts: 4
Threads: 1
Joined: Dec 2009
Reputation:
0
12-03-2010, 10:53 PM
Set a check point using the standard check point if its a window or dialog that launches. Then set check point parameter with a Boolean value pass or fail for qtp native reporter. That will validate pass or fail for you.
Posts: 2
Threads: 1
Joined: Dec 2010
Reputation:
0
12-04-2010, 08:09 AM
Thanks for your quick reply.
How does it implement using VBscript in QTP?
Posts: 9
Threads: 1
Joined: Dec 2010
Reputation:
0
12-08-2010, 01:18 AM
Another way is to "ECHO %errorlevel%" to a text file after each command in the batch mode and after the execution of batch file, open the text file and see if any errors are present.