【问题标题】:Appium tests on AWS Device Farm not executing in the specified orderAWS Device Farm 上的 Appium 测试未按指定顺序执行
【发布时间】:2018-08-27 11:03:35
【问题描述】:

当我在 appium 上本地运行测试时,我的测试运行良好。但是当我在 AWS Device Farm 上运行测试时,没有遵循所需的执行顺序。我使用过@Tests(priority=1) 等。但测试没有按顺序执行。 为亚马逊设备场中的每个 @Test 方法创建新会话。

想要的执行顺序是——BeforeGroup BeforeMethod1 AfterMethod1 BeforeMethod2 AfterMethod2 BeforeMethod3 AfterMethod3 AfterGroup

但在 AWS Device Farm 上,顺序是 - BeforeGroup BeforeMethod1 AfterMethod1 AfterGroup(之后发生拆卸)

谁能告诉我一个克服这个问题的方法。 提前致谢。

【问题讨论】:

    标签: automated-tests appium appium-android aws-device-farm


    【解决方案1】:

    这在 Device Farm 的标准环境中是预期的。但是,我在这里开发了一种解决方法。

    https://github.com/aws-samples/aws-device-farm-appium-tests-for-sample-app/issues/15#issuecomment-397845385

    或者,该项目可能会受益于 Device Farm 中的自定义环境

    https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html

    这应该允许在 Device Farm 中获得优先权。

    第 -詹姆斯

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-06-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-22
      • 2018-07-05
      相关资源
      最近更新 更多