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.
- 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.
-
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
- Clone the repo.
- Install dependencies.
./gradlew build - Update the environment variables with your BrowserStack Username and Access Key.
-
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
-
Using Maven
mvn -Dtest=IosChromeTest test -
Using Gradle
./gradlew test --tests IosChromeTest
- You can view your App-Automate test results on the BrowserStack App-Automate dashboard.
- Apps used to test on Android:
- Wikipedia Sample App
- Chrome Mobile App
- Apps used to test on iOS:
- BStack Sample App
- Safari Mobile App
- Chrome Mobile App