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
+24-22Lines changed: 24 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,15 +59,15 @@ Set LambdaTest `Username` and `Access Key` in environment variables.
59
59
**For Linux/macOS:**
60
60
61
61
```js
62
-
exportLT_USERNAME="YOUR_LAMBDATEST_USERNAME" \
63
-
exportLT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY"
62
+
exportLT_USERNAME=YOUR_LAMBDATEST_USERNAME \
63
+
exportLT_ACCESS_KEY=YOUR_LAMBDATEST_ACCESS_KEY
64
64
```
65
65
66
66
**For Windows:**
67
67
68
68
```js
69
-
set LT_USERNAME="YOUR_LAMBDATEST_USERNAME"`
70
-
set LT_ACCESS_KEY="YOUR_LAMBDATEST_ACCESS_KEY"
69
+
set LT_USERNAME=YOUR_LAMBDATEST_USERNAME`
70
+
set LT_ACCESS_KEY=YOUR_LAMBDATEST_ACCESS_KEY
71
71
```
72
72
73
73
### Upload Your Application
@@ -134,7 +134,7 @@ exports.config = {
134
134
135
135
updateJob: false,
136
136
//highlight-next-line
137
-
specs: ["./../specs/ios-test.js"], //path of your test script
137
+
specs: ["specs/ios-test.js"], //path of your test script
138
138
exclude: [],
139
139
140
140
//highlight-start
@@ -159,7 +159,7 @@ exports.config = {
159
159
connectionRetryTimeout: 90000,
160
160
connectionRetryCount: 3,
161
161
path: "/wd/hub",
162
-
hostname: "beta-hub.lambdatest.com",
162
+
hostname: "mobile-hub.lambdatest.com",
163
163
port: 80,
164
164
165
165
framework: "mocha",
@@ -180,7 +180,7 @@ exports.config = {
180
180
181
181
updateJob: false,
182
182
//highlight-next-line
183
-
specs: ["./../specs/android-test.js"], //path of your test script
183
+
specs: ["specs/android-test.js"], //path of your test script
184
184
exclude: [],
185
185
186
186
//highlight-start
@@ -205,7 +205,7 @@ exports.config = {
205
205
connectionRetryTimeout: 90000,
206
206
connectionRetryCount: 3,
207
207
path: "/wd/hub",
208
-
hostname: "beta-hub.lambdatest.com",
208
+
hostname: "mobile-hub.lambdatest.com",
209
209
port: 80,
210
210
211
211
framework: "mocha",
@@ -223,42 +223,44 @@ exports.config = {
223
223
**Info Note:**
224
224
225
225
- You must add the generated **APP_URL** to the `"app"` capability in the config file.
226
-
- You can generate capabilities for your test requirements with the help of our inbuilt :link:**[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/beta/index.html)**. A more Detailed Capability Guide is available [here :page_facing_up:](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/) .
226
+
- You can generate capabilities for your test requirements with the help of our inbuilt :link:**[Capabilities Generator tool](https://www.lambdatest.com/capabilities-generator/)**. A more Detailed Capability Guide is available [here :page_facing_up:](https://www.lambdatest.com/support/docs/desired-capabilities-in-appium/) .
227
227
228
228
## Executing The Tests
229
229
230
-
**Step-5:** Navigate to the corresponding directory based on your app.
231
-
232
-
**Android:**
230
+
**Step-5:** Install the required dependencies using the following command:
233
231
234
232
```bash
235
-
cd android-sample
233
+
npm i
236
234
```
237
235
238
-
**IOS:**
236
+
**Step-6:** Execute the following command to run your test on LambdaTest platform:
237
+
238
+
**Single:**
239
+
240
+
-*MacOS/Linux*
239
241
240
242
```bash
241
-
cd ios-sample
243
+
npm run singleAndroid
242
244
```
243
245
244
-
Install the required dependencies using the following command:
246
+
-*Windows*
245
247
246
248
```bash
247
-
npm i
249
+
npm run singleAndroidWindows
248
250
```
249
251
250
-
Execute the following command to run your test on LambdaTest platform:
252
+
**Parallel:**
251
253
252
-
**Single:**
254
+
-*MacOS/Linux*
253
255
254
256
```bash
255
-
npm run single
257
+
npm run parallelIOS
256
258
```
257
259
258
-
**Parallel:**
260
+
-*Windows*
259
261
260
262
```bash
261
-
npm run parallel
263
+
npm run parallelIOSWindows
262
264
```
263
265
264
266
**Info:** Your test results would be displayed on the test console (or command-line interfaceif you are using terminal/cmd) and on the :link: [LambdaTest App Automation Dashboard](https://appautomation.lambdatest.com/build/?utm_source=github&utm_medium=repo&utm_campaign=LT-appium-nodejs-webdriverio).
0 commit comments