TABLE OF CONTENTS
3.1 Pick an object and inspect it using Squish
3.2 Record the scenarios using FollowMe feature
1. Overview
This section introduces you to the Squish automation framework, guiding you through the process of creating, managing, executing, and maintaining test case scenarios leveraging algoQA automation process.
2. Prerequisites
2.1 Squish Installation
About Squish framework
Applicable for: Desktop, mobile and embedded systems automation types
A squish serves as an automation tool designed for executing test scripts in the regression stage of software testing for user interfaces. algoQA with its extended capability supports Squish and helps you to generate Squish scripts.
To install Squish framework, see Squish Installation Guide.
2.2 Python Installation
If you need a different Python version or have specific requirements that the bundled Python version cannot meet, then download the compatible version or the latest version from here. If you need to install Python packages, then refer to Installation steps for Python section.
2.3 Use case
This use case demonstrates the automation of updating patient’s demographic details by integrating algoQA with the Squish framework using the in- built Python scripting language. The example showcases an in-sprint automation process, automating the steps of updating a patient’s demographic details and viewing it in the Patient details screen.
3.Profile the Application
You can leverage algoQA and perform the following:
Profiling is creating an offline model of an application under test (AUT), which involves mimicking a UI model of an AUT using nodes, features and UI elements. For more information, see Profiling.
3.1 Pick an object and inspect it using Squish
Squish allows you to "pick" GUI objects of the currently running application. Once picked the following can be done with the object:
- Inspect the properties
- Insert the methods
- Create verification points for property values (property verification points)
- If you have a test script already, perform the following:
- In the Application Objects, look for icon to activate Squish in "pick" mode.
- Return to the Application Under Test (AUT) by clicking its window title bar once to give it focus.
- Mouseover the required object to inspect the element and selected element will be highlighted. All the properties will be displayed in the properties tab. Choose the required attribute to locate the element.
- Navigate to Control List Panel window to update the locator. You can update the locator fetched from Object Spy tool and save it. Similarly, update the all the locators required for the objects.
3.2 Record the scenarios using FollowMe feature
Follow Me feature is used to record and save the workflow or scenario or use case. Scenario will be saved in the same sequence it has been recorded.
Note: Recording for the Follow Me feature is done in offline model. It doesn't interact with the live application.
You can record scenarios by following the steps described in the 'Follow Me' section of the profiling article, using the use case steps provided in the use case section.
3.3 Generate Test cases
After recording the scenarios using Follow Me feature, next step is generating test cases.
Test cases are generated in Gherkin language and are Behavior-driven development (BDD) complaint.
For more information, see Generate Test cases section in profiling article.
4. Edit Scenarios
Navigate to the Main Canvas, select Edit Scenarios from More Menu. All the scenarios corresponding to the project are listed in the following screen. Click Edit.
Secondary screen after clicking Edit icon:
In the preceding screen, you can: rt test steps between existing ones for more flexible scenario creation.
- Add and list controls within the test steps.
- Easily track the sequence of scenarios.
- Use draggable functionality to rearrange test steps.
For more information on editing the scenarios, refer to Managing Test Cases using Edit Scenario Workflow.
5. Generate Test Scripts
This section helps you to choose required language and automation framework to generate test scripts using the Settings option. If you have generated the scripts, then you will see a message stating that you will not be able to change the settings after executing the scripts.
- After generating Test Cases, in the Test case generation pop-up window, click Script Generation button in the Main Canvas
Make sure you select the appropriate language, framework and the Report Type by clicking the settings icon in the script generation screen. Click Update. - To generate scripts, in the script generation screen, navigate to the appropriate folder and select the test case files and click Analyze button.
- Scripts will be generated.
You can download the script to your desired location and proceed to the execution.
6. Execution of the Test Scripts
When using Squish with algoQA, the generated test scripts will be stored in the same Test Cases folder. You can choose to either download these test scripts to your local machine or import them into the Squish tool, depending on whether you are accessing the Squish tool on your local machine or a virtual machine.
After opening the scripts in the Squish , you can edit, review, and fix any issues, then rerun them.
Execution Options
You can execute scripts in two ways:
- Using Feature Files: Open the respective Feature File you want to execute in the Squish. You can either execute a single scenario or an individual step by right-clicking on the corresponding scenario outline or an individual step. You can execute entire Feature File by right-clicking on the respective file without opening it.
- Using Command Prompt: Alternatively, you can execute scripts using the command prompt, providing command-line instructions to run your tests.
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