Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
wdio-lambdatest-service
Advanced tools
A WebdriverIO service that manages tunnel and job metadata for LambdaTest.
A WebdriverIO service that manages tunnel and job metadata for LambdaTest users.
npm i wdio-lambdatest-service --save-dev
Instructions on how to install WebdriverIO
can be found here.
WebdriverIO has LambdaTest support out of the box. You should simply set user
and key
in your wdio.conf.js
file. To enable the feature for app automation, set product: 'appAutomation'
in your wdio.conf.js
file. This service plugin provides supports for LambdaTest Tunnel. Set tunnel: true
also to activate this feature.
// wdio.conf.js
exports.config = {
// ...
user: process.env.LT_USERNAME,
key: process.env.LT_ACCESS_KEY,
logFile : './logDir/api.log',
product : 'appAutomation',
services: [
['lambdatest', {
tunnel: true
}]
],
// ...
};
To get test error remarks on automation dashboard, simply add ltErrorRemark: true
in your wdio.conf.js
.
Upload android
or ios
apps from local or hosted app url by adding this required configuration in your wdio.conf.js
. To use the uploaded app for testing along in the same run set enableCapability = true
, this will set the app url value in the capabilities.
// wdio.conf.js
services: [
[
"lambdatest",
{
tunnel: true,
app_upload: true,
app:{
app_name : "xyz", //provide your desired app name
app_path : "/path/to/your/app/file", //provide the local app location
// or
app_url : "https://example.test_android.apk", //provide the url where your app is horsted or stored
custom_id : "12345", //provide your desired custom id
enableCapability : true
}
}
]
]
In order to authorize to the LambdaTest service your config needs to contain a user
and key
option.
Set this to true to enable routing connections from LambdaTest cloud through your computer. You will also need to set tunnel
to true in browser capabilities.
Type: Boolean
Default: false
Specified optional will be passed down to LambdaTest Tunnel.
Type: Object
Default: {}
Given below is an comprehensive list of all options available:
Specifies the custom LambdaTest Tunnel name to be used.
Example:
{"tunnelName": "my_custom_tunnel"}
Port for LambdaTest Tunnel to activate.
Example:
{"port": 33000}
LambdaTest username.
Example:
{"user": "your_username"}
LambdaTest accessKey.
Example:
{"key": "your_access_key"}
Should every proxy request be logged to stdout.
Example:
{"verbose": true}
Location of the LambdaTest Tunnel log file.
Example:
{"logFile": "/path/to/log/file"}
Path of the config file to use. Example:
{"config": "/path/to/config/file"}
Specify the local directory that will be served by a file server on Tunnel port.
Example:
{"dir": "/path/to/local/directory"}
Specifies the Tunnel proxy port hostname.
Example:
{"proxyHost": "proxy.example.com"}
Specifies the Tunnel proxy port username.
Example:
{"proxyUser": "your_proxy_username"}
Specifies the Tunnel proxy port password.
Example:
{"proxyPass": "your_proxy_password"}
Specifies the port number where Tunnel proxy will activate.
Example:
{"proxyPort": 8080}
Uses proxy settings only for outbound requests.
Example:
{"egressOnly": true}
Routes only incoming traffic via the proxy specified.
Example:
{"ingressOnly": true}
To use PAC (Proxy Auto-Configuration) in local testing, provide path of a PAC file.
Example:
{"pacfile": "/path/to/pacfile"}
Activates Load Balancing for LambdaTest Tunnel.
Example:
{"loadBalanced": true}
Specifies in which mode tunnel should run "ssh" or "ws". (default "ssh").
Example:
{"mode": "ssh"}
Specify type of ssh connection (over_22, over_443, over_ws). To use –sshConnType, specify ––mode ssh flag first.
Example:
{"sshConnType": "over_22"}
Increase the SSH connection from Tunnel Client to Tunnel Server. Maximum allowed value is 30.
Example:
{"maxSSHConnections": 2}
Sharing Tunnel among team members.
Example:
{"sharedTunnel": true}
The environment on which the LambdaTest Tunnel will run.
Example:
{"env": "production"}
Exposes Tunnel Info API at the specified port.
Example:
{"infoAPIPort": 8080}
Callback URL for tunnel status.
Example:
{"callbackURL": "https://example.com/callback"}
Comma separated list of hosts to route via tunnel. Everything else will be routed via Internet.
Example:
{"allowHosts": "example.com,anotherexample.com"}
Comma separated list of hosts to bypass from tunnel. These will be routed via internet.
Example:
{"bypassHosts": "example.com,anotherexample.com"}
mTLS Client Certificate filepath.
Example:
{"clientCert": "/path/to/client_certificate"}
mTLS Client Key filepath.
Example:
{"clientKey": "/path/to/client_key"}
Comma separated list of mTLS hosts.
Example:
{"mTLSHosts": "example.com,anotherexample.com"}
Comma separated list of DNS Servers.
Example:
{"dns": "8.8.8.8,8.8.4.4"}
Enable the MITM (Man-in-the-middle) mode for LambdaTest Tunnel.
Example:
{"mitm": true}
To use Microsoft NTLM (Windows NT LAN Manager) authentication for communication or transport purposes.
Example:
{"ntlm": true}
Path of pidfile, where process Id will be written.
Example:
{"pidfile": "/path/to/pidfile"}
Sets remote address to an internal IP of client machine.
Example:
{"usePrivateIp": true}
You can find more about these options here.
Cucumber only. Set the session name to the Scenario name if only a single Scenario ran. Useful when running in parallel with wdio-cucumber-parallel-execution.
Type: Boolean
Default: false
Customize the session name format.
Type: Function
Default (Cucumber/Jasmine): (config, capabilities, suiteTitle) => suiteTitle
Default (Mocha): (config, capabilities, suiteTitle, testTitle) => suiteTitle + ' - ' + testTitle
Mocha only. Do not append the test title to the session name.
Type: Boolean
Default: false
Mocha only. Prepend the top level suite title to the session name.
Type: Boolean
Default: false
Automatically set the session name.
Type: Boolean
Default: true
Automatically set the session status (passed/failed).
Type: Boolean
Default: true
To get test names as scenario names for cucumber specific tests, simply add useScenarioName: true
in your wdio.conf.js
.
For more information on WebdriverIO see the homepage.
FAQs
A WebdriverIO service that manages tunnel and job metadata for LambdaTest.
The npm package wdio-lambdatest-service receives a total of 61,521 weekly downloads. As such, wdio-lambdatest-service popularity was classified as popular.
We found that wdio-lambdatest-service demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.