-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ComplainWith is not working with seeThatResponse consequence #1370
Comments
Thanks for noticing this. Could you propose a PR? |
sure, I will upload a PR with also some changes to Rest interactions in order to allow logging on execution. I have another question, askfor call doesn't add subject value to step name in the report, this is because is called outside Consequence wrapper? |
Could you give an example of what you mean? |
for example: class TestFact : Fact {
lateinit var products: List<Something>
override fun setup(actor: Actor) {
theActor(actor) {
products= asksFor(aQuestion())
}
}
} here aQuestion is a Question that has subject annotation, but if I run the test, the report ignores that, I thinks because askfor is not called inside nothing that adds something to the step report right? |
Yes, I think, since the question is getting invoked inside the setup and before the reporting has started. |
I'm using serenity screenplay rest, and I notice that using complain with is not working with serenity seeThatResponse consequence, looks like the complainwith method is not invoked after a failure serenity doesn't use my own exception or message.
The text was updated successfully, but these errors were encountered: