Drive BDD With the Quantum Framework

Quantum is a cross-platform test automation framework that lets diverse teams (SDETs and business testers) get started quickly with full-blown test automation by supporting business-driven development (BDD).  

The open-source Quantum framework can be used for mobile native, hybrid, and desktop web applications without limiting test coverage. How? Because both Selenium and Appium web driver implementations are included in its core architecture. 

With Quantum, cross-functional teams can create test automation scripts via any leading IDE, such as Eclipse or IntelliJ IDEA. It can be used in Java or JavaScript in combination with Gherkin-style scenarios that business testers can write. 

To the right is a basic scenario that runs through Quantum BDD using the traditional Cucumber and Gherkin style (Given, When, Then).

quantum

Quantum Framework Makes Testing More Agile

The Quantum framework architecture fully supports the main principles behind the BDD Agile testing methodology. This methodology supports the collaboration of dev, QA, and business toward a joint goal of high-quality implementation of user stories (software).

Image Integration Quantum 2

Key Benefits of Quantum & Perfecto

Leveraging Quantum and Perfecto can benefit developers and test engineers as they expand automation.

1.    Easy Test Automation Setup and Creation

The success of a BDD implementation depends on development supporting QA in building valid test automation scenarios that fully comply with the business flows in the application under test.

From an architecture and compliance standpoint, there is no difference between Quantum and the standard BDD. Clients can use all the common features of BDD Cucumber like data tables, scenario outlines, examples, backgrounds, and more. All testing can be created inside a Maven project and triggered through testNG from the common IDEs.

As the below architecture shows, Quantum BDD framework is based on standard Selenium and Appium implementation that fully integrates with CI/CD servers, the testNG data provider, and the Cucumber syntax.

quatum

In addition to the standards mentioned, there are specific framework abilities to drive greater value from test automation creation:

  • Support for page object model (POM) in a simple and maintainable fashion.
  • Built-in cloud integration to Perfecto for high scalability across mobile and web.
  • Advanced test reporting and root-cause analysis abilities.

In addition to the above features, Quantum BDD comes with a getting started kit that has built-in step definition functions in Java and support for extending them to customer specific methods.

quantum

A typical Quantum BDD project will look like this, and will include the built-in Perfecto extensions and application property files with relevant configurations like cloud URL, security token, and more. In addition, it will include the BDD feature files, the step definition Java classes, testNG XML configuration files, and the .LOC file which is the page object model.

By downloading the Quantum starter kit from GitHub into your IDE, you can get up and running in minutes.

quatum

2.    Stable Test Execution in the Cloud

Because the entire execution of Quantum BDD test automation runs in the Perfecto cloud, it is guaranteed that the execution will be 100% stable on clean and secured Android and iOS devices as well as all other desktop browsers. Executing the tests either from IntelliJ IDEA, Eclipse, or through Jenkins and other CI servers is fully supported and stable. 

quatum

3.    Open Source, Simple, Complete Test Automation Framework 

Getting started with Quantum is free, straight forward, and very simple. Clients can simply build on the sample projects that are a part of the starter kit and expand to their unique projects for mobile, web, or both. Test management, page object model, data driven testing, and parallel executions are all embedded into the framework.

Quantum BDD can be a one stop shop for teams that practice Selenium and Appium, and need a framework on top to allow management, maintenance, and execution at scale.

quatum

4.    Detailed Reporting and Fast Feedback

Like with any test execution, when Quantum is integrated with Perfecto clients enjoy the powerful test reporting and analysis solution. From the initiation of the test execution, clients can see the execution in parallel through the live execution stream. At the end of the execution they receive a detailed test execution report that includes screenshots, videos, logs, and root cause analysis classification. This capability helps eliminate noise and focus only on the real defects in the apps under test. 

quatum

Getting Started With Quantum

It’s easy to get started with Quantum. View a sample project here.

Try Testing With Quantum & Perfecto

Start your free trial of Perfecto today.