Micro Focus QTP (UFT) Forums

Full Version: QTP setting related question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
one interview question asked to me by my current company's people that if smobody changed the setting for qtp which you set already for a test , how do you restore your pervious setting (not qtp original setting ) ?
is there any way .
plz ans me .thanks in advance
What settings specifically? Did you ask back the interviewer this question?
It could be test settings , run settings, record and playback settings..just another black hole.
Always remember, hunting the hunter saves being hunted.
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:
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.
Thanks ...thats the answer I wanted.Thanks a lot



You are right also.I should have asked also.Thanks for your help.I will remember in future.I must say its a good forum.