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

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

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

Shota Kashihara

October 25, 2019
Tweet

More Decks by Shota Kashihara

Other Decks in Technology

Transcript

  1. ©2019 Wantedly, Inc.
    Tech Book Conference for iOS
    Oct 25, 2019 - @kashihararara
    J04ΞϓϦࣗಈϩάςετ
    ͷεεϝ

    View full-size slide

  2. ©2019 Wantedly, Inc.
    Shota Kashihara
    ɾWantedly People
    ɾiOS
    ɾTwitter: @kashihararara
    ɾGitHub: @ShotaKashihara

    View full-size slide

  3. ©2019 Wantedly, Inc.
    લஔ͖
    ຊ୊ࣗಈϩάςετͷεεϝ
    w ՝୊ײͷڞ༗
    w ղܾࡦ͓Αͼख๏ͷ঺հ
    ໨࣍

    View full-size slide

  4. ©2019 Wantedly, Inc.
    ࠓ೔Έͳ͞Μʹ֮͑ͯؼͬͯ΄͍͠ݴ༿

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  7. ©2019 Wantedly, Inc.
    ݄ٕज़ॻయ
    ݄(P$POGFSFODF4QSJOH
    ݄J04%$+BQBO
    ݄ٕज़ॻయ
    ݄3VTU5PLZP
    Wantedly ࣥචεέδϡʔϧ 2019೥
    2-3ϲ݄ʹ1࡭ɺࣾ಺ͷ୭͔͕ٕज़ॻΛ࡞͍ͬͯΔ
    (͍͍ͩͨ)

    View full-size slide

  8. ©2019 Wantedly, Inc.
    ٕज़ॻళ7 ʹ͸2࡭ग़͍ͯ͠·͢

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    ͜ͷϩάΛͳΜΒ͔ͷํ๏Ͱ
    Ωϟϓνϟ͍ͨ͠

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  21. ©2019 Wantedly, Inc.
    ࠾༻

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  31. ©2019 Wantedly, Inc.
    ·ͱΊ
    ࣗಈϩάςετͷεεϝ
    ɾࣗಈϩάςετ͸͍͍ͧ
    ɾhttpswift/swifter ศར (APIϞοΫͱ͔ʹ΋࢖͑Δ)
    ɾ#Wantedly͸ΧδϡΞϧʹຊΛ࡞Δձࣾ
    https://github.com/ShotaKashihara/XCUILogTest
    ࠓճͷαϯϓϧίʔυ͸ͪ͜Β

    View full-size slide