Skip to content

Instantly share code, notes, and snippets.

@vjmaiky
Created September 24, 2020 12:53
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/ac00d942a22c014692cf981c58b495aa to your computer and use it in GitHub Desktop.
Save vjmaiky/ac00d942a22c014692cf981c58b495aa to your computer and use it in GitHub Desktop.
EN610847:Archive-clean admin$ detox test --configuration android.emu.debug --loglevel trace
detox[72949] INFO: [test.js] configuration="android.emu.debug" loglevel="trace" useCustomLogger=true forceAdbInstall=false DETOX_START_TIMESTAMP=1600951915188 readOnlyEmu=false reportSpecs=true jest --config e2e/config.json --testNamePattern '^((?!:ios:).)*$' --maxWorkers 1 e2e
detox[72951] TRACE: [Detox.js/DETOX_CREATE] created a Detox instance with config:
{"artifactsConfig":{"rootDir":"artifacts/android.emu.debug.2020-09-24 12-51-55Z","plugins":{"log":{"enabled":true,"keepOnlyFailedTestsArtifacts":false},"screenshot":{"enabled":true,"shouldTakeAutomaticSnapshots":true,"keepOnlyFailedTestsArtifacts":true,"takeWhen":{"testStart":false,"testDone":true,"appNotReady":true}},"video":{"simulator":{"codec":"hevc"},"enabled":false,"keepOnlyFailedTestsArtifacts":false},"instruments":{"enabled":false,"keepOnlyFailedTestsArtifacts":false},"timeline":{"enabled":true},"uiHierarchy":{"enabled":true,"keepOnlyFailedTestsArtifacts":false}},"pathBuilder":{"_rootDir":"artifacts/android.emu.debug.2020-09-24 12-51-55Z"}},"behaviorConfig":{"init":{"reinstallApp":true,"exposeGlobals":true,"launchApp":true},"cleanup":{"shutdownDevice":false}},"cliConfig":{"configuration":"android.emu.debug","forceAdbInstall":"false","loglevel":"trace","useCustomLogger":"true"},"deviceConfig":{"binaryPath":"android/app/build/outputs/apk/debug/app-debug.apk","build":"cd android && ./gradlew app:assembleDebug app:assembleAndroidTest -DtestBuildType=debug && cd ..","type":"android.emulator","device":{"avdName":"Pixel_API_28_AOSP"}},"runnerConfig":{"testRunner":"jest","runnerConfig":"e2e/config.json","specs":"e2e"},"sessionConfig":{"autoStart":true,"server":"ws://localhost:51302","sessionId":"d6f111d8-7569-f0d0-903f-cc6f35769b41"},"errorBuilder":{"filepath":"/Users/admin/Downloads/Archive-clean/.detoxrc.json","contents":{"testRunner":"jest","runnerConfig":"e2e/config.json","artifacts":{"plugins":{"log":"all","screenshot":{"enabled":true,"shouldTakeAutomaticSnapshots":true,"keepOnlyFailedTestsArtifacts":true,"takeWhen":{"testStart":false,"testDone":true,"appNotReady":true}},"timeline":"all","uiHierarchy":"enabled","video":{"simulator":{"codec":"hevc"}}}},"configurations":{"ios":{"type":"ios.simulator","binaryPath":"bin/paperround.app","device":{"type":"iPhone 11"}},"android":{"type":"android.emulator","binaryPath":"SPECIFY_PATH_TO_YOUR_APP_BINARY","device":{"avdName":"Pixel_2_API_29"}},"ios.sim.debugxcworkspace":{"binaryPath":"bin/paperrround.app","type":"ios.simulator","device":{"name":"iPhone 11 Pro","os":"14.0"}},"ios.sim":{"binaryPath":"bin/paperrround.app","type":"ios.simulator","device":{"name":"iPhone X","os":"12.4"}},"ios.sim.cworkspace":{"binaryPath":"ios/build/Build/Products/Debug-iphonesimulator/endava.app","build":"xcodebuild -workspace ios/paperrround.xcworkspace -scheme paperrround -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 11' -derivedDataPath ios/build","type":"ios.simulator","device":{"name":"iPhone 11","os":"14.0"}},"ios.sim.workspace":{"binaryPath":"ios/build/Build/Products/Debug-iphonesimulator/endava.app","build":"xcodebuild -workspace ios/paperrround.xcworkspace -scheme paperrround -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 11' -derivedDataPath ios/build","type":"ios.simulator","device":{"name":"iPhone x","os":"12.4"}},"ios.sim.workspace.release":{"binaryPath":"ios/build/Build/Products/Release-iphonesimulator/endava.app","build":"xcodebuild -workspace ios/paperrround.xcworkspace -scheme paperrround -configuration Release -destination 'platform=iOS Simulator,name=iPhone 11' -derivedDataPath ios/build","type":"ios.simulator","device":{"name":"iPhone x","os":"12.4"}},"android.emu":{"type":"android.emulator","binaryPath":"bin/paperrround-a797e13e01d940ecbeeb93d0d494952a-signed.apk","device":{"avdName":"Pixel_API_28_AOSP"}},"android.emu.debug":{"binaryPath":"android/app/build/outputs/apk/debug/app-debug.apk","build":"cd android && ./gradlew app:assembleDebug app:assembleAndroidTest -DtestBuildType=debug && cd ..","type":"android.emulator","device":{"avdName":"Pixel_API_28_AOSP"}}}},"configurationName":"android.emu.debug"}}
detox[72951] INFO: [DetoxServer.js] server listening on localhost:51302...
detox[72951] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:51302
detox[72951] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"login","params":{"sessionId":"d6f111d8-7569-f0d0-903f-cc6f35769b41","role":"tester"},"mess
ageId":0}
detox[72951] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=d6f111d8-7569-f0d0-903f-cc6f35769b41
detox[72951] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=d6f111d8-7569-f0d0-903f-cc6f35769b41
detox[72951] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"loginSuccess","params":{"sessionId":"d6f111d8-7569-f0d0-903f-cc6f35769b41","role":"test
er"},"messageId":0}
detox[72951] DEBUG: [exec.js/EXEC_CMD, #0] "/Users/admin/Library/Android/sdk/emulator/emulator" -list-avds --verbose
detox[72951] TRACE: [exec.js/EXEC_SUCCESS, #0] Pixel_API_28_AOSP
detox[72951] DEBUG: [exec.js/EXEC_CMD, #1] "/Users/admin/Library/Android/sdk/emulator/emulator" -version
detox[72951] TRACE: [exec.js/EXEC_SUCCESS, #1] Android emulator version 30.0.26.0 (build_id 6755297) (CL:N/A)
Copyright (C) 2006-2017 The Android Open Source Project and many others.
This program is a derivative of the QEMU CPU emulator (www.qemu.org).
This software is licensed under the terms of the GNU General Public
License version 2, as published by the Free Software Foundation, and
may be copied, distributed, and modified under those terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
detox[72951] DEBUG: [EmulatorVersionResolver.js/EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 30, minor: 0, patch: 26, toString: [Func
tion: toString] }
detox[72951] DEBUG: [AndroidDriver.js/ALLOCATE_DEVICE] Trying to allocate a device based on "Pixel_API_28_AOSP"
detox[72951] DEBUG: [exec.js/EXEC_CMD, #2] "/Users/admin/Library/Android/sdk/platform-tools/adb" devices
detox[72951] DEBUG: [exec.js/EXEC_SUCCESS, #2] List of devices attached
emulator-13468 device
detox[72951] TRACE: [EmulatorTelnet.js/TELNET_CONNECTING] port: 13468, host: localhost
detox[72951] ERROR: [EmulatorTelnet.js/TELNET_TIMEOUT]
detox[72951] ERROR: Error: response not received
FAIL e2e/firstTest.spec.js
● Test suite failed to run
Detox instance has not been initialized
HINT: There was an error on attempt to call detox.init()
Error: response not received
at Timeout._onTimeout (/Users/admin/Downloads/Archive-clean/node_modules/telnet-client/lib/index.js:169:20)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
2 |
3 | constructor() {
> 4 | this.userName = element(by.id('username'));
| ^
5 | this.passWord = element(by.id('password'));
6 | // this.loginBtn = element(by.text('Sign In'));
7 | this.loginBtn = element(by.id('login_btn'));
at Timeout._onTimeout (../node_modules/telnet-client/lib/index.js:169:20)
at MissingDetox.throwError (../node_modules/detox/src/utils/MissingDetox.js:67:11)
at Object.by (../node_modules/detox/src/utils/MissingDetox.js:46:16)
at new Login (login.js:4:33)
at Object.<anonymous> (login.js:30:16)
at Object.<anonymous> (firstTest.spec.js:1:1)
detox[72951] WARN: at node_modules/jest-cli/build/cli/index.js:261:15
Jest did not exit one second after the test run has completed.
This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment