Firebase Test LabのRobo Test いいね👍
by
operandoOS
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Firebase Test Labͷ Robo Test ͍͍Ͷ shibuya.apk #30
Slide 2
Slide 2 text
Firebase Test Lab “Test your app on devices hosted in a Google data center.“
Slide 3
Slide 3 text
Firebase Test Lab • ԾσόΠεͱཧσόΠε྆ํ༻ҙ͞ΕͯΔ • ࠓiOSαϙʔτ͞Εͨ • AndroidͩͱҎԼͷςετ͕Ͱ͖Δ • Instrumentation tests • Robo Test • Game loop test
Slide 4
Slide 4 text
Robo Test “Robo test analyzes the structure of your app's UI and then explores it methodically, automatically simulating user activities.”
Slide 5
Slide 5 text
Robo Test ެࣜυΩϡϝϯτ https://firebase.google.com/docs/ test-lab/android/robo-ux-test
Slide 6
Slide 6 text
ͳͥ Robo TestΛ͍࢝Ίͨͷ͔ • ൃQAͷํ͕ࢼ͠ʹ࣮ߦͯ͘͠Εͨ • ੲʹͬͨ࣌͋·Γʹͨͨͳ͔͚ͬͨ Ͳɺࠓճࢼͯ͠ΈͨΒྑ͘ͳͬͯͨ
Slide 7
Slide 7 text
ͳͥ Robo TestΛ͍࢝Ίͨͷ͔ • noteAndroid 4ܥ·Ͱαϙʔτͯ͠Δ͚Ͳ ࣾʹ·ͱʹಈ͘4ܥ͕গͳ͍ • ϦάϨογϣϯςετతʹखಈͰ৭Μͳը໘Λ νΣοΫ͢Δͷ͕໘ • ςετίʔυॻ͍ͯͳ͍ • ͚ͲɺͳΜ͔ࣗಈͰ৭Μͳը໘ݟͯ΄͍͠
Slide 8
Slide 8 text
Firebase Test Lab͕ରԠͯ͠ΔAPIϨϕϧ • APIϨϕϧ 18 ʙ 28 • Jelly Bean MR2 ʙ P·Ͱ • ेͦ͏
Slide 9
Slide 9 text
Robo Testͷ࣮ߦʹඞཁͳͷ • ςετ͍ͨ͠ΞϓϦͷApk • Firebase Project • ʢίϚϯυϥΠϯ͔Β࣮ߦ͢Δ߹gcloudʣ
Slide 10
Slide 10 text
ແྉͰ͑·͢ʂ • Firebaseͷྉۚϓϥϯ͕ Sparkϓϥϯ or Flameϓϥϯͷ߹ ͋ΔఔແྉͰ͑·͢ • ͪΐͬͱࢼ͢ʹे͑·͢
Slide 11
Slide 11 text
͓ۚΛ͑ͬͱ͑·͢ʂ • Firebaseͷྉۚϓϥϯ͕Blazeϓϥϯͷ߹ ͓͔͔ۚΓ·͕͢ແ੍ݶͰ͑·͢ • noteBlazeϓϥϯͰFirebase test labΛ ͬͯ·͢
Slide 12
Slide 12 text
Pricing • ྉۚͷৄࡉҎԼΛࢀর • https://firebase.google.com/docs/test- lab/android/overview#billing
Slide 13
Slide 13 text
noteͰͷFirebase test labͷ ઌ݄ͷ༻ྉ • ཧσόΠεΛ2࣌ؒͪΐͬͱͬͯ 534ԁ • ԾσόΠεेͬͯ 0ԁ • ͍҆ʂʂ • Robo Test͔ͬͯ͠ͳ͍
Slide 14
Slide 14 text
͏্Ͱ͓ͬͯ͘ͱ͍͍͜ͱ • Robo TestͷλΠϜΞτ • ΧελϜϩάΠϯ
Slide 15
Slide 15 text
Robo TestͷλΠϜΞτ • Robo ςετΛ࣮ߦ͢Δ࣌ؒ • noteͰ5ʹઃఆͯ͠Δ • ·ͣ͘͡Ίͯɺ݁ՌΛݟͯঃʑʹ ΞϓϦʹ࠷దͳ࣌ؒΛݟ͚ͭΔͷ͕ྑͦ͞͏
Slide 16
Slide 16 text
ΧελϜϩάΠϯ • ϩάΠϯ͕ඞཁͳը໘ػೳ͕͋Δ߹ʹ͏ • ϩάΠϯը໘ͷid/passwordʹೖΕΔΛ ఆٛ͢Δ • Robo Test͕ϩάΠϯը໘ʹ͖ͨΒɺͦΕͧΕͷ EditTextʹఆٛͨ͠ΛೖΕɺϩάΠϯͯ͘͠ΕΔ
Slide 17
Slide 17 text
ΧελϜϩάΠϯ • ͜Εఆ͓͔ٛͯ͠ͳ͍ͱ ʮ͋ΕʁϩάΠϯը໘ શવ ಥഁͰ͖ͯͳ͍ʂ μϝ͡ΌΜʂʯ ͬͯͳΔͷͰɺఆ͓͖ٛͯ͠·͠ΐ͏
Slide 18
Slide 18 text
Demo
Slide 19
Slide 19 text
Test Report
Slide 20
Slide 20 text
݁Ռ͕γϯϓϧ
Slide 21
Slide 21 text
non-SDK interfacesͬͯΔ ͱ͜Ζग़ͯ͘͠ΕΔ • APIϨϕϧ 28Ҏ্Ͱಈ͔͢ͱग़ͯ͘͠ΕΔ
Slide 22
Slide 22 text
ύϑΥʔϚϯεग़ͯ͘͠ΕΔ
Slide 23
Slide 23 text
ύϑΥʔϚϯεग़ͯ͘͠ΕΔ
Slide 24
Slide 24 text
ύϑΥʔϚϯεग़ͯ͘͠ΕΔ • Roboͷૢ࡞ಈըͱSyncͯͦ͠ΕͧΕͷάϥϑ ͕Ͳ͏ͳͬͯΔͷ͔ݟΕΔͷΑ͍
Slide 25
Slide 25 text
No content
Slide 26
Slide 26 text
Robo TestͰΫϥογϡͨ͠Β StackTraceग़ͯ͘͠ΕΔ
Slide 27
Slide 27 text
Robo TestͰΫϥογϡͨ͠Β StackTraceग़ͯ͘͠ΕΔ • StackTraceݟΔͱRobo TestespressoΛ ͬͯΞϓϦͷૢ࡞Λͯ͠Δ͜ͱ͕Θ͔Δ
Slide 28
Slide 28 text
ςετͷ݁Ռ͕GCSʹอଘ͞ΕΔ • ૢ࡞ϩάͷJSON • Robo script • ͜ͷϩάΛ͑ɺಉ͡ૢ࡞ͷRobo Test͕Ͱ͖Δ • Logcat • Robo Test࣮ߦ࣌ͷͷLogcat
Slide 29
Slide 29 text
ςετͷ݁Ռ͕GCSʹอଘ͞ΕΔ • Robo͕ૢ࡞ͨ͠ಈը • εΫϦʔϯγϣοτ • Ϋϩʔϧάϥϑ • Robo Testͷૢ࡞͔Β࡞͞ΕΔը໘ભҠ • ͜Εͳ͔ͳ͔͍͢͝
Slide 30
Slide 30 text
Ϋϩʔϧάϥϑ
Slide 31
Slide 31 text
Robo TestΛ͍࣮ͭߦͯ͠Δͷ͔ • noteͰϦϦʔεલͷQAΛ࢝ΊΔ࣌ʹ ෳόʔδϣϯɺෳͰ࣮ߦͯ͠Δ • ͲΕͰ࣮ߦ͢Δ͔Ͳ͔ͷςϯϓϨʔτΛ࡞ΕΔͷͰ ͦͷςϯϓϨʔτΛͬͯຖճ࣮ߦ͢Δͱָ • Robo script·ͩͬͯͳ͍ͷͰ ૢ࡞ຖճϥϯμϜૢ࡞
Slide 32
Slide 32 text
ࠓͲ͏͍͔ͨ͠ • ReleaseϒϥϯνΛ࡞ͬͨΒɺCI্͔ΒࣗಈͰRobo Test࣮ߦ • ࠓgcloud͔Firebase ProjectϙνϙνͰ࣮ߦͯ͠Δ • Robo scriptΛͬͯɺܾΊΒΕͨૢ࡞Λ࣮ߦͰ͖ΔΑ͏ʹ͢Δ • ৽͍͠ػೳͱ͔࡞ͬͨΒRobo scriptϝϯς͢Δ ඞཁ͋Γͦ͏ͳͷͰͲ͏͠Α͏ • ӡ༻ͯ͠Δํ͍ͨΒݟ͍ͩ͘͞
Slide 33
Slide 33 text
͓·͚
Slide 34
Slide 34 text
apk͑͋͞Ε… • ͕ࣗͨͪ࡞ͬͯΔΞϓϦ͡Όͳͯ͘ Robo TestΒͤΒΕΔ • Βͳ͍ͰͶ
Slide 35
Slide 35 text
gcloudͰRobo TestΛ࣮ߦ • gcloudΛΠϯετʔϧ͢Δ • https://cloud.google.com/sdk/docs/ downloads-interactive
Slide 36
Slide 36 text
gcloud͔ΒRobo TestΛ࣮ߦ gcloud firebase test android run \ --type robo \ --app \ --device model=Pixel2,version=28,locale=ja_JP,orientation=portrait \ --timeout 90s • ͜Μͳײ͡ͷίϚϯυͰ࣮ߦ
Slide 37
Slide 37 text
·ͱΊ • Robo TestΑ͍ • ؆୯ʹ͍࢝ΊΒΕΔ • Test Report͕ॆ࣮ͯ͠Δͷخ͍͠ • CIͱ͔ʹΈࠐΊΔͷΑ͍
Slide 38
Slide 38 text
Thanksʂʂ