I have a Webtable object in my shared object repository, say
WT1, which has different index value in 2 different
versions, one version having WT1's index value as 1 and
other version having WT1's index value as 2. how could i use
same test script to identify the WT1 object having different
index values.
Answers were Sorted based on User's Feedback
Answer / aarati borse
See ishita..here you can use the Smart object
identification concept..
QTP recognizes object by their mandatory and assitive
properties...
So go to Tools>OI> and web environment..
Set such properties in mandatory and assistive which are
commomn for both...Try to find them by "location "ordinal
identifire.
Because index is the place of object in code
and location is the place of object in aplication..
So I think by setting these all option it should work..
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ishita desai
How to define regular expression for index values of
Webtable. As far as my knowledge is concerned regular
expressions can be given for property values. Please reply
if u have any idea about that.Thanks
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / subhash pasupuleti
Absolutely No. You can not do that. Remember index is an
ordinal property which QTP adds and this can not be viewed
when you spy on the object. You need to do the following logic
1. Create a description object for webtable
2. Get a collection of webtables on the page ( there will be
many)
3. Iterate through the collection and identify the Webtable
by some unique value in one of the cells
4. Exit the loop
5.The value of index of the iteration is index of WebTable.
6. QTP identifies WebTable by only its Tag <TABLE> so only
way it can identify a table is index.
If not clear then email me
Is This Answer Correct ? | 1 Yes | 1 No |
hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me
How should i get name of the screen? Ex:There is a "submit" button.If i clicked on the submit button it opens a screen. I want that screen name.How can i get that screen name I dont have any property regarding that screen. If suppose we cliked on the screen , Then QTP captures the screen properties then i can get the screen name by using GETROPROPERTY But i want the screen name without clicking the screen. ("I am using the "settoproperty" for Second screen by using fist screen properties") Please tell me anyone
what is diff b/w function and action?
pls tell me how will you write the vb script in QTP for DataDriven test from Excel sheet for multiple userid and password explain with example
Is it possible to change the property value at runtime? How it is possible?
Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?
What is the exact difference between QTP and RFT ?
how i can delete the excel process for the task manager using QTP
What is the synchronization point in qtp?
What is optional step in qtp? How you can add optional step in qtp?
Test script is generated and it is enhanced.It is required to be saved.But the disk space is insufficient.You are not permitted to delete any scripts.How are you going to save?
How to Parameterize Object repository in QTP?