Presentation is loading. Please wait.

Presentation is loading. Please wait.

How QuickTest Works with Objects USINGQTP65-STUDENT-01A.

Similar presentations


Presentation on theme: "How QuickTest Works with Objects USINGQTP65-STUDENT-01A."— Presentation transcript:

1 How QuickTest Works with Objects USINGQTP65-STUDENT-01A

2 Lesson Objectives In this lesson, you will:  Identify the components QuickTest uses to learn an object  Identify objects and their properties using the Object Repository  Investigate object properties using the Object Spy  Use a breakpoint and other run features to help you investigate an object

3 Class Discussion: How QuickTest Identifies Objects In the Object > Method > Value model, how do you think QuickTest came up with “Fly From:?”

4 How QuickTest Identifies Objects 1. Learns the object's parent window and the object properties Object in Window “X” Height is 20 Width is 52 Attached text is “First Name” Enabled ID is 0921456 2. Recognizes the object type (“class”) This object is of type “Edit.” 3. Assigns a "Logical name" to the learned object This object will be known as “FirstName,” unique from all other objects in Window X.

5 (1) Object Properties What are object properties? A set of characteristics that define an object’s appearance, values, state and identity in an application.

6 (2) The Object “Class” Edit box Drop down list Button QuickTest recognizes objects in an supported application and determines what type of object each is Check box Radio buttons

7 (3) The Logical Name  The logical name is a value QuickTest usually takes from one of the object properties  The value is used as the identifying name of the object Nativeclass: Edit Attached Text: Agent Name: Enabled: True Focused: True Height: 20 Text: Harold Width: 119 Which of the object’s properties did QuickTest use for the logical name?

8 The Object Repository Note: Object properties are taken directly from the application’s API The Object Repository is a location within the test structure where QuickTest stores object information. Object Repository Sample objects (and their properties) included in the Login window that were captured during recording: - Agent Name field - Password field - OK button - Cancel button - Help button

9 Functions of the Object Repository Use the Object Repository to:  Rename logical names for readability  Add a new object in the repository  Configure the object properties used to identify an object (Add/Remove properties)

10 Object Spy A tool used to determine object properties and values of an object Object location Object property list

11 Adding Comments and Using the Debug Toolbar  Use comments to document relevant steps and changes in a test script  Use the common commands to stop and start a test a different points in the Debug toolbar Insert a Comment interface Debug Toolbar


Download ppt "How QuickTest Works with Objects USINGQTP65-STUDENT-01A."

Similar presentations


Ads by Google