Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exception Handling thorugh Descritpive Programming.
#11
Solved: 11 Years, 4 Months, 4 Weeks ago
Thanks Basanth and Saket..you guys have been very helpful althroughout in every query I put forward.

Let me go through it properly and find out a way to implement the same.
Reply
#12
Solved: 11 Years, 4 Months, 4 Weeks ago
Hey i am not sure if this helps you.

You turn on/off recovery scenarios using VB script . Generally How i do this is call the QTP script by VBscript. And VBscipt i have got code to disable or enable the recovery scenarios before running the script.

But i am not sure whether you can call functions to do this during run

Code:
Dim rRecoveries

Set rRecoveries  = appQTP.Test.Settings.Recovery
'Remove any default recovery scenarios
If rRecoveries.Count >0 then
     rRecoveries.RemoveAll

end if

'syntax object.Add ScenarioFile, ScenarioName, [Position]
rRecoveries.add rRecoveryPath1,rRecoveryName1 ,1
rRecoveries.add rRecoveryPath2,rRecoveryName2 ,2


'After adding now enable the recovery mechanism
rRecoveries.enabled = True


'Set activation mode for recovery scenarios
rRecoveries.SetActivationMode "OnError"


'At the end, Save the test

appQtp.Test.save
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] SelectRow and Exception robertosalemi 1 2,527 03-23-2016, 10:36 PM
Last Post: robertosalemi
  External component has thrown an exception. mharps 1 7,146 05-28-2014, 10:07 AM
Last Post: mharps
  Sample code: Search thorugh a Folder Halemani 0 2,144 08-17-2012, 06:15 PM
Last Post: Halemani
Exclamation RE: QTP - Exception Handling Unleash Rajesh 2 5,060 07-05-2011, 08:54 PM
Last Post: rajpes
  Exception Handling in QTP sudhirzpatil 2 13,027 12-22-2010, 10:05 AM
Last Post: sudhirzpatil

Forum Jump:


Users browsing this thread: 2 Guest(s)