Automated mobile tests

381 views

Published on

Automated mobile testing with Cucumber and Calabash

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
381
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • - Farklıcihazlardateslerikosturupsonucekranlarininciktisinialiyor
  • Automated mobile tests

    1. 1. Cucumber & Calabash Onur Taşkın – Elif Özdemir
    2. 2. Layers of Testing Pessimistic case
    3. 3. Testroid Pessimistic case
    4. 4. Testroid Pessimistic case
    5. 5. 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. Pessimistic case 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
    6. 6. 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 list Given I am on the foodstand list Then I should see a "rating" button Pessimistic case And 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
    7. 7. Cucumber Pessimistic case
    8. 8. User Story to Cucumber Test As a valid user I want to log into my app So that I can start using my app Acceptance Criteria: Pessimistic case • 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
    9. 9. Cucumber For Android Cucumber Steps • • • • • Scenario: As a valid user I can log into my app Then I enter text "testmail3@pismail.com" 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" Pessimistic case

    ×