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
  • delete
  • fetch
  • getBody
  • getSubject
  • init
  • list

Was this helpful?

  1. Download and work with Oxygen
  2. Oxygen Modules

mailinator

Provides methods for working with Mailinator service - www.mailinator.com

delete

Deletes sepcific email.

** Example of the returned object:**

{
 "status": "ok"
}

Parameters:

Name
Type
Description

id

String

Message ID.

Returns:

Object - Status.

fetch

Fetches specific email.

** Example of the returned object:**

{
 "data":
   {
     "fromfull":"noreply@example.com",
     "headers": { ... email headers ... },
     "subject":"test subject",
     "requestId":"REQUEST ID",
     "parts": [
       {
         "headers":{ "content-type":"text/plain; charset=utf-8" },
         "body":"EMAIL BODY (TEXT)"
       },
       {
         "headers":{ "content-type":"text/html; charset=utf-8" },
         "body":"EMAIL BODY (HTML)"
       }
     ],
     "from":"Test Tester",
     "origfrom":"Test Tester noreply@example.com",
     "to":"cb-test-2",
     "id":"RANDOMLY GENERATED ID",
     "time":1491200030000,
     "seconds_ago":1174
  },
 "apiEmailFetchesLeft":1999
}

Parameters:

Name
Type
Description

id

String

Message ID.

Returns:

Object - Email details. E.g.

getBody

Extracts first available email body.

Parameters:

Name
Type
Description

emailObj

Object

Email object returned by mailiniator.fetch

Returns:

String - Email body.

getSubject

Extracts email's subject.

Parameters:

Name
Type
Description

emailObj

Object

Email object returned by mailiniator.fetch

Returns:

String - Email subject.

init

Initializes mailinator module.

Parameters:

Name
Type
Description

token

String

API token.

privateDomain

String

optional Specifies whether to use a private domain.

list

Fetches inbox messages or all saved messages.

** Example of the returned object:**

{
 "messages": [
   {
     "fromfull": "noreply@example.com",
     "subject": "Subject",
     "from": "Test Tester",
     "origfrom": "Test Tester noreply@example.com",
     "to": "inbox-name",
     "id": "RANDOMLY GENERATED ID",
     "time": 1491200030000,
     "seconds_ago": 234
   },
 ]
}

Parameters:

Name
Type
Description

inbox

String

optional Inbox name. If ommited saved messages will be fetched instead.

Returns:

Object - List containing message details.

PreviouslogNextmob

Last updated 2 years ago

Was this helpful?