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

Like this? Share it with your network

Share

iOS UI Testing with Frank

on

  • 6,789 views

 

Statistics

Views

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

Actions

Likes
4
Downloads
104
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 Presentation Transcript

  • 1. UI Testing With Frank BDD Style Acceptance Testing with Frank and Cucumber
  • 2. @keithpitt Keith PittiOS/Web DeveloperThe Frontier Group
  • 3. UI Testing Approaches
  • 4. UI Testing Approaches• Testing the application yourself using the simulator or your device
  • 5. UI Testing Approaches• Testing the application yourself using the simulator or your device• Getting others to test the application using their own devices
  • 6. 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
  • 7. What tools are there?
  • 8. What tools are there?• Sikuli (image analysis)
  • 9. What tools are there?• Sikuli (image analysis)• Fonemonkey (record and playback)
  • 10. What tools are there?• Sikuli (image analysis)• Fonemonkey (record and playback)• UISpec (tests are written in Objective C)
  • 11. What tools are there?• Sikuli (image analysis)• Fonemonkey (record and playback)• UISpec (tests are written in Objective C)• iCuke (project not being developed)
  • 12. Frankenstein
  • 13. Frank
  • 14. Frank• A bridge between Cucumber and UISpec
  • 15. 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
  • 16. 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
  • 17. UISpec
  • 18. UISpec• UISpec is a Behaviour Driven Development framework for the iPhone that provides a full automated testing solution that drives the actual iPhone UI.
  • 19. 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.
  • 20. 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
  • 21. -(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;}
  • 22. Cucumber
  • 23. Cucumber• Cucumber is a tool that executes plain-text functional descriptions as automated tests.
  • 24. Cucumber• Cucumber is a tool that executes plain-text functional descriptions as automated tests.• Written in Ruby
  • 25. 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.
  • 26. 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
  • 27. 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
  • 28. 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 |
  • 29. Demo
  • 30. Resources• https://github.com/moredip/Frank• https://github.com/aslakhellesoy/cucumber• http://www.melbournecocoaheads.com/ testing-ios-apps-with-frank-slides-and- videos/
  • 31. @keithpitt Thanks for your attention