In project module it contains 3-ok buttons with same
properties who qtp identify its objects while runing ??
Answer Posted / srinivasu
In qtp we can identify the object with the help of
following :-
Whenever we record a script using QTP - QTP identifies an
object uniquely using the following mechanisum.
[i] First captured the mandiatory properties
Object/Window [Class name, Label name etc...
If the manditory properties is not unique
[ii] Assistive properties [X,Y,Width,Hight,Abslute of X...]
If Manditory/Assistive properties are not unique then
it goes to ordinal Identify which is either location
or Index
Note: If the Object is identified using location/index
and if an object location is changed or index is changed...
the script will fail.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I am coming across is that when it goes through the second time creating another customer and then verify the second customer then it creates the following during runtime. I want is to have the customer2 below Customer1 under the Customer_from_Apps. Any help will be greatly appreciate it. Customer Customer_from_Apps Customer_from_Apps1 Customer1 Customer 1 Customer2 Customer2 Window("Customer Desktop").Window("Customer Tracking (Privacy").WinObject("TreeView20WndClass").Click 92,244 runtimevalue = .VbTreeView("vbname:=AppServerTree").GetROProperty("Selectio n") Customer_Val= Datatable.GlobalSheet.AddParameter ("Customer_from_Apps",runtimevalue) row=datatable.getsheet("Global").GetRowCount For x=1 to row datatable.SetCurrentRow(x) Data_Val=Datatable.Value("Customer",dtGlobalSheet) If (trim(Customer_Val)=trim(Data_Val)) Then Reporter.ReportEvent micPass, "Customer validation successful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val else Reporter.ReportEvent micFail, "Cusotmer validation unsuccessful", "Actual Value: " &Data_Val&vbcrlf& "Customer Value: " &Customer_Val End If Next
Can we run multiple QTP scripts one after the other without manual intervention? How?
What are the benefits of quick test pro(qtp)?
how to acess a test in RSA?
what is test scheduleling?
What is the XML file architecture ?
How many types of parameters are available in quicktest professional (qtp)?
What are the types of object repositories? Which one is you using?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
How do you capture tooltip using QTP?
If object is not recognized by qtp but the object is standard object what is your approach?
which type of testing process are you following in ur company? how to recognize a qtp page?
Where is the Bitmap checkpoint information stored?
diff between qtp versions from 8.5
How can you give wait up to 10 seconds in qtp?