@@ -175,19 +175,17 @@ In this section, we will run a single test on Chrome browser on Browserstack. To
175175
176176- How to run the test?
177177
178- - Copy the capabilities to the root of the project :
178+ - Set Environment Variable to pick desired YML file :
179179
180180 - For \* nix based and Mac machines:
181181
182- ``` sh
183- rm -f -- browserstack.yml
184- ln src/test/resources/conf/capabilities/bstack-single.yml browserstack.yml
182+ ``` sh
183+
184+ export BROWSERSTACK_CONFIG_FILE= " src/test/resources/conf/capabilities/bstack-single.yml"
185185 ```
186-
187186 - For Windows:
188-
189187 ` ` ` sh
190- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b stack-single.yml browserstack.yml
188+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\bstack-single.yml"
191189 ` ` `
192190
193191 To run the default test scenario (e.g. End to End Scenario) on your own machine, use the following command:
@@ -230,19 +228,17 @@ In this section, we will run the tests in parallel on a single browser on Browse
230228
231229- How to run the test?
232230
233- - Copy the capabilities to the root of the project :
231+ - Set Environment Variable to pick desired YML file :
234232
235233 - For \* nix based and Mac machines:
236234
237- ` ` ` sh
238- rm -f -- browserstack.yml
239- ln src/test/resources/conf/capabilities/bstack-parallel.yml browserstack.yml
235+ ` ` ` sh
236+
237+ export BROWSERSTACK_CONFIG_FILE= " src/test/resources/conf/capabilities/bstack-parallel.yml"
240238 ` ` `
241-
242239 - For Windows:
243-
244240 ` ` ` sh
245- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b stack-parallel.yml browserstack.yml
241+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\bstack-parallel.yml"
246242 ` ` `
247243
248244 To run the entire test suite in parallel on a single BrowserStack browser, use the following command:
@@ -267,20 +263,18 @@ In this section, we will run the tests in parallel on a single browser on Browse
267263
268264In this section, we will run the tests in parallel on multiple browsers on Browserstack. Refer to the ` bstack-parallel-browsers.yml` file to change test capabilities for this configuration.
269265
270- - Copy the capabilities to the root of the project:
271-
272- - For \* nix based and Mac machines:
273-
274- ` ` ` sh
275- rm -f -- browserstack.yml
276- ln src/test/resources/conf/capabilities/bstack-parallel-browsers.yml browserstack.yml
277- ` ` `
266+ - Set Environment Variable to pick desired YML file:
278267
279- - For Windows :
268+ - For \* nix based and Mac machines :
280269
281- ` ` ` sh
282- del /f " browserstack.yml" && copy /y .\s rc\t est\r esources\c onf\c apabilities\b stack-parallel-browsers.yml browserstack.yml
283- ` ` `
270+ ` ` ` sh
271+
272+ export BROWSERSTACK_CONFIG_FILE=" src/test/resources/conf/capabilities/bstack-parallel-browsers.yml"
273+ ` ` `
274+ - For Windows:
275+ ` ` ` sh
276+ set BROWSERSTACK_CONFIG_FILE=" src\test\resources\conf\capabilities\bstack-parallel-browsers.yml"
277+ ` ` `
284278
285279- How to run the test?
286280
@@ -318,19 +312,17 @@ In this section, we will run the tests in parallel on multiple browsers on Brows
318312
319313- How to run the test?
320314
321- - Copy the capabilities to the root of the project :
315+ - Set Environment Variable to pick desired YML file :
322316
323317 - For \* nix based and Mac machines:
324318
325- ` ` ` sh
326- rm -f -- browserstack.yml
327- ln src/test/resources/conf/capabilities/bstack-local.yml browserstack.yml
319+ ` ` ` sh
320+
321+ export BROWSERSTACK_CONFIG_FILE= " src/test/resources/conf/capabilities/bstack-local.yml"
328322 ` ` `
329-
330323 - For Windows:
331-
332324 ` ` ` sh
333- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b stack-local.yml browserstack.yml
325+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\bstack-local.yml"
334326 ` ` `
335327
336328 - To run the default test scenario (e.g. End to End Scenario) on a single BrowserStack browser using BrowserStackLocal, use the following command:
@@ -372,19 +364,17 @@ In this section, we will run the test cases to test the internally hosted websit
372364
373365- How to run the test?
374366
375- - Copy the capabilities to the root of the project :
367+ - Set Environment Variable to pick desired YML file :
376368
377369 - For \* nix based and Mac machines:
378370
379- ` ` ` sh
380- rm -f -- browserstack.yml
381- ln src/test/resources/conf/capabilities/bstack-local-parallel.yml browserstack.yml
371+ ` ` ` sh
372+
373+ export BROWSERSTACK_CONFIG_FILE= " src/test/resources/conf/capabilities/bstack-local-parallel.yml"
382374 ` ` `
383-
384375 - For Windows:
385-
386376 ` ` ` sh
387- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b stack -local-parallel.yml browserstack.yml
377+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\browserstack -local-parallel.yml"
388378 ` ` `
389379
390380 To run the entire test suite in parallel on a single BrowserStack browser using BrowserStackLocal, use the following command:
@@ -410,19 +400,17 @@ In this section, we will run the test cases to test the internally hosted websit
410400
411401- How to run the test?
412402
413- - Copy the capabilities to the root of the project :
403+ - Set Environment Variable to pick desired YML file :
414404
415405 - For \* nix based and Mac machines:
416406
417- ` ` ` sh
418- rm -f -- browserstack.yml
419- ln src/test/resources/conf/capabilities/bstack-local-parallel-browsers.yml browserstack.yml
407+ ` ` ` sh
408+
409+ export BROWSERSTACK_CONFIG_FILE= " src/test/resources/conf/capabilities/bstack-local-parallel-browsers.yml"
420410 ` ` `
421-
422411 - For Windows:
423-
424412 ` ` ` sh
425- del /f " browserstack.yml " && copy /y . \ s rc\t est\r esources\c onf\c apabilities\b stack -local-parallel-browsers.yml browserstack.yml
413+ set BROWSERSTACK_CONFIG_FILE= " src\test\resources\conf\capabilities\browserstack -local-parallel-browsers.yml"
426414 ` ` `
427415
428416 To run the entire test suite in parallel on a single BrowserStack browser using BrowserStackLocal, use the following command:
0 commit comments