Giter VIP home page Giter VIP logo

espresso-browserstack's Introduction

espresso-browserstack

Espresso Integration with BrowserStack

BrowserStack Logo

Setup

  • Clone the repo
  • Download JDK8 from here
  • Update your JDK location via Project Structure (Android Studio)
    • Go to File > Project Structure.
    • Select the SDK Location section in the list of the left.
    • Enter the absolute path of your installed JDK in the text box.
  • Build the main application: ./gradlew assemble (apk will be generated in the app/build/outputs/apk/debug/ directory)
  • Build the test application: ./gradlew assembleAndroidTest (apk will be generated in the app/build/outputs/apk/androidTest/debug/ directory)
  • Upload both the apk files to BrowserStack and start a session. Refer our documentation for details: Using Espresso with BrowserStack

Notes

Additional Resources

espresso-browserstack's People

Contributors

agundawar avatar bstack-security-github avatar deepwired avatar dhimil avatar nakula avatar pulkitsharma07 avatar rajpatta avatar zemotacqy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

espresso-browserstack's Issues

Screenshots not displaying with new non-deprecated methods

Right now all classes and methods from androidx.test.runner.screenshot are deprecated. Current solution require usage of the new api from androidx.test.espresso.screenshot and saving files with androidx.test.services.storage.TestStorage which resolve some issues with external storage on API 32+:

onView(isRoot())
  .captureToBitmap()
  .writeToTestStorage(screenshotName)

Using this method unfortunately show error on dashboard (probably screenshoot cannot be extracted from the device):
image

Edit

Currently only working solution for Android Q and above is to use ContentProvider for storing screenshots in downloads

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.