03-03-2011, 11:53 PM
In QTP, go into Tools->Options and click "Generate Script" and save it somewhere. This script has all the settings for your current QTP environment. Here a few example lines from my script:
If they're all part of the same test, you can save these values in variables and then at the end of the test set these values to the variable values you stored originally.
Code:
App.Options.DisableVORecognition = False
App.Options.AutoGenerateWith = False
App.Options.WithGenerationLevel = 2
App.Options.TimeToActivateWinAfterPoint = 500
App.Options.SaveLoadAndMonitorData = False
App.Options.Run.RunMode = "Normal"
If they're all part of the same test, you can save these values in variables and then at the end of the test set these values to the variable values you stored originally.