I'm trying to run more than one QTP script sequentially (i.e. Run Test Set) from Quality Center. The first script launches the browser, logs in to the web application, and completes successfully. However, the second script fails... it's as if the browser (that was left open from the first test) is not even recognized. This works fine independent of Quality Center, that is, when I use the QTP batch runner. Any suggestions?
As I understand the issue correctly, you are opening a browser in your first script say test 1 and do perform some operation on the browser and then in the next test script say test 2 trying to perform some operation on the same browser.
Now, Quality Center will treat both the test as independent of each other and will invoke a seperate instance of QTP so your previously opened browser will not be recognized by QTP and hence the test2 will fail.
You can try doing folowing.
1. Keep your test scripts in each test set independent of each other.
2. Use reusable or external actions to accomodate the test in the same browser.
Thank you for the quick response.
This particular application requires a login every time a new browser is invoked, so that's the only way I can see keeping each script independent (by logging in and out of the app for each script).
Can you expand on #2?