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
  • Open oxygen-cli module inside node modules
  • Run the command

Was this helpful?

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

Running a Test Script on Windows

run a test script using oxygen-cli

PreviousGetting Started- Oxyge CLINextRunning Multiple Tests (Suites) on Windows

Last updated 4 years ago

Was this helpful?

Open oxygen-cli module inside node modules

Open cmd and run the following command to find your node root directory:

$ npm -g root

Once inside, enter the oxygen-cli folder and open cmd inside it, your path should look like this:

C:\Users\Makeyev\AppData\Roaming\npm\node_modules\oxygen-cli>

Now we're ready to run the script, type the following command:

cls && node build\lib\cli 

And then the path to your script (in quotes):

cls && node build\lib\cli "C:\Users\Makeyev\Desktop\project\test.js"

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

Run the command

oxygen will initialize it's modules and execute the script:

and finish by showing the status

then will generate a reports folder inside your project folder with your test report as an html file