Giter Club home page Giter Club logo

Comments (8)

ryanbourdais avatar ryanbourdais commented on August 19, 2024

@skychiarottoa Have you tried adding abd pull to the parameter post-emulator-launch-assemble-command? This command will run after the emulator has been launched, and before commencing wait-for-emulator

from android-orb.

skychiarottoa avatar skychiarottoa commented on August 19, 2024

I will try, but the command should be run after ui tests are run. "adb pull" allows to copy "screen shots images" generated by the execution of tests.
This parameter "post-emulator-launch-assemble-command" can be used with "start-emulator-and-run-tests" command too or I have to use "run-ui-tests" command?

from android-orb.

skychiarottoa avatar skychiarottoa commented on August 19, 2024

It doesn't work, this is the output:
image

and here the execution of the command in config.yml
image

from android-orb.

ryanbourdais avatar ryanbourdais commented on August 19, 2024

Hi @skychiarottoa, can you try splitting up start-emulator-and-run-tests ? All of the commands are in the orb, but you can run create-avd followed by start-emulator then run-tests, this will allow you to run any steps after run-tests that you please. The emulator will continue to run in background until kill-emulators is run.

from android-orb.

skychiarottoa avatar skychiarottoa commented on August 19, 2024

Ok, I wanted to avoid this solution since it seem to me in contrast with the usefulness/goal of the orb. it allows me to keep config.yml as simple as possible.
It could be useful to add a parameter "adb_pull_destination_folder" to your command.
"adb pull" can be run inside you command start-emulator-and-run-tests only if the parameter "adb_pull_destination_folder" is set.

It very usefull and common to see app's screen shot attachments when a test fails.

Il will try your solution

thx

from android-orb.

JalexChen avatar JalexChen commented on August 19, 2024

hi @skychiarottoa - were you able to get this working with @ryanbourdais suggestion? would love to hear back and include the pull destination folder parameter if this is the case

from android-orb.

skychiarottoa avatar skychiarottoa commented on August 19, 2024

yes it works

from android-orb.

JalexChen avatar JalexChen commented on August 19, 2024

Thanks for the update @skychiarottoa. Closing this issue out and creating a new one to add a pull destination folder parameter

from android-orb.

Related Issues (20)

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.