Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 01 23:34
    michaelm-rsi commented #1864
  • Dec 01 23:27
    michaelm-rsi commented #1864
  • Dec 01 23:12
    michaelm-rsi opened #1864
  • Dec 01 20:33
    mattwynne review_requested #1863
  • Dec 01 20:33
    mattwynne review_requested #1863
  • Dec 01 20:33
    mattwynne commented #1863
  • Dec 01 20:31
    coveralls commented #1863
  • Dec 01 20:30
    coveralls commented #1863
  • Dec 01 20:20
    mattwynne edited #1863
  • Dec 01 20:19
    mattwynne edited #1863
  • Dec 01 20:19
    mattwynne edited #1863
  • Dec 01 20:19
    mattwynne ready_for_review #1863
  • Dec 01 20:18
    mattwynne edited #1863
  • Dec 01 20:15
    mattwynne synchronize #1863
  • Dec 01 20:15

    mattwynne on fix-1852-show-warning-to-user

    Update changelog (compare)

  • Dec 01 20:14
    mattwynne synchronize #1863
  • Dec 01 20:14

    mattwynne on fix-1852-show-warning-to-user

    Use cross-platform command for … (compare)

  • Dec 01 20:06
    mattwynne edited #1863
  • Dec 01 20:05
    coveralls commented #1863
  • Dec 01 20:04
    mattwynne edited #1863
brownad
@brownad
Anyone explain how to pass a reference in.. something like this (doesn't work in cucumber syntax)
Scenario:
Given I want "browserA" to refresh
Step:
Given(/^I want "([^"]*)" to refresh$/), (browserN) => { browserN.refresh() })
I've clearly misunderstood how to pass this in correctly, I achieve a similar approach with Mocha WDIO, where we have multiremote in use, and send commands across different running browsers (users). How do I do something similar in cucumberJS? thanks in advance
vrudhay
@vrudhay
How to deliberately fail the cucumber step because the functionality failed
brownad
@brownad
found it using eval() on browser, to get the obj not the string :( doh
Daniel Montesinos
@damonpam
Hello! does somebody know if is it possible to define our own custom table types, like java version does: https://github.com/cucumber/cucumber/tree/master/datatable#custom-table-types
??? thanks!!
Kirill Eremin
@StaroKep

@osmolyar

@StaroKep , are your step definitions defined as arrow functions? In that case they won't have access to a 'this'

We don't use arrow functions. We use function(){...}.
We updated Xcode and all started work fine. It's strange, but it helped us to solve the problem.

Rafael
@rsantosr
Hi guys!. I have a question. I am new at "Cucumber-js" For execute your tests in node js. what command line do you use?. How to configure my proyecto for only execute "cucumber-js src/features/login.feature" ?. I'm using only cucumber and gRPC for API test.
Rahul Sharma
@RahulSharma19_gitlab
Hi All, Is there a way to update cucumber.json report after or during execution? I want to add some meaningful text along with the error message for failed steps.
Priyanka Kondajji
@priyankakondajji
This was all good. I had removed arrow functions and was working fine. But from yesterday, I get this TypeError: this.attach is not a function. and also while comitting the code, i get as "Unexpected unnamed async function (func-names)"
When('Post a transition , async function() { this.attach(Transition with payload: ${JSON.stringify(payload, undefined, 4)});
});
Joe Gornick
@jgornick
Hey folks, using wdio w/ cucmberjs and was wonderig if there was a way to inject values into the datatable at runtime so that when we get to beforeScenario, the scenario is compiled with the new datatable values?
ktordoff13
@ktordoff13
I keep getting these types of errors when a timeout is reached function timed out, ensure the promise resolves within 120000 milliseconds when running tests via saucelabs. I'd like to see what element it failed on so I don't have to go into saucelabs see the error there. Is there anyway to have a more useful timeout message?
lokesh
@lokeshkp
Hi All,
When I'm integrating cypress with cucumber I'm ending with the following error
1 reply
image.png
can anybody help me on this?
image.png
image.png
folder structure is as follows,
crazy-reva
@crazy-reva
Hello everyone, is there any way to run the cucumber feature files multiple times in afterFeature hook in Webdriver IO?
Josemy Duarte
@JosemyDuarte
Hi pps! Quick question.. Does anyone know how to make work cucumber.js with path aliases? I'm having this problem:
image.png
jayraj10
@jayraj10

