运行 以递增方式在 AWS 设备场上进行自动化测试

Run automated tests on AWS device farm in incremented ways

我正在为 运行 移动网络测试评估 AWS 设备场。这些是我预期的步骤:

  1. Create sample tests (Java)
  2. Package that as zip file
  3. Go through the AWS device farm console and upload the test zip only
  4. Manually select the configuration and other things
  5. Manually execute the test and evaluate results

我需要帮助的事情是:

a) What if the tests needs some changes, do I need to go through the JAR package creation for every run? Can I run test from my IDE and if everything works fine then only package and upload it on AWS device farm?

b) To do (a) I noticed they have API to simulate step 3-5 to achieve running tests but wondering if there is some easy way to do it?

您列出的步骤是在设备上 运行 测试需要执行的正确任务顺序。使用 AWS Device Farm,您必须执行将测试和应用程序上传到服务的额外步骤。正如您所说,每次更改测试时,您都需要重建 JAR 并上传它。大多数客户使用 Jenkins 等工具设置连续 build/integration 管道来自动执行此任务。

如果您运行正在使用 Android Studio,您可以使用 Device Farm Gradle plugin,它将为您完成工作。