-
-
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
Possible misunderstanding of how Serenity BDD share same RestResponse between steps #658
Comments
Why don't you use Serenity test session for this purpose?
|
It is what I am doing right now, but it suppose that I can concatenate SereniryRest operations between different Steps wihtout saving into session. Am I wrong? |
You should be able to use the when() and then() methods in separate steps - Serenity will keep the context, eg:
|
Hi there,
I have been using SerenityRest for a couple of days and I have the following issue: I want to have different steps to configure (given), request (when) and response (then). My problem is that I cannot get then results if it is in another step. Could you help me?
Here you are my code:
Steps class
Serenity rest custom class
The text was updated successfully, but these errors were encountered: