reference screenshots

16 views
Skip to first unread message

brandt...@gmail.com

unread,
Mar 13, 2014, 12:15:30 PM3/13/14
to wtfra...@googlegroups.com
I need reference screenshots of each view of my app in the iOS simulator. I have the option set to true in the config, but they are not being taken. Is there anything more I need to do? Are these reference screenshots in anyway saved for future comparison by WTF?

David Lai

unread,
Mar 13, 2014, 1:34:38 PM3/13/14
to
I haven't tested it with mobile before. So I don't know if it's working or not in mobile.  The reference screenshot mechanism uses selenium's takes screenshot method.  If you can create a sample project I can pull to demo this, and create an issue on the github project for it, I'll try to see what I can do when I have some free cycles.  

If you want to try some debugging, here's the code that does the screenshot taking.  Perhaps there's some case I'm not handling in mobile views. https://github.com/wiredrive/wtframework/blob/master/wtframework/wtf/web/capture.py

  But the idea of the reference screenshot option is upon every first time a particular PageObject is instantiated and passes validation, a screenshot is saved to /reference-screenshots directory.  You would then use say https://github.com/BBC-News/wraith, or some other mass image diff tool to do your comparisons between releases.  Since the file names are always saved by their PageObject class names, you'll need to create a task or have your CI system archive that directory after each build to save previous reference screenshots.
Reply all
Reply to author
Forward
0 new messages