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
+20-5
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ This repository demonstrates how to run Appium tests in [TestNG](http://testng.o
14
14
- For Windows, download latest java version from [here](https://java.com/en/download/) and run the installer executable
15
15
- 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/)
16
16
17
-
2. Maven
17
+
2. Maven (Only required if using Maven as the build tool)
18
18
- If Maven is not downloaded, download it from [here](https://maven.apache.org/download.cgi)
19
19
- For installation, follow the instructions [here](https://maven.apache.org/install.html)
20
20
21
-
3. Gradle
21
+
3. Gradle (Only required if using Gradle as the build tool)
22
22
- If Gradle is not downloaded, download it from [here](https://gradle.org/releases/)
23
23
- For installation, follow the instructions [here](https://gradle.org/install/)
24
24
@@ -46,16 +46,31 @@ Getting Started with Appium tests in TestNg on BrowserStack couldn't be easier!
46
46
### **Run Sample test :**
47
47
48
48
- Switch to one of the following directories: [Android examples](android/testng-examples) or [iOS examples](ios/testng-examples)
49
-
- Run the following maven command `mvn test -P sample-test`
50
-
- Run the following gradle command `gradle clean sampleTest`
49
+
-**For Maven:** Run the following command to execute tests in the Maven environment:
50
+
```sh
51
+
mvn test -P sample-test
52
+
```
53
+
- **For Gradle:** Run the following command to execute tests in the Gradle environment:
54
+
```sh
55
+
gradle clean sampleTest
56
+
```
51
57
52
58
### **Use Local testing for apps that access resources hosted in development or testing environments :**
53
59
54
60
- Simply configure the `browserstackLocal` parameter in the `browserstack.yml` file accordingly in [Android examples](android/testng-examples) or [iOS examples](ios/testng-examples).
55
61
```
56
62
browserstackLocal: true
57
63
```
58
-
- You can use the `LocalSample` app provided in both folder [Android examples](android/testng-examples) or [iOS examples](ios/testng-examples) to run your test. Change the app parameter in the `browserstack.yml` file and run the tests with the following command: `mvn test -P sample-local-test`
64
+
- You can use the `LocalSample` app provided in both folder [Android examples](android/testng-examples) or [iOS examples](ios/testng-examples) to run your test. Change the app parameter in the `browserstack.yml` file.
65
+
66
+
- **For Maven:** Run the following command to execute tests in the Maven environment:
67
+
```sh
68
+
mvn test -P sample-local-test
69
+
```
70
+
- **For Gradle:** Run the following command to execute tests in the Gradle environment:
71
+
```sh
72
+
gradle clean sampleLocalTest
73
+
```
59
74
60
75
-similarly for gradle you can do :- gradle clean sampleLocalTest
0 commit comments