Skip to content

Commit 27726ba

Browse files
Merge pull request #56 from Shahnawaz-Sk/app-config
adding app upload, moved ltErrorRemark in config level
2 parents 9b5848d + a49459f commit 27726ba

File tree

5 files changed

+498
-402
lines changed

5 files changed

+498
-402
lines changed

README.md

Lines changed: 22 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -34,105 +34,32 @@ exports.config = {
3434
};
3535
```
3636

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`.
4939

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).
5640

57-
Type: `Boolean`<br />
58-
Default: `false`
59-
60-
### sessionNameFormat
61-
Customize the session name format.
62-
63-
Type: `Function`<br />
64-
Default (Cucumber/Jasmine): `(config, capabilities, suiteTitle) => suiteTitle`<br />
65-
Default (Mocha): `(config, capabilities, suiteTitle, testTitle) => suiteTitle + ' - ' + testTitle`
66-
67-
### sessionNameOmitTestTitle
68-
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-
[![WDIO health check](https://github.com/LambdaTest/wdio-lambdatest-service/actions/workflows/healthcheck.yml/badge.svg?branch=master)](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.
12143

12244
```js
12345
// 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+
]
13663
```
13764

13865
## Options
@@ -199,4 +126,4 @@ Default: `true`
199126

200127
----
201128

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

Comments
 (0)