<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                - ## 如何測試Android App Bundle Google已發布了[Android App Bundle](https://developer.android.com/platform/technology/app-bundle/)功能。 該功能會生成一個`.aab`文件,我們應該將其上傳到Google Play商店。我們可以使用官方管理工具[bundletool](https://developer.android.com/studio/command-line/bundletool)(它可從[bundletool](https://github.com/google/bundletool)下載)通過CLI管理`.aab`文件。[該指南](https://developer.android.com/guide/app-bundle/)可以幫助我們了解此功能。 我們可以通過CLI從`.aab`文件中獲取apk文件。我們可以使用生成的文件針對發布模塊進行測試。從Appium 1.9.2開始,您可以使用UiAutomator2驅動程序對文件`.apks`進行Appium測試。鏈接[1](https://github.com/appium/appium-adb/pull/367)和[2](https://github.com/appium/appium-base-driver/pull/271)是該功能的PR。 ## 如何進行測試 1. 導出`bundletool.jar`到你的路徑中 - Appium會在本地環境路徑中尋找`bundletool.jar`。確保其可以找到帶有`'bundletool.jar'`的路徑。如果找不到,請設置正確的路徑。 2. 從 `.aab`文件生成`.apks`文件 - `.aab`在Android Studio超過3.2的版本中可用 - 從`.aab`生成`.apks`文件時時,必須正確簽名。此步驟需要數據簽名。 ```bash $ java -jar apks / bundletool.jar build-apks \ --bundle apks / release / release / app.aab \ # 生成的aab文件 --output apks / AppBundleSample.apks \ # 您要輸出的apks文件 --ks apks / sign \ # 簽名密鑰庫 --ks-key-alias KEY0 \ # 密鑰庫別名 --ks-pass pass:kazucocoa \ # 密鑰庫的密碼 --overwrite # 覆蓋任何現有的apk文件 ``` 3. 使用`.apks`文件的路徑作為您的app capability。 ```ruby required_capability = caps:{ platformName: :android, automationName: 'uiautomator2', platformVersion: '8.1', deviceName: 'Android Emulator', app: 'path/to/your.apks', #這行很重要 fullReset: true, ... } core = ::Appium::Core.for(desired_capability) driver = core.start_driver ``` 您可以在[https://developer.android.com/guide/app-bundle/](https://developer.android.com/guide/app-bundle/)中找到獲取測試APK的另一種方法。 ## 提示 ### 使`bundletool.jar`可執行 確保bundletool是可執行的,例如使用以下命令。 `$ chmod 655 /path/to/bundletool.jar` ### 用不同的語言測試 如果要使用其他語言資源對應用程序進行測試,設置`fullReset: true`。 Appium僅按照appbundle功能的行為安裝最少的資源集。例如,如果設備的語言設置為英語,則Appium將僅安裝`en`資源。安裝的apk將沒有日語資源。 為了強制使用其他語言資源集重新安裝,請指定參數 `fullreset: true` ## 示例項目 - https://github.com/KazuCocoa/AppBundleSample
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看