Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Hi guys, I am trying to run a sample login project in Katalon studio using Cucumber feature file and step defination. My test is passing but not launching the Browser and steps are not getting executed. I doubt if I need to link those @tags or what I am missing. could anyone quickly help me to solve this issue?
    Marit van Dijk
    @SantoshKadve Have you by any chance set dryrun to true?
    it was working now thanks
    Alberto Barragán
    Hi Guys, Is there way to implement after step hook in cucumber-js?
    Hi All, we are considering to use cucumber in my company
    however, are there any license fees charged?
    and is there any information available on the security risks and mitigating controls? I was not able to find this...
    Marit van Dijk
    Hello Jolanda, Cucumber is an open source project. There are no license fees, but donations are possible at https://opencollective.com/cucumber
    I am not familiar with any explicit information on security risks or mitigations controls regarding Cucumber specifically.
    Your company might have controls in place to deal with external dependencies, like using a company artifactory to store scanned/approved dependencies.
    I you need any additional information, it might be best to contact Cucumber ltd.
    Hi Marit thanks for the response! Indeed I sent an email to cucumber - this is probably the best way to get the information.
    Marit van Dijk
    You're welcome. Hope it works out. :)

    I am integrating wdio with Jira service
    I am getting following error

    ERROR: Couldn't initialise service "jira".
    TypeError: JiraService is not a constructor
    at Object.<anonymous> (E:\Year\2019\Feb\27th Feb\node_modules\wdio-jira-service\index.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Runner.initialiseServices (E:\Year\2019\Feb\27th Feb\node_modules\webdriverio\build\lib\runner.js:689:35)
    at Runner._callee$ (E:\Year\2019\Feb\27th Feb\node_modules\webdriverio\build\lib\runner.js:94:38)

    at Runner.initialiseServices (E:\Year\2019\Feb\27th Feb\node_modules\webdriverio\build\lib\runner.js:692:35)
    at Runner._callee$ (E:\Year\2019\Feb\27th Feb\node_modules\webdriverio\build\lib\runner.js:94:38)
    at tryCatch (E:\Year\2019\Feb\27th Feb\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (E:\Year\2019\Feb\27th Feb\node_modules\regenerator-runtime\runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (E:\Year\2019\Feb\27th Feb\node_modules\regenerator-runtime\runtime.js:114:21)
    at step (E:\Year\2019\Feb\27th Feb\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
    at E:\Year\2019\Feb\27th Feb\node_modules\babel-runtime\helpers\asyncToGenerator.js:35:14
    I am trying to use cucumber 4 with extent reporter. No luck!
    can anybody help!

    Hi I'm using cucumber with protractor and typescript.

    Lets say I have a scenario in my demo.feature file

    Scenario Outline: Gather and load all submenus
    Given I will login using <username> and <password>
    When I will click all links
    Examples :
    | username | password |
    | user1 | pass1 |
    | use2 | pass2 |
    lets say i have a file called users.json

    How can i get those usernames and passwords from that external file to my demo.feature ? Can I catch the file by passing parameters to my npm script like below ?

    npm run cucumber -- --params.environment.file=usernames.json


    Hello, I am using Ruby/Capybara with Cucumber and i am looking to run scenarios in Parallel tests. Ruby has a gem which allows the running of features in parallel but I cant seem to find anything that allows the scenarios to be running in parallel.

    Does anyone have any experience with this or could point me to the right place?

    Many Thanks

    Eric Kessler
    The parallel_tests gem can run tests in parallel by both feature or by scenario (but not by individual outline row).
    @enkessler Thanks for the reply

    The parallel_tests gem can run tests in parallel by both feature or by scenario (but not by individual outline row).

    Hi Eric, have you had any experience running the parallel tests command on selenium grid


    I'm trying to login to facebook, after successful login; am getting one notification popup asking for allowing and block. I'm fine with either case. I am using webstorm IDE framework cucumber.

    I have already tried browser.alertDismiss(), browser.alertAccept() none of them are working. could anyone help me in dealing with these notifications.

    Eric Kessler
    @Chorjo Selenium grid shouldn't make a difference to running your tests in parallel or not. Configuring Selenium to use remote browsers instead of local browsers just means that you won't need a machine that can support the browsers locally but otherwise everything should be the same.
    Jaysinh Shukla
    The cucumber/aruba seems inactive since 2017. Sorry if I am offtopic here.
    I am trying to write a functional test for this command line program. Please find my feature file here.
    I want to describe the input. As you can see the commented part of "And I type" command.
    Is there any way to describe more about the input?
    Is comments the only option?
    I am able to define environment variable of them, but I am unable to use them for "And I type" command.
    Alain DELBOT
    hello, i'm trying to secure the cumcumber architecture.
    Are there any recommendations for securing cumcumber servers?
    Sara Fabbro
    Hi everyone, I'm trying to create my own formatter which implements ConcurrentEventListener. I need to log the step keyword and the step test. Since I'm receiving TestStepStarted event which can be casted as a PickleStepTestStep, but I do not have the keword word. I found that someone works with TestSourcesModel but I cannot access to that class. Any suggestions? Did I miss something?
    Anybody up to pair up ?
    Jose Luis Cardeas
    Hello everyone, someone know a way to get the step text with Java? Thank's

    Hi everyone, I ' m trying to write scenario in which I have to do enrolment of guest there are 10 mandatory fields in the form like Last Name, First Name, email, contact, address, country , state etc. Currently I am passing data from feature file using data-table structure. Please find sample scenario below :
    Then User provides the following guest information to enroll and validates error messages displayed
    | Field | Value |
    | Last Name | <lname> |
    | First Name | <fname> |
    | Invalid Email | <email> |
    | Phone Number | <phoneNo> |
    | Country | <country> |
    | Address Line One | <addLine1> |
    | City | <city> |
    | State | <state> |
    | Postal Code | <postalCode> |

    | username | password | lname | fname | email | phoneNo | country | addLine1 | city | postalCode | state |
    | XXXXXX | XXXXXX| last123 | f5235 | testuser.com | 987625467 | USA | 123456789 | XXXXX | XXXXXX | XXXXXX |

    Here the question is that is it the good practice to pass data from feature file or at step-level I can handle this data for enrolment.

    Thanks !!

    Marit van Dijk
    @MishraSk993_twitter Are all of the fields relevant to understand the scenario when reading the feature file? If not (and I really hope not!) push them down to the step definition (code). You might also consider using a builder pattern with default data and only set the fields that are relevant to a particular scenario through the step in the feature file. Hope this helps.
    Pavel Shirmovski
    Hello Everyone,
    Pavel Shirmovski
    I have a task to create a test for 100 top popular products, I created scenario outline with 100 ID's for those products. I was able to run that test, but it takes 30 min to run. The rest of my tests take 5 min. to run. I think it's too long for the test. I was thinking about running random 20 products with each run. I have no idea how to do it in cucumber.
    Any thoughts?
    Marit van Dijk
    What are you testing with this list? Do you need to test this for each one of those 100 (or random 20) products? Or could you test the behaviour for one product, or for a few different types of products?
    Pavel Shirmovski
    Those products should be always available to find and to buy, so I make sure, they are on their page, with product details like name, description, price and add to cart button.
    So I was thinking, is there a chance to get access to example input IDs and
    execute random 20 random products 5 times during a day for example
    Pavel Shirmovski
    Type of product is the same. There's a hundreds products list from which company makes most of their income
    They want to make sure, they're always available
    Hi there, I noticed that Cucumber for Jira has been released, however it seems to be Cloud based only. Any idea if it will be out for Server as well?
    undefined method Transform' for main:Object (NoMethodError) D:/phpweb/cucumber/book_code/support_code/07/features/support/transforms.rb:9:in<top (required)>'
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:in load' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/glue/registry_and_more.rb:107:inload_code_file'
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:144:in load_file' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:85:inblock in load_files!'
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:in each' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime/support_code.rb:84:inload_files!'
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:272:in load_step_definitions' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/runtime.rb:68:inrun!'
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/lib/cucumber/cli/main.rb:34:in execute!' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/cucumber-3.1.2/bin/cucumber:9:in<top (required)>'
    C:/Ruby26-x64/bin/cucumber:23:in load' C:/Ruby26-x64/bin/cucumber:23:in<main>'
    I cannot use "Transform" in my code:
    CAPTURE_CASH_AMOUNT = Transform /^\$(\d+)$/ do |digits|
    help me,please
    Hi...I m using cucumber with Appium and TestNG..I m getting this error while running the scripts...gherkin.ast.Feature cannot be cast to gherkin.ast.GherkinDocument
    Can u guys please help me to resolve this
    Pavel Shirmovski
    I have an issue with Given keyword which started to always be displayed in my intellij idea, what ever keywords were used in steps.
    Pavel Shirmovski
    Have you ever encountered anything like that?