Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

browserstack/testng-appium-app-browserstack

Repository files navigation

This repository demonstrates how to run Appium tests inTestNG on BrowserStack App Automate using BrowserStack SDK.

BrowserStack Logo

Setup

Requirements

  1. Java 8+

    • If Java is not installed, follow these instructions:
      • For Windows, download latest java version fromhere and run the installer executable
      • For Mac and Linux, runjava -version to see what java version is pre-installed. If you want a different version download fromhere
  2. Maven (Only required if using Maven as the build tool)

    • If Maven is not downloaded, download it fromhere
    • For installation, follow the instructionshere
  3. Gradle (Only required if using Gradle as the build tool)

  • If Gradle is not downloaded, download it fromhere
  • For installation, follow the instructionshere

Install the dependencies

To install the dependencies for Android tests, run :

cd android/testng-examplesmvn clean

Or,

To install the dependencies for iOS tests, run :

cd ios/testng-examplesmvn clean

Getting Started

Getting Started with Appium tests in TestNg on BrowserStack couldn't be easier!

Run Sample test :

  • Switch to one of the following directories:Android examples oriOS examples
  • For Maven: Run the following command to execute tests in the Maven environment:
    mvntest -P sample-test
  • For Gradle: Run the following command to execute tests in the Gradle environment:
    gradle clean sampleTest

Use Local testing for apps that access resources hosted in development or testing environments :

  • Simply configure thebrowserstackLocal parameter in thebrowserstack.yml file accordingly inAndroid examples oriOS examples.

    browserstackLocal: true
  • You can use theLocalSample app provided in both folderAndroid examples oriOS examples to run your test. Change the app parameter in thebrowserstack.yml file.

  • For Maven: Run the following command to execute tests in the Maven environment:

    mvntest -P sample-local-test
  • For Gradle: Run the following command to execute tests in the Gradle environment:

    gradle clean sampleLocalTest

-similarly for gradle you can do :- gradle clean sampleLocalTest

Note: If you are facing any issues, referGetting Help section

Integration with other Java frameworks

For other Java frameworks samples, refer to following repositories :

Note: For other test frameworks supported by App-Automate refer ourDeveloper documentation

Getting Help

If you are running into any issues or have any queries, please checkBrowserstack Support page orget in touch with us.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors24

Languages


[8]ページ先頭

©2009-2025 Movatter.jp