Skip to content

BrowserStackCE/java-multiplatform-scenarios

Repository files navigation

Java MultiPlatform Scenarios BrowserStack Java Selenium

This repo provides an end-to-end user flow which includes a mobile app and a mobile browser in a single session on BrowserStack App-Automate.

Steps performed during the execution of the test are mentioned below.

  • Open the sample app and perform certain actions.
  • Navigate to a mobile browser and login to the BStackDemo website.
  • Then navigate back to the sample app and perform additional actions.

Using Maven

Setup

  • Export the environment variables for the Username and Access Key of your BrowserStack account.
    export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
  • Clone the repo.
  • Install dependencies.
    mvn compile
    
  • Update the environment variables with your BrowserStack Username and Access Key.

Running your tests

  • Run end-to-end test on Android device using Chrome mobile browser.

    mvn -Dtest=AndroidE2ETest test
    
  • Run end-to-end test on iOS device using Safari mobile browser.

    mvn -Dtest=IosSafariE2ETest test
    
  • Run end-to-end test on iOS device using Chrome mobile browser.

    mvn -Dtest=IosSafariE2ETest test
    

Using Gradle

Setup

Running your tests

  • Run end-to-end test on Android device using Chrome mobile browser.

    ./gradlew test --tests AndroidE2ETest
    
  • Run end-to-end test on iOS device using Safari mobile browser.

    ./gradlew test --tests IosSafariE2ETest
    
  • Run end-to-end test on iOS device using Chrome mobile browser.

    ./gradlew test --tests IosChromeE2ETest
    

Running your tests on Automate on iOS device in Chrome browser

  • Using Maven

    mvn -Dtest=IosChromeTest test
    
  • Using Gradle

    ./gradlew test --tests IosChromeTest
    

Notes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages