I have made the recovery scenario in script. When i am
exceuting the script. it stop automatically after running
recovery scenario. Please tell the resaon?

Answers were Sorted based on User's Feedback



I have made the recovery scenario in script. When i am exceuting the script. it stop automatically..

Answer / manas

Try this method

Function fnRecovery(Object, Method, Arguments, retVal)
'Error Handling Code
End Function

Lets take a example test run error for items or list not
found in dropdown list

Explanation of each argument to fnRecovery is given below:

Object as Object: The object of the current step.
Method as String: The method of the current step.
Arguments as Array: The actual method's arguments.
Result as Integer: The actual method's result.

To handle this scenario, we will use the function below:

Function Recovery_ListItemIsNotFound(Object, Method,
Arguments, retVal)
Dim sAllItems, arrAllItems, intItem

With Object
'Retrieve all items from the Listbox
sAllItems = .GetROProperty("all items")
'Split 'all items' using a delimiter ";" into an
array
arrAllItems = Split(sAllItems, ";")

'Select a random number
intItem = RandomNumber.Value(LBound(arrAllItems),
UBound(arrAllItems))
.Select "#" & intItem

Reporter.ReportEvent
micInfo, "ListItemIsNotFound", "Item: " & .GetROProperty
("value")
End With
End Function

Is This Answer Correct ?    2 Yes 0 No

I have made the recovery scenario in script. When i am exceuting the script. it stop automatically..

Answer / siraj

install script debugger in your system and try again

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to execute a WinRunner Script in QTP?

1 Answers   Crea,


Why we are selecting QTP for testing ?

20 Answers   HP,


in howmany ways you perfrom batchtesting

6 Answers   Lehman Brothers,


Does Low-level recording capture mouse movements?

0 Answers  


How can you Open a Notepad and How can you write the test Resuts in Notepad by Using QTP?

3 Answers  


what is defination of regression testing?

3 Answers  


How can i parameterize the standard checkpoint using Excel sheet where my expected values are there?? suppose i want to test a application with diffent value and want to run 5 iteration?? for each iteration, values will be exported from excel sheet as input. Now i will store some expected values in the excel sheet, which i want to check in the application whether expected equals to actual value??? can any one help me

1 Answers   CSC,


Hi All, I am new to QTP but i was trained on winrunner before. My problem is..QTP 8.2 was unable to record my application which is a java app. By selecting smart identification, i was somehow able to record the test BUT QTP cant run the test! Can anyone help me in walking through this problem..Is java addin really necessary for this?? Is there anyways i can run the test successfully? I am not sure whats going wrong in my testing.Please do help me asap as i need to submit the report early. Thanks in advance

4 Answers  


How many types of trigger events are there in qtp?

0 Answers  


Older version QTP is 8.2 and New version QTP is 9.2. My question is, Why it is QTP 9.2, why not 8.3,8.4 .... why it is not something ?

1 Answers  


Both static and dynamic arrays are handled by the vb script. Is it true?

0 Answers  


How can you close the second opened browser?

0 Answers  


Categories