模糊选项:运行Selenium时收到的--o(OptionParser :: AmbiguousOption)错误,ruby脚本

时间:2015-04-15 09:51:31

标签: ruby selenium cucumber watir

我正在尝试运行使用Watir,Ruby和Cucumber构建的项目,该项目之前正在处理不同版本的软件/系统细节。

面临问题的当前系统详细信息:

Windows 8
Cucumber version : 2.0.0
gem version : 2.4.6
Ruby version: ruby 2.2.1p85 (2015-02-26 revision 49769) [x64-mingw32]

该包正在进行以下配置:

Windows XP/7
Cucumber 1.3.17
Gem : 2.0.14
Ruby: 2.0.0p481

当我使用rake命令运行我的脚本时,我得到以下提到的错误:

ambiguous option: --o (OptionParser::AmbiguousOption)
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/lib/ruby/gems/2.2.0/gems/cucum
ber-2.0.0/lib/cucumber/cli/options.rb:253:in `parse!'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/lib/ruby/gems/2.2.0/gems/cucum
ber-2.0.0/lib/cucumber/cli/configuration.rb:25:in `parse!'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/lib/ruby/gems/2.2.0/gems/cucum
ber-2.0.0/lib/cucumber/cli/main.rb:64:in `block in configuration'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/lib/ruby/gems/2.2.0/gems/cucum
ber-2.0.0/lib/cucumber/cli/main.rb:63:in `tap'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/lib/ruby/gems/2.2.0/gems/cucum
ber-2.0.0/lib/cucumber/cli/main.rb:63:in `configuration'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/lib/ruby/gems/2.2.0/gems/cucum
ber-2.0.0/lib/cucumber/cli/main.rb:35:in `execute!'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/lib/ruby/gems/2.2.0/gems/cucum
ber-2.0.0/bin/cucumber:9:in `<top (required)>'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/bin/cucumber:23:in `load'
C:/Automation/SeleniumAutomationUsingRuby/Ruby221/bin/cucumber:23:in `<main>'

我试着寻找一些答案,但看起来没有人面对这个问题。那么请你帮我解决一下出了什么问题

0 个答案:

没有答案