Creating a scenario test
Scenario testing lets you record a set of interactions on a case type or portal as a test. These tests can be run later to ensure the quality of your application.
- Launch the case type or portal you want to test.
- Open the Run time toolbar and click the Toggle Automation Recorder button.
- Click the Create test case button and select whether you want to create a portal level test or a case type menu. When you select case type, a new case of that type is created.
- In your portal or case type, an orange highlight appears when you hover over a testable element. Record the step for the test by clicking on the element. The interaction will be saved to the list of test steps.
- Clicking an element records an implicit assertion and can be seen by clicking on the gear icon next to the step in the test recorder.
- You can add an explicit assertion to the test by clicking the plus icon in the orange highlight. All of the possible assertion can be selected from the a list of available assertions.
- Click the Stop and save test case button. Enter a name and description for the test on the New test case form. Test cases can be saved in a branch or a ruleset. Test cases can only be saved in a ruleset marked as a test ruleset. Once saved, the test case is available on the Scenario testing landing page.