Skip to content

Commit fd505e6

Browse files
committed
Update Config Selection
1 parent f69e43a commit fd505e6

File tree

1 file changed

+24
-102
lines changed

1 file changed

+24
-102
lines changed

README.md

+24-102
Original file line numberDiff line numberDiff line change
@@ -92,40 +92,27 @@ In this section, we will run a single test on Chrome browser on Browserstack. To
9292
- To run the default test scenario (e.g. End to End Scenario) on your own machine, use the following command:
9393

9494
Maven:
95-
- For \*nix based and Mac machines:
96-
97-
```sh
98-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-single.yml browserstack.yml & mvn test -P bstack-single
99-
```
100-
- For Windows:
10195

10296
```sh
103-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-single.yml browserstack.yml & mvn test -P bstack-single
97+
mvn test -P bstack-single -Dbrowserstack.config="./src/test/resources/conf/browserstack-single.yml"
10498
```
10599

106-
107100
Gradle:
108-
- For \*nix based and Mac machines:
109-
110-
```sh
111-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-single.yml browserstack.yml & gradle bstack-single
112-
```
113-
- For Windows:
114-
101+
115102
```sh
116-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-single.yml browserstack.yml & gradle bstack-single
103+
gradle clean bstack-single -Dbrowserstack.config="./src/test/resources/conf/browserstack-single.yml"
117104
```
118-
105+
119106
To run a specific test scenario, use the following command with the additional 'test-name' argument:
120107

121108
Maven:
122109
```sh
123-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-single.yml browserstack.yml & mvn test -P bstack-single -Dtest-name="<Test scenario name>"
110+
mvn test -P bstack-single -Dbrowserstack.config="./src/test/resources/conf/browserstack-single.yml" -Dtest-name="<Test scenario name>"
124111
```
125112

126113
Gradle:
127114
```sh
128-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-single.yml browserstack.yml & gradle bstack-single -Dtest-name="<Test scenario name>"
115+
gradle clean bstack-single -Dbrowserstack.config="./src/test/resources/conf/browserstack-single.yml" -Dtest-name="<Test scenario name>"
129116
```
130117

131118
where, the argument 'test-name' can be any Cucumber scenario name configured in this repository.
@@ -146,32 +133,19 @@ In this section, we will run the tests in parallel on a single browser on Browse
146133

147134
To run the entire test suite in parallel on a single BrowserStack browser, use the following command:
148135

149-
Maven:
150-
- For \*nix based and Mac machines:
151-
152-
```sh
153-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-parallel.yml browserstack.yml & mvn test -P bstack-parallel
154-
```
155-
- For Windows:
136+
Maven:
156137

157138
```sh
158-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-parallel.yml browserstack.yml & mvn test -P bstack-parallel
139+
mvn test -P bstack-parallel -Dbrowserstack.config="./src/test/resources/conf/browserstack-parallel.yml"
159140
```
160141

161142

162143
Gradle:
163-
- For \*nix based and Mac machines:
164-
```sh
165-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-parallel.yml browserstack.yml & gradle bstack-parallel
166-
```
167-
- For Windows:
168-
169144
```sh
170-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-parallel.yml browserstack.yml & gradle bstack-parallel
145+
gradle clean bstack-parallel -Dbrowserstack.config="./src/test/resources/conf/browserstack-parallel.yml"
171146
```
172147

173148

174-
175149
- Output
176150

