fastlane-old / snapshot

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

Snapshot- Code is executing but no snapshot are taken #408

Closed sam-swift closed 8 years ago

sam-swift commented 8 years ago

I have downloaded the project from this path and configured it.

  1. Executed "sudo gem install snapshot" in terminal
  2. Executed  "xcode-select --install" in terminal
  3. Navigate to "snapshot_test" folder in terminal and executed the commend "snapshot init" ,  SnapshotHelper.swift and snapfile are created. 4.  I have added "screenshot" and "fastlane/screenshot" folder under "Snapshot TestUITests" folder.
  4. My snapshot function looks like:
    class func snapshot(name: String, waitForLoadingIndicator: Bool = false) {
        if waitForLoadingIndicator {
            waitForLoadingIndicatorToDisappear()
        }

        print("snapshot: \(name)") 

        sleep(1)
        XCUIDevice.sharedDevice().orientation = .Unknown
print("After-snapshot: \(name)")
 }

6.I have used this function to take screenshots in tests using "snapshot run". In console "screenshot: snap1" and "After-snapshot:snap1" are displayed but no screenshot is displayed with name "snap1.jpg" in any of "screenshot" and "fastlane/screenshot" folders.

screenshot version 1.4.4

Please let me know if I am missing anything, as per my understanding "snapshot" code is executing successfully but no screenshot is these. Need your help to solve this issue, as I stuck with this from long time.

vpolouchkine commented 8 years ago

Are you still running into this? If so, can you please update and try again?

fastlane-bot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/1652. 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: