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

5分でわかる! AWS Device Farmでテストしよう!

5分でわかる! AWS Device Farmでテストしよう!

iOS Test Night #3
https://testnight.connpass.com/event/49561/
の発表資料。
Device Farmのやり方について発表しました。

Sato Takeshi

March 13, 2017
Tweet

More Decks by Sato Takeshi

Other Decks in Technology

Transcript

  1. ๛෋ͳ୺຤छྨ&OSόʔδϣϯ • iPhone4s-iPhone7PlusͷiOS7.1͔ΒiOS10·Ͱ • iPad2/iPad miniୈҰੈ୅/iPad Pro • Android΋΄΅ओཁͳ୺຤ΛͦΖ͍͑ͯΔʢͨͩ͠άϩʔόϧ൛) •

    Android୺຤͸೔ຊ͸ΩϟϦΞ͕ΧελϚΠζ͍ͯ͠ΔͷͰ஫ ҙʂ https://aws.amazon.com/jp/device-farm/device-list/ 5෼ͰΘ͔Δ! AWS Device FarmͰςετ͠Α͏ʂ 2017/3/13 11
  2. XCUIͰςετίʔυΛॻ͘ import XCTest class MAMORIOUITests: XCTestCase { override func setUp()

    { super.setUp() continueAfterFailure = false XCUIApplication().launch() } func test1Tutorial() {} } 5෼ͰΘ͔Δ! AWS Device FarmͰςετ͠Α͏ʂ 2017/3/13 17
  3. XCUIͷઆ໌ • XCUIApplicationͰΞϓϦऔಘͯ͠ • XCUIElementQueryͰUI෦඼Λݕࡧ ͯ͠ • XCUIElementͰλοϓͳͲUIૢ࡞Λ ͢Δ let

    app = XCUIApplication() app.buttons["startButton"].tap() 5෼ͰΘ͔Δ! AWS Device FarmͰςετ͠Α͏ʂ 2017/3/13 18
  4. mkdir Payload mv [UITestName]-Runner.app Payload zip Payload.zip Payload mv Payload.zip

    Payload.ipa 5෼ͰΘ͔Δ! AWS Device FarmͰςετ͠Α͏ʂ 2017/3/13 24
  5. Device FarmʹΞϓϦͱςε τΛొ࿥࣮͠ߦ Create a new project ΛΫϦοΫ Create a

    new run ΛΫϦοΫ 5෼ͰΘ͔Δ! AWS Device FarmͰςετ͠Α͏ʂ 2017/3/13 25