GithubHelp home page GithubHelp logo

Comments (9)

CXwudi avatar CXwudi commented on September 28, 2024

what version of the tool are you using rn?

from comp5903-easy-cucumber.

bloodteller123 avatar bloodteller123 commented on September 28, 2024

0.3.1

from comp5903-easy-cucumber.

bloodteller123 avatar bloodteller123 commented on September 28, 2024

If I commented out that step (say step 10, enters islandofskulls), the tool will complain 'step def not found' for the next step (i.e, step 11, rerolls sth), which has been proven working well from previous scenarios.

from comp5903-easy-cucumber.

bloodteller123 avatar bloodteller123 commented on September 28, 2024

Ok, i just upgraded to v0.3.3, the problem have not been completely resolved:

    @JThenStep("player {int} does skull check")
    public void playerDoesSkullCheck(int arg0) {
..............
    }

But the tool is still complaining about not step defi not found, but at least it stops complaining about the steps from original steps mentioned above.

https://github.com/bloodteller123/COMP5104A1/blob/1a3b4fede056a9788899f187308dd61eca2e9a52/src/test/resources/FortuneCardTest.feature#L166

These steps are from the same scenario. Again, @JThenStep("player {int} does skull check") step has been used multiple time in previous scenarios.

from comp5903-easy-cucumber.

CXwudi avatar CXwudi commented on September 28, 2024

yeah I am also checking what's going on now

from comp5903-easy-cucumber.

CXwudi avatar CXwudi commented on September 28, 2024

can you paste the error message and stack trace again with 0.3.3?

from comp5903-easy-cucumber.

bloodteller123 avatar bloodteller123 commented on September 28, 2024

Actually after comparing my cucumber version and ez-cucumber, I noticed that I didn't add

    @JAndStep("player {int} does skull check")
    public void playerDoesSkullCheck(int arg0) {
..............
    }

though there already is a @JThenStep version.

I thought If we have a @jthen for one step in one scenario (Then ABC), then @JanD is not needed for the same step in other scenario(Then XYZ And ABC). It's true in Cucumber (@then and @and) but it's not in this tool.

I will close the issue then..

from comp5903-easy-cucumber.

CXwudi avatar CXwudi commented on September 28, 2024

This tool has explicitly designed to enforce the keyword check, so you if you have two steps that are the same but using different keywords, they would have to have separate step definition methods.

But you mean in Cucumber, using @And and @Then doesn't matter?

from comp5903-easy-cucumber.

bloodteller123 avatar bloodteller123 commented on September 28, 2024

I believe so. I have same signature "doesSkullCheck" which were used in Then ... in one scenario, and Then ABC And .... in another scenario but I only declared one @then step definition and the test passed.

from comp5903-easy-cucumber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.