Creating scenario tests
Verify and improve the quality of your application by recording a set of interactions for a case type or portal in scenario tests. As a result, you ensure that your application runs correctly and that the end-user experience that you deliver is error-free and works as expected.
- Launch the portal in which you want to do the test.
- In the footer of the portal, click Toggle runtime toolbar, and then click Toggle Automation Recorder, as shown in the following figure:
- In the Scenario tests pane, click Create test
case, and then select the test type:
- To record a test for a portal, select Portal.
- To record a test for a case, select Case type, and then select the type of case for which you want to record the test.
- Record the steps for the test by clicking the user interface elements.When you hover over a testable element, an orange highlight box appears. When you click an element, you record an implicit assertion and add the interaction to the list of test steps, as shown in the following figure:
- Optional: To provide specific UI attributes, add an explicit assertion to the test:
- Hover over an element.
- Click the Mark for assertion icon on the orange highlight box.
- In the Expected results section, click Add assertion.
- Define the assertion by completing the Name, Comparator, and Value fields.
- Click Save step.
- To add latency to a web browser and actions on a web page
to prevent tests from failing during complex processing or slow UI rendering,
delay the processing of a step:
- Click the Mark for assertion icon on the orange highlight box.
- In the Wait field, enter the number of milliseconds by which to delay the processing of the step.
- Click Save step.
- When you finish adding steps, in the Test case pane, click Stop and save test case.
- On the New test case form, save the test:
- In the Name field, enter a name for the test.
- Optional: To provide additional information about the test, in the Description field, enter extra information.
- In the Context section, select a branch or ruleset in which you want to save the test.
- In the Apply to field, enter the name of a class that is relevant to the test.
- Click Save.
Previous topic Application: Scenario testing landing page Next topic Opening a scenario test case