我正在使用从GitHub分叉的他们自己的示例存储库来学习本教程:https://discuss.bitrise.io/t/how-to-do-calabash-uitesting-on-bitrise/361我没有做任何特别的事情或与本教程不同的事情。
我设法使用葫芦进行了APK和Android UI测试。但是出于某种原因,尽管iOS的APP虽然说它是构建的并且UI测试(也使用calabash)失败了,但它仍不在工件中。
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:
- [email protected]:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- [email protected]: {}
- [email protected]:
title: Do anything with Script step
- [email protected]: {}
- [email protected]: {}
- [email protected]:
inputs:
- xamarin_solution: "$BITRISE_PROJECT_PATH"
- xamarin_configuration: "$BITRISE_XAMARIN_CONFIGURATION"
- xamarin_platform: "$BITRISE_XAMARIN_PLATFORM"
- [email protected]:
inputs:
- work_dir: "./iOS"
- [email protected]: {}
- [email protected]:
inputs:
- name: FOO
- [email protected]: {}
- [email protected]:
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没有为该版本提供堆栈。
https://github.com/calabash/calabash-ios
关于ios - 无法在Bitrise上运行iOS的UI测试,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/50966857/