This repo provides details on how to upload and download files from BrowserStack remote terminals.
- Clone the repo
- Install dependencies
mvn compile - Update the environment variables with your BrowserStack Username and Access Key
- Run a single tests to upload a file on a desktop browser.
mvn -P file-upload-desktop-single test - Run parallel tests to upload a file on desktop browsers.
mvn -P file-upload-desktop-parallel test
- Run a single tests to upload a file on an android mobile browser.
mvn -P file-upload-android-single test - Run parallel tests to upload a file on android mobile browsers.
mvn -P file-upload-android-parallel test
- Run a single tests to download a file on a desktop browser.
mvn -P file-download-desktop-single test - Run parallel tests to download a file on desktop browsers.
mvn -P file-download-desktop-parallel test
- You can view your Automate test results on the BrowserStack Automate dashboard.
- 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>
- Test File Upload: https://www.browserstack.com/docs/automate/selenium/test-file-upload
- Test File Download: https://www.browserstack.com/docs/automate/selenium/test-file-download