Skip to content
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

Share variables between steps using rest screenplay and cucumber #2415

Closed
s1apped opened this issue Mar 19, 2021 · 1 comment
Closed

Share variables between steps using rest screenplay and cucumber #2415

s1apped opened this issue Mar 19, 2021 · 1 comment

Comments

@s1apped
Copy link

s1apped commented Mar 19, 2021

Hi.

What is the recommended way of sharing variables and state between steps using rest screenplay and cucumber?
@steps, notepad?
Unfortunately haven't been able to find much on rest screenplay + cucumber

Thanks!

@globalworming
Copy link
Collaborator

Yeah, actor.remember and actor.recall is usually the way to go.
With serenity rest, actors always remember the last response and there are specific questions to get the latest response.
Actor.askFor(LastResponse.received()) if i recall correctly.

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants