--- title: "QuickStart Web Automation" slug: "quickstart-web-automation" description: "Test Modeller Quick Start Web Automation Tutorial series. Creating a project, Building a Model through Scanning an application, editing the model, and Creating & Running test cases." tags: ["Learning Portal", "QuickStart", "Test Modeller"] updated: 2024-09-27T14:15:05Z published: 2024-09-27T14:15:05Z canonical: "knowledge.curiositysoftware.ie/quickstart-web-automation" --- > ## Documentation Index > Fetch the complete documentation index at: https://knowledge.curiositysoftware.ie/llms.txt > Use this file to discover all available pages before exploring further. # QuickStart Web Automation Welcome to the Quality Modeller Quick Start Web Automation Tutorial series. In this series, we are going to take you through Creating a Project, Building a Model through Scanning an application, editing the model, and Creating & Running test cases all for a web application. Watch the 4 tutorials to guide you in using QuickStart Web Automation in Quality Modeller. **Objectives:** By the end of the series, you'll be able to: - Create and/or edit an Automation Model - Navigate the Quality Modeller UI - Understand the directory structure in Quality Modeller - Name and Configure a Project - Identify Components and Actions - Use the UI Scanner and Object Identifiers - Modify Values - Import Automation elements from the Automation Pane - See the relevance of end-to-end scenarios - Generate Test Cases - Run, Execute and Review pass and fail tests --- ## 3-Minute Web Automation Example [Embedded content](https://www.youtube.com/embed/Ssy2ZhM3VBM?&wmode=opaque&rel=0) --- ## Create a Web Automation Project We'll be going over how to Create a Project for Web Automation in Quality Modeller. Initially having created a Workspace you will be able to add a Project from the Project and Releases Menu by clicking New Project, selecting Quickstart Web from our different types of Automation, in particular here we’re selecting Web Automation. After the creation of your Project, you'll see that we've created all automatically three folders. The first folder here is related to two Scenarios, evidently useful for managing the end-to-end Scenario models. Then you've got the Components folder for model Components of the application along with any Automation Modules. One layer into the Components folder we've automatically created an Actions folder, where a series of default Web Actions are to get you started with modelling and automating using Quality Modeller. [Embedded content](https://www.youtube.com/embed/LUe7cVC8Jn4?&wmode=opaque&rel=0) **Tutorial Steps** **Step 1** - For Quality Modeller to build the automation library and initial assets you need to set up a Project. So in the main portal click Create Project. ![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/image-1691678982772.png) Name the Project, give it a description, and select next. ![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/2023-08-22_16h07_03(1).png) On the Next Step scroll and select the Web Automation Framework.![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/2023-08-22_16h07_26.png) On confirming by clicking the green Create Project button the automation code with assets are built and a 'Project Type: Web' is started. ![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/2023-08-10_14h22_25.png) Now you'll see Quality Modeller spin up a ready to use Web Automation Project. Select the appropriate project from the context bar. ![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/2023-08-23_14h21_48.png) A folder labelled Components will be available which contains the Web automation actions. ![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/2023-08-10_16h04_17.png) **Step 2 -** To see the underlying edit Functions, click on the Components folder > Actions. ![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/2023-08-23_14h30_35.png) Click on LoggingActions > Pass Step as an example, and the underlying Edit properties include: Parameters, Return, Code. ![](https://cdn.document360.io/77f722a6-2d0a-49fa-8074-572515a6c4b8/Images/Documentation/2023-08-23_14h36_10.png) --- ## Scan an Existing Application Now to create a model using our [Magenta demo website](https://magento.testinsights.io/), along with our Quality Modeller UI Scanner web extension, easily added to a Chrome browser. Once installed, it can be used to scan the different elements of your webpage that you want to automate. The Quality Modeller UI scanner is an Accelerator for scanning existing web applications to quickly assemble and create Page Objects which can be added directly into your Automation framework. [Embedded content](https://www.youtube.com/embed/qa4_lYFvnD8?&wmode=opaque&rel=0) Once we've scanned everything we need, we can come through, hit pause and upload this into our Workspace. As we upload this, we can select if we want to create a Model automatically. Upon upload, we've created three items within our workspace. First, we have the Object Identifier for the page. Then we have our Automation Code for the page, and then we have our model for our Customer Login page, of which we open that up and see an initial model has been created. In the next clip, we'll be going through how to edit this model. --- ## Build a Model To edit and augment a model that has already been automatically created using our scanner, first, we need to take a look at our demo website, and you'll see that we have some demo credentials. One value for email and also a particular value for password, and these values are what we want to consider when we're creating our model. Start creating a model of the system under test (SUT), from which we can Generate the Test Cases and Run Automation scripts. [Embedded content](https://www.youtube.com/embed/VzEfP9jvDxA?&wmode=opaque&rel=0) So pick up the Password field, and now inside your model make an edit to one of the Data Assignments. To do so, click on the Valid Password block, then click on the Test Data Assignment and paste in that value from the website, which now represents a Valid Scenario. Now, similarly for the Email field, we have a particular value that we need to input. So again, copy this over. This now leaves us with a simple but representative model of our system under test (SUT) which we’ll use next see how to Generate and Execute Test Cases from this model. --- ## Generate and Execute Automation Now to Generate and Execute Test Cases from our model with the first step being to set the Coverage and naming convention, and we’ll hard code a Login, include the path number, which is the index of our path. Additionally, inside these settings, we can set varying Coverage Levels. Test Cases are equivalent to paths, or User Journeys through the model of a system under test (SUT). [Embedded content](https://www.youtube.com/embed/yNoQPRbZZOw?&wmode=opaque&rel=0) In this example for simplicity, we’ll set the level to medium Coverage and then in the top left hit the Generate Tests Button. This prompts Test Cases to get generated, and here it’s created two paths: a negative Scenario and one for a positive Scenario. Hit Run and click on our Automation Code button to Create our Automation which Executes against that website. Looking at the Run Results attached to our paths, you'll see that we've got all the relevant screenshots associated with that Test Case. Where there’s a failure, we see exactly what has gone wrong and why it's gone wrong. Coverage techniques also help Generate the smallest set of Test Cases with the required level of rigour, from which these Test Cases are used to Run Automation Scripts, or trigger an execution. A Project in Modeller represent the current collection of work the user is working on. Users can create multiple Projects within Modeller and switch between them at any time, this can be used to manage Models and User Teams. A Model is a canvas and the Flow that is built onto it. There are several types of Model, some of which display different tabs and tools on the toolbar in Quality Modeller. A Model is a canvas and the Flow that is built onto it. Automation - Designed for creating Automated Test Cases. This Model type is used to define Automation Flows, and links well with Selenium and other automation software. It has Test Data & Automation and Test Generation tabs. Quality Modeller has a UI Scanner which can be downloaded as a Browser Extension and be used to quickly scan and create models from web pages. The UI Scanner creates page object models at the click of a button. The page objects can then be called from models in Modeller, quickly and simply automating the test cases associated with that model. Quality Modeller is Curiosity's flow-driven model-based tool which provides a range of accelerators and connectors for building flowcharts rapidly. Align all stakeholders to quality outcomes and create critical assets early, delivering superior software at speed. The Workspace Section of Modeller allows you to view and edit Data Rules, Code Templates, Tags and Custom Fields which have been set up by default or by the users. In the Project and Releases section of Modeller you can manage your existing projects and create new ones. Generate Tests - Runs Generation processing on the Model and displays the Scenarios fly-out. ## Related - [Quality Modeller](/get-started-with-test-modeller.md) - [QuickStart Tutorials](/quickstart-tutorials-1.md) - [Quality Modeller 101](/test-modeller-101.md)