Whether a test has been created from a User Session or Manually through the Chrome Extension, there may be a case where a use wants to Edit a test. Under the "Edit Test" view a user can Add or Delete Test Steps, Change Parameters, Replay a Session and more.
This allows users to customize and existing test for application or business rule changes or if there something that specifically needs to be validated that has not automatically been done so.
Add or Delete a Test Step
Under the "Edit Test" view a user can edit any predefined step by choosing the pencil when hovering over the test step. A step can also be added above or below by hovering over this test edit pencil.
Under the Edit Command bar , a user can choose from the following list of available actions:
- Mouse Over
- Scroll to Position in Target
- Wait for Time
- Key Press
- Media Play
- Media Pause
- Media Seek
- File Upload
- Double Click
- Right Click
Likewise, if the user desires to make an Assertion, the following options are avaliable:
- Assert Checked
- Run customer script to success
- Assert Exists
- Assert Not Exist
- Assert URL
- Assert Value
- Wait for Text
- ELSE IF
- END IF
- Execute Template
A useful tool when adding a test step is the "Pick Target Element" option. This allows you to visually choose the target for your User Action or Assertion by highlighting the desired element in the screenshot of your application.
Test Parameters can be changed in the Edit Test view in two locations, either directly in the test step itself or in the Params& Config View. The Parameter for the Text value can be static or defined at the environment level, which can be seen the example below:
To see all the Parameters at once for a given Test, chose the "Params & Config" button, here you can adjust values as well as see a drop down of options for pre-defined values.
After changes are complete, be sure to "Apply" the new steps and Validate your test to ensure it runs properly.