启用Frank可访问性但仍然出错

时间:2012-10-31 03:10:20

标签: ios cucumber accessibility acceptance-testing frank

弗兰克一直工作到昨天。我不知道我做了什么搞砸了。在我安装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

系统首选项中的“启用辅助设备访问”复选框 - >已检查辅助功能。所以我开始在移动设备模拟器上启用它,就像错误所说的那样(我以前在工作时从未做过)。我在模拟器设置中打开了辅助功能检查器,但我仍然收到此错误。我重新启动了模拟器和我的笔记本电脑。我仍然得到错误。有任何想法吗?谢谢,

Pachun

1 个答案:

答案 0 :(得分:0)

最近有人gemified Frank for rubymotion。它适用于我。