You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instructions on how to install `WebdriverIO` can be found [here.](https://webdriver.io/docs/gettingstarted.html)
10
15
11
-
The easiest way is to keep `wdio-lambdatest-service` as a devDependency in your `package.json`.
12
16
13
-
```json
14
-
{
15
-
"devDependencies": {
16
-
"wdio-lambdatest-service": "^1.0.1"
17
-
}
18
-
}
17
+
## Configuration
18
+
19
+
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](https://www.lambdatest.com/support/docs/troubleshooting-lambda-tunnel/). Set `tunnel: true` also to activate this feature.
20
+
21
+
```js
22
+
// wdio.conf.js
23
+
exports.config= {
24
+
// ...
25
+
user:process.env.LT_USERNAME,
26
+
key:process.env.LT_ACCESS_KEY,
27
+
logFile :'./logDir/api.log',
28
+
services: [
29
+
['lambdatest', {
30
+
tunnel:true
31
+
}]
32
+
],
33
+
// ...
34
+
};
19
35
```
20
36
21
-
You can simple do it by:
37
+
## Options
38
+
39
+
In order to authorize to the LambdaTest service your config needs to contain a [`user`](https://webdriver.io/docs/options.html#user) and [`key`](https://webdriver.io/docs/options.html#key) option.
40
+
41
+
### tunnel
42
+
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.
43
+
44
+
Type: `Boolean`<br>
45
+
Default: `false`
46
+
47
+
### lambdatestOpts
48
+
Specified optional will be passed down to LambdaTest Tunnel. See [this list](https://www.lambdatest.com/support/docs/lambda-tunnel-modifiers/) for details.
49
+
50
+
Type: `Object`<br>
51
+
Default: `{}`
52
+
53
+
### preferScenarioName
54
+
Cucumber only. Set the session name to the Scenario name if only a single Scenario ran.
55
+
Useful when running in parallel with [wdio-cucumber-parallel-execution](https://github.com/SimitTomar/wdio-cucumber-parallel-execution).
Mocha only. Do not append the test title to the session name.
69
+
70
+
Type: `Boolean`<br />
71
+
Default: `false`
72
+
73
+
### sessionNamePrependTopLevelSuiteTitle
74
+
Mocha only. Prepend the top level suite title to the session name.
75
+
76
+
Type: `Boolean`<br />
77
+
Default: `false`
78
+
79
+
### setSessionName
80
+
Automatically set the session name.
81
+
82
+
Type: `Boolean`<br />
83
+
Default: `true`
84
+
85
+
### setSessionStatus
86
+
Automatically set the session status (passed/failed).
87
+
88
+
Type: `Boolean`<br />
89
+
Default: `true`
90
+
91
+
92
+
## Steps to compile and publish
93
+
1. git clone this repository.
94
+
2. run "npm install"
95
+
3. run "npm run build"
96
+
4. Steps to Publish: run "npm login"
97
+
5. run "npm publish --access public"
98
+
99
+
----
100
+
101
+
For more information on WebdriverIO see the [homepage](https://webdriver.io).
102
+
WebdriverIO LambdaTest Service
103
+
========================
104
+
105
+
[](https://github.com/LambdaTest/wdio-lambdatest-service/actions/workflows/healthcheck.yml)
106
+
107
+
> A WebdriverIO service that manages tunnel and job metadata for LambdaTest users.
108
+
109
+
## Installation
22
110
23
111
```bash
24
112
npm i wdio-lambdatest-service --save-dev
@@ -33,7 +121,7 @@ WebdriverIO has LambdaTest support out of the box. You should simply set `user`
33
121
34
122
```js
35
123
// wdio.conf.js
36
-
export.config= {
124
+
exports.config= {
37
125
// ...
38
126
user:process.env.LT_USERNAME,
39
127
key:process.env.LT_ACCESS_KEY,
@@ -63,10 +151,49 @@ Specified optional will be passed down to LambdaTest Tunnel. See [this list](htt
63
151
Type: `Object`<br>
64
152
Default: `{}`
65
153
154
+
### preferScenarioName
155
+
Cucumber only. Set the session name to the Scenario name if only a single Scenario ran.
156
+
Useful when running in parallel with [wdio-cucumber-parallel-execution](https://github.com/SimitTomar/wdio-cucumber-parallel-execution).
0 commit comments