Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where can I get statements for changing qtp settings.
#2
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi,
u can refer this code it might help u.

Code:
Sub loadTestSettings(byRef App, byVal strENV)
   If getRunMode() = "DEBUG" Then
              ' setting en mode DEBUG
        App.Test.Settings.Run.OnError = "Dialog"
    Else
     ' setting en mode Run
        App.Test.Settings.Launchers("Web").Active = False
        App.Test.Settings.Launchers("Web").Browser = "IE"
        App.Test.Settings.Launchers("Web").CloseOnExit = False
        App.Test.Settings.Launchers("Windows Applications").Active = False
        App.Test.Settings.Launchers("Windows Applications").Applications.RemoveAll
        App.Test.Settings.Launchers("Windows Applications").RecordOnQTDescendants = True
        App.Test.Settings.Launchers("Windows Applications").RecordOnExplorerDescendants = True
        App.Test.Settings.Launchers("Windows Applications").RecordOnSpecifiedApplications = True
        App.Test.Settings.Run.IterationMode = "rngAll"
        App.Test.Settings.Run.StartIteration = 1
        App.Test.Settings.Run.EndIteration = 1
        App.Test.Settings.Run.ObjectSyncTimeOut = 20000
        App.Test.Settings.Run.DisableSmartIdentification = True
        App.Test.Settings.Run.OnError = "Stop"
        'App.Test.Settings.Run.OnError = "Dialog"
        App.Test.Settings.Resources.DataTablePath = "<Default>"
        App.Test.Settings.Web.BrowserNavigationTimeout = 10000
        App.Test.Settings.Web.ActiveScreenAccess.UserName = ""
        App.Test.Settings.Web.ActiveScreenAccess.Password = ""
        ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
        ' System Local Monitoring settings
        ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
        'App.Test.Settings.LocalSystemMonitor.Enable = false
    End If
End Sub

Regards,
Sankalp
Reply


Messages In This Thread
RE: Where can I get statements for changing qtp settings. - by sshukla12 - 01-05-2012, 06:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing Data in the application newbieny 0 762 07-17-2019, 07:11 PM
Last Post: newbieny
  How to create a Reusable code for Repetitive Reporter.ReportEvent Statements notknownspammer 0 2,098 10-02-2014, 12:25 AM
Last Post: notknownspammer
  Control Statements piyush957 2 3,465 11-25-2011, 11:18 AM
Last Post: piyush957
  Settings Resources tab missing ppsqtp 0 2,486 10-10-2011, 04:29 PM
Last Post: ppsqtp
  Can't find Resolution Tab to specify Default Resolution settings for Repository merge rameshrise3 2 2,427 02-10-2010, 03:25 AM
Last Post: rameshrise3

Forum Jump:


Users browsing this thread: 4 Guest(s)