Setting Up iOS Testing

Before you can start automating your testing on iOS devices with iOS Gateway, there are several steps you must complete, beginning with installing iOS Gateway. またiOSデバイスをテスト開発用に設定する必要があります。この手順のための指示を以下に示します。

付け加えて、テストするアプリの開発用にコード署名が必要で、iOSデバイスにアプリをインストールする必要があります。For information about these steps, see Signing Apps for Use with iOS Gateway.

インスト-ルする前に、チームにとってベストなテスト方法を考えてください。For further information on testing approaches, see iOS Gateway Testing Methods.

Install iOS Gateway

To install iOS Gateway, follow the steps below:

  1. Download the iOS Gateway application from the iOS section of the Eggplant Mobile Gateways Downloads page.
  2. Install iOS Gateway on a Mac running OS X 10.10 or later.
  3. Launch iOS Gateway.
  4. Enter Provisioning information. Go to iOSGateway > Preferences > Provisioning. From here, you can automatically or manually select the profile to use for signing and testing.
    Important: You must have an Apple developer account to complete this step. If you don't already have a developer account, go to the Apple Developer website to create one.

Enable Automatic Signing

If you're new to iOS Gateway or don't have development certificate associated with your Apple developer account, use this method.

iOS Gateway provisioning tab

  1. Go to iOSGateway > Preferences > Provisioning.
  2. Select Automatically create/select provisioning profile.
  3. Enter the username and password for your Apple developer account. iOS Gateway creates a development certificate for you.
    Note: If your Apple Developer ID allows you to disable two-factor authentication, we recommend doing so for automation with iOS Gateway. Two-factor authentication is supported in iOS Gateway, but it can interfere with unmonitored testing by occasionally prompting you to enter authentication information. Go to the Account menu to manually log in or log out.
  4. Plug in the iOS device you want to test. iOS Gateway automatically associates the device with your developer account, if this is not already done.
  5. Start testing.

Manual Signing

If you have an existing development certificate, and it's saved on a different computer, we recommend exporting it from that computer and then importing it to the computer that you want to use. See the Apple Knowledge Base to learn how to do this. Note that this migration doesn't invalidate any existing provisioning profiles you may have. You can install your signing certificate on multiple computers or have more than one person's signing certificate on a given computer, but signing can't be automated in either of those cases.

In rare circumstances, you will need to revoke an existing certificate on the Apple developer website. Only do this if you have no access to the computer your certificate is stored on or if that computer isn't functional.

Add a Device to Your Apple Developer Portal

Xcodeでの開発用での使用を有効にするデバイスは全てオンラインAppleデベロッパーポータルにリストしなければなりません。デバイスのリストにiOSデバイスを追加するには、以下の指示に従ってください。

  1. Apple DeveloperウェブサイトのMember Centerに、Apple Developerアカウントでログインします。Apple Developerアカウントをお持ちでない場合は、作成してください。
  2. Member CenterでCertificates, Identifiers & Profiles (証明書、ID、プロファイル)セクションをクリックして選択し、次にiOS APPのDevices(デバイス)を選びます。
  3. 新しいデバイスを追加するには、右上隅のAdd(追加)ボタン(+)をクリックします。
  4. デバイスの名前と、デバイスにあるUDIDを入力します。To find the UDID, connect the device to a Mac running Xcode. In Xcode, go to Window > Devices, then select the device in the left sidebar. The UDID appears in the Identifier field. You can copy the UDID from Xcode and paste it into the registration portal.
  5. Continue(続行)をクリックして、自分の情報を検証し、次にRegister(登録)をクリックしてデバイスの登録を完了します。

Appleはアカウントに登録できるデバイスのトータル数を制限しています。デバイス登録についての完全な情報は、iOS Developer Library(iOSデベロッパーライブラリ)のMaintaining Identifiers, Devices, and Profiles(ID、デバイス、プロファイルのメンテナンス)を参照してください。

Set Up an iOS Device for Development Use

この指示はXcode 6.1以降に適用します。

注意:開発用にデバイスを有効にする前に、デバイスとしてオンラインAppleデベロッパーポータルに追加しなければなりません。For instructions on this process, see Adding a Device to Your Apple Developer Portal.

Enable Development Use in Xcode

To enable a device for development use with Xcode, follow the instructions below:

  1. Xcode > Preferences(設定)> Account(アカウント)で、Mobile Developer Apple ID(モバイルデベロッパーApple ID)とパスワードを入力してください(以前にそうしたことがない場合)。
  2. Connect an iOS device to your computer via USB.
  3. iOSデバイスで、Trust This Computer(このコンピュータを信頼しますか)ポップアップで、このMacを信頼する事を確認します。

通常は、デバイスは今開発用として有効にすべきです。しかし、このステータスをXcodeで確認します。XcodeのメインメニューからWindow(ウィンドウ)> Devices(デバイス)を選んでDevices(デバイス)ウィンドウを開き、次にスライドバーでデバイスの位置を決めます。デバイスが適切に開発用として有効になっていない場合は、黄色い警告用の三角形がデバイスの隣に表示されます。

Enable UI Automation On the Device

iOS 8以降のOSが実装されているデバイスでは、UI自動化が有効になっていなければなりません。This step cannot be done until after the device has been enabled for development, as described in Set Up an iOS Device for Development Use. To enable UI automation in Xcode for iOS 7 and iOS 8, see these instructions.

このデバイスでUI自動化を有効にするには、以下の手順に従ってください。

  1. iOSデバイス上で、Settings(設定)> Developer(デベロッパー)オプションを選びます。
  2. UI Automation(UI自動化)セクションで、Enable UI Automation(UI自動化の有効)をオンに設定します。

 

This topic was last updated on 2月 01, 2019, at 11:13:23 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant