oxygen.conf.js, which includes the project configuration, this file contains the tools for the project such as which modules to use, creating suites to run multiple scripts, reporting type, etc.
oxygen.env.js, which includes the environments, different URLs, usernames, connection string for each environment, which can be later used by selecting the environment inside oxygen settings.
oxygen.po.js, which includes all the page objects, locators, functions, etc.
Simple web test example from scratch
Let's start by creating a folder and inside it creating the oxygen.env.js and defining our environments
And now let's create a folder with our test scripts, our first test will be searching for Selenium in Wikipedia
Don't forget to choose an environment
web.transaction('01. Initialize')web.init()web.transaction('02. Open Wikipedia Main Page')web.open(env.url)web.transaction('03. Seach For Selenium')po.search('Selenium')web.transaction('04. Assert Results')web.assertTextPresent('Selenium')
The following repository is provided as a sample project.