Questions tagged [cucumberjs]

The Cucumber project is a Behavior Driven Development (BDD) tool originally designed to work with Ruby. However, since its inception its popularity has grown and there have been implementations of Cucumber written for different languages including Java, .Net, Flex, and JavaScript.

Cucumber understands a language named Gherkin which allows features and specs to be written in a plain text format. It is a Business Readable, Domain Specific Language that lets you describe software’s behaviour without detailing how that behaviour is implemented.

Gherkin serves two purposes — documentation and automated tests. The third is a bonus feature — when it yells in red it’s talking to you, telling you what code you should write.

Gherkin’s grammar is defined in the Treetop grammar that is part of the Cucumber codebase. The grammar exists in different flavours for many spoken languages (37 at the time of writing), so that your team can use the keywords in your own language.

848 questions
-1
votes
1 answer

Cannot read property 'JsonFormatter' of undefined

With the upcoming of Cucumberjs2.3.0, I had to make some changes to the hooks.js file, in order to have cucumber-html-reporter working back again. The hooks.js explicitly creates a json file with the execution report, that I will later use to…
Kyon Perez
  • 124
  • 1
  • 13
-1
votes
1 answer

Can you point me to an example of using cucumber.js with frisby.js?

We would like to use frisby.js withing cucumber steps. Can anyone point me to an example which does the same? Thanks
SharePoint Newbie
  • 5,974
  • 12
  • 62
  • 103
-2
votes
1 answer

How to use external data file (for example a json file) for scenario outline for iterate over a scenario

How to use external data file (for example a json file) for scenario outline to iterate over a scenario in CucumberJS
-2
votes
2 answers

Regular expression for matching a sentence step by step

Regular expression to match the below cucumber steps Given I login to system Given login to system Given user attempts to login to system Given I attempt to login to system Given attempts to login to system This one Should fail - user or I or…
Gan
  • 9
  • 5
-3
votes
2 answers

Execute steps before each scenario? (Cucumber + protractor + angular)

I need create e2e test for the my angular 5 application. We're using cucumber and protractor. I have concrete list steps which i should do at the beginning some scenarios. This is an example: Scenario: I need do process below before some…
trigger
  • 489
  • 10
  • 26
-3
votes
1 answer

Cucumber issue(Calling step defination from other java project )

My requirement is that i am keeping my step Definition code in other Java Project and my runner class is in other java project.. I am not able to call step definition provided in other java project.. Please help how can i achieve the same
Ashikali
  • 11
  • 5
-3
votes
1 answer

Feature rspec for active admin

Below is my active admin resource file and the rspec feature. When I run the rspec...it fails Failure/Error: select "Full-Year", from: "From Finance Month" Capybara::ElementNotFound: Unable to find option "Full-Year" Can anyone please help…
Ananyaa
  • 1
  • 1
1 2 3
56
57