
Security News
GitHub Actions Supply Chain Attack Puts Thousands of Projects at Risk
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
@wdio/shared-store-service
Advanced tools
Exchange data between main process and workers (specs).
The easiest way is to keep @wdio/shared-store-service
as a devDependency in your package.json
.
{
"devDependencies": {
"@wdio/shared-store-service": "^6.1.4"
}
}
You can simple do it by:
npm install @wdio/shared-store-service --save-dev
Instructions on how to install WebdriverIO
can be found here.
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!
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'],
// ...
};
FAQs
Did you know?
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.
Security News
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
Research
Security News
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.
Security News
Socket and Seal Security collaborate to fix a critical npm overrides bug, resolving a three-year security issue in the JavaScript ecosystem's most popular package manager.