@@ -92,40 +92,27 @@ In this section, we will run a single test on Chrome browser on Browserstack. To
92
92
- To run the default test scenario (e.g. End to End Scenario) on your own machine, use the following command:
93
93
94
94
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:
101
95
102
96
` ` ` sh
103
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-single.yml browserstack.yml & mvn test -P bstack-single
97
+ mvn test -P bstack-single -Dbrowserstack.config= " ./ src/ test/ resources/ conf/ browserstack-single.yml"
104
98
` ` `
105
99
106
-
107
100
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
+
115
102
` ` ` sh
116
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-single.yml browserstack.yml & gradle bstack-single
103
+ gradle clean bstack-single -Dbrowserstack.config= " ./ src/ test/ resources/ conf/ browserstack-single.yml"
117
104
` ` `
118
-
105
+
119
106
To run a specific test scenario, use the following command with the additional ' test-name' argument:
120
107
121
108
Maven:
122
109
` ` ` 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>"
124
111
` ` `
125
112
126
113
Gradle:
127
114
` ` ` 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>"
129
116
` ` `
130
117
131
118
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
146
133
147
134
To run the entire test suite in parallel on a single BrowserStack browser, use the following command:
148
135
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:
156
137
157
138
` ` ` sh
158
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-parallel.yml browserstack.yml & mvn test -P bstack-parallel
139
+ mvn test -P bstack-parallel -Dbrowserstack.config= " ./ src/ test/ resources/ conf/ browserstack-parallel.yml"
159
140
` ` `
160
141
161
142
162
143
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
-
169
144
` ` ` sh
170
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-parallel.yml browserstack.yml & gradle bstack-parallel
145
+ gradle clean bstack-parallel -Dbrowserstack.config= " ./ src/ test/ resources/ conf/ browserstack-parallel.yml"
171
146
` ` `
172
147
173
148
174
-
175
149
- Output
176
150
177
151
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
186
160
To run the entire test suite in parallel on multiple BrowserStack browsers, use the following command:
187
161
188
162
Maven:
189
- - For \* nix based and Mac machines:
190
-
191
163
` ` ` 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"
193
165
` ` `
194
- - For Windows:
195
-
196
- ` ` ` sh
197
- del /f " browserstack.yml" && copy /y .\s rc\t est\r esources\c onf\b rowserstack-parallel-browsers.yml browserstack.yml & mvn test -P bstack-parallel-browsers
198
- ` ` `
199
-
200
166
201
167
Gradle:
202
168
- For \* nix based and Mac machines:
203
169
` ` ` 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"
205
171
` ` `
206
- - For Windows:
207
-
208
- ` ` ` sh
209
- del /f " browserstack.yml" && copy /y .\s rc\t est\r esources\c onf\b rowserstack-parallel-browsers.yml browserstack.yml & gradle bstack-parallel-browsers
210
- ` ` `
211
-
172
+
212
173
# ## [Web application hosted on internal environment] Running your tests on BrowserStack using BrowserStackLocal
213
174
214
175
# ### Prerequisites
@@ -232,40 +193,27 @@ In this section, we will run the tests in parallel on multiple browsers on Brows
232
193
233
194
- To run the default test scenario (e.g. End to End Scenario) on a single BrowserStack browser using BrowserStackLocal, use the following command:
234
195
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:
242
197
243
198
` ` ` sh
244
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-local.yml browserstack.yml & mvn test -P bstack-local
199
+ mvn test -P bstack-local -Dbrowserstack.config= " ./ src/ test/ resources/ conf/ browserstack-local.yml"
245
200
` ` `
246
201
247
-
248
202
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
-
255
203
` ` ` sh
256
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-local.yml browserstack.yml & gradle bstack-local
204
+ gradle clean bstack-local -Dbrowserstack.config= " ./ src/ test/ resources/ conf/ browserstack-local.yml"
257
205
` ` `
258
206
259
207
To run a specific test scenario, use the following command with the additional test-name argument:
260
208
261
209
Maven:
262
210
` ` ` 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>"
264
212
` ` `
265
213
266
214
Gradle:
267
215
` ` ` 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>"
269
217
` ` `
270
218
271
219
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
287
235
To run the entire test suite in parallel on a single BrowserStack browser using BrowserStackLocal, use the following command:
288
236
289
237
Maven:
290
- - For \* nix based and Mac machines:
291
-
238
+
292
239
` ` ` 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"
294
241
` ` `
295
- - For Windows:
296
-
297
- ` ` ` sh
298
- del /f " browserstack.yml" && copy /y .\s rc\t est\r esources\c onf\b rowserstack-local-parallel.yml browserstack.yml & mvn test -P bstack-local-parallel
299
- ` ` `
300
-
301
242
302
243
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
-
309
244
` ` ` sh
310
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-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"
311
246
` ` `
312
-
247
+
313
248
- Output
314
249
315
250
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
324
259
To run the entire test suite in parallel on a single BrowserStack browser using BrowserStackLocal, use the following command:
325
260
326
261
Maven:
327
- - For \* nix based and Mac machines:
328
262
329
263
` ` ` 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"
331
265
` ` `
332
- - For Windows:
333
-
334
- ` ` ` sh
335
- del /f " browserstack.yml" && copy /y .\s rc\t est\r esources\c onf\b rowserstack-parallel-browsers.yml browserstack.yml & mvn test -P bstack-local-parallel-browsers
336
- ` ` `
337
-
338
-
266
+
339
267
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
-
346
268
` ` ` sh
347
- del /f " browserstack.yml " && copy /y . \ s rc\ t est\ r esources\ c onf\ b rowserstack-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"
348
270
` ` `
349
271
350
272
- Output
0 commit comments