Comments (8)
@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.
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.
It doesn't work, this is the output:
and here the execution of the command in config.yml
from android-orb.
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.
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.
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.
yes it works
from android-orb.
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)
- android orb version 1 was able to digest and use matrix job parameters, now fails with The value of `name` must be a string HOT 1
- ANDROID_NDK_HOME not correct
- Save-grade-cache command fails when /tmp/gradle_cache_seed file does not exists. HOT 4
- `find` Error when using restore-gradle-cache command from v2.1.1
- Restore Gradle Cache Test HOT 6
- `wait-for-emulator` hangs on Android API Level 31 HOT 4
- Add adb pull destination folder HOT 1
- Passing environment variables to `start-emulator-and-run-tests` arguments causes job to fail as of 2.1.1 HOT 5
- How to run "adb shell settings put secure long_press_timeout 2000" before execution of test HOT 3
- fastlane-deploy command does not exist HOT 4
- Trying to create AVD in the background results in failure HOT 2
- Options "no-output-timeout" not being used by run-tests command HOT 1
- android/create-google-play-key does not print contents of the environment variable to JSON file HOT 1
- Java 17 is not being set to the environment HOT 3
- pre-test-command gets error `environment: line 8: mvn: command not found` HOT 5
- Using newer version of Android SDK causes emulator booting for too long HOT 6
- Android Gradle plugin requires Java 17 to run. You are currently using Java 11. HOT 2
- cgroup changed for latest orb version? HOT 3
- Latest Orb Does Not Work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-orb.