Skip to content

Instantly share code, notes, and snippets.

@vjmaiky
Created September 9, 2020 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjmaiky/ce70ba0fe0fc4dec389897b37ee091e7 to your computer and use it in GitHub Desktop.
Save vjmaiky/ce70ba0fe0fc4dec389897b37ee091e7 to your computer and use it in GitHub Desktop.
first run - success
EN610847:HelloDetoxAndroid admin$ detox test --configuration android.emu.debug.example --loglevel verbose
detox[84991] INFO: [test.js] configuration="android.emu.debug.example" loglevel="verbose" useCustomLogger=true forceAdbInstall=false DETOX_START_TIMESTAMP=1599657087222 readOnlyEmu=false reportSpecs=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
detox[84992] INFO: [DetoxServer.js] server listening on localhost:59625...
detox[84992] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:59625
detox[84992] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=9907caaf-881c-eb94-a8a5-c142a9679768
detox[84992] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=9907caaf-881c-eb94-a8a5-c142a9679768
detox[84992] DEBUG: [exec.js/EXEC_CMD, #0] "/Users/admin/Library/Android/sdk/emulator/emulator" -list-avds --verbose
detox[84992] DEBUG: [exec.js/EXEC_CMD, #1] "/Users/admin/Library/Android/sdk/emulator/emulator" -version
detox[84992] DEBUG: [EmulatorVersionResolver.js/EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 30, minor: 0, patch: 26 }
detox[84992] DEBUG: [AndroidDriver.js/ALLOCATE_DEVICE] Trying to allocate a device based on "Pixel_API_28_AOSP"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #2] "/Users/admin/Library/Android/sdk/platform-tools/adb" devices
detox[84992] DEBUG: [exec.js/EXEC_SUCCESS, #2] List of devices attached
detox[84992] DEBUG: [exec.js/EXEC_SUCCESS, #2] * daemon not running; starting now at tcp:5037
* daemon started successfully
detox[84992] DEBUG: [AndroidDriver.js/ALLOCATE_DEVICE] Settled on emulator-10808
detox[84992] DEBUG: [EmulatorLauncher.js/SPAWN_CMD] /Users/admin/Library/Android/sdk/emulator/emulator -verbose -no-audio -no-boot-anim -port 10808 @Pixel_API_28_AOSP
detox[84992] DEBUG: [EmulatorLauncher.js/SPAWN_SUCCESS] emulator: autoconfig: -skin 1080x1920
emulator: autoconfig: -skindir (null)
emulator: autoconfig: -kernel /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//kernel-ranchu
emulator: Target arch = 'x86_64'
emulator: Auto-detect: Kernel image requires new device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: autoconfig: -ramdisk /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//ramdisk.img
emulator: Using initial system image: /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//system.img
emulator: Using initial vendor image: /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//vendor.img
emulator: autoconfig: -data /Users/admin/.android/avd/Pixel_API_28_AOSP.avd/userdata-qemu.img
emulator: autoconfig: -initdata /Users/admin/.android/avd/Pixel_API_28_AOSP.avd/userdata.img
emulator: autoconfig: -cache /Users/admin/.android/avd/Pixel_API_28_AOSP.avd/cache.img
emulator: Increasing RAM size to 1536MB
emulator: VM heap size 0MB is below hardware specified minimum of 384MB,setting it to that value
emulator: System image is read only
emulator: Found 3 DNS servers: 10.99.0.2 192.168.115.7 192.168.0.1emulator: found magic skin width=1080 height=1920 bpp=16
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'qemu.cmdline' = 'androidboot.logcat=v:* androidboot.consolepipe=qemu_pipe,pipe:logcat'
emulator: Adding boot property: 'qemu.logcat' = 'start'
emulator: Requested console port 10808: Inferring adb port 10809.
emulator: CPU Acceleration: working
emulator: CPU Acceleration status: HAXM version 7.5.1 (4) is installed and usable.
emulator: WARNING: Running on a system with less than 6 logical cores. Setting number of virtual cores to 1
emulator: GPU emulation enabled using 'host' mode
emulator: Initializing hardware OpenGLES emulation support
emulator: VERBOSE: MultiDisplay.cpp:304: create display 0
emulator: VERBOSE: MultiDisplay.cpp:393: setDisplayPose 0 x 0 y 0 w 1080 h 1920 dpi 0
emulator: VERBOSE: load_config.cpp:242: Verified boot params were not found.
emulator: Found 3 DNS servers: 10.99.0.2 192.168.115.7 192.168.0.1
Content of hardware configuration file:
hw.cpu.arch = x86_64
hw.cpu.ncore = 1
hw.ramSize = 1536
hw.screen = multi-touch
hw.mainKeys = false
hw.trackBall = false
hw.keyboard = false
hw.keyboard.lid = false
hw.keyboard.charmap = qwerty2
hw.dPad = false
hw.rotaryInput = false
hw.gsmModem = true
hw.gps = true
hw.battery = true
hw.accelerometer = true
hw.gyroscope = true
hw.audioInput = true
hw.audioOutput = true
hw.sdCard = true
disk.cachePartition = true
disk.cachePartition.path = /Users/admin/.android/avd/Pixel_API_28_AOSP.avd/cache.img
disk.cachePartition.size = 66m
test.quitAfterBootTimeOut = -1
test.delayAdbTillBootComplete = 0
test.monitorAdb = 0
hw.lcd.width = 1080
hw.lcd.height = 1920
hw.lcd.depth = 16
hw.lcd.density = 420
hw.lcd.backlight = true
hw.lcd.vsync = 60
hw.gltransport = pipe
hw.gltransport.asg.writeBufferSize = 1048576
hw.gltransport.asg.writeStepSize = 4096
hw.gltransport.asg.dataRingSize = 32768
hw.gltransport.drawFlushInterval = 800
hw.displayRegion.0.1.xOffset = -1
hw.displayRegion.0.1.yOffset = -1
hw.displayRegion.0.1.width = 0
hw.displayRegion.0.1.height = 0
hw.display1.width = 0
hw.display1.height = 0
hw.display1.density = 0
hw.display1.xOffset = -1
hw.display1.yOffset = -1
hw.display1.flag = 0
hw.display2.width = 0
hw.display2.height = 0
hw.display2.density = 0
hw.display2.xOffset = -1
hw.display2.yOffset = -1
hw.display2.flag = 0
hw.display3.width = 0
hw.display3.height = 0
hw.display3.density = 0
hw.display3.xOffset = -1
hw.display3.yOffset = -1
hw.display3.flag = 0
hw.gpu.enabled = true
hw.gpu.mode = host
hw.initialOrientation = portrait
hw.camera.back = emulated
hw.camera.front = none
vm.heapSize = 384
hw.sensors.light = true
hw.sensors.pressure = true
hw.sensors.humidity = true
hw.sensors.proximity = true
hw.sensors.magnetic_field = true
hw.sensors.magnetic_field_uncalibrated = true
hw.sensors.gyroscope_uncalibrated = true
hw.sensors.orientation = true
hw.sensors.temperature = true
hw.sensor.hinge = true
hw.sensor.hinge.count = 0
hw.sensor.hinge.type = 0
hw.sensor.hinge.sub_type = 0
hw.sensor.hinge.fold_to_displayRegion.0.1_at_posture = 1
hw.useext4 = true
hw.arc = false
hw.arc.autologin = false
kernel.path = /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//kernel-ranchu
kernel.newDeviceNaming = yes
kernel.supportsYaffs2 = no
disk.ramdisk.path = /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//ramdisk.img
disk.systemPartition.initPath = /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//system.img
disk.systemPartition.size = 2562m
disk.vendorPartition.initPath = /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//vendor.img
disk.vendorPartition.size = 800m
disk.dataPartition.path = /Users/admin/.android/avd/Pixel_API_28_AOSP.avd/userdata-qemu.img
disk.dataPartition.size = 800m
disk.encryptionKeyPartition.path = /Users/admin/.android/avd/Pixel_API_28_AOSP.avd/encryptionkey.img
PlayStore.enabled = false
avd.name = Pixel_API_28_AOSP
avd.id = Pixel_API_28_AOSP
fastboot.forceColdBoot = false
android.sdk.root = /Users/admin/Library/Android/sdk
android.avd.home = /Users/admin/.android/avd
.
QEMU options list:
emulator: argv[00] = "/Users/admin/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64"
emulator: argv[01] = "-dns-server"
emulator: argv[02] = "10.99.0.2,192.168.115.7,192.168.0.1"
emulator: argv[03] = "-no-audio"
emulator: argv[04] = "-serial"
emulator: argv[05] = "null"
emulator: argv[06] = "-android-ports"
emulator: argv[07] = "10808,10809"
emulator: argv[08] = "-device"
emulator: argv[09] = "goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/data/misc/pstore/pstore.bin"
emulator: argv[10] = "-cpu"
emulator: argv[11] = "android64"
emulator: argv[12] = "-enable-hvf"
emulator: argv[13] = "-smp"
emulator: argv[14] = "cores=2"
emulator: argv[15] = "-m"
emulator: argv[16] = "1536"
emulator: argv[17] = "-lcd-density"
emulator: argv[18] = "420"
emulator: argv[19] = "-nodefaults"
emulator: argv[20] = "-kernel"
emulator: argv[21] = "/Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//kernel-ranchu"
emulator: argv[22] = "-initrd"
emulator: argv[23] = "/Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//ramdisk.img"
emulator: argv[24] = "-drive"
emulator: argv[25] = "if=none,index=0,id=system,if=none,file=/Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//system.img,read-only"
emulator: argv[26] = "-device"
emulator: argv[27] = "virtio-blk-pci,drive=system,modern-pio-notify"
emulator: argv[28] = "-drive"
emulator: argv[29] = "if=none,index=1,id=cache,if=none,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
emulator: argv[30] = "-device"
emulator: argv[31] = "virtio-blk-pci,drive=cache,modern-pio-notify"
emulator: argv[32] = "-drive"
emulator: argv[33] = "if=none,index=2,id=userdata,if=none,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
emulator: argv[34] = "-device"
emulator: argv[35] = "virtio-blk-pci,drive=userdata,modern-pio-notify"
emulator: argv[36] = "-drive"
emulator: argv[37] = "if=none,index=3,id=encrypt,if=none,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576"
emulator: argv[38] = "-device"
emulator: argv[39] = "virtio-blk-pci,drive=encrypt,modern-pio-notify"
emulator: argv[40] = "-drive"
emulator: argv[41] = "if=none,index=4,id=vendor,if=none,file=/Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//vendor.img,read-only"
emulator: argv[42] = "-device"
emulator: argv[43] = "virtio-blk-pci,drive=vendor,modern-pio-notify"
emulator: argv[44] = "-netdev"
emulator: argv[45] = "user,id=mynet"
emulator: argv[46] = "-device"
emulator: argv[47] = "virtio-net-pci,netdev=mynet"
emulator: argv[48] = "-device"
emulator: argv[49] = "virtio-rng-pci"
emulator: argv[50] = "-show-cursor"
emulator: argv[51] = "-L"
emulator: argv[52] = "/Users/admin/Library/Android/sdk/emulator/lib/pc-bios"
emulator: argv[53] = "-soundhw"
emulator: argv[54] = "hda"
emulator: argv[55] = "-vga"
emulator: argv[56] = "none"
emulator: argv[57] = "-append"
emulator: argv[58] = "qemu=1 no_timer_check androidboot.hardware=ranchu androidboot.serialno=EMULATOR30X0X26X0 clocksource=pit no-kvmclock android.qemud=1 console=0 android.checkjni=1 android.bootanim=0 qemu.gles=1 qemu.settings.system.screen_off_timeout=2147483647 qemu.encrypt=1 qemu.vsync=60 qemu.gltransport=pipe qemu.gltransport.drawFlushInterval=800 qemu.opengles.version=196608 qemu.uirenderer=skiagl cma=288M@0-4G ndns=3 qemu.wifi=1 mac80211_hwsim.channels=2 androidboot.android_dt_dir=/sys/bus/platform/devices/ANDR0001:00/properties/android/ skip_initramfs rootwait ro init=/init root=/dev/vda1 loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 qemu.dalvik.vm.heapsize=384m"
emulator: argv[59] = "-android-hw"
emulator: argv[60] = "/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/hardware-qemu.ini"
Concatenated QEMU options:
/Users/admin/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64 -dns-server 10.99.0.2,192.168.115.7,192.168.0.1 -no-audio -serial null -android-ports 10808,10809 -device goldfish_pstore,addr=0xff018000,size=0x10000,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/data/misc/pstore/pstore.bin -cpu android64 -enable-hvf -smp cores=2 -m 1536 -lcd-density 420 -nodefaults -kernel /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//kernel-ranchu -initrd /Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//ramdisk.img -drive if=none,index=0,id=system,if=none,file=/Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//system.img,read-only -device virtio-blk-pci,drive=system,modern-pio-notify -drive if=none,index=1,id=cache,if=none,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/cache.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=cache,modern-pio-notify -drive if=none,index=2,id=userdata,if=none,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/userdata-qemu.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=userdata,modern-pio-notify -drive if=none,index=3,id=encrypt,if=none,file=/Users/admin/.android/avd/Pixel_API_28_AOSP.avd/encryptionkey.img.qcow2,overlap-check=none,cache=unsafe,l2-cache-size=1048576 -device virtio-blk-pci,drive=encrypt,modern-pio-notify -drive if=none,index=4,id=vendor,if=none,file=/Users/admin/Library/Android/sdk/system-images/android-28/default/x86_64//vendor.img,read-only -device virtio-blk-pci,drive=vendor,modern-pio-notify -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -device virtio-rng-pci -show-cursor -L /Users/admin/Library/Android/sdk/emulator/lib/pc-bios -soundhw hda -vga none -append 'qemu=1 no_timer_check androidboot.hardware=ranchu androidboot.serialno=EMULATOR30X0X26X0 clocksource=pit no-kvmclock android.qemud=1 console=0 android.checkjni=1 android.bootanim=0 qemu.gles=1 qemu.settings.system.screen_off_timeout=2147483647 qemu.encrypt=1 qemu.vsync=60 qemu.gltransport=pipe qemu.gltransport.drawFlushInterval=800 qemu.opengles.version=196608 qemu.uirenderer=skiagl cma=288M@0-4G ndns=3 qemu.wifi=1 mac80211_hwsim.channels=2 androidboot.android_dt_dir=/sys/bus/platform/devices/ANDR0001:00/properties/android/ skip_initramfs rootwait ro init=/init root=/dev/vda1 loop.max_part=7 ramoops.mem_address=0xff018000 ramoops.mem_size=0x10000 memmap=0x10000$0xff018000 qemu.dalvik.vm.heapsize=384m' -android-hw /Users/admin/.android/avd/Pixel_API_28_AOSP.avd/hardware-qemu.ini
emulator: Android qemu version 30.0.26.0 (build_id 6755297) (CL:N/A)
emulator: Starting QEMU main loop
emulator: Adding boot property: 'ro.opengles.version' = '196608'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
emulator: Adding boot property: 'dalvik.vm.heapsize' = '384m'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '420'
emulator: goldfish_events.have-dpad: false
emulator: goldfish_events.have-trackball: false
emulator: goldfish_events.have-camera: true
emulator: goldfish_events.have-keyboard: false
emulator: goldfish_events.have-lidswitch: false
emulator: goldfish_events.have-tabletmode: false
emulator: goldfish_events.have-touch: false
emulator: goldfish_events.have-multitouch: true
emulator: WARNING: Requested adb port (10809) is outside the recommended range [5555,5586]. ADB may not function properly for the emulator. See -help-port for details.
Not using any http proxy
emulator: Adding boot property: 'qemu.timezone' = 'Europe/Bucharest'
emulator: android_hw_fingerprint_init: fingerprint qemud listen service initialized
emulator: emulator_window_fb_rotate
emulator: No acpi ini file provided, using default
emulator: VERBOSE: AdbInterface.cpp:385: Found: 3 adb executables
emulator: VERBOSE: AdbInterface.cpp:387: Adb: /Users/admin/Library/Android/sdk/platform-tools/adb
emulator: VERBOSE: AdbInterface.cpp:387: Adb: /Users/admin/Library/Android/sdk/platform-tools/adb
emulator: VERBOSE: AdbInterface.cpp:387: Adb: /Users/admin/Library/Android/sdk/tools/adb
emulator: VERBOSE: AdbInterface.cpp:408: Path:/Users/admin/Library/Android/sdk/platform-tools/adb protocol version: 41
emulator: VERBOSE: AdbInterface.cpp:408: Path:/Users/admin/Library/Android/sdk/platform-tools/adb protocol version: 41
emulator: VERBOSE: AdbInterface.cpp:408: Path:/Users/admin/Library/Android/sdk/tools/adb protocol version: 40
emulator: Adding boot property: 'qemu.cmdline' = 'androidboot.logcat=v:* androidboot.consolepipe=qemu_pipe,pipe:logcat'
emulator: Adding boot property: 'qemu.logcat' = 'start'
emulator: Adding boot property: 'ro.opengles.version' = '196608'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
emulator: Adding boot property: 'dalvik.vm.heapsize' = '384m'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '0'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '420'
emulator: Adding boot property: 'qemu.timezone' = 'Europe/Bucharest'
emulator: _hwFingerprint_connect: connect finger print listen is called
emulator: onGuestClose: [0x7f8471ed1ea0] Adb closed by guest
emulator: onGuestSendCommand: [0x7f8471edb870] Adb connected, start proxing data
detox[84992] DEBUG: [exec.js/EXEC_CMD, #3] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "getprop dev.bootcomplete"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #4] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "getprop ro.build.version.sdk
"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #5] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "settings put global animator
_duration_scale 0"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #6] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "settings put global window_a
nimation_scale 0"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #7] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "settings put global transiti
on_animation_scale 0"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #8] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "dumpsys power | grep \"^[ ]*
m[UW].*=\""
detox[84992] DEBUG: [exec.js/EXEC_CMD, #9] "/Users/admin/Library/Android/sdk/build-tools/29.0.2/aapt" dump badging "/Users/admin/HelloDetoxAndroid/and
roid/app/build/outputs/apk/debug/app-debug.apk" | grep -e "package: name="
detox[84992] DEBUG: [exec.js/EXEC_CMD, #10] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "pm list packages com.hellod
etoxandroid"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #11] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 uninstall com.hellodetoxandroid
detox[84992] DEBUG: [exec.js/EXEC_CMD, #12] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "pm list packages com.hellod
etoxandroid.test"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #13] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "rm -fr /data/local/tmp/deto
x"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #14] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "mkdir -p /data/local/tmp/de
tox"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #15] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 push "/Users/admin/HelloDetoxAndro
id/android/app/build/outputs/apk/debug/app-debug.apk" "/data/local/tmp/detox/Application.apk"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #16] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "pm install -r -g -t /data/l
ocal/tmp/detox/Application.apk"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #17] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 push "/Users/admin/HelloDetoxAndro
id/android/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk" "/data/local/tmp/detox/Test.apk"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #18] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "pm install -r -g -t /data/l
ocal/tmp/detox/Test.apk"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #19] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "am force-stop com.hellodeto
xandroid"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #20] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "date +\"%m-%d %T.000\""
detox[84992] DEBUG: [exec.js/EXEC_CMD, #21] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 reverse tcp:59625 tcp:59625
detox[84992] DEBUG: [exec.js/EXEC_CMD, #22] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "pm list instrumentation"
detox[84992] DEBUG: [exec.js/SPAWN_CMD, #23] [pid=85034] /Users/admin/Library/Android/sdk/platform-tools/adb -s emulator-10808 shell am instrument -w
-r -e detoxServer ws://localhost:59625 -e detoxSessionId 9907caaf-881c-eb94-a8a5-c142a9679768 -e debug false com.hellodetoxandroid.test/androidx.test.
runner.AndroidJUnitRunner
detox[84992] DEBUG: [exec.js/EXEC_CMD, #24] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "ps | grep \"com\.hellodetox
android$\""
detox[84992] DEBUG: [exec.js/SPAWN_CMD, #25] [pid=85036] /Users/admin/Library/Android/sdk/platform-tools/adb -s emulator-10808 shell "logcat -T \"09-0
9 16:11:36.000\" --pid=7319 -f /sdcard/161129708_0.log"
detox[84992] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=9907caaf-881c-eb94-a8a5-c142a9679768)
detox[84992] DEBUG: [exec.js/EXEC_CMD, #26] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell du /sdcard/161129708_0.log
detox[84992] DEBUG: [DetoxServer.js/LOGIN] role=testee, sessionId=9907caaf-881c-eb94-a8a5-c142a9679768
detox[84992] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=testee, sessionId=9907caaf-881c-eb94-a8a5-c142a9679768
detox[84992] INFO: Example is assigned to emulator-10808 (Pixel_API_28_AOSP)
detox[84992] INFO: Example: should have welcome screen
detox[84992] DEBUG: [exec.js/EXEC_CMD, #27] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "date +\"%m-%d %T.000\""
detox[84992] DEBUG: [exec.js/KILL] sending SIGINT to [pid = 85036]: /Users/admin/Library/Android/sdk/platform-tools/adb -s emulator-10808 shell logcat
-T "09-09 16:11:36.000" --pid=7319 -f /sdcard/161129708_0.log
detox[84992] DEBUG: [exec.js/SPAWN_CMD, #28] [pid=85039] /Users/admin/Library/Android/sdk/platform-tools/adb -s emulator-10808 shell "logcat -T \"09-0
9 16:11:40.000\" --pid=7319 -f /sdcard/161129708_1.log"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #29] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell du /sdcard/161129708_1.log
detox[84992] DEBUG: [exec.js/EXEC_CMD, #30] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "date +\"%m-%d %T.000\""
detox[84992] DEBUG: [exec.js/KILL] sending SIGINT to [pid = 85039]: /Users/admin/Library/Android/sdk/platform-tools/adb -s emulator-10808 shell logcat
-T "09-09 16:11:40.000" --pid=7319 -f /sdcard/161129708_1.log
detox[84992] INFO: Example: should have welcome screen [OK]
detox[84992] DEBUG: [Artifact.js/FILE_WRITE_CREATE] creating file "artifacts/android.emu.debug.example.2020-09-09 13-11-27Z/detox_pid_1599657087222.tr
ace.json"
detox[84992] DEBUG: [Artifact.js/FILE_WRITE] writing to "artifacts/android.emu.debug.example.2020-09-09 13-11-27Z/detox_pid_1599657087222.trace.json"
via appending
detox[84992] DEBUG: [exec.js/EXEC_CMD, #31] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 pull "/sdcard/161129708_1.log" "ar
tifacts/android.emu.debug.example.2020-09-09 13-11-27Z/✓ Example should have welcome screen/process.log"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #32] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "rm \"/sdcard/161129708_1.l
og\""
detox[84992] DEBUG: [exec.js/EXEC_CMD, #33] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 pull "/sdcard/161129708_0.log" "ar
tifacts/android.emu.debug.example.2020-09-09 13-11-27Z/emulator-10808 2020-09-09 13-11-43Z.startup.log"
detox[84992] DEBUG: [exec.js/EXEC_CMD, #34] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 shell "rm \"/sdcard/161129708_0.l
og\""
detox[84992] DEBUG: [Artifact.js/MOVE_FILE] moving "/private/var/folders/c9/1qbmj4x968b3nmqt9y5954wr0000gn/T/3338bd04-61b7-48d4-b9f1-2e5e72beda0f.deto
x.log" to artifacts/android.emu.debug.example.2020-09-09 13-11-27Z/detox_pid_84992.log
detox[84992] DEBUG: [Artifact.js/MOVE_FILE] moving "/private/var/folders/c9/1qbmj4x968b3nmqt9y5954wr0000gn/T/10ec6077-ba3d-40cd-88ca-e76e97343754.deto
x.log" to artifacts/android.emu.debug.example.2020-09-09 13-11-27Z/detox_pid_84992.json.log
detox[84992] DEBUG: [exec.js/KILL] sending SIGINT to [pid = 85034]: /Users/admin/Library/Android/sdk/platform-tools/adb -s emulator-10808 shell am ins
trument -w -r -e detoxServer ws://localhost:59625 -e detoxSessionId 9907caaf-881c-eb94-a8a5-c142a9679768 -e debug false com.hellodetoxandroid.test/and
roidx.test.runner.AndroidJUnitRunner
detox[84992] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=9907caaf-881c-eb94-a8a5-c142a9679768
detox[84992] DEBUG: [DetoxServer.js/DISCONNECT] role=testee, sessionId=9907caaf-881c-eb94-a8a5-c142a9679768
detox[84992] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=tester not connected, cannot fw action (sessionId=9907caaf-881c-eb94-a8a5-c142a9679768)
detox[84992] DEBUG: [exec.js/KILL] sending SIGINT to [pid = 85034]: /Users/admin/Library/Android/sdk/platform-tools/adb -s emulator-10808 shell am ins
trument -w -r -e detoxServer ws://localhost:59625 -e detoxSessionId 9907caaf-881c-eb94-a8a5-c142a9679768 -e debug false com.hellodetoxandroid.test/and
roidx.test.runner.AndroidJUnitRunner
detox[84992] DEBUG: [exec.js/EXEC_CMD, #35] "/Users/admin/Library/Android/sdk/platform-tools/adb" -s emulator-10808 reverse --remove tcp:59625
detox[84992] DEBUG: [DetoxServer.js/WS_CLOSE] Detox server connections terminated gracefully
PASS e2e/firstTest.e2e.js (14.685 s)
Example
✓ should have welcome screen (1503 ms)
EN610847:HelloDetoxAndroid admin$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment