Community in read only mode June 18 & 19
This community will be set in READ ONLY mode for a while on Tuesday June 18 into Wednesday June 19 while we import content and users from our Micro Focus Forums community site. MORE INFORMATION
Highlighted
Absent Member.. vzamoraz Absent Member..
Absent Member..
1488 views

QTP/UFT support tip: How to change the run mode

QTP and UFT have 2 modes to run a test: Fast Mode and Normal Mode.

 
There are different ways to control this depending on what you need.

 
1) Change the mode directly from the Tool:

UFT: -Click on Tools>Options>Gui Testing>Test Runs          

        -Select the mode you prefer from the Run mode options.

 

QTP: -Click on Tools>Options>Run

         -Select the mode you prefer from the Run mode options.

 

 
2)  If you are running the scripts from ALM, modify the mic.ini file.

     a-Open the "mic.ini" file from the <QTP-UFT>/bin directory.

     b-Find the "[RemoteAgent]" section.

     c-Enter the following entry to this section:. 

     RunInFastMode=0 --for normal mode

     or

     RunInFastMode=1 --for fast mode

     d-Save and close the mic.ini file.
     e-Close the Remote Agent system tray tool.
     f-If changes aren't effective, reboot the machine.

 
 
 
3) Set the mode from Automation Object Model (AOM).

    You can create a vbscript file using AOM to launch QTP/UFT open the test set the mode and run it.

    This is a sample of how to run a test in normal mode:

 
    Dim qtApp 'As QuickTest.Application ' Declare the Application object variable

    Dim qtTest 'As QuickTest.Test ' Declare a Test object variable

    Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object

    qtApp.Launch ' Start QuickTest

    qtApp.Visible = True ' Make the QuickTest application visible

    ' Set QuickTest run options

    qtApp.Options.Run.CaptureForTestResults = "OnError"  'Capture lines on Error for test result

    qtApp.Options.Run.RunMode = "Normal"  'Run in normal mode.

    qtApp.Options.Run.ViewResults = False   'disable the auto launch test result at the end of the execution.

    qtApp.Open "C:\Temp\GUITest1", True ' Open the test in read-only mode

    qtApp.Test.Run   'Run test

    Set qtResultsOpt = Nothing ' Release the Run Results Options object

    Set qtTest = Nothing ' Release the Test object

    Set qtApp = Nothing ' Release the Application object

 

Regards.

 

HP support

If you find this useful, mark Kudos.

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.