suppose u hav a dialog or window which contains 10 buttons
with same name & value. now how to check each button? i.e.
how qtp indetifies these objects separately?
Answers were Sorted based on User's Feedback
Answer / neeraja
QTP identifies object based on mandatory
properties ,assitive properties which are present in the
object repositery and it also uses its smart identification
if it is enable .if at all it unable to find the object
with this properties it will go for ordinal identifier
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / true friend
This Will Show the order used to identify the object when
two or more objects get duplicated.
tools -> object identification
select the environment
a) standard windows
b) active-X
c) visual basic
d) multi media
select the class
if we select the environment as standard window
and class as winbutton
then it will display
Mandatory properties Assistive properties ordinaliden-
tifier
-------------------- ------------------- ------------
a)Native class a)window-ID a)location
b)Test b)Index
regards
True friend
Is This Answer Correct ? | 0 Yes | 0 No |
How will you enchance the script?
I have a tool bar where 5 different buttons are placed, but these buttons are not traceable hence i have created a virtual object on save button of this toolbar. Now pls tell me how to use this virtual object while write script.
how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad
How can we export test results to an excel sheet in QTP??? Can any one provide sample coding for this?????
Thanks....But can u tell me how i use the QTP for GIS with one Example...
How do you invoke an application using the step generator in qtp?
Expalin Text/Text Area Checkpoint
Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?
Key word driven framework
Do you support automated testing? Why?
I have recorded a test using qtp to download a file in an application. Code: Browser("MFA Work Queue Manager").Page("MFA Work Queue Manager").Link("Rules Maintenance").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebEdit("txtSearch").Set "PmtType" Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Search").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").WebButton("Export").Click Browser("MFA Work Queue Manager").Dialog("File Download").WinButton("Save").Click Browser("MFA Work Queue Manager").Page("Rule Maintenance").Sync Dialog("Save As").WinButton("Save").Click Dialog("Save As_2").WinButton("Yes").Click Problem: When running this test it gives an error at line no. 5 as Save button object is not identified by it's parent object. This code I ran 4 times after recording at it was working fine but 5th time onwords, it starts giving me the above problem. I used exist property option, Check Property option but none of this changes work at all. Kindly help...
How to check the URL using Automation tool QTP