Micro Focus QTP (UFT) Forums
Create a wrap for the main script ? - 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: Create a wrap for the main script ? (/Thread-Create-a-wrap-for-the-main-script)



Create a wrap for the main script ? - Linuxuser - 02-07-2017

Hi there,

first: sorry about my terrible English .

I use UFT 12.54 and my script/solution
have this actions order:

action:applicationstart ---> action:mainscript ---> action:outputscript --> action:closeapplication


i want to open in the action:applicationstart the firefox browser (it worked fine)
SystemUtil.Run "firefox.exe","https://mywebsite....."

..then run all the iterations of the Globals Sheet (its defined in the Action Mainscript)
then worked the action output script and ..


then  if it all done : close the FirefoxBrowser with the
Action:CloseApplication.
(SystemUtil.CloseDescendentProcesses)




Because, If i use it it, Firefox  opened every iteration a new tab :-/

i want to open once (!) the firefox Browser
run as example 20 iterations of test data
and then (!) close the script....



Whats going wrong !?
:-/




Thank you
very much,

Regards

LinuxUser (Germany)