Hello everyone, I am using jest cucumber on top of jest puppeteer & into jest.setup file under afterEach I am capturing the screen shot .. but unable to linked them to cucumber report ? (Cucumber.json file is created but unable linked failed screenshot)

jest-cucumber version 2.0.12

Daniel Montesinos
@damonpam
Hello! is there any tool to document all the step-definitions we have defined within a project?
plocket
@plocket
I'm trying to make an npmjs package for cucumber so that a developer can just write cucumber files. Is there an example of that that someone can point me to? Or documentation on how to do it?
Hmm, the messages in here seem to be from long ago without answers. Is there a more active place to ask there questions?
In case you didn't find out yet, @vrudhay , I think it depends on your testing library. For something like chai, it would be something like `expect( something() ).to.throw(). Your testing framework documentation would have more info.
@kamolins : Are folks still active in this chat anymore?
Sorry to pick on you. It was the name I saw in the last commit, so it has a chance of being active.
A more useful question would be - is there someplace that is more active for these kinds of conversations?
plocket
@plocket
I wonder if there's a way to add an automatic message in here.
Bolatbek
@bolatbekb
How to get failed step name in after hook?
1 reply
Andrea Richiardi
@arichiardi
Hi there, I was wondering if there is a way to load some data from a file within features files in cucumber-js
I know about the """ syntax but it can get pretty verbose
Sivakumar ithanaboina
@siva1711
Hello, I have a string in feature file as "St
KaTeX parse error: Can't use function '$' in math mode at position 34: …onverted to "St$̲ng" when passed…: ng", it is being converted to "St$ng" when passed to step definition file. 
is changing to $, it used to work properly ($$ provided in feature file, same can be accessed in stepdefinition file) in V5 cucumber but after I upgrade to V6, I am facing this issue. Can someone guide me, if there is any change in the regex formats in feature file?
ѵµσɳɠ
@vuon9
hi, anyone knows how to keep a string in Gherkin table with the space in the first place index?
umamaheswaripolisetti
@umamaheswaripolisetti
can some one help me in printing values /text messages in cucumber html report?
like we do scenario.write() in cucumber java?
Avinash Upadhyaya K R
@avinashupadhya99
@umamaheswaripolisetti you can use this.attach('text');
Refer - https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/attachments.md
umamaheswaripolisetti
@umamaheswaripolisetti
i tried using this.attach ,but didn't work ,it shows me an error,tried many ways but could find a right solution
image.png
iam using protractor -cucumber
umamaheswaripolisetti
@umamaheswaripolisetti
image.png
17 replies
umamaheswaripolisetti
@umamaheswaripolisetti
image.png
umamaheswaripolisetti
@umamaheswaripolisetti
image.png
umamaheswaripolisetti
@umamaheswaripolisetti
@avinashupadhya99 ,Many thanks ,Appreciate ur help :)
umamaheswaripolisetti
@umamaheswaripolisetti
image.png
instead of proractor multiple cucumber html report - I changed ot protractor simple html report.then i got the values ,but with \n
Elensn
@Elensn

is it possible to run tags with certain order? I would like to run this four scenarios in this order
node index.js -t '@staySignedIn','@createApplication','@createFunction','@addFunctionParameter'

but it starts with '@createApplication'.... appreciate ur help :)

1 reply
achinim-swiveltech
@achinim-swiveltech
Hello, there, Could you please help me to execute multiple Cucumber feature files with node.js?
5 replies
Ben Ifie
@benzaremean
Hi guys could someone help Im trying to figure out how to use this function in version 5.x
setDefinitionFunctionWrapper(function(fn, options) {
  return function(...args) {
    // call original function with correct `this` and arguments
    // ensure return value of function is returned
    return fn.apply(this, args)
      .catch(error => {
        // call a method on world
        this.doScreenshot();
        // rethrow error to avoid swallowing failure
        throw error;
      });
  }
})
jradom
@jradom
can somebody suggest how to embed PDF files into the Cucumber Cypress preprocessor JSON output file? Any help will be greatly appreciated