Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 22:32
    IremUludirik starred cucumber/cucumber-js
  • 15:00
    aslakhellesoy labeled #1867
  • 15:00
    aslakhellesoy labeled #1867
  • 15:00
    aslakhellesoy opened #1867
  • 08:19
    aurelien-reeves commented #1865
  • Dec 07 17:55
    dklymenk commented #1865
  • Dec 07 15:54
    dklymenk commented #1865
  • Dec 07 14:43
    aurelien-reeves commented #1865
  • Dec 07 14:41
    mpkorstanje commented #1850
  • Dec 07 14:36
    davidjgoss commented #1849
  • Dec 07 14:24
    dklymenk commented #1865
  • Dec 07 13:33
    aurelien-reeves commented #1849
  • Dec 07 13:32
    aurelien-reeves commented #1849
  • Dec 07 10:46
    nicojs commented #1849
  • Dec 07 10:45
    nicojs commented #1849
  • Dec 07 10:32
    sgkiokas commented #1850
  • Dec 07 10:29
    davidjgoss commented #1850
  • Dec 07 10:27
    davidjgoss commented #1849
  • Dec 07 08:42
    coveralls commented #1840
  • Dec 07 08:39
    aurelien-reeves synchronize #1840
Krishna Kumar Singh
I am putting 'setDefaultTimeout(60000)' in 'onPrepare' function inside 'protractor.conf.js'. Still, the getting timeout after 5000ms in async/await execution. Where should I put 'setDefaultTimeout'??
Ian Harrigan
Hi all, any thoughts on why i might be getting:
import { Vars }             from "./lib/Vars";

SyntaxError: Unexpected token {
when using my lib as a node module via npm install, but when i use the same lib from a symlink it all works fine?
this is using ts-node/register, but i really cant understand what the differences between the two setups could be
Krishna Kumar Singh
Ilja Pavlovs
Hi all! So I am trying to switch from Cucumber JVM to Cucumber JS, and have a question - is it possible to convert Data Tables into JSON objects automatically in Cucumber JS, as you can convert Data Tables into Java Model seamlessly in Cucumber JVM?
1 reply
Clive Galway
Does anyone know how to fix SonarQube not liking this cucumber syntax?
Basically it does not like the comma after Given
Both of these errors are caused by having Given, When(...)
ie notice that the When step at the top of the screenshot is basically doing the exact same thing but no errors
Hi guys, I have a question... How to use external data for feature files?
LeanPro CukeTest
One comment on external data support, Cucumber in CukeTest does support external csv data file, check out http://cuketest.com/en/features/examples.html
Pls let me know If there is any possibility to get scenario name in stepdefination
Bill Warner
I was looking for a way of doing this as well
Bill Warner
@bala465 looks like you have to do it in the before function

Hello everybody. I need to assert an error is thrown I did some research but couldn't find anything so far.

 Scenario: Try to get data from an unparsable XML file

    Given "src/testdata/shibIdpMetadata.xml" exists in local file system
        And XML data is invalid
    When client call getFromFile with the valid file path
    Then It should throw a specific Error

Would you have any idea how is the best approach to achieve it?

Hoan Nguyen
Hello everybody. What’s the best way for setup and teardown test data in a complex project?
hello! I'm having trouble getting a Before hook to run only on one scenario. tried using tags but it doesn't work, the hook is applied to other scenarios as well.
here is the question on stackoverflow. thanks!
Hii...! I am trying to generate allure reports in cucumber but I am unable to create them can anyone please help me with this
Is it possible use defineParameterType with docstring?
2 replies
hi guys, currently I'm having a problem to run the tests in the gitlab pipeline, it seems to be related with cucumber, I was using cucumber like as dependency, but today I updated it to @cucumber/cucumber, in the local machine it is working fine, but it fails in the pipeline, maybe somebody knows why it is happening? please pleaseee
Matías J. Magni
Hi all, I'm working with cypress-cucumber-preprocessor and I'm trying to get the scenario name on the step definitions. How can I do that?
Hi everyone, I am working on cucumber along with JavaScript and Puppeteer. I want to create two test suites in which there must be 2 feature files in each and want to run them in parallel. May anyone know a way in which i can create a profile with multiple feature files?

Anyone able to successfully pass test fail status to browserstack? I'm using with cucumber and I tried a few things, all unsuccesfull.
This one is based on the webdriverIO sample config file doc.
I can't figure out what variable stores the failure status, so I am always seeing the browserstack tests show status as passed.

afterScenario: function (world, result) {
if(result.isFailed()) {
browser.executeScript('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"passed","reason": "Assertions passed"}}');
} else {
browser.executeScript('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"failed","reason": "At least 1 assertion failed"}}');

2 replies
Marcello Duarte

Evening folks,

After translating my app with babel and pointing cucumber.js to my dist folder, I am still getting an error when cucumber reaches a png import:

> cucumber-js


SyntaxError: Invalid or unexpected token

Can you point me in the right direction? Is it a babel thing, a cucumber thing, a node thing (just updated to the latest) or something else?

Joost Jansen

TL;DR: how i can use --format usage to find steps that are not used in any scenario? The documentation is unclear to me and when i run the command all my steps are unused. I am using TAGS=~@Ignore, maybe that's the problem?

Hello everyone, I am trying to find unused steps in a repository with over 500 scenarios. I am currently running cross-env TS_NODE_TRANSPILE_ONLY=true npx cucumber-js --dry-run --format usage -- APP=... TEST_LEVEL=integration TAG=~@Ignore > cucumber.txt but all my steps are registered as unused. This is probably because of the tags.