Skip to content

Commit fe2f5bd

Browse files
Merge pull request #5 from BrowserStackCE/develop
Update Readme
2 parents 17f55c2 + 58f77d7 commit fe2f5bd

File tree

3 files changed

+18
-22
lines changed

3 files changed

+18
-22
lines changed

README.md

+16-20
Original file line numberDiff line numberDiff line change
@@ -196,19 +196,19 @@ In this section, we will run a single test on an Android device on Browserstack.
196196

197197
- How to run the test?
198198

199-
- Copy the capabilities to the root of the project:
199+
- Set Environment Variable to pick desired YML file.
200200

201201
- For \*nix based and Mac machines:
202202

203203
```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"
206206
```
207207

208208
- For Windows:
209209

210210
```sh
211-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\capabilities\browserstack-single.yml browserstack.yml
211+
set BROWSERSTACK_CONFIG_FILE="src\test\resources\conf\capabilities\browserstack-single.yml"
212212
```
213213

214214
- 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
248248

249249
- How to run the test?
250250

251-
- Copy the capabilities to the root of the project:
251+
- Set Environment Variable to pick desired YML file:
252252

253253
- For \*nix based and Mac machines:
254254

255255
```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"
258257
```
259258

260259
- For Windows:
261260

262261
```sh
263-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\capabilities\browserstack-parallel.yml browserstack.yml
262+
set BROWSERSTACK_CONFIG_FILE="src\test\resources\conf\capabilities\browserstack-parallel.yml"
264263
```
265264

266265
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
288287

289288
- How to run the test?
290289

291-
- Copy the capabilities to the root of the project:
290+
- Set Environment Variable to pick desired YML file:
292291

293292
- For \*nix based and Mac machines:
294293

295294
```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"
298296
```
299297

300298
- For Windows:
301299

302300
```sh
303-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\capabilities\browserstack-parallel-devices.yml browserstack.yml
301+
set BROWSERSTACK_CONFIG_FILE="src\test\resources\conf\capabilities\browserstack-parallel-devices.yml"
304302
```
305303

306304

@@ -340,19 +338,18 @@ In this section, we will run the tests in parallel on multiple devices on Browse
340338

341339
- How to run the test?
342340

343-
- Copy the capabilities to the root of the project:
341+
- Set Environment Variable to pick desired YML file:
344342

345343
- For \*nix based and Mac machines:
346344

347345
```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"
350347
```
351348

352349
- For Windows:
353350

354351
```sh
355-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\capabilities\browserstack-local.yml browserstack.yml
352+
set BROWSERSTACK_CONFIG_FILE="src\test\resources\conf\capabilities\browserstack-local.yml"
356353
```
357354

358355
- 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
378375

379376
- How to run the test?
380377

381-
- Copy the capabilities to the root of the project:
378+
- Set Environment Variable to pick desired YML file:
382379

383380
- For \*nix based and Mac machines:
384381

385382
```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"
388384
```
389385

390386
- For Windows:
391387

392388
```sh
393-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\capabilities\browserstack-local-parallel-devices.yml browserstack.yml
389+
set BROWSERSTACK_CONFIG_FILE="src\test\resources\conf\capabilities\browserstack-local-parallel-devices.yml"
394390
```
395391

396392
To run the entire test suite in parallel on multiple BrowserStack devices using BrowserStackLocal, use the following command:

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<dependency>
100100
<groupId>com.browserstack</groupId>
101101
<artifactId>browserstack-java-sdk</artifactId>
102-
<version>1.1.1</version>
102+
<version>1.9.2</version>
103103
<scope>compile</scope>
104104
</dependency>
105105
</dependencies>

src/test/resources/conf/capabilities/browserstack-single.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ platforms:
4545
# Example 1 - If you have configured 3 platforms and set `parallelsPerPlatform` as 2, a total of 6 (2 * 3) parallel threads will be used on BrowserStack
4646
#
4747
# Example 2 - If you have configured 1 platform and set `parallelsPerPlatform` as 5, a total of 5 (1 * 5) parallel threads will be used on BrowserStack
48-
parallelsPerPlatform: 3
48+
parallelsPerPlatform: 1
4949

5050
# ==========================================
5151
# BrowserStack Local

0 commit comments

Comments
 (0)