Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Justin Radcliffe
    @JustRad_twitter
    thanks @brasmusson i'll watch 2.0.0!
    imzengyang
    @imzengyang
    hey, can anyone tell me how to start cucumber.js && selenium-webdriver.js with Jenkins Ci ? or use witch tool for ci with selenium.js?
    Eric Kessler
    @enkessler
    So...this is now valid Gherkin?
    @some_tag.  # and a comment on the same line
    I mean, it doesn't blow up in my face, so it is 'valid'. But I don't think that it is doing what one would expect I to do.
    Eric Kessler
    @enkessler
    I see this in the AST: name: "@some_tag. # and a comment on the same line"
    The result being that we're either having really weird tags or we are losing comments, neither of which is correct, I think.
    Eric Kessler
    @enkessler
    Yep, it's definitely wonky. Trying to run the test with -t @some_tag doesn't work because it really thinks that that whole line of stuff is the tag name.
    I don't see anything in the Changelog indicating that comment syntax has been changed so I am guessing that this was introduced unintentionally at some point and there are not tests for it?
    Nikita Gryzlov
    @nixel2007
    I was sure, that trailing comments are forbidden in gherkin.
    So it looks like an unexpected behavior or even bug
    For me at least :)
    Eric Kessler
    @enkessler
    They used to be forbidden. No ideas when that changed.
    Nikita Gryzlov
    @nixel2007
    git bisect? If you have some time
    Eric Kessler
    @enkessler
    The time that I have has other stuff that I could be doing with it. Besides, figuring out when it got broken isn't as helpful as writing up the needed tests that will get some developer to get it working again. ;)
    And now it's a thing: cucumber/cucumber#239
    Yes, the double negative in the issue name is intentional. :)
    NITESH YADAV
    @nyadav17
    i am getting a lexical error when i enter a number in examples of scenario outline
    ??
    Russ Arbuthnot
    @rarbuthnot
    Hi, we’re trying to mock up external calls (non-REST) to a 3rd party application with Spring and Mockito, does anyone have some good resources/examples they can point us to?
    Oops! Meant to post that in cucumber-jvm.
    vrajan785
    @vrajan785
    Hello Guys, I have just started to implement cucumber in one of my project. Can you please tell me how do i set the value retrieved in a variable in cucumber-pretty html report. Suppose i have the value retrieved from at some step, then how do i add that value in cucumber-pretty report. Is there anyway to do that.
    papadim
    @papadim
    i need some help here please
    i type a scenario with gherkin and because of many '/' i have errors

    when i am typing this it creates :

    @Given("^User goes to https://example\\.com/magento(\\d+)/customer/account/create/$")
    public void user_goes_to_https_example_com_magento_customer_account_create(int arg1)

    i dont want this 'int arg1'
    WHAT CAN I DO TO SOLVE IT ?
    wynnfarm
    @wynnfarm
    Can you try (.*) ? Not sure that will work.
    Eric Kessler
    @enkessler
    @papadim Not sure how you ended up with (\\d+) in your pattern without having numbers in your Gherkin step. If you don't want I there then just remove it and the corresponding int parameter.
    wynnfarm
    @wynnfarm
    How do you pass in a table as a json object? When I use the Examples: syntax I can only seem to pull one column at a time.
    papadim
    @papadim

    @enkessler I did nothing more than paste the link of the site that I want to navigate.
    I don't really know why does this happen ..
    I find a manual solution by giving to this variable a name like 'BUG_ER_VAR' and i simply do not use it.
    There is no actual error if you consider it but I just mention it in case i did something wrong.

    @wynnfarm I tried your way but there is the problem still exists.
    I find a way to solve it manually without technical solution.

    Still thank you both !! @enkessler AND @wynnfarm

    wynnfarm
    @wynnfarm
    @papadim you can also try using https://regexr.com to test out your regex options. There is a community section on the left that may already have a solution.
    papadim
    @papadim
    @wynnfarm Thank you very much ! It was really helpful and I already bookmark it haha.
    Have a nice day my friend.
    wynnfarm
    @wynnfarm
    Is it possible to import a js module into a gherkin file to use as a list of items I want it to use for testing? For example, I have two test environments that may contain different test data that I need my program to search on. I want to be able to provide this as a table to gherkin to have it inject into the given/when/then statements and push to cucumber as arguments. Is this possible?
    wynnfarm
    @wynnfarm
    Or import anything or do any type of logic
    Eric Kessler
    @enkessler

    Just a reminder, this a room more about Gherkin and the usage thereof, rather than any particular flavor of Cucumber. There are specific rooms for Cucumber implementations: https://gitter.im/cucumber/cucumber-js

    I would be surprised if any implementation did preprocessing of a feature file in that kind of manner. That being said, YOU could certainly do some preprocessing and perhaps have a template file from which you could generate separate feature files for the different sets of data.

    wynnfarm
    @wynnfarm
    @enkessler thanks, I'll check cucumber out.
    Rafael Prates
    @rafaelsprates_twitter
    Hello people. I was used to Automate with JS, but now I got a Java project and I'm in doubt with two things:
    from JS ( not) to Java.
    From JS (click|doubleClick) to Java.
    leemuar
    @leemuar
    Hey, folks!
    gherkin-languages.json has a * symbol in some places:
    ```
      "ru": {
        "and": [
          "* ",
          "И ",
          "К тому же ",
          "Также "
        ],
        "background": [
          "Предыстория",
          "Контекст"
        ],
        "but": [
          "* ",
          "Но ",
          "А "
    ],
    what does it mean? Im writing a custom multilang gherkin parser and Im stuck on this "*", don't know how to interpret it
    Eric Kessler
    @enkessler

    @leemuar It is the "I'm not bothering with a keyword because it doesn't matter in this context" symbol.

    Aside from that, I am curious why you are writing your own parser instead of using one of the many official ones?

    leemuar
    @leemuar
    @enkessler Thanks! Im writing a parser for a rare language that has no official Gherkin parser
    Eric Kessler
    @enkessler
    Rare language, eh. What's hip these days?
    leemuar
    @leemuar
    @enkessler 1C:Enterprise, a platform for automating a company’s financial and wider operational activities, popular in CIS countries. It has it's own programming language, much like VBA
    Eric Kessler
    @enkessler
    I usually only hear about VBA Script in horror stories.
    I think that there are instructions for making parsers for new languages. If not, it is, in theory, straightforward. I've never tried it myself, though.
    Gáspár Nagy
    @gasparnagy
    @leemuar especially for a vba-like language it should be pretty straitforward, you can use the Ruby and the .NET as examples.
    let me know if you get stuck