-
Notifications
You must be signed in to change notification settings - Fork 369
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
Trying write of command 11:uia.tapOffset('{:x 24, :y 41}') at index 11 (RunLoop::WriteFailedError) #997
Comments
Did some extra tests, and the following is only failing on the very last step, all the previous (exactly the same) steps works ok. Scenario: Test Scenario: Test |
The number (1 or 13) at the beginning is an index and has no effect on the gesture.
I am not sure I understand. Are you calling If so, this is probably a timing problem. You should wait for a view or add an explicit sleep. I have not seen anyone calling |
Haha, yes, I am calling it from a step. We need to make sure some things in the app behaves correctly even after relaunch. (E.g. sign in, relaunch, make sure user is still signed in.. ) So I am calling this function in the middle of the test to relaunch the app;
I've added sleep to all the places I could think of, I've tried with binding.pry in several places to see what is happening. But when it comes to finding the menu icon after the second relaunch, it just refuses to press it.. no matter how long I wait.. |
Can I recommend the following changes:
|
Any chance you can share this app so we can reproduce? |
I'll try your changes, and if I still have problems I can break loose my code for this and share it. Unfortunately I can not share the app I am testing on though. I could try to reproduce it on another app to make sure it's nothing IN the app that makes it behave like this... I'll play around a bit and come back to you, |
Can you try to reproduce in the test app? https://github.com/calabash/ios-smoke-test-app Thanks! https://gitter.im/calabash/calabash0x?utm_source=share-link&utm_medium=link&utm_campaign=share-link |
Aghhh, I think I solved it, we were using a "LaunchControl" module to set the launcher:
which does the following:
when I was playing around just now I didn't bother to use the LaunchControl module so I just wrote |
🎱 🍕 I can imagine several reasons for this and I must apologize. The Calabash::Cucumber::Launcher caches and mutates the So I can image that the |
@lindanordstrom Closing, but if you have more problems I will reopen. |
I had the same problem with 0.18.2. The reason was indeed timing. I had a restart step in scenario, and after the restart I did not have the background to check if the app is launched. Added a simple check with |
Hi, I've already commented on the following issue;
#566
But since it was closed I created a new one as well..
I have a few tests where I have set RESET_BETWEEN_SCENARIOS=1, so the user is always signed out when a test starts. But in some scenarios we want to relaunch the app as part of a test, where we don't want to app to be reset, so I am calling the relaunch function (with :uia_strategy => :host, :reset => false).
The thing is I can run the scenario by itself without problem, but if I run a similar/identical scenario as the second or third scenario in a feature, cucumber will timeout on the "Trying write of command 13:uia.tapOffset('{:x 28, :y 41}') at index 13"
I've compared the logs to see what actually differs when I run two identical test in a feature. From what I can see the one that works fine will output:
"Trying write of command 1:uia.tapOffset"
And the one that fails outputs:
Trying write of command 13:uia.tapOffset
Adding a screenshot where I compare the working scenario with the failing scenario
And adding the full log for running the feature with the scenario twice
The two tests are identical and does the following:
Env:
$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
$ xcodebuild -version
Xcode 7.2
Build version 7C68
$ calabash-ios version
0.17.1
run_loop, 2.0.6
errorLog.txt
The text was updated successfully, but these errors were encountered: