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


Please Help Members By Posting Answers For Below Questions

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

1338


Can we run multiple QTP scripts one after the other without manual intervention? How?

600


What are the benefits of quick test pro(qtp)?

562


how to acess a test in RSA?

1673


what is test scheduleling?

2017






What is the XML file architecture ?

1556


How many types of parameters are available in quicktest professional (qtp)?

585


What are the types of object repositories? Which one is you using?

621


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?

591


How do you capture tooltip using QTP?

636


If object is not recognized by qtp but the object is standard object what is your approach?

594


which type of testing process are you following in ur company? how to recognize a qtp page?

1409


Where is the Bitmap checkpoint information stored?

1764


diff between qtp versions from 8.5

1571


How can you give wait up to 10 seconds in qtp?

588