Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using in a physical android device #1200

Closed
jramalho opened this issue Mar 11, 2019 · 2 comments
Closed

Using in a physical android device #1200

jramalho opened this issue Mar 11, 2019 · 2 comments

Comments

@jramalho
Copy link

Describe the bug
When i try to use it on a physical device, it boot the app but never automate a test.
This using the examples files.

To Reproduce

  1. Download base project
  2. detox build the base react-native project or react-native-jest projet
  3. detox test

the issue happen on both react-native or react-native-jest demo project on the examples folder

Expected behavior
It should automate tests

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Detox: 10.0.12
  • React Native: 0.51.1
  • Device: Moto e 2
  • OS: Linux Ubuntu

Device and Verbose Detox Logs

  1. "before all" hook

0 passing (2m)
1 failing

  1. "before all" hook:
    Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

0 passing (2m)
1 failing

  1. "before all" hook:
    Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
@JsonDo
Copy link

JsonDo commented Apr 3, 2019

Hello @jramalho ,
For me to be able to test on physical Android devices, I have to change some adb settings first.

With only one device connected through USB, I usually do the following:

  1. adb -d reverse tcp:8099 tcp:8099
  2. detox run-server
  3. detox test -c yourConfigHere

In your configuration file, instead of giving detox the emulator name, give it its adb serial number, obtained by running adb -d devices. You would also need to specify, again in the config file, that you would like to use the server you manually started, as shown here.

@support
Copy link

support bot commented Apr 18, 2019

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.

@support support bot closed this as completed Apr 18, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants