I use QTP to run a Java script using:
It works fine. The jar runs while QTP waits for it to finish.
wsh.run strCommand,3,True 'The strCommand is: Java jar file parameter
Now if I use a batch file to start QTP using the QTP Object model, the file explorer is opened. The Java file does not run.
I would use System.Util.Run but I need to wait for the Java file to finish running.
How can I launch a Java file from QTP and know that it is finished running?