|
请教QTP高人,下面的代码到底做了什么事. 尤其是FatalError 和SecurityWindow是什么东西,有什么用
Set qtApp = CreateObject("QuickTest.Application")
Set qtTestRecovery = qtApp.Test.Settings.Recovery
qtTestRecovery.Add Relative_Path & "\DRIVERSCRIPTS\FatalError.qrs", "FatalError", 1
qtTestRecovery.Add
Relative_Pat& "\DRIVERSCRIPTS\SecurityWindowRecovery.qrs", "SecurityWindow", 2
For intIndex = 1 To qtTestRecovery.Count ' Iterate the scenarios
qtTestRecovery.Item(intIndex).Enabled = True ' Enable each Recovery Scenario (Note: the 'Item' property is default and can be omitted)
Next
qtTestRecovery.SetActivationMode "OnEveryStep"
Recovery.Activate |
|