【发布时间】: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