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
  • CLI Installation
  • Configuration

Was this helpful?

  1. Download and work with Oxygen
  2. Download & Installation

Oxygen CLI Installation

Command-line application for running Oxygen tests and generating reports.

PreviousMac Installation TroubleshootingNextJava Installation Instructions

Last updated 5 years ago

Was this helpful?

CLI Installation

Oxygen CLI - Command-line application for running tests and generating reports.

To start working with Oxygen Command-line (cli) - you must first install the following programs:

  1. 8 or later.

After installing the above programs you should do the following steps:

  1. Open the command line (cmd command)

  2. Type the following command in the command line:

    npm install -g oxygen-cli

    After installation is finished, re-open your command-line.

In some cases you may need to run the installation command using sudo to provide the super-user do elevated permission

sudo install -g oxygen-cli

In case you encounter some permission errors during installation, you can try the following:

sudo npm install --unsafe-perm --verbose -g oxygen-cli

Configuration

Oxygen CLI doesn't come bundled with Selenium nor Appium and requires installing them manually.

Desktop web applications automation

Place everything into a single directory and launch with (update selenium version if necessary):

java -Dwebdriver.chrome.driver=chromedriver.exe -Dwebdriver.ie.driver=IEDriverServer.exe -jar selenium-server-standalone-3.141.59.jar -port 4444 -timeout 320 -browserTimeout 320

Mobile applications automation

Download and the drivers for browsers you wish to use:

Chrome -

Internet Explorer -

Firefox -

If you wish to execute CLI on mobile devices you should first read Oxygen for mobile guide and installation instructions:

Download a for the devices (optional).

Node.js
Java 8
Selenium Standalone Server
https://sites.google.com/a/chromium.org/chromedriver/downloads
http://www.seleniumhq.org/download/
https://github.com/mozilla/geckodriver/releases
https://docs.oxygenhq.org/download-and-installation/mobile-installation
simulator