UFT
Introduction to UFT Installation of UFT UFT GUI Recording the application Directory structure and file extension of UFT test VBScript Basic UFT concepts Object Spy Test Settings Properties Test Run Settings Environment Recovery Associating library files Object Identification mechanism Object repository Object repository Manager Associating repositories with UFT tests Launching applications Loading ini fileDifference between QFL and VBS file Automating web applications automating Windows applications Handling Databases Mathematical operations Create new Excel workbook file Read and Edit Excel workbook Delete excel workbook fileBuilt in Objects
SystemUtil Datatable CryptDotNetFactory Extern OptionalStep PathFinder MercuryTimer RandomNumber Recovery Reporter RepositoriesCollection TextUtil XmlUtil Err objectAdvanced
Description programmingRecovery ScenariosLaunching the UFT using ScriptAutomation FrameworkMisc
UFT Vs Selenium UFT Vs Appium UFT vs LeanFTLimitations and drawbacks of UFTInterview Questions and answersRecovery Object in UFT
Recovery object is used to manage the recovery scenarios associated with the test.- .qrs is the extension of the recovery scenario file.
- We can associate multiple .qrs files to UFT test.
- Each .qrs file can have one or more recovery scenarios.
- Using Recovery object, you can associate .qrs files with test and also enable or disable specific scenarios during the test run.
msgbox "Is recovery mechanism enabled in the UFT test -> " & Recovery.Enabled
msgbox "Number of Recovery Scenarios in current UFT test -> " & Recovery.Count
for i = 1 to Recovery.Count
'get scenario name and file
Recovery.GetScenarioName i, ScenarioFile, ScenarioName
'Get scenario position
Position = Recovery.GetScenarioPosition(ScenarioFile, ScenarioName)
msgbox "Scenario name at position " & i & " is " & ScenarioName & " and it is in file " & ScenarioFile
'Check if the scenario is enabled
msgbox "Scenario at position " & i & " is enabled? ----> " & Recovery.GetScenarioStatus(Position)
Next
'disable first scenario
Recovery.SetScenarioStatus 1, False
Web development and Automation testing
solutions delivered!!