Cerberus Testing - The Open Source Test Automation Framework

Antoine Craske, https://www.linkedin.com/in/acraske/, @acraske_

Cerberus Testing is an open source low-code test automation platform that supports testing Web, iOS, Android and API (REST, SOAP and Kafka) applications. The platform allows the creation of automated test cases through an easy to use web interface without any need for development skills. Thus automated tests implementation and management now becomes available for all elements of the development, quality and business teams.

Website: https://cerberus-testing.com
Version tested: 4.10 on macOS, Linux and Windows 32 or 64 bits
System requirements: A web browser, preferably Firefox or Chrome
License & Pricing: Free and open source under GNU GPL v3
Support: Documentation, videos, in-app tutorial, slack channel and GitHub tickets at https://github.com/cerberustesting/cerberus-source

Welcome to this Cerberus Testing step-by-step tutorial for web testing automation. This guide will help you understand the testing automation workflow and good practices for testing web applications. You will learn how to create your application under test, create, run and report on test cases.

The test we will implement will be to search information on the Google homepage. At the end of this article, you will be able to start expanding your test automation suite and perform Cross-Browser Testing. As Cerberus Testing is leveraging Selenium Webdriver, you can use this tutorial to implement your own test.

If you are new to Cerberus Testing, we recommend that you start by having a look at our GitHub pagewebsite and overview video.

Prerequisites

The following elements are required in order to successfully complete this tutorial:

If you decided to implement your own Test, you need to secure the following points :

If you have any questions on those prerequisites, explore our documentationvideos or contact your administrator. Feel free to interact with the community on our slack channel or submit a GitHub issue.

Step 1 — Create The Web Application

In this part, we create the Google application with its definition and technical specs. We will first create the application to then add its corresponding test environments.

1.1 Create the Main Application

The first step is to create the application that we will then use in our test case. This will enable us to reuse the same application definition across different tests, simplifying their maintenance. It involves defining the application name, description, typology and available environments.

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

The following pop-up will appear with the necessary information to describe your application :

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

1.2 Add the corresponding environments

The final configuration defines the application environment with all the relevant information to reach your application under test. You can define here other environments for the same applications, which is useful when you want to expand your test suite.

An environment is composed by three elements :

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

By expanding the menu, you can also define advanced settings such as your “Login URL”, enabling you to simplify your test action later on.

Step 2 — Create The Test Case

We will now build our test case to be run against the application we just created. In a similar way, we will access the required menu, define our test case content and share tips related to the test creation process.

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

Click on “Create Test Case” to display the creation pop-up, that we will fill with the required information :

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

The other tabs are not necessary for now. A specific note: if you are creating your own test and want to run it in the ”PROD” test environment, you will need to activate this in the tab “Execution Settings” by checking the corresponding box.

Clicking on “Create”, you will confirm the test case creation. If you accept the default test case creation, a default test step will be created. In our case, we will follow a brand new creation process.

Step 3 — Define The Step, Action and Control

We can now configure the test case content using the low code library : Step, Action and Control. A Step is a collection of Action and Control for the main stages of your test. With a good design of those elements, you will be able to reuse them across tests to improve your test maintainability.

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

3.1 Add the Test Case Step

We can now add a step via the “Add Step” button and enter the corresponding description. Use clear descriptions in order to have a clear test readability with improved maintainability and reusability. You can name it “Searching and verifying a Google search”.

3.2 Add the Test Case Action and Controls

In this step we will detail the various actions and controls that should be performed during the tests. The commands are executed in their order of appearance.

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

We listed below the parameters that you can use:

  1. Go to the website

  2. Type the search term

  3. Click on search button

  4. Take a screen after search

  5. Verify the search results

We confirm the changes by clicking on the “Save Test Case” button in the top right corner.

Step 4 — Run The Test Case

We are now ready to execute our test case! Navigate to the Run page by going to “Run / Run Test Case”. By default the other options are not available until you run the test once in a specific environment.

4.1 Launch the Test via the Run Test Page

The test case is selected by default so we can define the execution parameters scrolling down on the page.

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

Confirm the following parameters :

Launch the test case and see it running live by clicking on “Run TestCase (and See Result)”.

4.2 Follow the Test Case Execution

You will see this page appearing after the test launch.

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

If you encounter an issue at this stage, we listed here the common themes :

Step 5 — Analyze The Test Case Report

It is now time to analyze the result of our test case execution! Once your test case is finished, the progress bar on the top will display your test status. The main ones are OK or KO, you can access more detailed information in the Cerberus Testing Documentation on Execution Status

We described here the various tabs and their corresponding usage :

As an example, you can see below the robot context, settings and access to the different logs by clicking on the icons on the bottom part.

Cerberus Testing - The Open Source Test Automation Framework

(click on figure to enlarge)

Conclusions & Next Steps for Your Web Testing Automation

By now you should have been able to run the example we described or even your own-defined test case. We hope this tutorial was helpful for you to understand the main stages involved in the test creation process for a new application with Cerberus Testing.

You can now expand your test coverage by creating reusable step libraries, duplicating or composing your test case and enriching them with specific properties. A good practice is to invest in your test design and modules in order to have fast, reliable and maintainable tests.

Scaling your test automation will be supported by the other capabilities offered by Cerberus Testing : test scheduling, integration with continuous integration and deployment (CI/CD), tags management, reporting and analytics capabilities.

More Information

Cerberus is a free open-source test automation framework, enabling you to implement cross-browser, mobile, APIs, databases, IoT, events, cloud testing. Iterate fast between your tests configuration, test execution and reporting being an integrated solution.

Follow-us on our social medias :
GitHub http://github.com/cerberustesting/cerberus-source
LinkedIn https://www.linkedin.com/company/cerberus-testing/
Twitter @CerberusTesting https://twitter.com/CerberusTesting
Website https://cerberus-testing.com


Click here to view the complete list of tools reviews

This article was published in December 2020