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
Copy file name to clipboardExpand all lines: README.md
+22-95Lines changed: 22 additions & 95 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,105 +34,32 @@ exports.config = {
34
34
};
35
35
```
36
36
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.
37
+
### To get test error remarks on automation dashboard
38
+
To get test error remarks on automation dashboard, simply add `ltErrorRemark: true` in your `wdio.conf.js`.
49
39
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
110
-
111
-
```bash
112
-
npm i wdio-lambdatest-service --save-dev
113
-
```
114
-
115
-
Instructions on how to install `WebdriverIO` can be found [here.](https://webdriver.io/docs/gettingstarted.html)
116
-
117
-
118
-
## Configuration
119
-
120
-
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.
41
+
### To upload app from local or url
42
+
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.
121
43
122
44
```js
123
45
// wdio.conf.js
124
-
exports.config= {
125
-
// ...
126
-
user:process.env.LT_USERNAME,
127
-
key:process.env.LT_ACCESS_KEY,
128
-
logFile :'./logDir/api.log',
129
-
services: [
130
-
['lambdatest', {
131
-
tunnel:true
132
-
}]
133
-
],
134
-
// ...
135
-
};
46
+
services: [
47
+
[
48
+
"lambdatest",
49
+
{
50
+
tunnel:true,
51
+
app_upload:true,
52
+
app:{
53
+
app_name :"xyz", //provide your desired app name
54
+
app_path :"/path/to/your/app/file", //provide the local app location
55
+
// or
56
+
app_url :"https://example.test_android.apk", //provide the url where your app is horsted or stored
57
+
custom_id :"12345", //provide your desired custom id
58
+
enableCapability :true
59
+
}
60
+
}
61
+
]
62
+
]
136
63
```
137
64
138
65
## Options
@@ -199,4 +126,4 @@ Default: `true`
199
126
200
127
----
201
128
202
-
For more information on WebdriverIO see the [homepage](https://webdriver.io).
129
+
For more information on WebdriverIO see the [homepage](https://webdriver.io).
0 commit comments