Skip to content

Commit d0602f8

Browse files
committed
resolving comments for consistency
1 parent 0052b56 commit d0602f8

File tree

4 files changed

+26
-12
lines changed

4 files changed

+26
-12
lines changed

.github/workflows/maven-workflow-run.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ jobs:
8282
cd ios
8383
mvn compile
8484
mvn test -P sample-test
85-
- name: Run gradle task for android
85+
- name: Run gradle task for android
8686
run: |
8787
cd android
8888
gradle clean sampleTest
89-
- name: Run gradle task sample-local-test for android
89+
- name: Run gradle task sample-local-test for android
9090
run: |
9191
cd android
9292
gradle clean sampleLocalTest -D"browserstack.app"="./LocalSample.apk"
93-
- name: Run gradle task for ios
93+
- name: Run gradle task for ios
9494
run: |
9595
cd ios
9696
gradle clean sampleTest
97-
- name: Run gradle task sample-local-test for ios
97+
- name: Run gradle task sample-local-test for ios
9898
run: |
9999
cd ios
100100
gradle clean sampleLocalTest -D"browserstack.app"="./LocalSample.ipa"

README.md

+20-6
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ This repository demonstrates how to run Appium tests in Cucumber Testng on Brows
1414
- For Windows, download latest java version from [here](https://java.com/en/download/) and run the installer executable
1515
- 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/)
1616

17-
2. Maven
17+
2. Maven (Only required if using Maven as the build tool)
1818
- If Maven is not downloaded, download it from [here](https://maven.apache.org/download.cgi)
1919
- For installation, follow the instructions [here](https://maven.apache.org/install.html)
2020

21-
3. Gradle
21+
3. Gradle (Only required if using Gradle as the build tool)
2222
- If Gradle is not downloaded, download it from [here](https://gradle.org/releases/)
2323
- For installation, follow the instructions [here](https://gradle.org/install/)
2424

@@ -46,17 +46,31 @@ Getting Started with Appium tests in Cucumber TestNg on BrowserStack couldn't be
4646
### **Run Sample test :**
4747

4848
- Switch to one of the following directories: [Android examples](android) or [iOS examples](ios)
49-
- Run the following maven command `mvn test -P sample-test` to run in maven enviroment.
50-
- Run the following gradle command `gradle clean sampleTest` to run in gradle enviroment.
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+
```
5157

5258
### **Use Local testing for apps that access resources hosted in development or testing environments :**
5359

5460
- Simply configure the `browserstackLocal` parameter in the `browserstack.yml` file accordingly in [Android examples](android) or [iOS examples](ios).
5561
```
5662
browserstackLocal: true
5763
```
58-
- You can use the `LocalSample` app provided in both folder [Android examples](android) or [iOS examples](ios) 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`
59-
64+
- You can use the `LocalSample` app provided in both folder [Android examples](android) or [iOS examples](ios) 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+
```
6074
6175
**Note**: If you are facing any issues, refer [Getting Help section](#Getting-Help)
6276

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ task sampleLocalTest(type: Test) {
5656
jvmArgs "-javaagent:${browserstackSDKArtifact.file}"
5757
}
5858
scanForTestClasses = false
59-
}
59+
}

ios/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ task sampleLocalTest(type: Test) {
5656
jvmArgs "-javaagent:${browserstackSDKArtifact.file}"
5757
}
5858
scanForTestClasses = false
59-
}
59+
}

0 commit comments

Comments
 (0)