Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 17:55
    dklymenk commented #1865
  • 15:54
    dklymenk commented #1865
  • 14:43
    aurelien-reeves commented #1865
  • 14:41
    mpkorstanje commented #1850
  • 14:36
    davidjgoss commented #1849
  • 14:24
    dklymenk commented #1865
  • 13:33
    aurelien-reeves commented #1849
  • 13:32
    aurelien-reeves commented #1849
  • 10:46
    nicojs commented #1849
  • 10:45
    nicojs commented #1849
  • 10:32
    sgkiokas commented #1850
  • 10:29
    davidjgoss commented #1850
  • 10:27
    davidjgoss commented #1849
  • 08:42
    coveralls commented #1840
  • 08:39
    aurelien-reeves synchronize #1840
  • 08:39

    aurelien-reeves on major-eslint-packages

    Revert "Add simple-import-sort … Revert "Activate eslint-plugin-… Remove eslint-plugin-simple-imp… (compare)

  • 08:35
    aurelien-reeves review_requested #1840
  • 08:35
    aurelien-reeves synchronize #1840
  • 08:35

    aurelien-reeves on major-eslint-packages

    Activate eslint-plugin-simple-i… Add simple-import-sort to depen… (compare)

  • 08:20
    coveralls commented #1840
umamaheswaripolisetti
@umamaheswaripolisetti
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
uclaeamsavino
@uclaeamsavino
Hey I have a dumb question - my world.js file is getting really big. I'd like to break it into different files and put them in subfolders, so the world functions that are dedicated to specific support files can live in the same folder with the support files. Is the only way to do this to extend the base CustomWorld class that lives in world.js?
Ben S
@bstutsky
Hi All! I see that BeforeStep and AfterStep have made it into master, which is a feature I have been waiting for. I'd like to know when master will get a new tag/version (like v7.0.0-rc.0)?
rashad-home
@rashad-home
How to run all the feature files together in wdio.conf.js? When I tried to run with,
cucumberOpts: {
require: ['./tests/features/step_definitions/*.js'], - It doesn't work.
It only works, when I apply a single step definition file.
Megha Shelare
@Megha-Black_gitlab
How can i import asynchronous function in cucumber.js file
1 reply
dambler
@dambler
Is it possible to programatically set step timeout? I am running cucumber scenarios on AWS Lambdas and I have a duration limit I want to target. I figure I can work out how long is left of that limit and then alter step timeout at runtime. Have experimented with this concept, but not sure it's possible?
1 reply
shravan999
@shravan999
Hi Team,
I am using <dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-testng</artifactId>
<version>6.9.1</version>
</dependency>
Now in my TestRunner class CucumberFeatureWrapper is warning as cannot be resolved to a type
can I get any help here?
Phil Chen
@icloudphil
Anyone have example on how to set the "add-module-exports" on .babelrc for babel7?
1 reply
Shalu
@shalu0628
Am a newbie here - await this.page.click("//button[contains(., 'Submit')]") -- this line is throwing a DOM Exception Error - can someone please help me out?
4 replies
vputtaraju1010
@vputtaraju1010
@danielcb29 , did you get solution for your issue "Error: function uses multiple asynchronous interfaces: callback and promise."
we have same issue with our cucumberjs step defination where we are using Fetch request with setInterval for polling response from que system
umamaheswaripolisetti
@umamaheswaripolisetti
protractor-cucumber testcases are working fine in my local-jenkins pipeline.but the scripts are failing in remote server jenkins pipeline.can some one help me on this?any tips?
Amr Salem
@Amrkamel1

Hye there,

Is there any way to use before and AfterAll hooks explicitly for certain feature files?

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