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

Page Object Pattern with XCUITest

Kento Nagata
February 28, 2019

Page Object Pattern with XCUITest

potatotips #59での発表。XCUITestを使ったPage Object Patternを紹介。
内容は記事にもまとめていますので、こちらもどうぞ。
https://www.wantedly.com/companies/wantedly/post_articles/155005

Kento Nagata

February 28, 2019
Tweet

More Decks by Kento Nagata

Other Decks in Programming

Transcript

  1. ©2018 Wantedly, Inc.  ॏෳͨ͠ίʔυ w Ϣʔβ΍؀ڥʹͳͲͷ৚݅ʹΑͬͯ෦෼తͳ෼ذͳͲ͕͋Δ৔߹ɺ༷ʑͳέʔεͰςετ͍ͨ͠ w ͋Γ͕ͪͳΞϓϩʔν͸ɺίϐϖɺϝιου੾Γग़͠ w

    ίϐϖ͸ɺ%3:Ͱͳ͘มԽʹऑ͍ w ϝιου੾Γग़͠͸ɺந৅Խͷཻ౓͕ἧΘͣಡΈͮΒ͍  ҙਤͷಡΈͮΒ͍ίʔυ w 8IBUΛίϝϯτͨ͘͠ͳΔͷ͸ɺѱ͍αΠϯ w ຊདྷͷ੹຿͸ɺҰ࿈ͷૢ࡞ͷྲྀΕͱΞαʔγϣϯ͚ͩ Կ͕໰୊͔
  2. ©2018 Wantedly, Inc. WelcomePage class SignUpPage class CompletePage class func

    tapSignUpButton() func tapLoginButton() var errorMessage: String func typeEmail(_:) func typePassword(_:) func typeName(_:) func tapSignUpButton() var userName: String func tapStartButton()
  3. ©2018 Wantedly, Inc. WelcomePage class SignUpPage class CompletePage class func

    tapSignUpButton() func tapLoginButton() var errorMessage: String func typeEmail(_:) func typePassword(_:) func typeName(_:) func tapSignUpButton() var userName: String func tapStartButton() ݱࡏͷঢ়ଶΛฦ͢ϓϩύςΟ
  4. ©2018 Wantedly, Inc. WelcomePage class SignUpPage class CompletePage class func

    tapSignUpButton() func tapLoginButton() var errorMessage: String func typeEmail(_:) func typePassword(_:) func typeName(_:) func tapSignUpButton() var userName: String func tapStartButton() ͦͷϖʔδ΁ͷૢ࡞ͷϝιου