06-23-2009, 03:11 AM
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
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