Skip to content

Commit 399c107

Browse files
committed
Updated Readme
1 parent 97b8d8b commit 399c107

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,18 @@ This repository demonstrates how to run Appium Java tests on BrowserStack App Au
1212
- For Windows, download latest java version from [here](https://java.com/en/download/) and run the installer executable
1313
- 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/)
1414

15-
2. Eclipse IDE or IntelliJ IDEA
15+
2. Maven
1616

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)
1819

1920
### Install the dependencies
2021

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
2223

23-
2. Clean and build the project
24+
```cmd
25+
mvn clean install
26+
```
2427

2528
## Getting Started
2629

@@ -42,7 +45,7 @@ Ensure that @ symbol is prepended to the file path in the above request. Please
4245

4346
### **Run first test :**
4447

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
4649

4750
- Replace `YOUR_USERNAME` & `YOUR_ACCESS_KEY` with your BrowserStack access credentials
4851

@@ -52,9 +55,21 @@ Open `BrowserStackAndroid.java` file for Android test or `BrowserStackiOS.java`
5255

5356
- If you have uploaded your own app update the test case
5457

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+
```
5671
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)
5873
5974
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)
6075

0 commit comments

Comments
 (0)