you written some code in qtp for opening google.com browser
and entered some text inthe search text box and clicked
search button. this is ur script..

before running this script i have already opened two
google.com browsers.
now am running the script what will happen?
script will run or what??

Thanks...
Nani

Answer Posted / maniram

I Guess this depends on how u have recorded the script.
Case1:
if u have recorded the script with many google
pages(windows) open, as there are many windows open, QTP
identifies the ordinal identifier and stores it in the
repository.
So if we run the script, in this case you will not encounter
any problem even if there are hundreds of such windows.

Case2:
If u have recorded the script with only one google window,
QTP will not store the Ordinal Identifier as it can clearly
identify the window we have specified.
So if we run the script, after opening many google windows,
QTP cannot identify the window in which it has to perform
the operations. so it returns an error.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differences between quicktest professional (qtp) and winrunner?

617


iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com

1396


What are the differences between quicktest professional (qtp) and winrunner?

568


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1489


How to remove associated function library?

558






What the differences are and best practical application of Object Repository?

583


How many types of actions are there in quicktest professional?

512


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1380


How does qtp identify the object in the application?

533


Explain types of descriptive programming?

589


Explain how to use QTP to check broken links on a page?

581


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

562


suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1323


Differences between text and test area checkpoints?

578


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

1274