New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/sauce-service

Package Overview
Dependencies
Maintainers
3
Versions
517
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/sauce-service

WebdriverIO service that provides a better integration into SauceLabs

  • 5.4.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
108K
decreased by-0.87%
Maintainers
3
Weekly downloads
 
Created
Source

WebdriverIO Sauce Service

WebdriverIO service that provides a better integration into SauceLabs. This service can be used for:

  • the Sauce Labs virtual machine cloud (desktop web and em/simulators) and can update the job metadata ('name', 'passed', 'tags', 'public', 'build', 'custom-data') and runs Sauce Connect if desired.
  • the Sauce Labs Real Device cloud (iOS and Android) and can ONLY update the job status to passed / failed

Installation

The easiest way is to keep @wdio/sauce-service as a devDependency in your package.json.

{
  "devDependencies": {
    "@wdio/sauce-service": "^5.0.0"
  }
}

You can simple do it by:

npm install @wdio/sauce-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

In order to use the service for the virtual machine and em/simulator cloud you need to set user and key in your wdio.conf.js file. It will automatically use Sauce Labs to run your integration tests. If you want to use Sauce Connect you just need to set sauceConnect: true.

// wdio.conf.js
export.config = {
  // ...
  services: ['sauce'],
  user: process.env.SAUCE_USERNAME,
  key: process.env.SAUCE_ACCESS_KEY,
  sauceConnect: true,
  // ...
};

If you want to use the Real Device cloud just pass the testobject_api_key in the capabilities like this:

capabilities = [
  {
    deviceName: 'iPhone XS',
    // The api key that has a reference to the app-project in the RDC cloud
    testobject_api_key: process.env.SAUCE_RDC_ACCESS_KEY,
    // Some default settings
    // You can find more info in the TO Appium Basic Setup section
    platformName: 'iOS',
    platformVersion: '11.4'
  },
]

Options

user

Your Sauce Labs username.

Type: String

(only for vm and or em/simulators)

key

Your Sauce Labs access key.

Type: String

(only for vm and or em/simulators)

sauceConnect

If true it runs Sauce Connect and opens a secure connection between a Sauce Labs virtual machine running your browser tests.

Type: Boolean
Default: false

(only for vm and or em/simulators)

sauceConnectOpts

Apply Sauce Connect options (e.g. to change port number or logFile settings). See this list for more information.

Type: Object
Default: {}

(only for vm and or em/simulators)

Keywords

FAQs

Package last updated on 02 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc