Hi This is tanya actually im facing problem in Qtp actully
some time QTP doesnot recoznise the recorded object due to
which script is going to fail.so can you tell me how we can
handle this situation and i have another concerened issue
is that at the time of run New errors comes every time so
how we can handle this sitauation how we can add Recovery
scenarios to the script.some time application runs
successfully and some time it produces new error thats why
i am facing lot of problem please give me the sugeestion as
soon as possible.

Answer Posted / shilpa reddy

go to object repository-->select add/remove objects-->show
ur unrecognised object with hand icon-->click ok.

now ur unrecognised object will be aded to object
repository,so ur script will run succesfully.coming to ur
second question,i will xplain u about recovery scenario(RS)
concept.
In this RS we have 4 types of trigger events.RS is concept
to handle the unexpected errors at run time,practically
these are:
1)application crash
2)pop up window
3)object state
4)test run error

RS for application crash handles,how to get recoverd from
application crash.
RS for pop up window deals the unexpected pop up windows at
runtime.
RS for object state deals with the objects which are
changing dynamically,in one word to say it handles object
related errors.
RS for test run error is applicable when a step in the test
fails to run succesfully.

I will provide u the navigation for application crash
scenario.all other are same but differs in selecting
trigger events.instead of application crash u can choose
other trigger events:

tools-->recovery scenario manager-->click on new scenario
icon-->nnext-->select application crash as tigger event--
>next-->add or specify application-->next-->next-->select
recovery operation type-->next-->check/uncheck add another
recovery operation-->next-->next-->enter scenario name--
>next-->select add scenario in to current test-->finish--
>close-->save scenario-->run ur script.

if any error occurs in ur application qtp invokes the
corresponding scnario.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1472


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1712


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1419


Explain the types of object repositorys in qtp?

567


How to explain a banking project in interview as a test engineer???

2589






What are the factors on which script execution time is dependent?

605


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1686


What is use of object spy?

608


How to replay a script in qtp?

612


What are the main differences of qtp and win runner?

591


What are the views available in qtp?

578


Why qtp the best testing tool?

558


What are the technologies supported by qtp?

555


What do you to script when objects are removed from application?

608


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

1470