TABLE OF CONTENTS
2. Editing a recorded scenario
1. Overview
Record Scenario feature helps you in recording a scenario.
In the Follow Me feature, you can:
- record a scenario. To do this, follow the instructions provided in Record a scenario using Follow Me feature.
- use custom tags. To do this, follow the instructions provided in Batch Execution and Configure Custom Tags.
- edit a recorded scenario.
- add assertions
- edit a UI element.
2. Editing a recorded scenario
Perform the following:
- After the nodes are created, navigate to Test Design and here we can see scenario names, custom tags and scenario outlines are listed out.
- Here you can record a scenario by clicking on Record Scenario.
- In the Record Scenario pop-up window, Enter the scenario name, outline the steps briefly, and click submit to create a sequence.
- If you choose to edit the recorded scenario, then click the Edit Scenario. For more information, see Managing Test Cases using Edit Scenario Feature.
3. Adding Assertions
Perform the following:
- Repeat the step 1 and step 2 from the preceding section.
- All the available nodes are listed in the window. In this window, select the required node, required feature and UI elements.
- In Controls pane, click on Show icon dropdown and select Assertion check box.
- Assertion will be available in Controls list.
- While adding UI elements, you can select the default action as 'wait in seconds' to the UI element to appear.
For example, after you wait for a UI element like a button to appear, you can use an assertion to verify that the button is visible or clickable.- Action: Wait for 5 seconds for the button to appear.
Assertion: After waiting, the test checks if the button is visible on the page.
This combination of wait and assertion ensures your test only proceeds when the element is ready and confirms it is working as intended.
- Click Save and Close. Scenario workflow has been recorded.
4. Editing the UI elements
Perform the following:
- Repeat the steps 1 and 2 from the Editing a recorded scenario section.
- Click on Edit Scenarios and select a scenario.
- Click on Edit icon beside a scenario.
- Click on Edit icon beside a GwT Step.
- Edit Step pop-up window appears for you to add a new name (alias name) for an existing UI element.
In this window, click Show More link to expand the details of the UI elements.
The following table provides the Edit Control pop-up window details:Field Description Alias Name If you choose to add a new name or modify an existing name for an UI element or a Control, then you can use this text box. Default/Custom Action Default actions are the ones readily available as part of automation framework in algoQA. algoQA platform allows you to create custom actions to incorporate your application specific testing requirements. You can select the default/custom action from the drop down list. TestStep Settings You can select specific condition or a parameter from the dropdown list. Allows you to customize your test steps by selecting or excluding specific conditions, ensuring that only relevant steps are included. For example, if you wish to avoid generating the default post-condition step, you can select the 'No Postcondition' option from the dropdown. This will prevent the default last step from appearing in the Feature File. GWT Input To add a prefix to a GWT step, then you can update the textbox.
By default, the initial context in a Given step is shown as "I". For example, 'Given I have access to application' sets up the initial state for the test.Custom Value You can provide user-specific value, keywords and parameters in the custom value text box. It will be reflected in the Feature File. For more information, see
Keywords Used in algoQA and Their Descriptions.
When entering a value in the custom value field, adhere to the following:- Custom value cannot be just blank spaces. If you wish to include spaces, you can use the keyword _empty_. For more information, see Keywords used in algoQA. If you hit spacebar to enter only spaces, then following error message is displayed:
- You can include spaces at the beginning, end, or between words.
Message You can provide a comment or text for a particular GWT step.
When entering a value in the message field, adhere to the following:- Message field cannot be just blank spaces. If you wish to include spaces, you can use the keyword _empty_. For more information, see Keywords used in algoQA. If you hit enter only spaces, then following error message is displayed:
- You can include spaces at the beginning, end, or between words.
- Custom value cannot be just blank spaces. If you wish to include spaces, you can use the keyword _empty_. For more information, see Keywords used in algoQA. If you hit spacebar to enter only spaces, then following error message is displayed:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article