You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,10 @@ These code samples are currently based on:
25
25
- If Maven is not downloaded, download it from [here](https://maven.apache.org/download.cgi)
26
26
- For installation, follow the instructions [here](https://maven.apache.org/install.html)
27
27
28
+
3. Gradle
29
+
- If Gradle is not downloaded, download it from [here](https://gradle.org/releases/)
30
+
- For installation, follow the instructions [here](https://gradle.org/install/)
31
+
28
32
### Install the dependencies
29
33
30
34
To install the dependencies for JUnit4 tests, run :
@@ -69,11 +73,13 @@ Getting Started with Appium tests in Junit4 and Junit5 on BrowserStack couldn't
69
73
70
74
- Junit4
71
75
- Update `browserstack.yml` file at root level of [Android Junit4 examples](junit-4/android) or [iOS Junit4 examples](junit-4/ios) with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
72
-
- Run `mvn test -P sample-test`
76
+
- Run `mvn test -P sample-test` to run in maven enviroment.
77
+
- Run `gradle clean sampleTest` to run in gradle enviroment.
73
78
74
79
- Junit5
75
80
- Update `browserstack.yml` file at root level of [Android Junit5 examples](junit-5/android) or [iOS Junit5 examples](junit-5/ios) with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
76
81
- Run `mvn test -P sample-test`
82
+
- Run `gradle clean sampleTest` to run in gradle enviroment.
77
83
78
84
### **Use Local testing for apps that access resources hosted in development or testing environments :**
79
85
@@ -83,15 +89,17 @@ Getting Started with Appium tests in Junit4 and Junit5 on BrowserStack couldn't
83
89
```
84
90
browserstackLocal: true
85
91
```
86
-
- Run `mvn test -P sample-local-test`
92
+
- Run `mvn test -P sample-local-test` to run in maven enviroment.
93
+
- Run `gradle clean sampleLocalTest` to run in gradle enviroment.
87
94
88
95
- Junit5
89
96
- Update `browserstack.yml` file at root level of Android Junit5 examples or iOS Junit5 examples with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
90
97
- Simply configure the browserstackLocal parameter in the browserstack.yml file accordingly in [Android Junit5 examples](junit-5/android) or [iOS Junit5 examples](junit-5/ios).
91
98
```
92
99
browserstackLocal: true
93
100
```
94
-
- Run `mvn test -P sample-local-test`
101
+
- Run `mvn test -P sample-local-test` to run in maven enviroment.
102
+
- Run `gradle clean sampleLocalTest` to run in gradle enviroment.
95
103
96
104
**Note**: If you are facing any issues, refer [Getting Help section](#Getting-Help)
0 commit comments