šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

@codeceptjs/aerokube-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codeceptjs/aerokube-plugin

CodeceptJS support for Aerokube Browsers https://browsers.aerokube.com

1.0.0
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
Ā 
Created
Source

aerokube Plugin

Cloud browser testing with Aerokube Browsers in CodeceptJS.

API

Table of Contents

index

Run WebDriver and Puppeteer tests in cloud browsers provided by Aerokube. Aerokube provides lightning fast and comparable cheap browsers without pain of maintaining own infrastructure. This plugin works with WebDriver and Puppeteer helpers of CodeceptJS.

If you need to host cloud browsers on your own infrastructure consider browsers in Kubernetes with Aerokube Moon

Setup

Install this plugin in CodeceptJS project.

npm i @codeceptjs/aerokube-plugin --save-dev

Enable the plugin in codecept.conf.js

// codecept.conf.js config 
exports.config = {
  helpers: {
     // regular Puppeteer config
     // or regular WebDriver config
  },
  // ....
  plugins: {
     aerokube: {
       require: '@codeceptjs/aerokube-plugin',
       user: '<username from aerokube>',
       password: '<password from aerokube>',
     }
  } 
}

It is recommended to use dotenv package to store username and password from Aerokube Browsers. See the config in example dir.

To run tests in cloud, enable this plugin:

npx codeceptjs run -p aerokube

To enable aerokube plugin permanently set enabled: true in plugin config.

Usage Infromation

WebDriver

  • Desired capabilities are ignored

Puppeteer

We use webdriverio library to initialize a browser session and obtain DevTool Protocol API credentials.

  • windowSize option is used to set initial window size. Not viewport size.
  • Chrome starting options are ignored.

Parameters

  • conf

Example Project

To try aerokube plugin without a project, use the one provided in this repo inside example directory.

  • Register at Browsers Aerokube.

  • Run npm install to install all depdndencies.

  • Create .env file with the following contents. Username and password should be obtained from Aerokube Browsers.

    • ACCOUNT=<username from aerokube>
    • PASSWORD=<password from aerokube>
  • Execute tests :

    • To launch tests in WebDriver npx codeceptjs run -c example --steps

    • To launch tests in Puppeteer

      PUPPETEER=true npx codeceptjs run -c example --steps
      

Keywords

codeceptjs

FAQs

Package last updated on 08 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts