- Frank Discuss
- Trouble with touch method
- Specifying UIBarButtonItem with no label
- Simulate New Install
- Behat’s Gherkin Language
- Gherkin
## http://www.ruby-doc.org/gems/docs/d/davidtrogers-cucumber-0.6.2/Cucumber/Ast/Table.html |
## | |
## Pull Frank in | |
## | |
$ sudo gem install frank | |
$ sudo gem install frank-cucumber | |
## | |
## Configure your project | |
## | |
$ frank setup |
## | |
## Inspect your app | |
## | |
$ frank inspect | |
## https://github.com/moredip/Frank/wiki/Useful-UIView-methods-for-testing | |
## https://github.com/moredip/Frank/blob/master/example/Controls/features/step_definitions/carousel_steps.rb | |
image_frame_as_json = frankly_map("#{CAROUSEL_SELECTOR_FRAGMENT} view:'UIScrollView' view:'UIImageView' marked:'#{subject_image}'", 'accessibilityFrame').first | |
left_side_of_image = image_frame_as_json["origin"]["x"] | |
right_side_of_image = left_side_of_image + image_frame_as_json["size"]["width"] | |
left_side_of_image.should >= 0 | |
left_side_of_image.should <= PORTRAIT_IPHONE_WIDTH | |
right_side_of_image.should >= 0 | |
right_side_of_image.should <= PORTRAIT_IPHONE_WIDTH | |
## https://github.com/moredip/Frank/blob/master/gem/lib/frank-cucumber/scroll_helper.rb | |
def scroll_table_view( selector, row, section = 0) | |
frankly_map(selector, "FEX_scrollToRow:inSection:", row.to_i, section.to_i) | |
end | |
def scroll_view_to_position( selector, x, y ) | |
frankly_map( selector, "FEX_setContentOffsetX:y:", x.to_i, y.to_i) | |
end | |
# http://rubydoc.info/gems/frank-cucumber/0.6.1/Frank/Cucumber/FrankHelper#check_element_exists-instance_method | |
# app orientation | |
# https://groups.google.com/forum/#!msg/frank-discuss/gF4UMVEH06c/KuN0o1QuAqIJ |
## | |
## Arrays | |
## | |
## http://stackoverflow.com/questions/310634/what-is-the-right-way-to-iterate-through-an-array-in-ruby | |
array = [1, 2, 3, 4, 5, 6] | |
array.each { |x| puts x } | |
## http://ruby.learncodethehardway.org/book/ex34.html | |
## http://www.ruby-doc.org/core-2.1.1/Array.html | |
## http://apidock.com/ruby/Array/first | |
#!/bin/sh | |
frank build --workspace RedditBrowser.xcworkspace --scheme "RedditBrowser - UT" | |
$ cucumber Frank/cucumber | |
$ cucumber Frank/features/ -t @384 |