2. Recording scenarios using FollowMe feature
1.Creating an offline model
- Login to algoshack.net> algoQA.
- In the Create project window, enter the appropriate name and select Automation type from the Automation drop-down list.
- Click Create to view the main canvas screen.
- Alternatively, you can either browse for the scraped file in the CSV format or drag-and-drop it to view the automatic placement of nodes. Click the "Browse files or drag them here" button or the cloud icon to upload the file.
- In the left pane, select More Menu on the appropriate Node configuration folder and select Upload to upload the downloaded .csv file (scraped file).
- Click Submit.
- In the Project Explorer page, drag-and-drop the node to the main canvas.
- Click the each node to edit. In the Node Name text box, enter the same name as the page name. Similarly, add the appropriate node names for the remaining nodes and use the connectors (Link-out to Link-in) to connect the nodes.
Ensure to provide unique node name, if you don't provide a unique name, then the following error messages are displayed:
Note that when you are configuring the node, make sure to enter a unique feature name to avoid duplicates. This is necessary when configuring a nested feature or entering a feature name for different nodes or the same node within a scenario. Otherwise, you will see the following error message as displayed in the screenshot: - Upon successful node configuration, you can see all the UI elements within the feature. By default, one feature will be configured.
- In the required feature, update the attributes of UI element, such as control name, control value, navigation, business rules, test data or control value and locator. Similarly, repeat the step to update the attributes for all other UI elements.
- On the Main canvas, click Save.
2. Recording scenarios using FollowMe feature
User actions
- Open Amazon.in website
- Search for a particular laptop.
- In the Product Listing page, you can refine your search results by selecting the appropriate laptop by using sorting and filtering options.
- In the product details page, verify the laptop details with technical specifications and add to cart
- Verify the details in the shopping cart and proceed to check out.
To record a scenario, follow the steps:
- On the Main Canvas, click Follow Me feature to view Record Scenarios pop-up window.
- Enter the scenario name, outline the steps briefly, and click Create to create a sequence. Create Profile Sequences pop-up window appears. All the available nodes are listed in the window.
- Select the required feature (Amazon Sign In) under the Node (Sign In) to view all the added UI element details as shown and then arrange all the UI elements in a sequence. For example, if you were performing a Login process, you will select the all the UI elements related to this process in a sequence, such as username, password and Sign in button.
- Similarly, select all the required features and the associated UI elements to create a sequence. Click Ok. Scenario flow has been recorded. Click Submit.
In the Recorded Scenarios window, click Submit to save the recorded scenario. Once the scenario is successfully saved, you will see a 'Scenario created successfully' message.
Note that you can select multiple UI elements repeatedly in a single workflow. - When entering a value in the custom value and Message fields, adhere to the following:
- Custom value and message fields 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 enter the only spaces in any of the fields, then following error message is displayed:
- You can include spaces at the beginning, end, or between words.
- Custom value and message fields 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 enter the only spaces in any of the fields, then following error message is displayed:
3. Generating Test Cases
To generate a test case, perform the following:
- In the Main canvas, click Generate Test case.
- Click OK.
- The generated test cases are stored in the Test Cases folder. This folder includes a spreadsheet which contains GWT steps in XLSX or XLS format and Feature File in TXT format.
Note that .xls file supports storage up to 7000 rows (GWT lines) of data. You can modify and save the lines, download the file without any issues.
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