Closed streichsbaer closed 8 years ago
FYI, I ran the default authorisation feature of bdd-security config against ropeytasks.jar and have similar results as mentioned above.
Thanks @streichsbaer I've reproduced the same error in RopeyTasks. Investigating now.
Was a regex problem, fixed with:
@Given("^the username (.*)$")
and:
@Given("^the password (.*)$")
Have tested it with RopeyTasks, let me know whether it works for RailsGoat.
Thanks for the fast response. I was wondering about the regex, but because it seemed to show up correctly in the steps I thought it's alright. I'm going to test once I am back home.
Excellent, all working now! Thank you.
Great to hear! New feature requests/pull requests welcome :)
Hey Stephen,
as you know, I've been taking a closer look at BDD-Security recently and am loving it. After getting the authentication and some other features to work well, I've been playing around with the authorisation feature and have problems getting it to work.
A clip from the cucumber test pretty report looks like this.
For some reason it skips
The authorisation.feature file can be seen below. I'm testing BDD-Security on RailsGoat currently. authorisation.feature.feature.txt
Finally, my current RailsGoatApplication.java file is attached below: RailsGoatApplication.java.txt
Looking at the line And the username it doesn't seem to have an according WebApplicationSteps.java mapping. There is one for @Given but not for @And. I've even tried mix and matching the keywords, but without success.
Any idea what needs to be done to make it work?
Thanks, Stefan