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
@@ -20,37 +27,37 @@ This repository demonstrates how to run Appium tests in [JUnit4](http://junit.or
20
27
21
28
### Install the dependencies
22
29
23
-
To install the dependencies for Android tests, run :
30
+
To install the dependencies for JUnit4 tests, run :
24
31
25
-
- For Junit4
32
+
- For Android
26
33
27
34
```sh
28
-
cdandroid/junit4-examples
35
+
cdjunit-4/android
29
36
mvn clean
30
37
```
31
38
32
-
- For Junit5
39
+
- For iOS
33
40
34
41
```sh
35
-
cdandroid/junit5-examples
42
+
cdjunit-4/ios
36
43
mvn clean
37
44
```
38
45
39
46
Or,
40
47
41
-
To install the dependencies foriOS tests, run :
48
+
To install the dependencies forJUnit5 tests, run :
42
49
43
-
- For Junit4
50
+
- For Android
44
51
45
52
```sh
46
-
cdios/junit4-examples
53
+
cdjunit-5/android
47
54
mvn clean
48
55
```
49
56
50
-
- For Junit5
57
+
- For iOS
51
58
52
59
```sh
53
-
cdios/junit5-examples
60
+
cdjunit-5/ios
54
61
mvn clean
55
62
```
56
63
@@ -61,32 +68,30 @@ Getting Started with Appium tests in Junit4 and Junit5 on BrowserStack couldn't
61
68
### **Run first test :**
62
69
63
70
- Junit4
64
-
- Switch to `run_first_test` directory under [Android Junit4 examples](android/junit4-examples) or [iOS Junit4 examples](ios/junit4-examples)
65
-
- Follow the steps outlined in the documentation - [Get Started with your first test on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/java/junit)
71
+
- 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`
66
73
67
74
- Junit5
68
-
- Switch to `run_first_test` directory under [Android Junit5 examples](android/junit5-examples) or [iOS Junit5 examples](ios/junit5-examples)
69
-
- Follow the steps outlined in the documentation - [Get Started with your first test on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/java/junit)
70
-
71
-
### **Speed up test execution with parallel testing :**
72
-
73
-
- Junit4
74
-
- Switch to `run_parallel_test` directory under [Android Junit4 examples](android/junit4-examples/) or [iOS Junit4 examples](ios/junit4-examples/)
75
-
- Follow the steps outlined in the documentation - [Get Started with parallel testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/java/junit/parallelize-tests)
76
-
77
-
- Junit5
78
-
- Switch to `run_parallel_test` directory under [Android Junit5 examples](android/junit5-examples/) or [iOS Junit5 examples](ios/junit5-examples/)
79
-
- Follow the steps outlined in the documentation - [Get Started with parallel testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/java/junit/parallelize-tests)
75
+
- 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`
80
77
81
78
### **Use Local testing for apps that access resources hosted in development or testing environments :**
82
79
83
80
- Junit4
84
-
- Switch to `run_local_test` directory under [Android Junit4 examples](android/junit4-examples/) or [iOS Junit4 examples](ios/junit4-examples/)
85
-
- Follow the steps outlined in the documentation - [Get Started with Local testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/java/junit/local-testing)
86
-
87
-
- Junit5
88
-
- Switch to `run_local_test` directory under [Android Junit5 examples](android/junit5-examples/) or [iOS Junit5 examples](ios/junit5-examples/)
89
-
- Follow the steps outlined in the documentation - [Get Started with Local testing on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/java/junit/local-testing)
81
+
- 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)
82
+
- Simply configure the browserstackLocal parameter in the browserstack.yml file accordingly in [Android Junit4 examples](junit-4/android) or [iOS Junit4 examples](junit-4/ios).
83
+
```
84
+
browserstackLocal: true
85
+
```
86
+
- Run `mvn test -P sample-local-test`
87
+
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).
91
+
```
92
+
browserstackLocal: true
93
+
```
94
+
- Run `mvn test -P sample-local-test`
90
95
91
96
**Note**: If you are facing any issues, refer [Getting Help section](#Getting-Help)
0 commit comments