Two Batch for the java add in QTP
I got two batch files(.bat) for running two java applications.
i need to test both of these applications simulataneously.
Both has different java settings(jar files and java.exe) for the execution of the java applications.
so developers given two different batch files.
is anybody know how to give both of these batch files in the java tab of the runtime settings.(QTP java).
it usually allows only one batch file. so,right now i am using testing on any java application option. i want to use the record only on these application option.
Re: Two Batch for the java add in QTP
Set up a function that runs both and run it first in your test.
Try something like this:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Function RunBat()
End Function</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Keep QTP set to record on any Java App.
Just put this code in a "*.vbs" file and add the file to the resources tab of the test options.
This is how I do a client-server app and it works well.