json - Calabash-ios: Run test physical device installed ipa without xcodeproj -
i new calabash-ios , have dummy question is:
how possibly run calabash test real device have installed ipa file (included calabash framework) , without xcodeproj?
problem doing qa , dev gives me ipa file test without source code.
update: able run ipa file in console , cucumber adding bundle_id. , make sure cfnetwork.framework including in app framework establish connection.
but got problem run scenario: 1. when run command below:
device_endpoint=http://192.168.1.9:37265 no_launch=1 bundle_id=com.example.appname device_target=udid cucumber
then got error:
json text must @ least contain 2 octets! (json::parsererror) features/my_first.feature:8:in `then touch "log-in/ create account"'
all other steps skipped
then run console code
device_endpoint=http://192.168.1.9:37265 no_launch=1 bundle_id=com.example.appname device_target=udid calabash-ios console
then run server_version got reply said connection succeed when run start_test_server_in_background took me long wait , see app physical device kept crashed , launch again , again until stop as:
unable start. make sure you've set app_bundle_path build supported simulator version calabash::cucumber::launcher::starterror: calabash::cucumber::launcher::starterror: "timed out waiting uiautomation run-loop error while writing fifo. runloop::fifo::noreaderconfigurederror. 2015-10-01 10:49:41.634 instruments[15640:10558880] webkit threading violation - initial use of webkit secondary thread. 2015-10-01 10:49:42.574 instruments[15640:10558978] attempting change event horizon while disengage 2015-10-01 10:49:42.577 instruments[15640:10558877] attempting change event horizon while disengage instruments trace error : target failed run: permission debug app
anyone can please! tried search solution issue on simulator , contain xcodeproj. qa, dont have source code, .ipa file. :( thanks
you should set 3 variables:
$ device_target=<udid> \ device_endpoint=http://<ip>:37265 \ bundle_id=com.example.yourapp cucumber
the device , host computer should on same network.
the .ipa must installed on device.
you can in xcode dragging-and-dropping in device manager window or third-party tool ideviceinstaller (available homebrew).
you should never set no_launch
.
http://calabashapi.xamarin.com/ios/file.environment_variables.html#label-no_launch
you need enable device develop , turn on uiautomation in settings.app > developer.
update in response question, rewrote testing on physical devices calabash ios wiki page. wow, content ancient!
Comments
Post a Comment