{"id":875,"date":"2023-09-09T06:43:04","date_gmt":"2023-09-09T06:43:04","guid":{"rendered":"https:\/\/www.softwaretestingstuff.com\/?p=875"},"modified":"2023-09-10T10:37:41","modified_gmt":"2023-09-10T10:37:41","slug":"objects-and-actions-in-qtp","status":"publish","type":"post","link":"https:\/\/www.softwaretestingstuff.com\/2008\/11\/objects-and-actions-in-qtp.html","title":{"rendered":"Objects and Actions in QTP"},"content":{"rendered":"\n

Objects<\/strong><\/strong><\/h2>\n\n\n\n

Objects:<\/strong> Objects are the things which contains different properties and methods. For Example: Window is said to be an object which consists of properties such as Exist, GetROProperty and methods such as ChildObjects, Activate, maximize, minimize etc.<\/p>\n\n\n\n

Property:<\/strong> Property describes about the object defined, each object has different properties, which is necessary to describe the object, which differentiates the given object with other objects.<\/p>\n\n\n\n

For example: If we take a window object, we first have to define to which class it belongs to which is one of the property, it belongs to a window class. Exist is a property which is common to many objects which returns true if that object exists.<\/p>\n\n\n\n

Methods:<\/strong> Methods are functions, which are used for changing the properties of the object that is in order to manipulate with the object properties we use.<\/p>\n\n\n\n

For example:<\/strong> If we take a window object, Activate is a method used to activate the window object, thus by using Activate method Activate property of the present window object is set to true, thus the window object will be activated if not in activated mode.<\/p>\n\n\n\n

Actions<\/strong><\/h2>\n\n\n\n

Actions Settings:<\/strong> You can use the Run tab of the Action Call Properties dialog box to instruct QuickTest to run only one iteration on the called action, to run iterations on all rows in the Data Table, or to run iterations only for certain rows in the Data Table.<\/p>\n\n\n\n

Iterations using rows:<\/strong> The Run tab includes the following options:<\/p>\n\n\n\n