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
+22-7Lines changed: 22 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,18 @@ This repository demonstrates how to run Appium Java tests on BrowserStack App Au
12
12
- For Windows, download latest java version from [here](https://java.com/en/download/) and run the installer executable
13
13
- 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/)
14
14
15
-
2.Eclipse IDE or IntelliJ IDEA
15
+
2.Maven
16
16
17
-
- If not installed, download and install Eclipse IDE from [here](https://www.eclipse.org/downloads/) or IntelliJ IDEA from [here](https://www.jetbrains.com/idea/download/#section=windows)
17
+
- If Maven is not downloaded, download it from [here](https://maven.apache.org/download.cgi)
18
+
- For installation, follow the instructions [here](https://maven.apache.org/install.html)
18
19
19
20
### Install the dependencies
20
21
21
-
1.Import the `java-browserstack` Maven project as an "Existing Maven project" in your IDE
22
+
1.Run the following command in the project's base folder
22
23
23
-
2. Clean and build the project
24
+
```cmd
25
+
mvn clean install
26
+
```
24
27
25
28
## Getting Started
26
29
@@ -42,7 +45,7 @@ Ensure that @ symbol is prepended to the file path in the above request. Please
42
45
43
46
### **Run first test :**
44
47
45
-
Open `BrowserStackAndroid.java` file for Android test or `BrowserStackiOS.java`for iOS test
48
+
Open `BrowserStackAndroid.java` file in the `android` directory or `BrowserStackiOS.java`in the `ios` directory
46
49
47
50
- Replace `YOUR_USERNAME` & `YOUR_ACCESS_KEY` with your BrowserStack access credentials
48
51
@@ -52,9 +55,21 @@ Open `BrowserStackAndroid.java` file for Android test or `BrowserStackiOS.java`
52
55
53
56
- If you have uploaded your own app update the test case
54
57
55
-
- Run `BrowserStackAndroid.java` for android test or `BrowserStackiOS.java` for iOS test
58
+
- To run the test, use the following command in the base directory :
59
+
60
+
- For Android test, run
61
+
62
+
```cmd
63
+
mvn test -P android-first-test
64
+
```
65
+
66
+
- For iOS test, run
67
+
68
+
```cmd
69
+
mvn test -P ios-first-test
70
+
```
56
71
57
-
--You can access the test execution results, and debugging information such as video recording, network logs on [App Automate dashboard](https://app-automate.browserstack.com/dashboard)
72
+
- You can access the test execution results, and debugging information such as video recording, network logs on [App Automate dashboard](https://app-automate.browserstack.com/dashboard)
58
73
59
74
For more details, refer to our documentation - [Get Started with your first test on App Automate](https://www.browserstack.com/docs/app-automate/appium/getting-started/java)
0 commit comments