{"action":"created","issue":{"url":"https://api.github.com/repos/wix/Detox/issues/968","repository_url":"https://api.github.com/repos/wix/Detox","labels_url":"https://api.github.com/repos/wix/Detox/issues/968/labels{/name}","comments_url":"https://api.github.com/repos/wix/Detox/issues/968/comments","events_url":"https://api.github.com/repos/wix/Detox/issues/968/events","html_url":"https://github.com/wix/Detox/issues/968","id":366490668,"node_id":"MDU6SXNzdWUzNjY0OTA2Njg=","number":968,"title":"Running Detox on a real Android device - supported? ","user":{"login":"EdwardDrapkin","id":6296006,"node_id":"MDQ6VXNlcjYyOTYwMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/6296006?v=4","gravatar_id":"","url":"https://api.github.com/users/EdwardDrapkin","html_url":"https://github.com/EdwardDrapkin","followers_url":"https://api.github.com/users/EdwardDrapkin/followers","following_url":"https://api.github.com/users/EdwardDrapkin/following{/other_user}","gists_url":"https://api.github.com/users/EdwardDrapkin/gists{/gist_id}","starred_url":"https://api.github.com/users/EdwardDrapkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdwardDrapkin/subscriptions","organizations_url":"https://api.github.com/users/EdwardDrapkin/orgs","repos_url":"https://api.github.com/users/EdwardDrapkin/repos","events_url":"https://api.github.com/users/EdwardDrapkin/events{/privacy}","received_events_url":"https://api.github.com/users/EdwardDrapkin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-03T19:25:28Z","updated_at":"2018-10-05T13:58:09Z","closed_at":"2018-10-05T13:58:09Z","author_association":"NONE","body":"I'm trying to run my tests on a real device or in a Genymotion cloud AWS instance.  They complete successfully on a local emulator.\r\n\r\nI've tried with a local Android emulator as device type `android.emulator` and a local Genymotion emulator as `android.attached`; both work correctly.  When I try to run `android.attached` with a real device ID, things start to go wrong.  The application builds and installs successfully, and it even launches successfully as well.   But then nothing ever happens until the Jest tests timeout with errors about `device` and `element` not being defined.\r\n\r\nLooking at the log files, it seems like the test can't connect to the Detox server but I'm not sure if I'm reading things correctly.\r\n\r\n* Detox: 9.0.4\r\n* React Native: 0.56\r\n* Node: 10.5\r\n* Device: Google Pixel / ZTE Z983 / Genymotion AWS 8.0 image\r\n* Xcode: n/a\r\n* macOS: High Sierra\r\n\r\n\r\nHere's my configuration...\r\n\r\n```json\r\n        \"android.wallet.device\": {\r\n                \"binaryPath\": \"android/app/build/outputs/apk/flexwallet/release/app-flexwallet-release.apk\",\r\n                \"build\": \"cd android && ./gradlew assembleFlexwalletRelease assembleAndroidTest -DtestBuildType=release && cd ..\",\r\n                \"type\": \"android.attached\",\r\n                \"name\": \"9802d885\"\r\n            },\r\n```\r\n\r\n...and I launch it like so....\r\n\r\n```\r\ndetox test --configuration=android.wallet.device --runner-config=test/detox-jest.json --specs=e2e/ --artifacts-location=./.e2e/flexmobile --loglevel=trace --record-logs=all\r\n```\r\n\r\n... and I get these logs: [detox_pid_87613.log](https://github.com/wix/Detox/files/2443477/detox_pid_87613.log) and [test.log](https://github.com/wix/Detox/files/2443485/test.log)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wix/Detox/issues/comments/427375191","html_url":"https://github.com/wix/Detox/issues/968#issuecomment-427375191","issue_url":"https://api.github.com/repos/wix/Detox/issues/968","id":427375191,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzM3NTE5MQ==","user":{"login":"EdwardDrapkin","id":6296006,"node_id":"MDQ6VXNlcjYyOTYwMDY=","avatar_url":"https://avatars1.githubusercontent.com/u/6296006?v=4","gravatar_id":"","url":"https://api.github.com/users/EdwardDrapkin","html_url":"https://github.com/EdwardDrapkin","followers_url":"https://api.github.com/users/EdwardDrapkin/followers","following_url":"https://api.github.com/users/EdwardDrapkin/following{/other_user}","gists_url":"https://api.github.com/users/EdwardDrapkin/gists{/gist_id}","starred_url":"https://api.github.com/users/EdwardDrapkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdwardDrapkin/subscriptions","organizations_url":"https://api.github.com/users/EdwardDrapkin/orgs","repos_url":"https://api.github.com/users/EdwardDrapkin/repos","events_url":"https://api.github.com/users/EdwardDrapkin/events{/privacy}","received_events_url":"https://api.github.com/users/EdwardDrapkin/received_events","type":"User","site_admin":false},"created_at":"2018-10-05T13:58:09Z","updated_at":"2018-10-05T13:58:09Z","author_association":"NONE","body":"Upon further research, it seems that running `adb reverse tcp:8099 tcp:8099` and running the detox server on 8099 every time is the best solution."}}
{"actor":{"display_login":"EdwardDrapkin"}}