Sha256: 409d2ad8647e273a05146355f7b41dd21dcb6250e84884258a75a874adda1755
Contents?: true
Size: 868 Bytes
Versions: 3
Compression:
Stored size: 868 Bytes
Contents
require 'calabash-android/management/adb' require 'calabash-android/operations' require 'kraken-mobile/test_scenario' def start_test_kraken_server_in_background start_test_server_in_background DeviceProcess.notify_process_state( process_id: process_id, state: K::PROCESS_STATES[:ready_to_start] ) Timeout.timeout(K::DEFAULT_START_TIMEOUT_SECONDS, RuntimeError) do sleep(1) until TestScenario.ready_to_start? end end def shutdown_test_kraken_server DeviceProcess.notify_process_state( process_id: process_id, state: K::PROCESS_STATES[:ready_to_finish] ) Timeout.timeout(K::DEFAULT_FINISH_TIMEOUT_SECONDS, RuntimeError) do sleep(1) until TestScenario.ready_to_finish? end shutdown_test_server end private def process_id tag_process_id = @scenario_tags.grep(/@user/).first tag_process_id.delete_prefix('@user') end
Version data entries
3 entries across 3 versions & 1 rubygems