Is there anyway to have QTP go into a website and map out
every object before I actually record any tests? I
basically want to map out a website with all the objects
and build a complete repository. The reason is because I'm
running into issues with hierarcical objects. for example:
Browser("ABC company- Home").Page("ABC company - Home").Link
("About Us").Click
Browser("ABC company - Page 2").Page("ABC company - Page
2").Link("About Us").Click
Both these links ("objects" and I use that term loosely as
I'm trained mostly in OO programming) go to the same place
but but the object heirarchies (pages) are different. I
want a repository that will find any possible link on any
possible page without having to manually record it. Is
there a way to do this?
Answer / nishant
You can use QTP 9.2 Object Repository Manager to add the
objects before and without goin for recording.
Is This Answer Correct ? | 0 Yes | 0 No |
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
how to retrieve data from the data table (from a particular cell)
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
What are the general steps involved in the data driven framework?
synchronization, wait,wait Property?
Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!
if there is two login button in your page, how you know that this login button is correct for login .
HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.
What is the extension of the recovery scenario file in qtp?
keyword driven framework having how many folders? explain folders in detail?
How to covert a String to an integer?
I have a 10 lines of qtp script, while executing i got an error at line 7 but i dont want to stop the execution i want to continue the execution up to last line and display the test result window, wts the syntax we use?
3 Answers BirlaSoft, Collabera,