TestModeller.io - Selenium JavaScript Tutorial

Welcome to the TestModeller.io Selenium JavaScript tutorial !

In this tutorial we'll be covering how to get started with TestModeller.io for Selenium JavaScript.

This is aimed for first-time users along with users who have an existing Selenium JavaScript automation framework.

1. How it works

TestModeller.io is a browser-based solution that enables users to:

  • Model a system under test as BPMN-style flowcharts.
  • Automatically generate test cases from the model, optimising testing for time and risk.
  • Define test data at the model-level and generate data at the same time as test cases.
  • Define test automation, automatically executing tests generated in The VIP Test Modeller.
  • Analyse test results and manage existing artefacts, with visual dashboards and a file management system that introduces traceability between test assets.

This quick start guide provides an overview for new users to get started with creating automation for a Selenium JavaScript based automation framework to quickly start creating models and associated automation.

For Selenium JavaScript this means creating models which automatically generate javascript code which can be directly plugged into your Selenium JavaScript automation framework.

TestModeller.io a modelling tool which creates the perfect set of tests into a wide array of test case management systems, and automation frameworks. Along with overlaying the right test data to support your testing.

This section is by no means comprehensive and intended as a quick start guide. If you wish to learn more about modelling we recommend you review our knowledge base along with our video tutorials for a comprehensive guide to creating models and test automation.

The goal is to equip the reader with the working knowledge needed to get started with creating Selenium JavaScript test automation to test their own systems and integrate into their own automation frameworks. With TestModeller.io, this means automatically generating complete automated test suites from models that are quick to build and easy to maintain.

2. Configuration

Install Prerequisites

Here we'll be installing all the prerequisites you need to get started with test automation in Selenium JavaScript through TestModeller.io.

  1. Create a free TestModeller.io account
  2. Install node.js‚Äč
  3. Install ChromeDriver (this needs to match the version of chrome you will be executing your tests on) and make sure you add it to your system PATH.
  4. Download our example Selenium JavaScript project (if you don't have your own).
    • You can download the framework from out GitHub repo here.

Run Framework

The framework and associated tests can be executed in the framework through the command line.

  1. Run npm install in the directory where it was cloned.
  2. To execute the tests, run npm test in the root directory.

Integrate Generated Assets

Generated assets from the TestModeller.io Scanner, and Code Generators just need to be copied into the right directories.

  1. Place the PageObject files generated by TestModeller.io into the pages directory.
  2. Place the TestCase files generated by TestModeller.io into the tests directory.