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
+42-8
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,16 @@ These code samples are currently based on:
21
21
- For Windows, download latest java version from [here](https://java.com/en/download/) and run the installer executable
22
22
- For Mac and Linux, run `java -version` to see what java version is pre-installed. If you want a different version download from [here](https://java.com/en/download/)
23
23
24
-
2. Maven
24
+
2. Maven (Only required if using Maven as the build tool)
25
+
25
26
- If Maven is not downloaded, download it from [here](https://maven.apache.org/download.cgi)
26
27
- For installation, follow the instructions [here](https://maven.apache.org/install.html)
27
28
29
+
3. Gradle (Only required if using Gradle as the build tool)
30
+
31
+
- If Gradle is not downloaded, download it from [here](https://gradle.org/releases/)
32
+
- For installation, follow the instructions [here](https://gradle.org/install/)
33
+
28
34
### Install the dependencies
29
35
30
36
To install the dependencies for JUnit4 tests, run :
@@ -69,11 +75,25 @@ Getting Started with Appium tests in Junit4 and Junit5 on BrowserStack couldn't
69
75
70
76
- Junit4
71
77
- 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`
78
+
- **For Maven:** Run the following command to execute tests in the Maven environment:
79
+
```sh
80
+
mvn test -P sample-test
81
+
```
82
+
- **For Gradle:** Run the following command to execute tests in the Gradle environment:
83
+
```sh
84
+
gradle clean sampleTest
85
+
```
73
86
74
87
- Junit5
75
88
- 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
-
- Run `mvn test -P sample-test`
89
+
- **For Maven:** Run the following command to execute tests in the Maven environment:
90
+
```sh
91
+
mvn test -P sample-test
92
+
```
93
+
- **For Gradle:** Run the following command to execute tests in the Gradle environment:
94
+
```sh
95
+
gradle clean sampleTest
96
+
```
77
97
78
98
### **Use Local testing for apps that access resources hosted in development or testing environments :**
79
99
@@ -83,15 +103,29 @@ Getting Started with Appium tests in Junit4 and Junit5 on BrowserStack couldn't
83
103
```
84
104
browserstackLocal: true
85
105
```
86
-
- Run `mvn test -P sample-local-test`
106
+
- **For Maven:** Run the following command to execute tests in the Maven environment:
107
+
```sh
108
+
mvn test -P sample-local-test
109
+
```
110
+
- **For Gradle:** Run the following command to execute tests in the Gradle environment:
111
+
```sh
112
+
gradle clean sampleLocalTest
113
+
```
87
114
88
-
- Junit5
89
-
- 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
-
- 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).
115
+
- Junit5
116
+
- 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)
117
+
- 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
118
```
92
119
browserstackLocal: true
93
120
```
94
-
- Run `mvn test -P sample-local-test`
121
+
- **For Maven:** Run the following command to execute tests in the Maven environment:
122
+
```sh
123
+
mvn test -P sample-local-test
124
+
```
125
+
- **For Gradle:** Run the following command to execute tests in the Gradle environment:
126
+
```sh
127
+
gradle clean sampleLocalTest
128
+
```
95
129
96
130
**Note**: If you are facing any issues, refer [Getting Help section](#Getting-Help)
0 commit comments