Questions tagged [detox]

Gray box end-to-end testing and automation framework for mobile apps

From GitHub page:

High velocity native mobile development requires us to adopt continuous integration workflows, which means our reliance on manual QA has to drop significantly. Detox tests your mobile app while it's running in a real device/simulator, interacting with it just like a real user.

The most difficult part of automated testing on mobile is the tip of the testing pyramid - E2E. The core problem with E2E tests is flakiness - tests are usually not deterministic. We believe the only way to tackle flakiness head on is by moving from black box testing to gray box testing. That's where Detox comes into play.

Cross Platform: Write cross-platform tests in JavaScript. Currently supports iOS and Android.

Runs on Devices (not yet supported on iOS): Gain confidence to ship by testing your app on a device/simulator just like a real user.

Automatically Synchronized: Stops flakiness at the core by monitoring asynchronous operations in your app.

Made For CI: Execute your E2E tests on CI platforms like Travis without grief.

Test Runner Independent: Use Mocha, AVA, or any other JavaScript test runner you like.

Debuggable: Modern async-await API allows breakpoints in asynchronous tests to work as expected.

See the GitHub page for more information.

619 questions
0
votes
0 answers

Error performing 'single click - At Coordinates

I am doing detox test for react native android version 0.57. I am getting this error. Error is: Error: Error: Error performing 'single click - At Coordinates: 720, 1485 and precision: 16, 16' on view '(with tag value: is "create_team_button"…
Krupanand K
  • 165
  • 2
  • 11
0
votes
1 answer

Ran all test suites matching /e2e/i with tests matching "^((?!:ios:).)*$"

I am doing Detox testing and matching takes default as ios and I want to test in android, I am not able to change it to android. help me
Krupanand K
  • 165
  • 2
  • 11
0
votes
1 answer

Detox does not handle universal links

I've been trying to get iOS Universal Links to work with Detox using device.openURL from https://github.com/wix/Detox/blob/master/docs/APIRef.MockingOpenFromURL.md but it does not work. Sample of what I've tried: it('should work', async () => { …
jbohman
  • 1
  • 1
  • 1
0
votes
1 answer

How can I retry failed end to end tests in Detox using Mocha?

I have a flaky end-to-end test that uses Detox and Mocha. The Mocha test runner allows for multiple retries. I tried using the recommended Mocha syntax: // auth.spec.js describe('App authentication', () => { this.retries(2); it('should have a…
Tom Aranda
  • 5,919
  • 11
  • 35
  • 51
0
votes
1 answer

Detox automation: Modify GREYElementInteraction.m

I've been searching for a solution to help me clean up Detox test automation's output, as currently the output is quite messy.. The biggest culprit of the ugliness seems to exist within GREYElementInteraction.m which is seen within the Detox repo,…
0
votes
0 answers

Support for TouchID test on Detox framework

I want to know if there is a way to test Touch ID with detox. I mean, simulate success and failure and interactions with system alerts binding to the process.
0
votes
1 answer

Detox IOS - tests fail due to continuous animation error, disableSynchronization not working

Please bear with me, I am new to Detox! I am currently evaluating Detox as an alternative to a well known very slow black box automation tool! ENV Detox:v9.0.1 xCode:v9.4.1 macOS:High Sierra 10.13.2 executing tests using: detox test…
spidee76
  • 71
  • 1
  • 1
  • 7
0
votes
1 answer

Detox Android "detox:compileMinReactNative44DebugJavaWithJavac" Error

React Native: 0.53.3 Detox: 9.0.1 I entered a script, and I get an error. ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug Error Log > Task :detox:compileMinReactNative44DebugJavaWithJavac…
OM62DwC76p
  • 121
  • 2
  • 9
0
votes
2 answers

How to use react-native-i18n in detox[react-native]

I want to test the alert message in detox,and the message use i18n. const i18n = require("react-native-i18n"); describe("Example", () => { beforeEach(async () => { await device.reloadReactNative(); }); it("should show hello screen after…
Leo
  • 835
  • 1
  • 12
  • 31
0
votes
0 answers

App binary not found in release, but not debug

I am getting the following error trying to run detox test --configuration ios.sim.release: Error: app binary not found at '/Users/.../ios/build/Build/Products/Release-iphonesimulator/[appname].app', did you build it? However, the detox build…
Mike Bailey
  • 29
  • 1
  • 8
0
votes
2 answers

Draw a line in a detox test

We are using react-native-signature-capture library in our react-native project and we want to test that a signature is sent correctly. To do that the user draws the signature using his finger, is there a way to simulate some drawing using detox?…
Khriz
  • 5,888
  • 6
  • 34
  • 39
0
votes
1 answer

how to see simulator while running test cases on bitrise

Is it possible to see simulator while running test cases on bitrise . I am running detox test cases using bitrise as CI. I am not sure how it works therefore I am not at any idea of initiating the simulator on cloud and visible to user. App…
0
votes
0 answers

detox - assembleAndroidTest Error

I am using Detox and iOS runs normally, Android is getting an error when you type the following command. From Lottie-react-natve "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType = debug && cd .." "lottie-react-native": You…
OM62DwC76p
  • 121
  • 2
  • 9
0
votes
1 answer

Email all test case logs to my email using Detox e2e testing library from bitbar.com device farming service

I am testing react native app on bitbar.com device farm and using Detox/wix e2e testing library. I want to get the test case pass/fail logs to my email from several devices which I select on bitbar.com device farm. Is there any feature in Detox…
abdul
  • 340
  • 6
  • 18
0
votes
1 answer

Detox: Testing a React-Native spinner with a stop button

Was wondering if anyone has had a similar issue. In the app I'm working with, we have a spinner showing downloading content with a stop button in the middle. When the user taps the spinner/stop button, the download is meant to cancel. For reference…
G Galliani
  • 106
  • 5