browserstack / github-actions

A collection of GitHub Actions for BrowserStack. For internal reference: https://browserstack.atlassian.net/wiki/spaces/ENG/pages/1750928573/GitHub+Integration+via+GitHub+Actions
MIT License
54 stars 36 forks source link

How to run a Espresso test with this action #8

Open dinisnunes1 opened 3 years ago

dinisnunes1 commented 3 years ago

Could this actions upload and start an android native test using Espresso?

shawnlobo96 commented 3 years ago

@dinisnunes1 If you follow the steps on https://www.browserstack.com/docs/automate/selenium/github-actions,

The setup for GitHub actions remains the same till step 2.

Step 3 onwards is where the documentation is specific to Selenium/Appium testing.

You should be able to upload the app and start a test using the action. You'll need to add in the steps (curl commands) to upload the app and execute the test.

Unlike Selenium/Appium tests, for Espresso, the App and test APK are uploaded to Browserstack and the test is executed on Browserstack without the need of a client (Selenium/Appium test script).

Using GitHub Actions may not be very useful for Espresso tests IMO since you'll need to also build a polling script to keep checking the status of the build on Browserstack and only once the build completes execution, teardown the local tunnel.