Skip to main content

Selenium With Reqnroll


Run Reqnroll tests on the TestMu AI cloud grid. This guide covers setup, running a sample test, configuring capabilities, and testing locally hosted pages.

Sample repo

All the code used in this guide is available in the sample repository.

Prerequisites


Complete the following steps before running Reqnroll Selenium tests.

  1. Download and install Selenium WebDriver from the official website.
  2. Install the latest version of Reqnroll.
  3. Install the .Net framework for developing applications using C#.
  4. Download Selenium WebDriver Language Binding for C# and extract them to the appropriate folder.
  5. Install a .NET Core SDK of 2.1 or greater version.
  6. Get your TestMu AI Username and Access Key from the TestMu AI Dashboard.

Step 1: Clone the Sample Project


Clone the repository and set up the virtual environment.

virtualenv venv

cmd

Navigate to the newly created virtual environment:

source venv/bin/activate

Step 2: Set Your Credentials


Configure your credentials to connect to the TestMu AI grid.

Fetch the TestMu AI Credentials from the TestMu AI Profile Section. You can export the environment variables by running the following commands in your terminal.

export LT_USERNAME="undefined"
export LT_ACCESS_KEY="undefined"

Step 3: Configure Your Test Capabilities


Update the TestMu AI Credentials in the Makefile or export them as environment variables as shown above.

Capabilities Generator

Use the TestMu AI Capabilities Generator to auto-generate the capabilities class for your test requirements.

Step 4: Run the Test


Build and execute the Reqnroll tests on the TestMu AI platform.

Clean temporary files:

make clean

cmd

Build the automation project:

make build

cmd

Run the Reqnroll tests:

make reqnroll-automation-test

cmd

cmd

Step 5: View Your Results


Check the test output on the console and the TestMu AI dashboard.

Navigate to the TestMu AI Automation Dashboard to check the status of the test execution.

cmd

All the scenarios that are a part of respective .feature(s) files successfully executed on TestMu AI.

cmd

cmd

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles