Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Frank Discussion About iOS BDD

A Frank Discussion About iOS BDD

Avatar for Tim Bugai

Tim Bugai

May 27, 2014
Tweet

More Decks by Tim Bugai

Other Decks in Technology

Transcript

  1. collectiveidea.com About Me… • B.S. in C.S. from GVSU •

    Software Developer for 5+ years professionally. • Lead iOS Developer at Collective Idea • Woodworker
  2. collectiveidea.com Zucchini class BooksScreen extends Screen anchor: -> view.navigationBars()["Books"] constructor:

    -> super 'books' extend @elements, 'Edit' : -> view.navigationBars()[0].buttons()["Edit"], 'Add' : -> view.navigationBars()[0].buttons()["Add"] extend @actions, 'Scroll to "([^"]*)"$': (elementName) -> view.tableViews()[0].scrollToElementWithName(elementName)
  3. collectiveidea.com First Test Given I launch the app using iOS

    7.0 and the iPad simulator And I am on the login page ! When I enter the username “[email protected]” And I enter the password “glsec2014” And I touch “Sign In” ! Then I should be on the sites page
  4. collectiveidea.com Step Definitions Given(/^I am on the login page$/) do

    check_element_exists “view marked:’username’” end