Micro Focus QTP (UFT) Forums
Changing automation setting on the fly - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Changing automation setting on the fly (/Thread-Changing-automation-setting-on-the-fly)



Changing automation setting on the fly - pranjal - 08-21-2009

Hi,
I want to run a windows application qtp script and get results in a datasheet and then in the same scipt start up a browser and get results and compare them.
I have 2 separate scripts currently which I run one after the other and have to go to Automation->Record and Run Settings and choose the correct setting.
Does anyone know if this can be achieved in a single script?
Let me know soon. thanks.


RE: Changing automation setting on the fly - basanth27 - 08-21-2009

why not ? Try,

SystemUtil.Run "Iexplore.exe", urlpath


RE: Changing automation setting on the fly - pranjal - 08-22-2009

Thanks, that works when i run the test from QTP. But when I tried it from Quality Center it ran the window application test, but flex script failed. I found out that it had disabled the activex and flex plugin while running the windows test.
When i run it as 2 separate tests one after the other in QC, it runs fine.
is there a way to enable plugins on the fly? I guess, that is asking for too much Smile...


RE: Changing automation setting on the fly - basanth27 - 08-24-2009

Pranjal -
Please open a new thread for any new issues.