OXYGEN
HomeGitHubReleasesCommunity
  • Welcome to Oxygen
  • About
    • What is Oxygen?
    • Getting Started (Videos)
      • Oxygen IDE Controls Overview
      • Recording a Web Test
      • Oxygen Commands Explained
    • Getting help
  • Download and work with Oxygen
    • Download & Installation
      • Oxygen IDE Installation
      • Oxygen for Mobile Installation
      • Oxygen for Windows Desktop Automation Setup
      • Oxygen for Mac Installation
        • Mac Installation Troubleshooting
      • Oxygen CLI Installation
      • Java Installation Instructions
      • Recording Troubleshooting
    • Start working with Oxygen
      • Getting Started - Web
        • Introduction - Web Testing
        • Recording a Web Test
        • Creating a Web Test
        • Sample Project - Web Test
      • Getting Started - Mobile
        • Introduction - Mobile Testing
        • Recording a Test on Mobile
        • Creating a Test - Mobile
        • Sample Project - Mobile
      • Getting Started - Oxygen for Windows Desktop Automation
      • Getting Started- Oxyge CLI
        • Running a Test Script on Windows
        • Running Multiple Tests (Suites) on Windows
    • Oxygen Modules
      • assert
      • date
      • db
      • email
      • eyes
      • http
      • log
      • mailinator
      • mob
      • pdf
      • proxy
      • serial
      • shell
      • soap
      • twilio
      • utils
      • web
      • win
    • Test Parameters
  • Cloud Providers
    • Sauce Labs
    • Lambda Test
    • TestObject
  • Advanced programming in Oxygen
    • Project Configuration
    • Locating Elements
    • Page Objects
    • Environments
    • Code Components
Powered by GitBook
On this page

Was this helpful?

  1. Download and work with Oxygen
  2. Start working with Oxygen
  3. Getting Started- Oxyge CLI

Running Multiple Tests (Suites) on Windows

Oxygen also provides the option to run several tests one by one or parallel

PreviousRunning a Test Script on WindowsNextOxygen Modules

Last updated 4 years ago

Was this helpful?

First, we need to create a new file called oxygen.conf.js inside our project folder

for full configuration go to

The file should look like this:

module.exports = {
    
  "iterations": 1,
  "parallel": 1,
    
  "url": "http://localhost:4444/wd/hub",
    
    suites: [{
        name: 'case1',
        cases: [{
            path: "./test-script.js"
        }],
      },
      {
        name: 'case2',
        cases: [{
            path: "./second-test-script.js"
        }],
    }],
    
  "environment": {
    "some_parameter": "foo",
    "another_parameter": "bar"
  },
    
  "capabilities": [
    { 
      "browserName": "chrome"
    }
  ],
    
  "options": {
    "autoReopen": true
  }
    
}

We can config the number of iterations, number of parallel browsers, and add test cases inside suites

And just like running a single test script, let's open the oxygen-cli folder inside node modules,

open cmd and navigate to the following path:

cd C:\Users\YOUR-USER\AppData\Roaming\npm\node_modules\oxygen-cli

Now run the following command: cls && node build\lib\cli

followed by the path to oxygen.conf.js file

cls && node build\lib\cli C:\Desktop\YourProject\oxygen.conf.js

Before running the test, make sure Selenium is running either in oxygen or as a standalone

And that's it, once again a report will be generated inside your project folder

https://docs.oxygenhq.org/advanced/project-configuration