@@ -196,19 +196,19 @@ In this section, we will run a single test on an Android device on Browserstack.
196
196
197
197
- How to run the test?
198
198
199
- - Copy the capabilities to the root of the project:
199
+ - Set Environment Variable to pick desired YML file.
200
200
201
201
- For \* nix based and Mac machines:
202
202
203
203
` ` ` sh
204
- rm -f -- browserstack.yml
205
- ln src/test/resources/conf/capabilities/browserstack-single.yml browserstack.yml
204
+
205
+ export BROWSERSTACK_CONFIG_FILE= " src/test/resources/conf/capabilities/browserstack-single.yml"
206
206
` ` `
207
207
208
208
- For Windows:
209
209
210
210
` ` ` sh
211
- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b rowserstack-single.yml browserstack.yml
211
+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\browserstack-single.yml"
212
212
` ` `
213
213
214
214
- To run the default test scenario (e.g. End to End Scenario) on a BrowserStack device, use the following command:
@@ -248,19 +248,18 @@ In this section, we will run the tests in parallel on a single device on Browser
248
248
249
249
- How to run the test?
250
250
251
- - Copy the capabilities to the root of the project :
251
+ - Set Environment Variable to pick desired YML file :
252
252
253
253
- For \* nix based and Mac machines:
254
254
255
255
` ` ` sh
256
- rm -f -- browserstack.yml
257
- ln src/test/resources/conf/capabilities/browserstack-parallel.yml browserstack.yml
256
+ export BROWSERSTACK_CONFIG_FILE=" src/test/resources/conf/capabilities/browserstack-parallel.yml"
258
257
` ` `
259
258
260
259
- For Windows:
261
260
262
261
` ` ` sh
263
- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b rowserstack-parallel.yml browserstack.yml
262
+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\browserstack-parallel.yml"
264
263
` ` `
265
264
266
265
To run the entire test suite in parallel on a single BrowserStack device, use the following command:
@@ -288,19 +287,18 @@ In this section, we will run the tests in parallel on multiple devices on Browse
288
287
289
288
- How to run the test?
290
289
291
- - Copy the capabilities to the root of the project :
290
+ - Set Environment Variable to pick desired YML file :
292
291
293
292
- For \* nix based and Mac machines:
294
293
295
294
` ` ` sh
296
- rm -f -- browserstack.yml
297
- ln src/test/resources/conf/capabilities/browserstack-parallel-devices.yml browserstack.yml
295
+ export BROWSERSTACK_CONFIG_FILE=" src/test/resources/conf/capabilities/browserstack-parallel-devices.yml"
298
296
` ` `
299
297
300
298
- For Windows:
301
299
302
300
` ` ` sh
303
- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b rowserstack-parallel-devices.yml browserstack.yml
301
+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\browserstack-parallel-devices.yml"
304
302
` ` `
305
303
306
304
@@ -340,19 +338,18 @@ In this section, we will run the tests in parallel on multiple devices on Browse
340
338
341
339
- How to run the test?
342
340
343
- - Copy the capabilities to the root of the project :
341
+ - Set Environment Variable to pick desired YML file :
344
342
345
343
- For \* nix based and Mac machines:
346
344
347
345
` ` ` sh
348
- rm -f -- browserstack.yml
349
- ln src/test/resources/conf/capabilities/browserstack-local.yml browserstack.yml
346
+ export BROWSERSTACK_CONFIG_FILE=" src/test/resources/conf/capabilities/browserstack-local.yml"
350
347
` ` `
351
348
352
349
- For Windows:
353
350
354
351
` ` ` sh
355
- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b rowserstack-local.yml browserstack.yml
352
+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\browserstack-local.yml"
356
353
` ` `
357
354
358
355
- To run the default test scenario (e.g. End to End Scenario) on a single BrowserStack device using BrowserStackLocal, use the following command:
@@ -378,19 +375,18 @@ In this section, we will run the test cases on a mobile application using a loca
378
375
379
376
- How to run the test?
380
377
381
- - Copy the capabilities to the root of the project :
378
+ - Set Environment Variable to pick desired YML file :
382
379
383
380
- For \* nix based and Mac machines:
384
381
385
382
` ` ` sh
386
- rm -f -- browserstack.yml
387
- ln src/test/resources/conf/capabilities/browserstack-local-parallel-devices.yml browserstack.yml
383
+ export BROWSERSTACK_CONFIG_FILE=" src/test/resources/conf/capabilities/browserstack-local-parallel-devices.yml"
388
384
` ` `
389
385
390
386
- For Windows:
391
387
392
388
` ` ` sh
393
- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b rowserstack-local-parallel-devices.yml browserstack.yml
389
+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\browserstack-local-parallel-devices.yml"
394
390
` ` `
395
391
396
392
To run the entire test suite in parallel on multiple BrowserStack devices using BrowserStackLocal, use the following command:
0 commit comments