While creating Recovery Scenario for Pop-up
window..In 'Recovery operation' we have to call a function.
Can u tell me that function.

Answers were Sorted based on User's Feedback



While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to c..

Answer / nanda

see... generally we can handle those pop up window exeptions
by writing If then statement and using exist method.

for example...

If window("skdhja").dialog("text:=fahda").exist then
window("skdhja").dialog("text:=fahda").winbutton("text:=OK(or)Cancel").click
window("akdhja").close
else
<write remaining script here..
end if
like this we can handle Pop Up window exceptions...try to
get control on script rather than QTP tool..

If any queries..
nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 0 No

While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to c..

Answer / janani santharaman

If you select “Function call" option we have to select the
file containing our library functions.
then we will have two radio buttons
1.Select function
2.Define new function
if we select the 'select function' radio button then we
have to use the following syntax
Function (Object)
‘ recovery information and code goes here
End Function

Example:
‘ Close the About Notepad window.
Function AboutWindow(Object)
Object.Highlight
Object.Close
End Function


if we choose 'Define new function' then Create a new
function by specifying a unique name for it, and defining
the function in the Function Name box according to the
displayed function prototype. The new function is added to
the library file you selected.

Is This Answer Correct ?    4 Yes 1 No

While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to c..

Answer / sreenivas.burri

1. Go to TOOLS -> Recovery scenario manager.
2. Select the trigger event that caused the error(it may be
a pop up window).
3. Identify the name of the window with the help of
POINTING HAND.
4. Choose the operation type : KEYBOARD OR MOUSE OPERATION.
5. Select the action with the help of POINTING HAND.(e.g.
Click on OK button to close the window.)
6. If you want to add another action then keep "Add another
recovery scenario" check box selected else de select it.
7. In the "Post recovery test run option" select "Proceed
to next test iteration"
8. Give scenario name & description & click on finish
button.
9. Save the scenario.
10. Go to TEST->SETTINGS->SCENARIO TAB....and add the saved
scenario.
11. Click on APPLY & OK button......now your test run
smoothly.

Is This Answer Correct ?    3 Yes 1 No

While creating Recovery Scenario for Pop-up window..In 'Recovery operation' we have to c..

Answer / dj

Generally for recovery scenarios I dont use functions. I
rather use the keyword or mouse operation which is much
simple.
However based on the question - In order to use the
defined function (RegisterUserFunc) we need to register the
function such that all the objects/methods descrivbed in
the functions are understood.

I may be wrong too...

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More QTP Interview Questions

Can objects recognised without repository?

5 Answers  


What is iteration? How it is related to Test Results in QTP

3 Answers   Virinchi Technologies,


how do you done Data-driven test using MS-Word Instead of DataTable

3 Answers   IBM,


How to use userdifined environment variables.Once we created in Environment tab which is at File--> Settings-- >Environment-->Userdifined

0 Answers   Livetek,


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

0 Answers  






what is the process to follow between writing the test cases & then atomating it?

1 Answers  


For Usability testing, which is preferable Automation or Manual?

6 Answers  


Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?

0 Answers   Cap Gemini,


In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?

4 Answers  


What are the differences between table and db checkpoints?

0 Answers  


For an application we automated QTP scripts. At the same time new requirement comes for a new module for the same application and its already developed. So how we automated now this new module with the old application(using old QTP script).

2 Answers   Bosch,


what is descriptive.create()in qtp?

3 Answers  


Categories