我的情况如下:
如何执行此操作,即2个不同的用户应登录到2个不同的设备并尝试执行上述操作
在2台设备上运行测试用例的命令是什么...例如1台设备: calabash-android运行test.apk ADB_DEVICE_ARG = emulator-1112
我可以在两个不同的设备上运行相同的方案吗?在Calabash的两个不同设备上有2种不同的场景?
答案 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.