Mohammed Sikander | 1 Aug 17:20 2014
Picon

[Cucumber] ambiguous match of ...

I have created a feature file with following steps.

When I click on the "Link1" from menu

Step definition is:
When (/^I click on the "(.*?)" link from menu$/) do|link1|

end

I have created another step definition in following way.
When I click on the "Link1" and then click on the "Link2" from menu

Step definition is:
When (/^I click on the "(.*?)" link and then click on the "(.*?)" from menu$/) do|link1, link2|

end 

When i execute this, i get ambiguous match of When I click on the "Link1" from menu.

Thanks,
Sikander

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Félix Álvarez | 1 Aug 18:39 2014
Picon

[Cucumber] [Cucumber-JVM] Merge pull request #751 needed. Please! review.

Please review pull request #751.
Need this on master branch.
Thanks.


--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Richard Donovan | 31 Jul 12:11 2014

[Cucumber] 2.7 Adding an Assertion...

Help please...

According to Chapter 2.7 of the Cucumber book, 'Adding an Assertion...'

All is going well so far. Then, I need to create a blank 'calc.rb' which I placed in the calculator dir. Running cucumber again my tests don't change, they are the same as the previous scenario as shown below:

C:\Users\466368\calculator>cucumber
Feature: Adding

  Scenario: Add two numbers      # features\feature_file_adding.feature:3
    Given the input "2+2"        # features/step_definitions/calculator_steps.rb:1
    When the calculator is run   # features/step_definitions/calculator_steps.rb:5
      undefined method `success?' for nil:NilClass (NoMethodError)
      ./features/step_definitions/calculator_steps.rb:7:in `/^the calculator is run$/'
      features\feature_file_adding.feature:6:in `When the calculator is run'
    Then the outut should be "4" # features/step_definitions/calculator_steps.rb:10

Failing Scenarios:
cucumber features\feature_file_adding.feature:3 # Scenario: Add two numbers

1 scenario (1 failed)
3 steps (1 failed, 1 skipped, 1 passed)
0m0.105s

Then, when I run 'cucumber --format progress' I get the following -

C:\Users\466368\calculator>cucumber --format progress
.F-

(::) failed steps (::)

undefined method `success?' for nil:NilClass (NoMethodError)
./features/step_definitions/calculator_steps.rb:7:in `/^the calculator is run$/'
features\feature_file_adding.feature:6:in `When the calculator is run'

Failing Scenarios:
cucumber features\feature_file_adding.feature:3 # Scenario: Add two numbers

1 scenario (1 failed)
3 steps (1 failed, 1 skipped, 1 passed)
0m0.109s 

At this stage I should be getting 1 failed and 2 passed tests... What am I doing wrong..?

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
James Nord | 30 Jul 18:06 2014
Picon

[Cucumber] cucumber-eclipse CI system - or is the latest code working?

Hi all,

I'm trying to add a feature to cucumber-eclipse - but after cloning the project and attempting to build (mvn install) I have a rather bizarre test failure which boils down to the following:

      java.lang.ClassNotFoundException: cucumber.eclipse.editor.editors.PopupMenuFindStepActionDelegateTest

The class exists and I'm using Maven 3.0.4 with JDK 1.6 (32bit) on Windows 7 (64bit).

So is the latest head of master working? if so any ideas what setup I need to be able to have a working build?

/James

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Maggie Zhou | 30 Jul 01:30 2014
Picon

[Cucumber] Test Scenario or step time out setting on Cucumber

Hi, All,

I was wondering if there's a way to set timeout for scenarios or steps? I am using cucumber-jvm. And I saw there's runtime timeout class https://github.com/cucumber/cucumber-jvm/blob/master/core/src/main/java/cucumber/runtime/Timeout.java

But I don't know how to use it. Could you please give me an example?

my test could be as following, and I 'd like skip the rest steps when any step take >3 secs. 

Scenario Outline: Create a account
Given I provide email and password
When I request create account
Then the response is "Created"
Then the response contains expect information

Thanks a lot

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Christian | 29 Jul 18:46 2014
Picon

[Cucumber] [cucumber-jvm] Will <at> After annotated methods execute/cleanup after exceptions were thrown in a step?

Hi!

Will methods using Cucumber's <at> After annotation reliably execute even when a scenario was aborted because it threw an exception?
In other words, can they be used reliably to clean up sessions etc.?

