Questions tagged [cuke4duke]

4 questions
5
votes
2 answers

Cucumber: how to only execute background once for multiple scenarios

I have a feature with a background section which takes multiple minutes; it's setting up state on a remote system via an API. I'd like to have it execute only once for all the scenarios which follow, instead of executing for every scenario. My…
Sune Kaae
  • 51
  • 1
  • 2
1
vote
2 answers

Is it possible to use 2 different examples table in Cucumber/Cuke4Duke

Is it possible to somehow construct a Scenario which uses two different Example tables in different steps? Something like this: Given I log in When I view a page Then I should see Examples: |goodText| |abc| And I should not see…
C0deAttack
  • 24,419
  • 18
  • 73
  • 81
1
vote
1 answer

Cucumber Reports Plugin for Jenkins: Not handling steps and tags properly

I have a Jenkins build that takes JSON output from a jruby/cucumber test and generates reports using the Cucumber Reports plugin. The plugin is only giving me sensible reports on a feature file basis: that is, it can tell me whether a feature file…
David West
  • 2,256
  • 6
  • 32
  • 62
0
votes
1 answer

defined class implementing interface in groovy but can't call method

I'm using cuke4duke in a grails project. The features/support/env.groovy has import org.openqa.selenium.htmlunit.HtmlUnitDriver import org.openqa.selenium.JavascriptExecutor import com.gargoylesoftware.htmlunit.BrowserVersion import…
carlosayam
  • 1,396
  • 1
  • 10
  • 15