Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MortenGregersen/7992af592616bdd6bceb6fa936303389 to your computer and use it in GitHub Desktop.
Save MortenGregersen/7992af592616bdd6bceb6fa936303389 to your computer and use it in GitHub Desktop.
$ DEBUG=1 ./run_tests.rb moberhverv MyBank iphone4s introguide
Bundler gems
bundle install --gemfile=../Gemfile-iphone
OS_VERSION=9.3 BUNDLE_GEMFILE=../Gemfile-iphone APP=/Users/bdumgr/Bankdata/Projects/bankdata_test_tools/automated_tests/moberhverv/apps/MyBank.app RUN_FROM_SCRIPT=1 bundle exec cucumber -p iphone4s_moberhverv moberhverv/features/special_snapshots/Til-Introguide.feature -f 'Slowhandcuke::Formatter' -f html -o introguide-moberhverv-MyBank-iphone4s-9.3_result.html -f json -o result.json -f rerun -o rerun_moberhverv_iphone4s-9.3.txt
Code:
* shared/ios/support/env.rb
* moberhverv/support/users.rb
* shared/ios/support/00_helpers.rb
* shared/ios/support/00_launcher.rb
* shared/ios/support/00_ruby_mine_support.rb
* shared/ios/support/01_hooks.rb
* shared/ios/support/ibd_base.rb
* shared/ios/support/ibd_signing_base.rb
* shared/support/datetime.rb
* shared/support/helpers.rb
* shared/support/nemid.rb
* shared/support/network.rb
* shared/support/page_creator.rb
* shared/support/quick_login.rb
* shared/support/screenshot.rb
* shared/support/tag_handling.rb
* shared/support/types_extensions.rb
* moberhverv/features/step_definitions/00_screenshot_steps.rb
* moberhverv/features/step_definitions/01_menu_login_steps.rb
* moberhverv/features/step_definitions/02_settings_steps.rb
* moberhverv/features/step_definitions/03_payments_to_approve_steps.rb
* moberhverv/features/step_definitions/04_payments_steps.rb
* moberhverv/features/step_definitions/05_account_overview_collections_steps.rb.rb
* moberhverv/features/step_definitions/05_account_overview_steps.rb
* moberhverv/features/step_definitions/06_deliveries_steps.rb
* moberhverv/features/step_definitions/approve_steps.rb
* moberhverv/features/step_definitions/searching_steps.rb
* moberhverv/features/step_definitions/transfer_steps.rb
* moberhverv/screens/ios/account_details_page.rb
* moberhverv/screens/ios/account_overview_edit_companies_page.rb
* moberhverv/screens/ios/account_overview_edit_page.rb
* moberhverv/screens/ios/account_overview_page.rb
* moberhverv/screens/ios/account_page.rb
* moberhverv/screens/ios/account_posting_collection_page.rb
* moberhverv/screens/ios/account_posting_page.rb
* moberhverv/screens/ios/account_selection_page.rb
* moberhverv/screens/ios/approve_page.rb
* moberhverv/screens/ios/approve_payment_with_sms_page.rb
* moberhverv/screens/ios/approve_payments_page.rb
* moberhverv/screens/ios/date_selection_page.rb
* moberhverv/screens/ios/deliveries_approved_page.rb
* moberhverv/screens/ios/deliveries_details_page.rb
* moberhverv/screens/ios/deliveries_overview_page.rb
* moberhverv/screens/ios/intro_guide_page.rb
* moberhverv/screens/ios/login_page.rb
* moberhverv/screens/ios/menu_or_intro_guide_page.rb
* moberhverv/screens/ios/menu_page.rb
* moberhverv/screens/ios/payment_approved_with_sms_page.rb
* moberhverv/screens/ios/payment_details_page.rb
* moberhverv/screens/ios/payments_approved_page.rb
* moberhverv/screens/ios/payments_overview_page.rb
* moberhverv/screens/ios/payments_to_approve_page.rb
* moberhverv/screens/ios/search_account_posting_page.rb
* moberhverv/screens/ios/search_account_posting_sub_page.rb
* moberhverv/screens/ios/search_payments_page.rb
* moberhverv/screens/ios/search_payments_sub_page.rb
* moberhverv/screens/ios/search_payments_to_approve_page.rb
* moberhverv/screens/ios/search_payments_to_approve_sub_page.rb
* moberhverv/screens/ios/settings_close_and_logout_page.rb
* moberhverv/screens/ios/settings_page.rb
* moberhverv/screens/ios/transfer_confirmation_page.rb
* moberhverv/screens/ios/transfer_confirmed_page.rb
* moberhverv/screens/ios/transfer_page.rb
* moberhverv/screens/ios/transfer_receiver_selection_page.rb
* shared/step_definitions/00_general_steps.rb
EXEC: xcrun simctl list devices --json
DEBUG: Setting locale to 'da'
DEBUG: Setting preferred language to 'da'
EXEC: /usr/libexec/PlistBuddy -c Add :AppleLanguages:0 string 'da' /Users/bdumgr/Library/Developer/CoreSimulator/Devices/EA574EAA-913B-4D97-86F9-B83F48EF0094/data/Library/Preferences/.GlobalPreferences.plist
Features:
* moberhverv/features/special_snapshots/Til-Introguide.feature
Using the iphone4s_moberhverv profile...
# language: da
@brug_lokal_server
Egenskab: Screenshots til Introguide
EXEC: xcrun simctl list devices --json
EXEC: xcrun simctl list devices --json
DEBUG: Installed app is the same as #<APP dk.mobilbank.erhverv.MyBank.Cal 202 / 1.3.0 /Users/bdumgr/Bankdata/Projects/bankdata_test_tools/automated_tests/moberhverv/apps/MyBank.app>
DEBUG: HTTP: get http://127.0.0.1:27753/1.0/health {:retries=>1, :timeout=>0.5}
DEBUG: Waiting for DeviceAgent to launch...
DEBUG: Installed app is the same as #<APP com.apple.test.DeviceAgent-Runner 1481635532 / 1.0.4 /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/run_loop-2.2.4/lib/run_loop/device_agent/app/DeviceAgent-Runner.app>
DEBUG: Launching #<Simulator: iPhone 4s (9.3) EA574EAA-913B-4D97-86F9-B83F48EF0094 i386> with:
EXEC: xcrun open -g -a /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID EA574EAA-913B-4D97-86F9-B83F48EF0094
DEBUG: Waiting for simulator to stabilize with timeout: 30 seconds
DEBUG: Timed out after 30 seconds waiting for simulator to stabilize
DEBUG: Took 30.697074 seconds to launch the simulator
DEBUG: Took 33.041617 seconds to install DeviceAgent
EXEC: /usr/local/opt/rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/run_loop-2.2.4/lib/run_loop/device_agent/bin/iOSDeviceManager start_test --device-id EA574EAA-913B-4D97-86F9-B83F48EF0094 >& /Users/bdumgr/.run-loop/xcuitest/ios-device-manager.log
DEBUG: HTTP: get http://127.0.0.1:27753/1.0/health {:retries=>1350, :timeout=>135.0}
DEBUG: DeviceAgent says, "Calabash is ready and waiting."
DEBUG: Took 35.861661 launch and respond to /health
DEBUG: Took 0.200807 seconds to check if app was installed
DEBUG: HTTP: post http://127.0.0.1:27753/1.0/session {:retries=>200, :timeout=>20}
DEBUG: Launched dk.mobilbank.erhverv.MyBank.Cal on #<Simulator: iPhone 4s (9.3) EA574EAA-913B-4D97-86F9-B83F48EF0094 i386>
DEBUG: {"status":"launched!"}
DEBUG: Took 36.175563 seconds to launch dk.mobilbank.erhverv.MyBank.Cal on #<Simulator: iPhone 4s (9.3) EA574EAA-913B-4D97-86F9-B83F48EF0094 i386>
DEBUG: Trying to connect to Calabash Server: 1 of 10
DEBUG: Trying to connect to Calabash Server: 2 of 10
DEBUG: Trying to connect to Calabash Server: 3 of 10
DEBUG: Trying to connect to Calabash Server: 4 of 10
DEBUG: Trying to connect to Calabash Server: 5 of 10
DEBUG: Trying to connect to Calabash Server: 6 of 10
DEBUG: Trying to connect to Calabash Server: 7 of 10
DEBUG: Trying to connect to Calabash Server: 8 of 10
DEBUG: Trying to connect to Calabash Server: 9 of 10
DEBUG: Trying to connect to Calabash Server: 10 of 10
Scenarie: Til Introguide # moberhverv/features/special_snapshots/Til-Introguide.feature:5
Could not connect to the Calabash Server @ http://127.0.0.1:37265/.
See these two guides for help.
* https://github.com/calabash/calabash-ios/wiki/Testing-on-Physical-Devices
* https://github.com/calabash/calabash-ios/wiki/Testing-on-iOS-Simulators
1. Make sure your application is linked with Calabash.
2. Make sure there is not a firewall blocking traffic on http://127.0.0.1:37265/.
3. Make sure http://127.0.0.1:37265/ is correct.
If your app is crashing at launch, find a crash report to determine the cause.
(Calabash::Cucumber::ServerNotRespondingError)
./shared/ios/support/00_launcher.rb:18:in `launch'
./shared/ios/support/01_hooks.rb:49:in `Before'
Givet jeg ser loginskærmen # moberhverv/features/step_definitions/01_menu_login_steps.rb:116
Når jeg logger ind # moberhverv/features/step_definitions/01_menu_login_steps.rb:180
Så ser jeg hovedmenuen eller introguiden (hvis det er første gang jeg logger på) # moberhverv/features/step_definitions/01_menu_login_steps.rb:11
Og lukker introguiden, hvis den vises # moberhverv/features/step_definitions/01_menu_login_steps.rb:47
Og tager et screenshot af Hovedmenuen til Introguiden # moberhverv/features/step_definitions/00_screenshot_steps.rb:5
Når jeg går ind på Kontooverblik # moberhverv/features/step_definitions/01_menu_login_steps.rb:62
Så ser jeg Kontooverblik # moberhverv/features/step_definitions/05_account_overview_steps.rb:1
Og tager et screenshot af Kontooverblik til Introguiden # moberhverv/features/step_definitions/00_screenshot_steps.rb:5
DEBUG: HTTP: post http://127.0.0.1:27753/1.0/dismiss-springboard-alerts {:retries=>200, :timeout=>20}
Retrying.. Errno::ECONNREFUSED: (Connection refused - Connection refused - connect(2) for "127.0.0.1" port 37265 (127.0.0.1:37265))
Retrying.. Errno::ECONNREFUSED: (Connection refused - Connection refused - connect(2) for "127.0.0.1" port 37265 (127.0.0.1:37265))
Failing... Errno::ECONNREFUSED
Connection refused - Connection refused - connect(2) for "127.0.0.1" port 37265 (127.0.0.1:37265) (Errno::ECONNREFUSED)
./shared/ios/support/01_hooks.rb:64:in `After'
Failing Scenarios:
cucumber -p iphone4s_moberhverv moberhverv/features/special_snapshots/Til-Introguide.feature:5 # Scenarie: Til Introguide
1 scenario (1 failed)
8 steps (8 skipped)
0m50.863s
DEBUG: Sending 'TERM' to Simulator.app process '32481'
DEBUG: Waiting for Simulator.app with pid '32481' to terminate
DEBUG: Waited for 0.101457 seconds for Simulator.app with pid '32481' to terminate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment