Closed joyzoursky closed 7 years ago
Please see the updated launch hooks.
It is expected that when running scenarios with cucumber, Calabash::Cucumber::Launcher.relaunch should be able to reuse the already attached automator, and launch the target app directly to start another scenario (assuming DeviceAgent is already installed and attached when running the first scenario).
Yes, this is the expected behavior.
iOSDeviceManager install --device-id
-a /path/to/run_loop-2.3.0/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app
The application is probably not being re-installed. The install
command does this:
Step 1. can be incredibly slow if there are more than a few applications installed on the phone or your code signing environment is non-trivial (many profiles and certs) - ~30 seconds is fairly common. The next release of the DeviceAgent should have an improvement.
I see, thanks for reply. We may move the launch steps to global env.rb
to skip this part and speed up the whole test. Looking forward to the improvement, thanks!
It is expected that when running scenarios with cucumber,
Calabash::Cucumber::Launcher.relaunch
should be able to reuse the already attached automator, and launch the target app directly to start another scenario (assuming DeviceAgent is already installed and attached when running the first scenario).However, in the debug log, it is shown that DeviceAgent takes more than 30s to be reinstalled before every scenario, even though it is already existing on the device. As I am running a test with around 50 scenarios, this problem greatly affects the performance of the whole test.
The followings are my scripts in
01_launch.rb
:Debug log when running with cucumber: