Creating manual test scripts
The Manual Test editor is a rich-text editor for constructing test scripts.
About this task
Procedure
-
Use one of these procedures to create a test script.
- To create a test script from the Construction page:
- From the main menu, click Construction > Create > Test Script.
- In the new test script window, type a descriptive name that identifies the purpose of the script.
- If team areas are enabled for the project area, select a team area from the list.Note: You must explicitly enable team areas in Manage Project Properties.
- Select an owner for the test script.
- For a manual test script, make sure that the script type is Manual.
- Type a description.
- To assign the task of completing the test script to another team member,
save the test script, and then click Work Item: Create. Note: Creating a work item to complete the test script does not change the owner of the test script.
- To create a test script from within a test case:
- Open a test case.
- From the Test Scripts section of the test case, click the Create Test Script icon ().
- In the New Test Script dialog box, in the Name field, type a descriptive name that identifies the purpose of the script.
- Type a description.
- The type is Manual by default.
- Click OK.
- Save the test case. The test script shell is created.
- Click the test script name to open it in the Manual Test editor.
- Select an owner for the test script.
- To assign the task of completing the test script to another team member,
click Work Item: Create. Note: Creating a work item to complete the test script does not change the owner of the test script.
- To create a test script from the Construction page:
- Optional:
Add test data.
You can use test data to supply realistic values for the variables in a manual test script. Test data is a collection of related data records. During execution, the variables in the manual test script are replaced with data from the test data. As a result, you can use a single script to test multiple data records.
- Next to the Test Data field, click the Change Associated Test Data icon ().
- Select a test data artifact; then, click OK.
- Optional:
To filter data records so that a subset is used when the test script is executed, complete the
following steps:
- Next to the Test Data Usage field, click the Select Records from Test Data icon ().
- Under Record Selection Criteria, select a column name; then, set a filter value.
- To verify the selection, click the Show button.The data records are filtered according to the filter settings.Tip: To reset the selection criteria, click the Clear icon.
- Click OK.
-
Define categories.
You can use categories to define a hierarchical organization of test plans, test cases, test scripts, and other test artifacts. You can also define subcategories and other category relationships. You can use the default categories that are provided or create your own. To define categories, click the Manage Test Plan Categories icon ().
-
Assign values to the custom attribute fields.
If an administrator defined any custom attributes for test scripts, they are displayed in the Attributes section of the summary. The field values for custom attributes can be in the format of text, integer, or date. You can sort or filter your test scripts by using custom attributes in the same way that you use categories.
-
After you finish adding steps, click Saveon the page to save the test
script.
Tip: To quickly save a script, press Ctrl+S.
- Optional: To make a copy of the test script, click the Duplicate icon ( ).
- Optional: To display a printable version of the test script, click the Print View icon ().
- Optional: To lock or unlock the test script, click the Set to Lock/Unlock icon (). The ability to lock a test script depends on your role-based permissions. Depending on how your project is configured, you might be required to sign this action electronically by providing your password and a comment. When the test script is locked, the editable fields are disabled for editing. To reverse the locking attribute, click the icon again.
- Optional: To export the test script details to a PDF document, click the PDF icon ().