How to retrieve the property of an object in QTP?
Answers were Sorted based on User's Feedback
Answer / ravichadnranath
using Getroproperty("text") we will find out the what ever
object properties u want other wise by using object spy
also we will get object properties
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / kiran.b
gettoproperty("text")
=to get the property from the qtp , which it is using at
run time.
or
getroproperty("text")
=to get the property from the application , which itis at
the run time.
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / prathyusha
To get the property value of run time object we can go for GETROPROPERT..Runtime object means object which is there in application.
To get the property value of test object we can go for GETTOPROPERTY.Test object means the object which is there in repository.
| Is This Answer Correct ? | 0 Yes | 0 No |
what could go wrong with test automation?
Can any body please tell me the steps of keyword driven framework of QTP.
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
regular expression
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
If we write a script in the expert view how are the objects created in the object repository? to be clear i will explain my problem first i have recorded the mercurytours application by providing the link www.mercurytours.com and all the objects are stored in the object repository ok this is fine. but i have copied the script generated in the above processes and pasted in a new test and tried to run that script but as the objects were not stored in the object repository it showed an error (The "Welcome: Mercury Tours" object was not found in the Object Repository. Check the Object Repository to confirm that the object exists or to find the correct name for the object).so how can i overcome that error
How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If
QTP is identifying all windows application objects(i.e. winbutton,winconbobox,etc) as winobjects.How to handle this? Is there any way to add our own properties to identify objects?
What is the process of synchronizing qtp and aut?
How will internal and external links be validated and updated? how often?
What is keyword driven testing..what is the use of this in Automated testing
if full in Object Repostoiory then how to load other Object Repository