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Λ࢖͍࢝Ίͨͷ͔ • note͸Android 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ϓϥϯͷ৔߹
 ͓ۚ͸͔͔Γ·͕͢ແ੍ݶͰ࢖͑·͢ • note͸BlazeϓϥϯͰ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 Test͸espressoΛ࢖ ͬͯΞϓϦͷૢ࡞Λͯ͠Δ͜ͱ͕Θ͔Δ

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ʂʂ