Open UltraLas3r opened 1 year ago
Hard to say without the whole project. I'd suggest you just use https://github.com/serenity-bdd/serenity-cucumber-starter as a start
That is what I am using. I just cloned that repository and followed the steps in the tutorial I linked in my original post
Are you running the scenarios via the runner class or from the feature file itself?
Are you running the scenarios via the runner class or from the feature file itself?
I have run the tests from every location possible. I do want to say that It is very possible that I am missing something because all of this is new to me. I may be missing something really simple.
When running the test from the feature file I get the same error. Interestingly though, it looks like 2 of my tests are passing and only one is failing
When running the test from the runner class I am greeted with an ominous warning sign
When I start the test things seem to work on the first two steps but fail on the third. I probably can figure out the error on the third, but it seems like the issue is deeper than that.
Perhaps I am importing things wrong? Java is new to me, and serenity/cucumber/Screenplay Pattern is even newer :D
can you share your project?
what's definitely suspicious is the RunWith
annotation on your AuthStepDefinitions
. When I look at https://github.com/serenity-bdd/serenity-cucumber-starter/blob/master/src/test/java/starter/stepdefinitions/SearchStepDefinitions.java there is no need for that.
I'm also facing this issue with the updated Cucumber runner with Junit5. @wakaleo any resolution for this?
Are you trying to run the test from the feature file directly?
No @wakaleo . running through runner only
Can you provide a same project?
I saw that this issue was brought up before, however, none of the answers were clear enough. I've searched all over and everything seems to be in the right spots on my end.
Does anyone know what might be happening?
My step definition script has
and I have a CucumberTestSuite file... I am trying to follow a simple tutorial https://expansion.serenity-dojo.com/courses/take/serenity-and-the-screenplay-pattern/lessons/29603895-implementing-a-simple-screenplay-scenario and this is really frustrating the hell out of me