Answer Posted / imran sheikh
Objects in QTP are recognized by it's properties. When
object cannnot be recorded in OR or cannot be added in OR
due to some reason, we can identify an object by
Descriptive Programming. Small example of web application
which make DP clear is: Suppose there is a link which is
phone number, everytime we log-in with different user phone
link is changed. if we want to click the phone number we
cannot create it's object in repository because OR will
capture the present phone number,next time with second user
it's phone number link will not be clicked.To do that:
Set phoneLink = Description.Create
phoneLink("html tag").value = "Link"
phoneLink("name").value = DataTable.value("phone")
Browser(brw).Page(pg).Link(phoneLink).click
Here 'html tag' and 'name' are property whose value you can
confirm from Spy. If value of phone is there in DataTable
you can use as specified, else you can use regular
expression.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Define object spy ?
What is qtpro? What is a quick test professional?
What are the things(properties, and other details) will be recorded while recording an object using normal recording?
Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya
When you open QTP, how many sheets you can see?
What do you mean by iteration?
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
Do you know how to connect database? Can you tell me the procedures?
How you can find the absolute value of the number in qtp?
Have you used xml check point in your project?
What are the properties you would use for identifying a browser and page when using descriptive programming?
Step 3&4 are repeated until an the object in recognised uniquely.
Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...