无法在 Bitrise 上 运行 UI 测试 iOS
Can't run UI test for iOS on Bitrise
我正在使用我从 GitHub 派生的他们自己的示例存储库来学习本教程:https://discuss.bitrise.io/t/how-to-do-calabash-uitesting-on-bitrise/361我没有做任何特别的事情,也没有做任何与本教程不同的事情。
我设法获得了 APK 并 Android UI 测试使用葫芦工作。但出于某种原因,iOS 的应用程序不在工件中,尽管它说它是构建的并且 UI 测试(也使用葫芦)失败了。
Cucumber Features
1 scenario (1 failed)
4 steps (4 skipped)
Finished in 6m22.928s seconds
Expand All
Collapse All
Feature: Sample Feature
features/sample.feature:3
Scenario: Sample Scenario
Could not connect to the DeviceAgent service.
device: #<Simulator: iPhone 6 (11.4) FDAAB45E-52F1-4133-A02D-632AA6A9A369 x86_64>
url: http://127.0.0.1:27753/
To diagnose the problem tail the launcher log file:
$ tail -1000 -F /Users/vagrant/.calabash/iOSDeviceManager/logs/current.log
./features/support/01_launch.rb:27:in `Before'
25 }
26
27 launcher.relaunch(options)
28end
29
30# gem install syntax to get syntax highlighting
Given the app has launched
features/steps/sample_steps.rb:1
And I have done a specific thing
features/steps/sample_steps.rb:7
When I do something
features/steps/sample_steps.rb:32
Then something should happen
features/steps/sample_steps.rb:41
这里是 bitrise.yml:
---
format_version: '5'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: xamarin
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
primary:
steps:
- activate-ssh-key@3.1.1:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4.0.11: {}
- script@1.1.5:
title: Do anything with Script step
- certificate-and-profile-installer@1.9.3: {}
- nuget-restore@1.0.7: {}
- xamarin-archive@1.5.0:
inputs:
- xamarin_solution: "$BITRISE_PROJECT_PATH"
- xamarin_configuration: "$BITRISE_XAMARIN_CONFIGURATION"
- xamarin_platform: "$BITRISE_XAMARIN_PLATFORM"
- calabash-ios-uitest@1.3.1:
inputs:
- work_dir: "./iOS"
- deploy-to-bitrise-io@1.3.12: {}
- create-android-emulator@1.1.5:
inputs:
- name: FOO
- start-android-emulator@1.3.2: {}
- calabash-android-uitest@1.2.1:
inputs:
- work_dir: "./Droid"
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: Multiplatform.sln
- opts:
is_expand: false
BITRISE_XAMARIN_CONFIGURATION: calabash
- opts:
is_expand: false
BITRISE_XAMARIN_PLATFORM: Any CPU
我问过 Bitrise 的人,显然 calabsh-ios 支持 Xcode 6 和 7,它们是旧版本,Bitrise 不提供该版本的堆栈。
我正在使用我从 GitHub 派生的他们自己的示例存储库来学习本教程:https://discuss.bitrise.io/t/how-to-do-calabash-uitesting-on-bitrise/361我没有做任何特别的事情,也没有做任何与本教程不同的事情。
我设法获得了 APK 并 Android UI 测试使用葫芦工作。但出于某种原因,iOS 的应用程序不在工件中,尽管它说它是构建的并且 UI 测试(也使用葫芦)失败了。
Cucumber Features
1 scenario (1 failed)
4 steps (4 skipped)
Finished in 6m22.928s seconds
Expand All
Collapse All
Feature: Sample Feature
features/sample.feature:3
Scenario: Sample Scenario
Could not connect to the DeviceAgent service.
device: #<Simulator: iPhone 6 (11.4) FDAAB45E-52F1-4133-A02D-632AA6A9A369 x86_64>
url: http://127.0.0.1:27753/
To diagnose the problem tail the launcher log file:
$ tail -1000 -F /Users/vagrant/.calabash/iOSDeviceManager/logs/current.log
./features/support/01_launch.rb:27:in `Before'
25 }
26
27 launcher.relaunch(options)
28end
29
30# gem install syntax to get syntax highlighting
Given the app has launched
features/steps/sample_steps.rb:1
And I have done a specific thing
features/steps/sample_steps.rb:7
When I do something
features/steps/sample_steps.rb:32
Then something should happen
features/steps/sample_steps.rb:41
这里是 bitrise.yml:
---
format_version: '5'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: xamarin
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
primary:
steps:
- activate-ssh-key@3.1.1:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4.0.11: {}
- script@1.1.5:
title: Do anything with Script step
- certificate-and-profile-installer@1.9.3: {}
- nuget-restore@1.0.7: {}
- xamarin-archive@1.5.0:
inputs:
- xamarin_solution: "$BITRISE_PROJECT_PATH"
- xamarin_configuration: "$BITRISE_XAMARIN_CONFIGURATION"
- xamarin_platform: "$BITRISE_XAMARIN_PLATFORM"
- calabash-ios-uitest@1.3.1:
inputs:
- work_dir: "./iOS"
- deploy-to-bitrise-io@1.3.12: {}
- create-android-emulator@1.1.5:
inputs:
- name: FOO
- start-android-emulator@1.3.2: {}
- calabash-android-uitest@1.2.1:
inputs:
- work_dir: "./Droid"
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: Multiplatform.sln
- opts:
is_expand: false
BITRISE_XAMARIN_CONFIGURATION: calabash
- opts:
is_expand: false
BITRISE_XAMARIN_PLATFORM: Any CPU
我问过 Bitrise 的人,显然 calabsh-ios 支持 Xcode 6 和 7,它们是旧版本,Bitrise 不提供该版本的堆栈。