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 |
What is batch testing?
Can anybody give the code for ALL DATATABLE METHODS)(ex: datatable.getrowcount, datatable.getsheet etc....) and ALL DATABASE COMMANDS (like .getcelldata, which are used to retrieve data from a database and from a webtable)with examples.
Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha
what is the default ordinal identifier.what are the send keys in qTP.
how to get no.of non empty rows in a excel sheet through vb-script
PLZ EXPLAIN HOW TO LAUNCHING QTP IN TEST DIRECTOR? Is it possible or not? If No Why we r using qtp Td Combination? plz explain briefly? What is the purpose of TD With QTP?
Is there a function to find the number of occurrences of sub strings within a string?
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
how to automate standalone infopath forms using QTP? (it is not a dotnet or a web form)
anyone can explain the following concepts. 1.diff b/w Linear and modular framework 2.diff b/w keyword and hybrid framework
Can we call a parameter from an action to other action?
How to create Reusable and Multiple Actions?