Sauce LabsとEspresso

This page is not available in the language you requested. You have been redirected to the English version of the page.
Link to this page copied to clipboard
Not for use with personal data

Axe DevTools Mobileを使用して、Espressoテストでのアクセシビリティの問題を見つけることができます。テストをSauce Labsと統合し、アプリをユーザーが見たことがない段階でその体験への洞察を得ましょう!これには、チームからの追加の労力は必要ありません。Sauce Labsは最大のクラウドベースのテストプラットフォームであり、さまざまなデバイスとエミュレーターの構成をホスティングしてデジタルへの自信を築きます。現在のビルドオートメーションにテストを設定し、プロダクションに到達する前に問題を特定できます。

以下は、Axe DevTools MobileとSauce Labsを統合したEspressoテストを実行するためのガイドです。

前提条件

  1. The `saucectl` command-line interface:以下に従ってください Sauce Labsのインストール手順 、もしSauce CLIをまだ持っていない場合。
  • Sauce Labs credentials:これらをあなたの .bash_profile または .zshenvに追加してください。変更をロードするには、次を実行してください source .filename。詳細については、次に従ってください Sauce Labsの指示
  • Sauce Labsの設定を追加

    Sauce Labsは、プロジェクトルートの.sauce/config.ymlにあるyamlファイルを使用します。以下のサンプル設定ファイルを参照してください。

    version: 2.1
    apiVersion: v1alpha
    kind: espresso
    sauce:
     region: us-west-1
     concurrency: 10
     metadata:
       tags:
         - e2e
       build: Your App
    espresso:
     app: ./app/build/outputs/apk/debug/<app_name>-debug.apk
     testApp: ./app/build/outputs/apk/androidTest/debug/<app_name>-debug-androidTest.apk
    suites:
     - name: "<app_name>"
       testOptions:
         clearPackageData: true
         useTestOrchestrator: true
       emulators:
         - name: "Google Pixel 3 GoogleAPI Emulator"
           platformVersions:
             - "11.0"
         - name: "Google Pixel 3a GoogleAPI Emulator"
           platformVersions:
             - "10.0"
         - name: "Google Pixel 3 XL GoogleAPI Emulator"
           platformVersions:
             - "9.0"
    

    Sauce Labsでのテスト実行

    プロジェクトのルートからsaucectl runを実行すると、Sauce LabsプラットフォームでEspressoテストが開始されます。このコマンドをCI/CDパイプラインに統合して、完全に自動化してください。