Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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
    leemuar
    @leemuar
    @enkessler @gasparnagy Thanks!
    Fla
    @Flaburgan
    Hi everyone. The documentation at https://cucumber.io/docs/reference#step-definitions only indicates "TODO" about how to parse Data Table Argument. Where can I find example in Java?
    Marit van Dijk
    @mlvandijk
    @Flaburgan Here's an example: http://www.thinkcode.se/blog/2014/06/30/cucumber-data-tables - and Thomas has several other examples also on his blog I think. Or try this github example: https://github.com/tsundberg/cucumber-datatables
    Simon Paitrault
    @Freyskeyd
    Hello, I must start a complete QA testing over a large application. I would like to use gherkin to write specification. But I can't decide which tool, I don't have any language in mind. I just want to do BDD, visual regression, etc
    I know it's a hard question but I'm a little lost
    I tried Behat, it was cool but what's about others options?
    what's about selenium?
    Marit van Dijk
    @mlvandijk
    Hi Simon, it's hard to advice not knowing more about the context. Are you working with the developers or testing an application built by another team/company? If the same team/company, will you be collaborating with them? ) in which case I'd advice using the same language as the project, and storing your test code in the same project). Do you "have to" automate through the UI? (This might be the case if application is build by external vendor) In that case, you'll most likely end up using Selenium (although I've hearing good things about cypress.io which works differently but is only available in JavaScript). If you don't have to go through the UI but can test at "lower" level like REST endpoints, I'd recommend that over Selenium/UI tests as much as possible, as it's faster/easier/less brittle. As far as BDD; will the application actually be built using BDD, or what is the reason you'd want to use Gherkin/BDD? Hope this helps :)
    Simon Paitrault
    @Freyskeyd
    Thank's @mlvandijk for this helpful answer. I'm working with the developers. It's our product. We have a microservices architecture, with many languages (php, node, scala, go, rust). I want to automate the UI testing and also the API testing. I would like to use Gherkin to be able to write feature/story and test it against the product.
    Marit van Dijk
    @mlvandijk
    Does the UI testing actually test the UI, or does it use the UI to test the business process. In which case, you might consider moving most of those tests to the API layer. and only test whatever (hopefully little) logic there is in the FE through the FE.
    That's at least what my team tries to do. Even though we do have a few tests running through the UI on the test environment. That's mainly a smoke test, since we also rely on services made by other teams (and I'd like to at least see it work on an actual environment before deploying to production). Most if not all of "our" business logic is tested before then (& by stubbing external dependencies)
    One thing I've noticed happen is that existing manual regression tests are automated as it. While with automation you can do so much more...