Attributes
Defining Attributes : Sharing Attributes and Queries : Assigning Attributes : Types of Attributes : Examples of Attributes
Attributes are used to assign values to sections of the plan. For example, category might be an attribute you decide to keep track of. You can assign each section of your testplan to a different value for the category attribute. Then the attributes can be used to track your automation progress, report on which categories of tests are passing and failing and to select which tests should be executed.
Defining Attributes
Attributes are defined using the Define Attributes dialog. This dialog is accessed using the Testplan -> Define Attributes menu with a testplan currently open in the editor. The dialog before changes have been made is shown below.
The user is allowed to define new attributes by clicking the New button. Values for attributes are entered in the text field, then added using the Add button. Below is an image of the dialog with several new attributes added.
Sharing Attributes and Queries
The file where these attributes are stored is called testplan.ini. This is the file which also stores queries, which we will learn about later. It is stored in the QAP directory by default. If a team of people wants to share attributes, this file must be placed somewhere where each team member can access it. When this has been done, each team member uses the General Options dialog to refer to the file. Note the reference to the network drive and path in the "Data file for attributes and queries" text field.
Assigning Attributes
Attributes can be assigned in several ways. The most foolproof way is using Testplan -> Details dialog. First you place the cursor at the appropriate spot in the testplan where you want to assign the attribute value. Then you can pick Testplan -> Detail from the menu or click on the icon. The first image below shows the Testplan detail dialog, then the next image shows a testplan with the category attribute assigned. Note the category: Object statement in the testplan.
Types of Attributes
Normal - This attribute requires that you specify the possible values.
Edit - This attribute requires that the user specify the value when assigning the attribute. This is used for attributes such as Defect, where you don't know the defect number ahead of time.
Set - This is used when you want to assign multiple values to the same Test Item.
Examples of Attributes
Normal Attributes
Category (Object, Functional, Error, Stress, Integration)
Developer (James, Sukanya, Michelle, Alex)
Smoke (TRUE, FALSE)
Module (Install, Create, Edit, Update, Import)
Edit Attribute
Defect () - No preset values - Assign values with the text field, rather than the popup list)
Set Attribute
Version (1.0, 1,1, 1,2, 1.3, 2.0. 2.1)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment