弗兰克一直工作到昨天。我不确定我做了什么,把它搞砸了。在我安装了Frank并工作到昨天的项目中,我得到了:
PING FAILED!!!!!...
立即留言。因此,我创建了一个新项目,并添加了Frank进行测试。我得到了测试输出的开始,但是当它实际尝试启动时,它说未启用辅助功能:
Feature:
As an iOS developer
I want to have a sample feature file
So I can see what my next step is in the wonderful world of Frank/Cucumber testing
Scenario: # features/my_first.feature:6
Rotating the simulator for demonstration purposes
Given I launch the app # features/step_definitions/launch_steps.rb:5
ACCESSIBILITY DOES NOT APPEAR TO BE ENABLED ON YOUR SIMULATOR. Hit the home button, go to settings, select Accessibility, and turn the inspector on. (RuntimeError)
./features/step_definitions/launch_steps.rb:7:in `/^I launch the app$/'
features/my_first.feature:8:in `Given I launch the app'
Given the device is in landscape orientation # frank-cucumber-0.9.5/lib/frank-cucumber/core_frank_steps.rb:135
Given the device is in portrait orientation # frank-cucumber-0.9.5/lib/frank-cucumber/core_frank_steps.rb:149
Given the device is in landscape orientation # frank-cucumber-0.9.5/lib/frank-cucumber/core_frank_steps.rb:135
Given the device is in portrait orientation # frank-cucumber-0.9.5/lib/frank-cucumber/core_frank_steps.rb:149
Failing Scenarios:
cucumber features/my_first.feature:6 # Scenario:
Rotating the simulator for demonstration purposes
系统偏好设置->可访问性中的“启用辅助设备访问”复选框已被选中。因此,我按照错误说要做的那样在移动设备模拟器上启用了它(它在工作时从未做过)。我在模拟器设置中打开了辅助功能检查器,但仍然出现此错误。我重新启动了模拟器和笔记本电脑。我仍然收到错误。有任何想法吗?谢谢,
帕春
最佳答案
最近,有人gemified Frank for rubymotion。这对我来说很有用。
关于ios - 启用了Frank访问功能,但仍然出现错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13150732/