iOSアプリ自動ログテストのススメ

 iOSアプリ自動ログテストのススメ

2f8b61ad31dd9c6ada4a90af746290fd?s=128

Shota Kashihara

October 25, 2019
Tweet

Transcript

  1. ©2019 Wantedly, Inc. Tech Book Conference for iOS Oct 25,

    2019 - @kashihararara J04ΞϓϦࣗಈϩάςετ ͷεεϝ
  2. ©2019 Wantedly, Inc. Shota Kashihara ɾWantedly People ɾiOS ɾTwitter: @kashihararara

    ɾGitHub: @ShotaKashihara
  3. ©2019 Wantedly, Inc.  લஔ͖  ຊ୊ࣗಈϩάςετͷεεϝ w ՝୊ײͷڞ༗ w

    ղܾࡦ͓Αͼख๏ͷ঺հ ໨࣍
  4. ©2019 Wantedly, Inc. ࠓ೔Έͳ͞Μʹ֮͑ͯؼͬͯ΄͍͠ݴ༿

  5. ©2019 Wantedly, Inc. 8BOUFEMZ͸ΧδϡΞϧʹຊΛ࡞Δձࣾ ࠓ೔Έͳ͞Μʹ֮͑ͯؼͬͯ΄͍͠ݴ༿

  6. ©2019 Wantedly, Inc. ݄ٕज़ॻయ ݄(P$POGFSFODF4QSJOH ݄J04%$+BQBO ݄ٕज़ॻయ ݄3VTU5PLZP Wantedly ࣥචεέδϡʔϧ

    2019೥
  7. ©2019 Wantedly, Inc. ݄ٕज़ॻయ ݄(P$POGFSFODF4QSJOH ݄J04%$+BQBO ݄ٕज़ॻయ ݄3VTU5PLZP Wantedly ࣥචεέδϡʔϧ

    2019೥ 2-3ϲ݄ʹ1࡭ɺࣾ಺ͷ୭͔͕ٕज़ॻΛ࡞͍ͬͯΔ (͍͍ͩͨ)
  8. ©2019 Wantedly, Inc. ٕज़ॻళ7 ʹ͸2࡭ग़͍ͯ͠·͢

  9. ©2019 Wantedly, Inc. ຊ୊ʹҠΔ

  10. ©2019 Wantedly, Inc. Ҏલ͔Βϩάʹ͍͔ͭ͘ͷ՝୊͕͋ͬͨ ՝୊ײͷڞ༗ ࣗಈϩάςετͷεεϝ

  11. ©2019 Wantedly, Inc.  طଘͷϩάܭଌΛվमͰյͯ͠͠·͏  ϩάܭଌͷ࣮૷ͷ֬ೝ͕ख࡞ۀ  ίϯόʔδϣϯϩάͷ࢓༷͕࢒͍ͬͯͳ͍ Ҏલ͔Βϩάʹ͍͔ͭ͘ͷ՝୊͕͋ͬͨ

    ՝୊ײͷڞ༗ ࣗಈϩάςετͷεεϝ
  12. ©2019 Wantedly, Inc.  طଘͷϩάܭଌΛվमͰյͯ͠͠·͏ Ҏલ͔Βϩάʹ͍͔ͭ͘ͷ՝୊͕͋ͬͨ ݟͨ໨ͰΘ͔Δ΋ͷͰ͸ͳ͍ͷͰνΣοΫ͕ݫ͍͠  ϩάܭଌͷ࣮૷ͷ֬ೝ͕ख࡞ۀ ྫ͑͹ɺΠϕϯτ͕͔݅͠ඈ͹ͳ͍͜ͱΛ໨ࢹͰ֬ೝ͢Δͷ͸ࠔ೉

     ίϯόʔδϣϯϩάͷ࢓༷͕࢒͍ͬͯͳ͍ ՝୊ײͷڞ༗ ࣗಈϩάςετͷεεϝ
  13. ©2019 Wantedly, Inc.  طଘͷϩάܭଌΛվमͰյͯ͠͠·͏ Ҏલ͔Βϩάʹ͍͔ͭ͘ͷ՝୊͕͋ͬͨ ݟͨ໨ͰΘ͔Δ΋ͷͰ͸ͳ͍ͷͰνΣοΫ͕ݫ͍͠  ϩάܭଌͷ࣮૷ͷ֬ೝ͕ख࡞ۀ ྫ͑͹ɺΠϕϯτ͕͔݅͠ඈ͹ͳ͍͜ͱΛ໨ࢹͰ֬ೝ͢Δͷ͸ࠔ೉

     ίϯόʔδϣϯϩάͷ࢓༷͕࢒͍ͬͯͳ͍ 6*ςετͰγφϦΦΛॻ͚͹͍͍͸ͣ ՝୊ײͷڞ༗ ࣗಈϩάςετͷεεϝ
  14. ©2019 Wantedly, Inc. Ϣʔβొ࿥γφϦΦςετ

  15. ©2019 Wantedly, Inc. Ϣʔβొ࿥γφϦΦςετ

  16. ©2019 Wantedly, Inc. Ϣʔβొ࿥γφϦΦςετ

  17. ©2019 Wantedly, Inc. Ϣʔβొ࿥γφϦΦςετ Ϣʔβొ࿥ϩά ίϯόʔδϣϯ

  18. ©2019 Wantedly, Inc. Ϣʔβొ࿥γφϦΦςετ Ϣʔβొ࿥ϩά ίϯόʔδϣϯ ͜ͷϩάΛͳΜΒ͔ͷํ๏Ͱ Ωϟϓνϟ͍ͨ͠

  19. ©2019 Wantedly, Inc. ͨͩ͠໰୊͕ʜ XCUITest ΞϓϦέʔγϣϯ͸γϛϡϨʔλ্ ͷςετର৅ͱ͸ผΞϓϦͱͯ͠ಈ࡞͢ΔͷͰɺ ςετର৅ͷΞϓϦ಺ͰʮϢʔβొ࿥ϩά͕ ඈΜ͔ͩͲ͏͔ʯΛ֎͔Β֬ೝ͢Δज़͕ͳ͍

  20. ©2019 Wantedly, Inc. 9$6*5FTUʹϩάΛૹͬͯ΋Β͑͹

  21. ©2019 Wantedly, Inc. ࠾༻

  22. ©2019 Wantedly, Inc. ࣗಈϩάςετͷϑϩʔ 9$6*5FTU ϩάऩूαʔό 5FTU5BSHFU 1045IUUQMPDBMIPTUMPH ϩάΛૹ৴

  23. ©2019 Wantedly, Inc. ࣗಈϩάςετͷϑϩʔ 9$6*5FTU ϩάऩूαʔό 5FTU5BSHFU 1045IUUQMPDBMIPTUMPH ϩάΛૹ৴ IUUQαʔόΛ9$6*5FTU಺

    ʹཱͯΔ
  24. ©2019 Wantedly, Inc. ϩάऩूαʔό

  25. ©2019 Wantedly, Inc. ϩάऩूαʔό

  26. ©2019 Wantedly, Inc. ࣗಈϩάςετͷϑϩʔ 9$6*5FTU ϩάऩूαʔό 5FTU5BSHFU 1045IUUQMPDBMIPTUMPH ϩάΛૹ৴

  27. ©2019 Wantedly, Inc. ࣗಈϩάςετͷϑϩʔ 9$6*5FTU ϩάऩूαʔό 5FTU5BSHFU 1045IUUQMPDBMIPTUMPH ϩάΛૹ৴

  28. ©2019 Wantedly, Inc. ࣗಈϩάςετͷϑϩʔ 9$6*5FTU ϩάऩूαʔό 5FTU5BSHFU 1045IUUQMPDBMIPTUMPH ϩάΛૹ৴

  29. ©2019 Wantedly, Inc. ࣗಈϩάςετͷϑϩʔ 9$6*5FTU ϩάऩूαʔό 5FTU5BSHFU 1045IUUQMPDBMIPTUMPH ϩάΛૹ৴ ड৴ͨ͠ϩάΛݩʹςετΛ

    ॻ͘ɻ
  30. ©2019 Wantedly, Inc. ϩάऩूαʔό ϩάͷςετέʔε ͭͷγφϦΦͰऩूͨ͠ϩάશମ͔Β ςετର৅ʹߜΓࠐΜͰ݅਺ΛݟΔ

  31. ©2019 Wantedly, Inc. ·ͱΊ ࣗಈϩάςετͷεεϝ ɾࣗಈϩάςετ͸͍͍ͧ ɾhttpswift/swifter ศར (APIϞοΫͱ͔ʹ΋࢖͑Δ) ɾ#Wantedly͸ΧδϡΞϧʹຊΛ࡞Δձࣾ

    https://github.com/ShotaKashihara/XCUILogTest ࠓճͷαϯϓϧίʔυ͸ͪ͜Β