Creating a data page unit test
Data page unit tests are created by first running the data page rule and then converting that run into a test.
- Click the Data icon in the Explorer panel to display the Data Explorer.
- Click Add new test from the drop down menu to the right of the data page for which you want to create a test.
- Select the thread in which you want to run the data page in the Thread field.
- In the Parameter section, enter the value (if any) to pass to the data page.
- Select Flush all instances of this data page before execution to delete any existing instances of the selected data page.
- Click Run.
Note: Click Clipboard to view the Clipboard. Click Trace to debug the data page using the Tracer tool.
- The Results section lists the properties and the values on the data page. Click the property name to view the property details.
- Click Convert to Test . A new Create Unit Test Case tab displays in the main Designer Studio window.
- Close the Run Data Page dialog box.
- Click the Gear icon next to the data page test name to edit the test case details such as the identifier and context including the ruleset and applies to class.
Complete the following steps.
- Click Create and open to view and edit the unit test case details. Click Create and close to create the unit test without opening it.
- If you choose to open the unit test case, you can edit the unit test case details and send parameters, and define the expected output.
- Optional: Edit send parameters for test case that require parameters to be specified before the test case runs.
- Optional: Define the expected output.
- Click Save.
Related information
Open topic with navigation