1st Time QTP Developer - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: 1st Time QTP Developer (/Thread-1st-Time-QTP-Developer) |
1st Time QTP Developer - gcsmith - 06-23-2009 We are attempting to integrate QTP with our in-house test tools. We are exploring the custom test (ActiveX) framework, but at the same time are wondering if a command line interface is possible. Researching the VBScript I have found the SystemUtil.Run command, so running an external program is possible. We'd need to run the application, wait for it to complete, interrogate the exit code (or a result.txt) for a pass/fail result and potentially integrate output files into the repository. Running is easy, but I see nothing on exit code or waiting for an application to complete. In C++ you'd use WaitForSingleEvent. I also don't see anything on interrogating the exit code. I do see various functions for logging pass/fail type events and even importing external files. Is there a simple way to wait and get exit code or are we forced into creating a custom test with ActiveX? Thanks, Greg |