zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 174 forks source link

SwiftMonkey cannot works on xCode 8.3 #27

Closed huming closed 7 years ago

huming commented 7 years ago

SwiftMonkeyExample build success, but run test shows build failed. I upgrade Xcode from 7.3 to 8.3. I Before it can works. So anybody know why?

Other build failed have not error detail.

lasomethingsomething commented 7 years ago

Hello @huming, thank you for submitting this issue. Would you be able to submit a PR to address it?

cc @DagAgren

huming commented 7 years ago

hi, LappleApple, thanks for your response. What is PR?

lasomethingsomething commented 7 years ago

@huming pull request

wojciechczerski commented 7 years ago

I did a research on this issue and what I have found is that it only concerns the SwiftMonkeyExample and it has no relation with the SwiftMonkey framework. Most probably the source of the problem is a bug in XCTest.

The UI tests are failing with an assertion Failed to get snapshot within 15.0s. This error has been already reported:

In case of the SwiftMonkeyExample target, the problem is caused by the Switches! section of the table view. It seems that the current configuration (4 rows with 5 UISwitch elements each) is too complicated for the snapshot creation to finish within 15 seconds. However I did observe that using 10 rows with 4 elements configuration will work just fine without producing the assert.

wojciechczerski commented 7 years ago

I've created a pull request (https://github.com/zalando/SwiftMonkey/pull/31) that addresses this issue.

wojciechczerski commented 7 years ago

Fixed in https://github.com/zalando/SwiftMonkey/pull/31.