automated mobile tests
DESCRIPTION
Automated mobile testing with Cucumber and CalabashTRANSCRIPT
Cucumber & CalabashOnur Taşkın – Elif Özdemir
Pessimistic case
Layers of Testing
Pessimistic case
Testroid
Pessimistic case
Testroid
Pessimistic case
Calabash
Enables you to write and execute automated acceptance tests of mobile apps. Cross-platform, supporting Android and iOS native apps. Open source and free.Libraries that enable test-code to interact with native + hybrid apps. A number of end-user actions, like:
Gestures Touches or gestures (e.g., tap, swipe and rotate).
Assertions e.g.: there should be a "Login" button or the web view should contain an "<h1>" element with the text "Hello”. Screenshots screendump the current view on the current device model
Pessimistic case
Cucumber
Express the behavior of our app using natural language understood by business experts:
Feature: Rating a stand Scenario: Find and rate a stand from the listGiven I am on the foodstand list Then I should see a "rating" buttonAnd I should not see "Dixie Burger & Gumbo Soup" When I touch the "rating" button Then I should see "Dixie Burger & Gumbo Soup" When I touch "Dixie Burger & Gumbo Soup" Then I should see details for "Dixie Burger & Gumbo Soup" When I touch the "rate_it" button Then I should see the rating panel When I touch "star5" And I touch "rate" Then "Dixie Burger & Gumbo Soup" should be rated 5 stars
Pessimistic case
Cucumber
Pessimistic case
User Story to Cucumber Test
As a valid user I want to log into my appSo that I can start using my app
Acceptance Criteria:• GIVEN I’m on the login page• WHEN I enter a valid uname + password
combination • AND I press login button• THEN I should navigate to home page
Pessimistic case
Cucumber For Android
Cucumber Steps• Scenario: As a valid user I can log into my app• Then I enter text "[email protected]" into field with
id "loginEmailET"• Then I enter text "123qwe" into field with id "loginPassET"• Given I press the "Giriş Yap" button• Then I wait to see ”Home Page"