Sorry if this is obvious, I did look through the forum but found no answer to my question.
I want to be able to guarantee that the that the record and run test on any open Web browser is never checked. By this, I mean that when I run tests from the Quality Center, I want to make sure a browser opens. If record and run tests on any open browser is checked then a browser will not open.
I know there are work arounds to this using systemutil, but I would like to know if there was any other way I could manipulate this setting. Ofcourse, any good suggestions using systemutil will be gladly accepted.
you can check if there is any browser open by using the Index or the CreationTime ordinals
you can customize the script below by having the browser title
If Browser("micClass:=Browser","index:=0").Exist Then
'Browser is already open
'open the browser
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
For i=1 to qtpLauncher.Count
If qtpLauncher.Active Then
If RunOnAnyBrowser Then
Msgbox "Run on any browser is set"
Msgbox "Run on any browser is not set"
Hi, Thanks for the knowledge guys, and for opening my eyes to something that should be obvious - help>object model reference.
Goto:Configure Web Settings for Recording and Running
I have found the following which complies to my needs
Set qtpapp = CreateObject("QuickTest.Application")
qtapp.Test.Settings.Launchers("Web").Active = True ' this tells qtp to open a browser based on browser details: Type & Address
qtapp.Test.Settings.Launchers("Web").CloseOnExit = True