iOS UI Testing with Frank
Upcoming SlideShare
Loading in...5
×
 

iOS UI Testing with Frank

on

  • 6,719 views

 

Statistics

Views

Total Views
6,719
Views on SlideShare
6,719
Embed Views
0

Actions

Likes
4
Downloads
103
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

iOS UI Testing with Frank iOS UI Testing with Frank Presentation Transcript

  • UI Testing With Frank BDD Style Acceptance Testing with Frank and Cucumber
  • @keithpitt Keith PittiOS/Web DeveloperThe Frontier Group
  • UI Testing Approaches
  • UI Testing Approaches• Testing the application yourself using the simulator or your device
  • UI Testing Approaches• Testing the application yourself using the simulator or your device• Getting others to test the application using their own devices
  • UI Testing Approaches• Testing the application yourself using the simulator or your device• Getting others to test the application using their own devices• Automated testing
  • What tools are there?
  • What tools are there?• Sikuli (image analysis)
  • What tools are there?• Sikuli (image analysis)• Fonemonkey (record and playback)
  • What tools are there?• Sikuli (image analysis)• Fonemonkey (record and playback)• UISpec (tests are written in Objective C)
  • What tools are there?• Sikuli (image analysis)• Fonemonkey (record and playback)• UISpec (tests are written in Objective C)• iCuke (project not being developed)
  • Frankenstein
  • Frank
  • Frank• A bridge between Cucumber and UISpec
  • Frank• A bridge between Cucumber and UISpec• A “Frank Driver” that sends HTTP requests from Cucumber to a “Frank Server” that is installed in the Application
  • Frank• A bridge between Cucumber and UISpec• A “Frank Driver” that sends HTTP requests from Cucumber to a “Frank Server” that is installed in the Application• The “Frank Server” executes UISpec queries against the application, returns the result
  • UISpec
  • UISpec• UISpec is a Behaviour Driven Development framework for the iPhone that provides a full automated testing solution that drives the actual iPhone UI.
  • UISpec• UISpec is a Behaviour Driven Development framework for the iPhone that provides a full automated testing solution that drives the actual iPhone UI.• It is modelled after the very popular RSpec for Ruby.
  • UISpec• UISpec is a Behaviour Driven Development framework for the iPhone that provides a full automated testing solution that drives the actual iPhone UI.• It is modelled after the very popular RSpec for Ruby.• Written in Objective C
  • -(void)itShouldHaveDefaultUsers {        //Check that all default users are in list        [[app.tableView.label text:@"Larry Stooge"] should].exist;        [[app.tableView.label text:@"Curly Stooge"] should].exist;        [[app.tableView.label text:@"Moe Stooge"] should].exist;}
  • Cucumber
  • Cucumber• Cucumber is a tool that executes plain-text functional descriptions as automated tests.
  • Cucumber• Cucumber is a tool that executes plain-text functional descriptions as automated tests.• Written in Ruby
  • Cucumber• Cucumber is a tool that executes plain-text functional descriptions as automated tests.• Written in Ruby• Created originally for use with Ruby on Rails.
  • Cucumber• Cucumber is a tool that executes plain-text functional descriptions as automated tests.• Written in Ruby• Created originally for use with Ruby on Rails.• Command line tool
  • Cucumber• Cucumber is a tool that executes plain-text functional descriptions as automated tests.• Written in Ruby• Created originally for use with Ruby on Rails.• Command line tool• Written specifically for BDD
  • Feature: Search courses In order to ensure better utilization of courses Potential students should be able to search for courses Scenario: Search by topic Given there are 240 courses which do not have the topic "biology" And there are 2 courses A001, B205 that each have "biology" as one of the topics When I search for "biology" Then I should see the following courses: | Course code | | A001 | | B205 |
  • Demo
  • Resources• https://github.com/moredip/Frank• https://github.com/aslakhellesoy/cucumber• http://www.melbournecocoaheads.com/ testing-ios-apps-with-frank-slides-and- videos/
  • @keithpitt Thanks for your attention