O'Reilly logo

The Cucumber Book, 2nd Edition by Steve Tooke, Aslak Hellesoy, Matt Wynne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a User

To get our first step to pass, we need to be able to create a user in our system. We could do that by walking around the UI, filling in the user registration forms and clicking buttons, but actually that’s not the point of this feature. Our goal is to build the page where you can see a user’s messages so we don’t need to worry about all that user registration stuff.

Let’s imagine we have a fast-forward button, and we skip past all the user registration to the point where the user has registered. What state is the system in now?

Well, we don’t know for sure because we haven’t built those screens yet, but it seems safe to assume that there would be a new row in the users table in our database. To get the system into that state, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required