Skip to content

Use the Oxygen open source framework to run automated tests on CircleCI with minimal configuration.

License

Notifications You must be signed in to change notification settings

oxygenhq/oxygen-orb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oxygen CircleCI Orb CircleCI Orb Version

The Oxygen CircleCI Orb is a piece of configuration set in your circle.yml or .circleci/config.yml file to use the Oxygen open source framework to run automated tests on CircleCI with minimal configuration. See this orb in CircleCI Registry.

How to Enable

To use CircleCI Orbs in your projects, you need to enable two settings:

  • From organization settings allow using uncertified orbs: Settings -> Security -> Allow uncertified orbs
  • From the project's settings allow beta features: Settings -> Advanced Settings -> Enable build processing (preview)

See the official CircleCI documentation.

Examples

Each example below should be placed into circle.yml or .circleci/config.yml file.

Test Case

Test case is a single test script, which you can run with Oxygen CircleCI Orb by passing it as file parameter.

version: 2.1

orbs: 
  oxygen: cloudbeat/[email protected]

workflows:
  oxygen_install-start-run-case:
    jobs:
      - oxygen/install-start-run-tests:
          selenium-minor-version: "3.5"
          selenium-patch-version: "3.5.3"
          file: 'tests/testcase1.js'

Test Suite

Test suite is a JSON file, which allows defining and running collection of test cases with Oxygen CircleCI Orb by passing it as file parameter.

version: 2.1

orbs: 
  oxygen: cloudbeat/[email protected]

workflows:
  oxygen_install-start-run-case:
    jobs:
      - oxygen/install-start-run-tests:
          selenium-minor-version: "3.5"
          selenium-patch-version: "3.5.3"
          file: 'tests/testsuite.js'

Example of test suite:

{
  "iterations": 2,
  "parallel": 1,
  "url": "http://localhost:4444/wd/hub",
  "cases": [
    {
      "name": "case1",
      "path": "./testcase1.js"
    },
    {
      "name": "case2",
      "path": "./testcase2.js"
    }
  ],
  "environment": {
    "some_parameter": "foo",
    "another_parameter": "bar"
  },
  "capabilities": [
    {
      "browserName": "ie"
    },
    {
      "browserName": "chrome"
    }
  ],
  "options": {
    "autoReopen": true
  }
}

License

This project is licensed under the terms of the MIT license.

About

Use the Oxygen open source framework to run automated tests on CircleCI with minimal configuration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published