- Configuring the Creation Panel
- Writing Scenario
- Executing Scenario
- Checking Output
- Setting Scenario Properties
- Set Step Properties
Configuring the Creation Panel #
When you add a scenario in the workspace, the Step Management screen appears as shown below.
① Displayed if changes in the scenario, but unsaved.
② Create a new default step.
➂ You can view, add, modify, and delete scenario properties. See “Setting Scenario Properties” for more information.
④ Run the scenario from beginning to end.
⑤ Save the scenario.
⑥ Save the scenario as a zip file locally. You can copy this zip file and load it from another PC to continue working.
⑦ The sequence or list of test steps in this scenario.
⑧ Minimize the Step Properties window. To restore the original pane size of the Step Properties windows, click the tab at the bottom.
⑨ Display the attributes of the selected step.
The properties of the step windows shows different options depending on the selected action. Please check the action list for details.
Writing Scenario #
Scenarios can be created in the following order.
- Creating a step
- Analyze your screen using Screen Analysis tool
- Select a screen element and add it to the step
- Test a step or sequence of steps you created
- Save Scenario
If you go from number 1 to 3, one step is created, and the sequence of steps created in the scenario panel complete one scenario.
1. Creating Steps #
Steps are divided into two types: the primary step and the substep(Child).
① Create Basic Step
You can create it by clicking the ‘+’ button on the top toolbar of the Scenario Creation panel. The newly created step is added to the bottom of the step list, and the default action is “Touch”.
Please refer to the link below for a list of actions and functions that can be selected in the step.
-> Action List
In addition to using the upper toolbar, you can also create a step using the Context menu that appears by right-clicking on the step.
If a step already exists, click “Insert above” if you want to create a step right in front of it, or click “Insert bellow” if you want to create a step right after it.
② Creating substep(Child)
Control items (except Loop Wait For) can have a sub-step(Child Steps).
③ You can change the order of steps by drag&drop the icons up and down of the steps. (you can also drag& drop a specific step into the sub-step.)
④ To modify the step name
When you create a step, default “Unnamed” step name is given.
Please note that distinguished or meaningful step name help you tremendously to maintain your scenario later on. Step name can be easily changed by clicking the Step Name field.
2. Analyze your screen using Screen Analysis tool #
Run an analysis of the app screen to be added to step. Screen analysis is performed by clicking ‘Screen analysis’ button in the upper right corner of the device panel.
Various screen analysis tools can be used for optimal scenario creation. Our default analysis tool is an OD (Object Detection).
See below for a detailed description of the various screen analysis tools.
-> List of screen analysis tools
3. Select a screen element to add it to the step
From the screen analysis results, select the screen element and drag it to the blank area (tail side) of step.
When this step get to run, the element you dragged is visually searched from the screen and action will be taken on that element accordingly. Sometimes an element you want to operate cannot be identified by the default screen analysis tool. In this case, you can also use the ” Crop Image ” analysis tool to specify and import the screen element directly.
4. Test a step or sequence of steps you created #
You can run a completed scenario to see if the steps work as you wish.
To run the scenario, select “Play only” or “Play until the end” from the Context menu in Step.
(1) Play only
Use it when you want to run a specific step only. When you finish running the selected step, the test is aborted without proceeding to the next step.
(2) Play until the end
Use when you want to run from a specific step to the last step. In this case, it runs in order from the selected step to the last step of the scenario.
In Stego, writing test scenario is compiling a series of test steps. When one step is complete and tested, move onto the next step. As you complete the steps one by one, a scenario will be completed.
5. Save Scenario #
If the scenario has been modified and needs to be saved, a yellow circle icon is displayed next to the scenario name at the top of the creation panel.
To save it, click the save icon in the toolbar at the top of the creation panel or type the ⌘+S shortcut to save the current state.
Caution) Scenarios are not automatically saved. Please save scenarios from time to time during writing.
Executing Scenario #
There are 3 different ways to execute the scenario you created.
To run from beginning to end #
Click the Run icon on the toolbar at the top of the creation panel, or enter the shortcut ⌘+D to run in order from the first to the last step.
To run only one step #
If you only want to run the steps you created while creating the scenario, right-click the step and click “Play only” on the Context menu.
To run from middle to end #
If you want to run from the middle to the last step of the scenario, right-click the middle step and click “Play until the end” in the Context menu.