I am using descriptive programming for my project.when QTP
deosn't identity or recognize a object by record and
playback method,is it possible to make QTP identify that
object using descriptive programming?
Note: The object doesn't have unique properties and same
properties used in Record and playback are only available,
no extra properties are defined.
Answers were Sorted based on User's Feedback
Answer / guest
As per my knowledge, QTP can recognize all type of objects
through descriptive programming. For that u need to create
object with the help one properties only i.e nothing
but "micClass". then set index property for remaining
object.
Example for Link object
=======================
set linkDesc = Description.Create()
linkDesc ("micClass").Value = "Link"
EditDesc("Index").Value = "0"
Browser("Browser Name").Page("Page Name").Link
(linkDesc ).Click
==========================
If u will change the index value, then it will click
accordingly.
I hope, it will resolve your problem.
Thanks,
-Akshaya-
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / tvsramakrishnachowdary
if properties are not sufficiant to identify an object
uniquely we better to go Ordinal Identifiers
1)Location=0,1,2.....
2)Index=0,1,2,......
3)Creation Time(this is only for browser object)=0,1,2,....
byusing ordinal Ordinal Identifier properties qtp almost
recognize the object roughly.....
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / prasant
Identify objects following below order -
1. Mandatory Properties
2. Assertive Properties
3. Ordinal Identifier
4. Smart Identification.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can i open 5 multiple browser at once through QTP VB script and i want to login with 5 different credentials i already tried with this code but its entering credentials only for first browser and am using datatable to parameterize
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
when will you do debug your script? and explain that process?
i am new to qtp i do not know how to write script how to write the code to login if it fails how to able error messages
Why QTP is termed as a Record and Playback tool?
What is smart identification?
In 1st screen,if v enter a/c no. in one field, the information of the subscriber will be displayed. The details should be displayed only in screen 3(NOTE:details should not display in screen 2).How can v do using QTP.
what type of scripts are asked in qtp?
Hi, I Would Like to Know which is the Best QTP Certification Training Institute in Hyd? Thanks in Advance kishan
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
If u don't have any Knowledge on perticular application but they give that application to u for Testing ? Then How we wil move towards testing on that application?