177151
This run profile executes the entire test suite in parallel on a single BrowserStack browser. Please refer to your [BrowserStack dashboard](https://automate.browserstack.com/) for test results.
@@ -186,29 +160,16 @@ In this section, we will run the tests in parallel on multiple browsers on Brows
186160
To run the entire test suite in parallel on multiple BrowserStack browsers, use the following command:
187161

188162
Maven:
189-
- For \*nix based and Mac machines:
190-
191163
```sh
192-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-parallel-browsers.yml browserstack.yml & mvn test -P bstack-parallel-browsers
164+
mvn test -P bstack-parallel-browsers -Dbrowserstack.config="./src/test/resources/conf/browserstack-parallel-browsers.yml"
193165
```
194-
- For Windows:
195-
196-
```sh
197-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-parallel-browsers.yml browserstack.yml & mvn test -P bstack-parallel-browsers
198-
```
199-
200166

201167
Gradle:
202168
- For \*nix based and Mac machines:
203169
```sh
204-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-parallel-browsers.yml browserstack.yml & gradle bstack-parallel-browsers
170+
gradle clean bstack-parallel-browsers -Dbrowserstack.config="./src/test/resources/conf/browserstack-parallel-browsers.yml"
205171
```
206-
- For Windows:
207-
208-
```sh
209-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-parallel-browsers.yml browserstack.yml & gradle bstack-parallel-browsers
210-
```
211-
172+
212173
### [Web application hosted on internal environment] Running your tests on BrowserStack using BrowserStackLocal
213174

214175
#### Prerequisites
@@ -232,40 +193,27 @@ In this section, we will run the tests in parallel on multiple browsers on Brows
232193

233194
- To run the default test scenario (e.g. End to End Scenario) on a single BrowserStack browser using BrowserStackLocal, use the following command:
234195

235-
Maven:
236-
- For \*nix based and Mac machines:
237-
238-
```sh
239-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local.yml browserstack.yml & mvn test -P bstack-local
240-
```
241-
- For Windows:
196+
Maven:
242197

243198
```sh
244-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-local.yml browserstack.yml & mvn test -P bstack-local
199+
mvn test -P bstack-local -Dbrowserstack.config="./src/test/resources/conf/browserstack-local.yml"
245200
```
246201

247-
248202
Gradle:
249-
- For \*nix based and Mac machines:
250-
```sh
251-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local.yml browserstack.yml & gradle bstack-local
252-
```
253-
- For Windows:
254-
255203
```sh
256-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-local.yml browserstack.yml & gradle bstack-local
204+
gradle clean bstack-local -Dbrowserstack.config="./src/test/resources/conf/browserstack-local.yml"
257205
```
258206

259207
To run a specific test scenario, use the following command with the additional test-name argument:
260208

261209
Maven:
262210
```sh
263-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local.yml browserstack.yml & mvn test -P bstack-local -Dtest-name="<Test scenario name>"
211+
mvn test -P bstack-local -Dbrowserstack.config="./src/test/resources/conf/browserstack-local.yml" -Dtest-name="<Test scenario name>"
264212
```
265213

266214
Gradle:
267215
```sh
268-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local.yml browserstack.yml & gradle bstack-local -Dtest-name="<Test scenario name>"
216+
gradle clean bstack-local -Dbrowserstack.config="./src/test/resources/conf/browserstack-local.yml" -Dtest-name="<Test scenario name>"
269217
```
270218

271219
where, the argument 'test-name' can be any Cucumber scenario name configured in this repository.
@@ -287,29 +235,16 @@ In this section, we will run the test cases to test the internally hosted websit
287235
To run the entire test suite in parallel on a single BrowserStack browser using BrowserStackLocal, use the following command:
288236

289237
Maven:
290-
- For \*nix based and Mac machines:
291-
238+
292239
```sh
293-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local-parallel.yml browserstack.yml & mvn test -P bstack-local-parallel
240+
mvn test -P bstack-local-parallel -Dbrowserstack.config="./src/test/resources/conf/browserstack-local-parallel.yml"
294241
```
295-
- For Windows:
296-
297-
```sh
298-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-local-parallel.yml browserstack.yml & mvn test -P bstack-local-parallel
299-
```
300-
301242

302243
Gradle:
303-
- For \*nix based and Mac machines:
304-
```sh
305-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local-parallel.yml browserstack.yml & gradle bstack-local-parallel
306-
```
307-
- For Windows:
308-
309244
```sh
310-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-local-parallel.yml browserstack.yml & gradle bstack-local-parallel
245+
gradle clean bstack-local-parallel -Dbrowserstack.config="./src/test/resources/conf/browserstack-local-parallel.yml"
311246
```
312-
247+
313248
- Output
314249

315250
This run profile executes the entire test suite on an internally hosted web application on a single browser on BrowserStack. Please refer to your [BrowserStack dashboard](https://automate.browserstack.com/) for test results.
@@ -324,27 +259,14 @@ In this section, we will run the test cases to test the internally hosted websit
324259
To run the entire test suite in parallel on a single BrowserStack browser using BrowserStackLocal, use the following command:
325260

326261
Maven:
327-
- For \*nix based and Mac machines:
328262

329263
```sh
330-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local-parallel-browsers.yml browserstack.yml & mvn test -P bstack-local-parallel-browsers
264+
mvn test -P bstack-local-parallel-browsers -Dbrowserstack.config="./src/test/resources/conf/browserstack-local-parallel-browsers.yml"
331265
```
332-
- For Windows:
333-
334-
```sh
335-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-parallel-browsers.yml browserstack.yml & mvn test -P bstack-local-parallel-browsers
336-
```
337-
338-
266+
339267
Gradle:
340-
- For \*nix based and Mac machines:
341-
```sh
342-
rm -f -- browserstack.yml & ln src/test/resources/conf/browserstack-local-parallel-browsers.yml browserstack.yml & gradle bstack-local-parallel-browsers
343-
```
344-
- For Windows:
345-
346268
```sh
347-
del /f "browserstack.yml" && copy /y .\src\test\resources\conf\browserstack-local-parallel-browsers.yml browserstack.yml & gradle bstack-local-parallel-browsers
269+
gradle clean bstack-local-parallel-browsers -Dbrowserstack.config="./src/test/resources/conf/browserstack-local-parallel-browsers.yml"
348270
```
349271

350272
- Output

0 commit comments

Comments
 (0)