Skip to content

← All questions

Migrating a Cucumber suite: what replaces the World object we keep scenario state in?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Our Cucumber suite keeps everything on the World: the id of the record the last step created, the current user, a couple of counters, and a response object that three later steps read.

Feature files copy across fine and the tags lint clean. The step definitions are where I am stuck, because half of them are this.something = ... and there is no this to put it on.

1 answer

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related