Kind regards,

Christian

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Steve Tooke | 28 Jul 13:13 2014
Picon

[Cucumber] [ANN] Cucumber-Ruby v1.3.16

Hi Everyone,

I've just released a small maintenance release of cucumber-ruby, v1.3.6

It addresses the following issues:

* Add RSpec 3 test double support (689  <at> cyphactor) [1]
* Fix bug with rerun formatter and --expand option (710  <at> brasmusson) [2]

Cheers,
Steve

[1]: https://github.com/cucumber/cucumber/pull/689
[2]: https://github.com/cucumber/cucumber/pull/710

-- 
E: steve@...
T: +44 7919 337 463
http://tooky.co.uk | http://kickstartacademy.io |
https://twitter.com/tooky

--

-- 
Posting rules: http://cukes.info/posting-rules.html
--- 
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe@...
For more options, visit https://groups.google.com/d/optout.

João Paulo Silva | 28 Jul 01:48 2014
Picon

[Cucumber] Cucumber with Robotium

How did you manage the integration of Cucumber with Robotium?

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Naveen Verma | 25 Jul 15:13 2014
Picon

[Cucumber] Arity mismatch - Cucumber/Scala

Hi,

This is bit of weird. I am using cucumber-Scala DSL for my project code which is in scala. I am using cucumber.runtime.Runtime to run my test cases in a separate project which is packed as war file. Everything works fine on windows machine.

When I deploy my war and runs the cucumber testcases.  I get this error. I don't know what is the issue:-

Cucumber-Scala DSL version 1.1.6.


cucumber.runtime.CucumberException: Arity mismatch: Step Definition 'CashRecEurexStepDefinitions.scala:256' with pattern [^context data as$] is declared with 0 parameters. However, the gherkin step has 1 arguments [Table:[[Context date, Partition ID, Balance Type], [Today, CucumberHolderToOwner, HolderToOwner]]]. Step: Given context data as at cucumber.runtime.StepDefinitionMatch.arityMismatch(StepDefinitionMatch.java:100) at cucumber.runtime.StepDefinitionMatch.transformedArgs(StepDefinitionMatch.java:60) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37) at cucumber.runtime.Runtime.runStep(Runtime.java:297) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:48) at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:116) at cucumber.runtime.Runtime.run(Runtime.java:119) at cucumber.runtime.Runtime.run(Runtime.java:107) at com.xxx.cucumber.runner.CucumberTestCasesRunner.runCucumberTestCases(CucumberTestCasesRunner.java:42) at com.xxx.cucumber.rest.FilesResources.runGenerateCucumberOutput(FilesResources.java:152) at com.xxx.cucumber.rest.FilesResources.updateFile(FilesResources.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:205) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:193) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Peter Wilson | 25 Jul 07:29 2014
Picon

[Cucumber] Linking or Chaining test cases

Hi,

New to Cucumber, please forgive my ignorance.

We have been writing cucumber test cases for about 3 months now at a system test level (for manual execution wile we got the automation framework up and running) and enjoying the clarity it provides, but now that we are starting to automate these tests we are finding some inefficiencies.  If we want to test an end to end flow and check lots of stuff along the way then cucumber doesn't seem really suited to the task.

We are thinking we will keep our manual cuces but when we automate, we'll create one super cuce that does many steps and many checks along the way

eg:

Given blah

When I login as a such and such user
Then the welcome page appears
And the user's name is shown

When I open the my policies link
Then all of my current policies are shown
But none of my expired policies are shown

When I select a policy
Then the details of my policy are shown
And the policy number matches the number on the policy list page

Each of these When and Then blocks matches an individual test case that is more story centric, but the above multi-when then case is much more efficient for automated regression execution because I don't need to restart the browser and get it into position for each individual cases, and I don't need to create new test data for each individual case, one set of data works for the whole long regression case.

I hope my ponderings make sense, feedback would be appreciated.

Cheers
Peter

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Stephen Best | 24 Jul 14:55 2014
Picon

[Cucumber] RSpec 3 support - Next Ruby gem release?

I was just wondering if any of the maintainers could tell me when they intend on releasing a new gem version with the RSpec 3 support fixes.

I think even a patch release with just that change would be a massive help to the Ruby BDD community.

Thanks, Bestie.

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane