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
  • contain
  • equal
  • fail
  • notEqual
  • pass

Was this helpful?

  1. Download and work with Oxygen
  2. Oxygen Modules

assert

Provides generic assertion methods.

contain

Asserts that the string value contains a substring.

Parameters:

Name
Type
Description

actual

String

Actual value.

contains

String

Verbatim string to be contained.

message

String

optional Message to throw if assertion fails.

equal

Asserts that two values are equal (non-strict equality).

Parameters:

Name
Type
Description

actual

Object

Actual value.

expected

Object

Expected value. Either an object or a string prefixed with regex:.

message

String

optional Message to throw if assertion fails.

fail

Fails test with the given message.

Parameters:

Name
Type
Description

message

String

optional Error message to return.

notEqual

Asserts that two values are not equal (non-strict inequality).

Parameters:

Name
Type
Description

actual

Object

Actual value.

expected

Object

Expected value. Either an object or a string prefixed with regex:.

message

String

optional Message to throw if assertion fails.

pass

Passes the test with the given message.

Parameters:

Name
Type
Description

message

String

optional Message to return.

PreviousOxygen ModulesNextdate

Last updated 3 years ago

Was this helpful?