Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 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
@kwishna
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
@ianharrigan
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
@kwishna
Ilja Pavlovs
@iljapavlovs
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
@evilC
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
Rafael
@rsantosr
Hi guys, I have a question... How to use external data for feature files?
LeanPro CukeTest
@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
bala465
@bala465
Pls let me know If there is any possibility to get scenario name in stepdefination
Bill Warner
@TD-4242
I was looking for a way of doing this as well
Bill Warner
@TD-4242
@bala465 looks like you have to do it in the before function
Christian
@christian-hawk

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
@hoancmg
Hello everybody. What’s the best way for setup and teardown test data in a complex project?
noamSchwarz42
@noamSchwarz42
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!
https://stackoverflow.com/questions/68428573/cucumber-js-before-hook-not-working-on-tagged-scenario
yoursmunnisha
@yoursmunnisha
Hii...! I am trying to generate allure reports in cucumber but I am unable to create them can anyone please help me with this
viktor-silakov
@viktor-silakov
Is it possible use defineParameterType with docstring?
JuanaRodriguez
@JuanaRodriguez
image.png
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
@matiasmagni
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?
UsmanGhani-Emumba
@UsmanGhani-Emumba
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?
Mona
@BlueMona

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
@MarcelloDuarte

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

/private/var/www/app/dist/images/logo.png:1
�PNG


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
@jstjnsn

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.