Creating test data from tags in a test
You can create test data from the tags defined in a test from the Test Editor. You can then use the test data to validate the results that are returned by different test actions.
Before you begin
- Created a test. See Tests: Overview and tasks.
- Created tags that you want to use in the test. See Create tags.
- Opened the test in the Test Editor view in the Test Factory perspective.
Procedure
-
Click the Edit or Create Test Data icon .
The Edit or Create Test Data dialog is displayed.
-
Perform the following actions in the Edit or Create Test
Data dialog:
-
Select the tags that you want to use as test data in the test actions, and then
click Next.
The Null handling dialog is displayed, in which you can specify how the values in the test data are to be used with the tags in the test action.
-
Perform any of the actions indicated for each of the options in the following
table:
Option Description Action Treat empty strings as null
Specifies whether the empty strings in the test data are treated as null in the tags defined in the test.
Select this option when you want empty strings in the test data to be treated as null in the tags defined in the test.
Treat text as null
Specifies whether the text values in the test data are treated as null in the tags defined in the test for the following options:- When it is inferred as null.
- When you specify the text values that are to be treated as null.
Select this option when you want the text values in the test data to be treated as null in the tags defined in the test for any of the following conditions:- When it is inferred as null.
- When you specify the text values that are to be treated as null.
Treat text as empty string
Specifies whether the text values in the test data are to be treated as empty strings in the tags defined in the test.
Select this option when you want the text values in the test data to be treated as empty strings in the tags defined in the test.
Edit DataSet data on finish
Specifies whether you want to edit the created dataset immediately after you configured that test data.
Select this option when you want to view and edit the dataset.
- Click Finish to complete the creation of the test dataset.
Results
You created a test dataset that you can use with the test actions that you configure in the test.
What to do next
- Configure the test actions in the test.
- Associate the test data with the supported test actions.
- Run the test.
- Edit the test data file, if you want to change any of the configurations of the test data.