Creating scenario tests
Record a set of interactions for a case type or portal in scenario tests. You can run these tests to verify and improve the quality of your application.
- Launch the portal in which you want to do the test.
- 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.
- Optional: To add an explicit assertion to the test, do the following tasks:
- 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 delay the execution of a step, do the following tasks.
You can delay the execution of a step to add latency to a web browser and
actions on a web page to prevent tests from failing when there is complex
processing or slow UI rendering.
- 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 execution 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:
- Enter a name and a description for the test.
- 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