When a recovery scenario is set for an action, is that scenario behavior carried forward even when that action is called from another test or do we have to make any settings in order to do so? for e.g. if a pop up is handled using scenario1 within an action1 of TEST 1 and if the action1 is called from TEST2, will the same pop up be handled in the called action? It could be called as an existing or a copy of action.

Questions by andy1427

Showing Answers 1 - 6 of 6 Answers

anjalireddy

  • Dec 29th, 2006
 

  • Recovery scenarios are used when you cannot predict at what step the error can occur or when you know that error won't occur in your QTP script but could occur in the world outside QTP, again the example would be "out of paper", as this error is caused by printer device driver. "On error resume next" should be used when you know if an error is expected and don?t want to raise it,
  • you may want to have different actions depending upon the error that occurred. Use err. Number & err.description to get more details about the error.


  Was this answer useful?  Yes

The Action1 is carried out for the same object. The object(popup) also doing the same functionality as loading, selecting the items, reload, etc.. So the Action1 is doing the same functional call. the only thing is it is called from Test 2.


for your question: When a recovery scenario is set for an action, is that scenario behavior carried forward even when that action is called from another test or do we have to make any settings in order to do so?
No setting is need to change. the only thing the Action1 should be end it from it from Test1 b4 the execution of the Test 2 call.

for your question: It could be called as an existing or a copy of action?
we are using the same Action for the Test1 & Test2. with out changing the script (Read-Only). So its an Existing Action.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions