CloudBeat Docs
HomeRequest a DemoContactSign In
  • What is CloudBeat?
  • Get Started
    • Quick Start
  • SUPPORTED FRAMEWORKS
    • Java JUnit
    • .NET MSTest
    • Playwright (JS/TS)
  • Fundamentals
    • Creating Projects
    • Creating Environments
    • Creating Tests Cases
    • Running Tests Cases
    • Creating Tests Suites
    • Running Tests Suites
    • Creating Releases
    • Adding Apps
  • Sample Projects
    • Introduction to Cloudbeat sample projects
    • Oxygen Cucumber project
    • Oxygen project
    • TestNG project
  • Features
    • Integrations
      • CI/CD Pipeline
        • Jenkins
        • Azure DevOps
      • Cloud Providers
        • Genymotion
        • Applitools
        • Perfecto
    • Supported Frameworks
    • Data-Driven Testing
      • DDT - Oxygen Framework
  • CloudBeat Synthetic
    • What is CloudBeat Synthetic?
    • Creating your first monitor
    • Review general monitor results
    • Review specific monitor dashboard
    • Create SLA
    • Create Reports & Alerts
    • Changing Runtime Setting
    • Run Monitors
    • Maintenance
    • Incidents
    • Full Monitor Test - Example
  • Settings & Administration
    • Managing Notification Groups
    • Managing Permissions
    • Managing Users
    • Managing Account
    • Managing My Profile
  • References
    • Active Runs
    • Test Results
    • Projects
      • Oxygen Project
      • Cucumber + Java Project
      • .Net Project
      • TestNG Project Setup
    • Reports
Powered by GitBook
On this page
  • Using parameters from an external file
  • Using parameters from environments

Was this helpful?

  1. Features
  2. Data-Driven Testing

DDT - Oxygen Framework

PreviousData-Driven TestingNextWhat is CloudBeat Synthetic?

Last updated 1 year ago

Was this helpful?

CloudBeat's runner will automatically bind the test data defined in Parameters tab of your Test Case or Test Suite and will pass it on to the underlying Oxygen framework

Using parameters from an external file

In order to replace a constant value with a test parameter in Oxygen Framework, we can use the params object, which is assigned to the parameter file and contains it's values.

For example here is a parameters file with 2 values:

Our parameter name is “email” and the value is “1@gmail.com”, the following example will perform type action in your Oxygen script and will replace "email" parameter with "1@gmail.com" value:

web.type(“id=email”, params.email);

Using parameters from environments

Additionally, Environment variables can be created and be used for different environments.

For example, here we have TEST and DEV, we create a "url" and "user" parameters and assign their values to "http://test.com" and "testo" in our TEST environment:

To use them, we simply specify which environment we want to use in our case/suite/monitor:

After that, to access them in the script we use the env object which is assigned to our chosen environment, then access the values by using the following syntax:

web.open(env.url)
web.type('id=username', env.user)

For more info see:

Creating Environments