在两个不同的设备calabash android上同时运行两个不同的测试场景

时间:2017-08-03 12:24:58

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

我的情况如下:

  1. 用户' A'登录并采取一些行动
  2. 用户' B'登录并尝试执行相同的操作
  3. 系统应该提供验证错误...说“已锁定”
  4. 如何执行此操作,即2个不同的用户应登录到2个不同的设备并尝试执行上述操作

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

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

1 个答案:

答案 0 :(得分:0)

Yes you can. You just need to have 2 terminal / cmd windows open and assuming that the application and test server are installed on the emulated devices, you run the following:

In window 1:

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

In window 2, same thing, you just change the emulator and server port:

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

Commands assume that you are in the project folder. Hope it helps.