Problems running more than one script sequentially from Quality Center - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Problems running more than one script sequentially from Quality Center (/Thread-Problems-running-more-than-one-script-sequentially-from-Quality-Center) |
Problems running more than one script sequentially from Quality Center - lisanye - 04-14-2009 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? RE: Problems running more than one script sequentially from Quality Center - Tarik Sheth - 04-14-2009 Hi, 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. RE: Problems running more than one script sequentially from Quality Center - lisanye - 04-14-2009 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? RE: Problems running more than one script sequentially from Quality Center - Ankur - 04-15-2009 You may want to use 'creation time' ordinal identifier to identify browsers. RE: Problems running more than one script sequentially from Quality Center - Tarik Sheth - 04-15-2009 I think you can try doing following. As in the attached screenshot for QTP remote agent running in your machine in the task bar you can configure your options. For example you have 10 test in your test set then in the open QTP option you can select after 10 test script run. Hope this helps. |