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

@wdio/shared-store-service

Package Overview
Dependencies
Maintainers
7
Versions
450
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/shared-store-service

A WebdriverIO service to exchange data across processes

  • 6.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
116K
decreased by-3.84%
Maintainers
7
Weekly downloads
 
Created
Source

WebdriverIO Shared Store Service

Exchange data between main process and workers (specs).

Installation

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

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

You can simple do it by:

npm install @wdio/shared-store-service --save-dev

Instructions on how to install WebdriverIO can be found here.

Usage

Get/set a value (plain object) to/from the store by key (string).

browser.sharedStore.set('key', 'value') set value to store

browser.sharedStore.get('key') get value from store (returns 'value')

IMPORTANT! Every spec file should be atomic and isolated from others specs. The idea of the service is to deal with very specific environment setup issues. Please avoid sharing test execution data!

Configuration

Just add shared-store to services list and the sharedStore object will be accessible to you in your test.

// wdio.conf.js
export.config = {
    // ...
    services: ['shared-store'],
    // ...
};

Keywords

FAQs

Package last updated on 30 Mar 2020

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