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
+39-13Lines changed: 39 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,13 @@ 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
28
-
3. Gradle
29
+
3. Gradle (Only required if using Gradle as the build tool)
30
+
29
31
- If Gradle is not downloaded, download it from [here](https://gradle.org/releases/)
30
32
- For installation, follow the instructions [here](https://gradle.org/install/)
31
33
@@ -73,13 +75,25 @@ Getting Started with Appium tests in Junit4 and Junit5 on BrowserStack couldn't
73
75
74
76
- Junit4
75
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)
76
-
- Run `mvn test -P sample-test` to run in maven enviroment.
77
-
- Run `gradle clean sampleTest` to run in gradle enviroment.
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
+
```
78
86
79
87
- Junit5
80
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)
81
-
- Run `mvn test -P sample-test`
82
-
- Run `gradle clean sampleTest` to run in gradle enviroment.
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
+
```
83
97
84
98
### **Use Local testing for apps that access resources hosted in development or testing environments :**
85
99
@@ -89,17 +103,29 @@ Getting Started with Appium tests in Junit4 and Junit5 on BrowserStack couldn't
89
103
```
90
104
browserstackLocal: true
91
105
```
92
-
- Run `mvn test -P sample-local-test` to run in maven enviroment.
93
-
- Run `gradle clean sampleLocalTest` to run in gradle enviroment.
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
+
```
94
114
95
-
- Junit5
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)
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).
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).
98
118
```
99
119
browserstackLocal: true
100
120
```
101
-
- Run `mvn test -P sample-local-test` to run in maven enviroment.
102
-
- Run `gradle clean sampleLocalTest` to run in gradle enviroment.
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
+
```
103
129
104
130
**Note**: If you are facing any issues, refer [Getting Help section](#Getting-Help)
0 commit comments