【问题标题】:Running two different test scenarios at the same time on two different devices calabash android在两个不同的设备calabash android上同时运行两个不同的测试场景
【发布时间】:2018-01-11 01:18:06
【问题描述】:

我的情况如下:

  1. 用户“A”登录并执行一些操作
  2. 用户“B”登录并尝试执行相同的操作
  3. 系统应该给出验证错误...说“锁定”

如何执行此操作,即 2 个不同的用户应登录到 2 个不同的设备并尝试执行上述操作

在 2 台设备上运行测试用例的命令是什么 ..例如 1 台设备是: calabash-android 运行 test.apk ADB_DEVICE_ARG=emulator-1112

我可以在两个不同的设备上运行相同的场景吗?以及 Calabash 的 2 个不同设备上的 2 个不同场景?

【问题讨论】:

    标签: android automation automated-tests appium calabash-android


    【解决方案1】:

    是的,你可以。您只需要打开 2 个终端 / cmd windows 并假设应用程序和测试服务器已安装在模拟设备上,然后运行以下命令:

    在窗口 1:

    calabash-android run path\to\your\apk features\[insert_feature_name].feature ADB_DEVICES_ARG="emulator-1112" TEST_SERVER_PORT=34777
    

    在窗口 2,同样的,您只需 更改模拟器服务器端口

    calabash-android run path\to\your\apk features\[insert_feature_name].feature ADB_DEVICES_ARG="emulator-1113" TEST_SERVER_PORT=34778
    

    命令假定您在项目文件夹中。希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-13
      • 1970-01-01
      相关资源
      最近更新 更多