- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有人有关于 Java + Cucumber 集成的好的教程吗?我已经开始使用 Ant + Ivy,但无法正确构建项目。我找到了以下site ,但是在检查了他们的代码后,我能够构建的项目最接近的是以下错误:
Buildfile: C:\workspace\cucumber-helloworld\build.xml
resolve:
[ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: file = C:\workspace\cucumber-helloworld\ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: cukes.info#java-example;working@SNKXW-SGENTRY
[ivy:retrieve] confs: [default]
[ivy:retrieve] found cuke4duke#cuke4duke;0.4.4 in cukes
[ivy:retrieve] found org.jruby#jruby-complete;1.5.1 in ibiblio
[ivy:retrieve] found org.picocontainer#picocontainer;2.10.2 in ibiblio
[ivy:retrieve] found junit#junit;4.8.1 in ibiblio
[ivy:retrieve] :: resolution report :: resolve 162ms :: artifacts dl 6ms
--------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 4 | 0 | 0 | 0 || 4 | 0 |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: cukes.info#java-example
[ivy:retrieve] confs: [default]
[ivy:retrieve] 0 artifacts copied, 4 already retrieved (0kB/6ms)
-define-paths:
-install-gems:
[gem] JRuby limited openssl loaded. http://jruby.org/openssl
[gem] gem install jruby-openssl for full support.
[gem] System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException
[gem] from DefaultResolver.java:111:in `makeTime'
[gem] from DefaultResolver.java:277:in `create'
[gem] from DefaultResolver.java:317:in `handleScalar'
[gem] from DefaultResolver.java:435:in `orgHandler'
[gem] from DefaultResolver.java:455:in `node_import'
[gem] from org/yecht/ruby/DefaultResolver$s_method_1_0$RUBYINVOKER$node_import.gen:65535:in `call'
[gem] from CachingCallSite.java:146:in `call'
[gem] from RubyLoadHandler.java:40:in `handle'
[gem] from Parser.java:300:in `addNode'
[gem] from DefaultYAMLParser.java:676:in `yyparse'
[gem] from Parser.java:290:in `yechtparse'
[gem] from Parser.java:284:in `parse'
[gem] from YParser.java:152:in `load'
[gem] from org/yecht/ruby/YParser$s_method_0_1$RUBYINVOKER$load.gen:65535:in `call'
[gem] from JavaMethod.java:630:in `call'
[gem] from DynamicMethod.java:186:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from CallOneArgNode.java:57:in `interpret'
[gem] from LocalAsgnNode.java:123:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from InterpretedMethod.java:180:in `call'
[gem] from DefaultMethod.java:172:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from CallOneArgNode.java:57:in `interpret'
[gem] from LocalAsgnNode.java:123:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:180:in `call'
[gem] from DefaultMethod.java:172:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from CallOneArgNode.java:57:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from RescueNode.java:199:in `executeBody'
[gem] from RescueNode.java:118:in `interpretWithJavaExceptions'
[gem] from RescueNode.java:110:in `interpret'
[gem] from InterpretedMethod.java:180:in `call'
[gem] from DefaultMethod.java:172:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from FCallOneArgNode.java:36:in `interpret'
[gem] from InstAsgnNode.java:95:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from EnsureNode.java:96:in `interpret'
[gem] from BeginNode.java:83:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from WhenOneArgNode.java:36:in `whenSlowTest'
[gem] from WhenOneArgNode.java:46:in `when'
[gem] from CaseNode.java:133:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from InterpretedBlock.java:373:in `evalBlockBody'
[gem] from InterpretedBlock.java:346:in `yield'
[gem] from InterpretedBlock.java:303:in `yield'
[gem] from Block.java:194:in `yield'
[gem] from YieldNode.java:112:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedBlock.java:373:in `evalBlockBody'
[gem] from InterpretedBlock.java:346:in `yield'
[gem] from InterpretedBlock.java:303:in `yield'
[gem] from Block.java:194:in `yield'
[gem] from RubyKernel.java:1251:in `loop_1_9'
[gem] from org/jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop_1_9.gen:65535:in `call'
[gem] from CachingCallSite.java:299:in `cacheAndCall'
[gem] from CachingCallSite.java:117:in `callBlock'
[gem] from CachingCallSite.java:132:in `callIter'
[gem] from FCallNoArgBlockNode.java:32:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from InterpretedMethod.java:160:in `call'
[gem] from DefaultMethod.java:164:in `call'
[gem] from CachingCallSite.java:299:in `cacheAndCall'
[gem] from CachingCallSite.java:117:in `callBlock'
[gem] from CachingCallSite.java:122:in `call'
[gem] from CallNoArgBlockNode.java:64:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:242:in `call'
[gem] from DefaultMethod.java:196:in `call'
[gem] from CachingCallSite.java:339:in `cacheAndCall'
[gem] from CachingCallSite.java:197:in `callBlock'
[gem] from CachingCallSite.java:202:in `call'
[gem] from RubyClass.java:815:in `call'
[gem] from DynamicMethod.java:194:in `call'
[gem] from WrapperMethod.java:62:in `call'
[gem] from CachingCallSite.java:329:in `cacheAndCall'
[gem] from CachingCallSite.java:188:in `call'
[gem] from FCallTwoArgNode.java:38:in `interpret'
[gem] from LocalAsgnNode.java:123:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from EnsureNode.java:96:in `interpret'
[gem] from InterpretedMethod.java:242:in `call'
[gem] from DefaultMethod.java:196:in `call'
[gem] from CachingCallSite.java:339:in `cacheAndCall'
[gem] from CachingCallSite.java:197:in `callBlock'
[gem] from CachingCallSite.java:202:in `call'
[gem] from CallTwoArgBlockPassNode.java:62:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:283:in `call'
[gem] from DefaultMethod.java:212:in `call'
[gem] from CachingCallSite.java:359:in `cacheAndCall'
[gem] from CachingCallSite.java:237:in `callBlock'
[gem] from CachingCallSite.java:252:in `callIter'
[gem] from CallThreeArgBlockNode.java:64:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:262:in `call'
[gem] from DefaultMethod.java:204:in `call'
[gem] from CachingCallSite.java:349:in `cacheAndCall'
[gem] from CachingCallSite.java:228:in `call'
[gem] from FCallThreeArgNode.java:40:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from InterpretedBlock.java:373:in `evalBlockBody'
[gem] from InterpretedBlock.java:346:in `yield'
[gem] from InterpretedBlock.java:303:in `yield'
[gem] from Block.java:194:in `yield'
[gem] from RubyIO.java:1104:in `open'
[gem] from RubyKernel.java:283:in `open'
[gem] from org/jruby/RubyKernel$s_method_0_2$RUBYFRAMEDINVOKER$open.gen:65535:in `call'
[gem] from DynamicMethod.java:198:in `call'
[gem] from CachingCallSite.java:339:in `cacheAndCall'
[gem] from CachingCallSite.java:197:in `callBlock'
[gem] from CachingCallSite.java:212:in `callIter'
[gem] from FCallTwoArgBlockNode.java:34:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from IfNode.java:119:in `interpret'
[gem] from IfNode.java:119:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:221:in `call'
[gem] from DefaultMethod.java:188:in `call'
[gem] from CachingCallSite.java:329:in `cacheAndCall'
[gem] from CachingCallSite.java:188:in `call'
[gem] from CallTwoArgNode.java:59:in `interpret'
[gem] from InstAsgnNode.java:95:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from RescueNode.java:199:in `executeBody'
[gem] from RescueNode.java:118:in `interpretWithJavaExceptions'
[gem] from RescueNode.java:110:in `interpret'
[gem] from BeginNode.java:83:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:242:in `call'
[gem] from DefaultMethod.java:196:in `call'
[gem] from CachingCallSite.java:339:in `cacheAndCall'
[gem] from CachingCallSite.java:197:in `callBlock'
[gem] from CachingCallSite.java:202:in `call'
[gem] from RubyClass.java:815:in `call'
[gem] from DynamicMethod.java:194:in `call'
[gem] from CachingCallSite.java:329:in `cacheAndCall'
[gem] from CachingCallSite.java:188:in `call'
[gem] from CallTwoArgNode.java:59:in `interpret'
[gem] from DAsgnNode.java:110:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedBlock.java:373:in `evalBlockBody'
[gem] from InterpretedBlock.java:346:in `yield'
[gem] from InterpretedBlock.java:303:in `yield'
[gem] from Block.java:194:in `yield'
[gem] from RubyArray.java:1630:in `eachCommon'
[gem] from RubyArray.java:1637:in `each'
[gem] from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:65535:in `call'
[gem] from CachingCallSite.java:299:in `cacheAndCall'
[gem] from CachingCallSite.java:117:in `callBlock'
[gem] from CachingCallSite.java:122:in `call'
[gem] from CallNoArgBlockNode.java:64:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:221:in `call'
[gem] from DefaultMethod.java:188:in `call'
[gem] from CachingCallSite.java:329:in `cacheAndCall'
[gem] from CachingCallSite.java:188:in `call'
[gem] from CallTwoArgNode.java:59:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from RescueNode.java:199:in `executeBody'
[gem] from RescueNode.java:118:in `interpretWithJavaExceptions'
[gem] from RescueNode.java:110:in `interpret'
[gem] from BeginNode.java:83:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from InterpretedBlock.java:373:in `evalBlockBody'
[gem] from InterpretedBlock.java:346:in `yield'
[gem] from InterpretedBlock.java:303:in `yield'
[gem] from Block.java:194:in `yield'
[gem] from RubyArray.java:1630:in `eachCommon'
[gem] from RubyArray.java:1637:in `each'
[gem] from org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen:65535:in `call'
[gem] from CachingCallSite.java:299:in `cacheAndCall'
[gem] from CachingCallSite.java:117:in `callBlock'
[gem] from CachingCallSite.java:122:in `call'
[gem] from CallNoArgBlockNode.java:64:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:139:in `call'
[gem] from DefaultMethod.java:156:in `call'
[gem] from CachingCallSite.java:289:in `cacheAndCall'
[gem] from CachingCallSite.java:108:in `call'
[gem] from VCallNode.java:85:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from IfNode.java:119:in `interpret'
[gem] from IfNode.java:119:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:113:in `call'
[gem] from InterpretedMethod.java:127:in `call'
[gem] from DefaultMethod.java:147:in `call'
[gem] from CachingCallSite.java:279:in `cacheAndCall'
[gem] from CachingCallSite.java:68:in `call'
[gem] from CallSpecialArgNode.java:73:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from CaseNode.java:138:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:180:in `call'
[gem] from DefaultMethod.java:172:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from FCallOneArgNode.java:36:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from RescueNode.java:199:in `executeBody'
[gem] from RescueNode.java:118:in `interpretWithJavaExceptions'
[gem] from RescueNode.java:110:in `interpret'
[gem] from InterpretedMethod.java:180:in `call'
[gem] from DefaultMethod.java:172:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from CallOneArgNode.java:57:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedMethod.java:180:in `call'
[gem] from DefaultMethod.java:172:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from CallOneArgNode.java:57:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from RescueNode.java:199:in `executeBody'
[gem] from RescueNode.java:118:in `interpretWithJavaExceptions'
[gem] from RescueNode.java:110:in `interpret'
[gem] from BeginNode.java:83:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from RootNode.java:129:in `interpret'
[gem] from Ruby.java:2540:in `loadFile'
[gem] from ExternalScript.java:61:in `load'
[gem] from LoadService.java:255:in `load'
[gem] from RubyKernel.java:1010:in `loadCommon'
[gem] from RubyKernel.java:992:in `load'
[gem] from org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen:65535:in `call'
[gem] from DynamicMethod.java:190:in `call'
[gem] from DynamicMethod.java:186:in `call'
[gem] from CachingCallSite.java:309:in `cacheAndCall'
[gem] from CachingCallSite.java:148:in `call'
[gem] from FCallOneArgNode.java:36:in `interpret'
[gem] from NewlineNode.java:104:in `interpret'
[gem] from BlockNode.java:71:in `interpret'
[gem] from InterpretedBlock.java:373:in `evalBlockBody'
[gem] from InterpretedBlock.java:327:in `yield'
[gem] from BlockBody.java:78:in `call'
[gem] from Block.java:89:in `call'
[gem] from RubyProc.java:224:in `call'
[gem] from ProcMethod.java:62:in `call'
[gem] from DynamicMethod.java:182:in `call'
[gem] from DynamicMethod.java:178:in `call'
[gem] from CachingCallSite.java:289:in `cacheAndCall'
[gem] from CachingCallSite.java:108:in `call'
[gem] from gem:1:in `__file__'
[gem] from gem:-1:in `load'
[gem] from Ruby.java:685:in `runScript'
[gem] from Ruby.java:568:in `runNormally'
[gem] from Ruby.java:414:in `runFromMain'
[gem] from Main.java:286:in `run'
[gem] from Main.java:128:in `run'
[gem] from Main.java:97:in `main'
BUILD FAILED
C:\workspace\cucumber-helloworld\build.xml:33: Failed to run gem with arguments: install cuke4duke --version 0.4.4 --source http://rubygems.org/
总时间:10秒
最佳答案
cuke4duke 项目似乎已经死了。希望用 cucumber-jvm 替换该项目 - 如所见 here.
关于Java 和 Cucumber + Ivy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8842551/
虽然我经常来这里寻求解决方案,但这是我的第一篇文章! 问题: 尝试运行“railsgeneratecucumber:install”时我收到错误:找不到生成器 cucumber :安装 注意:在 Wi
希望我可以清楚地解释我的问题,以使其他人可以理解,在这里,假设我有以下两种假设情况: Scenario: Filter sweets by king size and nut content Give
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 7 年前。 Improv
我在下面的 cucumber 项目中设置了 cucumber 选项: 我通过 mvn 命令行使用 -Dcucumber.options 运行测试来覆盖我的项目的选项: mvn -f "pom.xml"
我试图运行一个简单的Feature文件,但是却遇到了Exception这样的异常: 线程“主” cucumber.runtime.CucumberException中的异常:解析功能文件时出错。 这是
我只是在学习 Cucumber 并注意到如果两个完全独立的特征有两个步骤不小心措辞相同,Cucumber 只为它们建议一个步骤定义。这是否意味着步骤定义是全局的并且它们是要共享的? 例子 假设一个业务
我正在尝试配置 FactoryGirl 以使用我的 Cucumber 测试。 我在 env.rb 中添加了以下几行 require 'factory_girl' Dir.glob(File.join(
有没有办法为 Cucumber 中的某个功能定义所有场景的清理步骤?我知道Background用于定义其后的每个场景的设置步骤,但是有没有办法定义在每个场景结束时发生的类似事情? 最佳答案 您可以在
Cucumber-jvm javadocs指出胶水元素的目的是指定stepdefinitions和hook的位置。但是,这似乎对我不起作用。可以说我在目录a中有我的功能,在步骤b中有我的步骤定义。然后
我必须测试一个消息路由应用程序,其功能大致如下:- 消息发送到应用程序- 应用程序检查消息- 根据消息内容,消息被转发到某处 绝大多数测试用例几乎相同;生成特定类型的消息,将其加载到系统中,等待几秒钟
在进行 BDD 时,Cucumber 似乎是指定行为的默认工具,但是 Cucumber 网站和文章看起来有点过时,而且不太活跃。 有哪些替代方案? 最佳答案 一个非常好的库,具有 Eclipse 的高
我有一个Cucumber表中,其中一个字段是一个日期,我想用今天的日期填充该日期。有没有一种方法可以做到这一点,而不必将今天的日期硬编码到表中? 基本上我想在表中输入Time.now.strftime
我有一个步骤定义,我希望其中有一个可选参数。我相信两次调用此步骤的示例比其他任何内容都更好地解释了我所追求的内容。 I check the favorite color count I check t
我在不同环境中执行 cucumber-jvm 场景时遇到问题。包含在场景特征文件中的数据属于一个环境。为了在不同的环境中执行场景,我需要根据要执行的环境更新特征文件中的数据。 例如,在以下场景中,我将
我有一个 cucumber 项目,我想获得项目中的所有标签,以便能够选择它们作为参数。 我找到了这个 question cucumber 可以选择获取标签,但我发现它不再起作用,然后我发现了另一个 q
@@file_name Feature: Addition 为了避免愚蠢的错误 作为一个数学白痴 我想被告知两个数字的总和 场景:两个数字相加 Given I have entered @number
Java v8.x - spring v5.x cucumber v4.2.0 我试过 temyers/cucumber-jvm-parallel-plugin 并且工作正常,但是当我进入他们的 gi
目前,尝试通过命令行窗口运行测试时,以下命令可以工作,但是自从从 info.cakes 更新到 io.cucumber 后,它似乎不再工作了? mvn test -Dcucumber.options=
关闭。这个问题是opinion-based .它目前不接受答案。 想要改进这个问题吗? 更新问题,以便 editing this post 提供事实和引用来回答它. 关闭 4 年前。 Improve
如何使用 java 从我的功能中定义“我想要”步骤? 我的 cucumber 项目设置如下: 登录功能 Feature: User Login I want to test on "www.g
我是一名优秀的程序员,十分优秀!