fastlane-old / snapshot

Automate taking localized screenshots of your iOS app on every device
https://fastlane.tools
1.95k stars 140 forks source link

(RuntimeError) How to get rid of this? #357

Closed ashukhobragade closed 8 years ago

ashukhobragade commented 8 years ago

/Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/lib/snapshot/runner.rb:49:in work': Tests failed - check out the log above (RuntimeError) from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:37:inblock (2 levels) in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:incall' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:inrun_active_command' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in run!' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:inrun!' from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:78:in run' from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:84:in<top (required)>' from /usr/bin/snapshot:23:in load' from /usr/bin/snapshot:23:in

' logout

KrauseFx commented 8 years ago

This basically means, that your UI Tests have failed and didn't succeed.

KrauseFx commented 8 years ago

That's why you get an error

ashukhobragade commented 8 years ago

Yeah but many times i get this error it doesnt runs smootly always thats why I it posted here

also one more query..

Could not write domain /Users/ashishk/Library/Preferences/com.apple.iphonesimulator.plist; exiting

How could I make it write?

wenyang9319 commented 8 years ago

✗ testRoamingSearch, UI Testing Failure - No matches found for SearchField \ TEST FAILED **

MyMaxisUITests.RoamingUITest testRoamingSearch, UI Testing Failure - No matches found for SearchField /Users/macserver/Desktop/Developments/MyMaxis/maxis-mymaxis-ios/MyMaxisUITests/RoamingUITest.swift:27

        let referenceSearchText = app.tables.staticTexts.elementAtIndex(1).label
        roamingSearchField.tap()
        roamingSearchField.typeText(referenceSearchText)
 Executed 2 tests, with 1 failure (0 unexpected) in 55.452 (55.463) seconds

[12:08:32]: Exit status: 65 [12:08:32]: Tests failed - check out the log above

+----------+---------+ | snapshot results | +----------+---------+ | Device | en-US | +----------+---------+ | iPhone 5 | ❌ | +----------+---------+

/Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/lib/snapshot/runner.rb:49:in work': Tests failed - check out the log above (RuntimeError) from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:37:inblock (2 levels) in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:incall' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in run' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:inrun_active_command' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in run!' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:inrun!' from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:78:in run' from /Library/Ruby/Gems/2.0.0/gems/snapshot-1.4.2/bin/snapshot:84:in<top (required)>' from /usr/bin/snapshot:23:in load' from /usr/bin/snapshot:23:in

'

I am also facing this issue, this problem occur in one of my mac pc. Same situation applied for another Mac, it got no issues to run snapshot, it would still capture the other screenshot even the test failed. The failed test case wouldn't capture anythings.

Both Mac behave differently, is it my problem? If answer is yes, how can i solve this?

fastlane-bot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1674. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: