checking result of systemUtil.run - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: checking result of systemUtil.run (/Thread-checking-result-of-systemUtil-run) |
checking result of systemUtil.run - bo.moon - 12-03-2010 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? RE: checking result of systemUtil.run - manishbhalshankar - 12-03-2010 Hi, Try implimenting On Error Resume Next: PHP Code: On Error Resume Next RE: checking result of systemUtil.run - Emil-Dean - 12-03-2010 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. RE: checking result of systemUtil.run - bo.moon - 12-04-2010 Thanks for your quick reply. How does it implement using VBscript in QTP? RE: checking result of systemUtil.run - rajeshwar - 12-04-2010 Hi, Write a custom checkpoint to check if the application is opened or not. Sample: Code: If Browser(..).Exist([TimeoutValue]) Then RE: checking result of systemUtil.run - duggisrinivasarao - 12-08-2010 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. |