Skip to content

Add Gradle support for TestNG with Appium - #41

Merged
rajpatta merged 2 commits into
browserstack:masterfrom
rhisav-25:gradle-support-testng-appium
Apr 4, 2025
Merged

rajpatta merged 2 commits into
browserstack:masterfrom
rhisav-25:gradle-support-testng-appium

Conversation

@rhisav-25

@rhisav-25 rhisav-25 commented Mar 25, 2025 •

Copy link
Copy Markdown
Contributor

JIRA :- https://browserstack.atlassian.net/browse/AAP-15642
Added build.gradle and settings.gradle for gradle config
Updated Readme and workflow for steps to run tests using gradle.

@rhisav-25
rhisav-25 requested a review from a team as a code owner March 25, 2025 14:11
@rhisav-25 rhisav-25 changed the title Add Gradle support for TestNG and Appium Add Gradle support for TestNG with Appium Mar 25, 2025
- name: Run Gradle profile sampleLocalTest for testng Android
run: |
cd android/testng-examples
gradle clean sampleLocalTest -Dbrowserstack.app=./LocalSample.apk

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
gradle clean sampleLocalTest -Dbrowserstack.app=./LocalSample.apk
gradle clean sampleLocalTest -D"browserstack.app"="./LocalSample.apk"

cd android/testng-examples
gradle clean sampleTest

- name: Run Gradle profile sampleTest for testng Android

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is profile test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in maven testing too similarly profile testing was written so tried to make it consistent. now corrected it.

cd ios/testng-examples
gradle clean sampleTest

- name: Run Gradle profile sampleTest for testng ios

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this test why this using sampleLocalTest but apps are not passed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was a mistake. corrected it

@rajpatta
rajpatta merged commit 82a29e3 into browserstack:master Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants