From the course: Cucumber Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Use old Cucumber version
- [Narrator] Let's go ahead and change our dependencies to use a very old version of Cucumber. And we'll go ahead and maximize this and for the dependency I'll just go ahead and paste very old version here. And let's minimize this again and run our test. Note what happened. We got an initialization error. And the reason why that initialization error occurred is because the Cucumber version found a problem with string. Let's go ahead and change our step definitions and let's just command out this method. This is the reason why we are getting this error, because it's finding a string phrase here which is Cucumber expression which that old version of Cucumber does not understand, so I'll just go ahead and command this out. Cool. This is commanded. Now let's try and run our test case again. Note what happened. This time Cucumber is telling us that I have a missing method implementation and this is the regular expression that Cucumber generated for us. Look at this expression, this is the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.