Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
Lessons:15Length:2.5 hours
  • Overview
  • Transcript

2.8 Multi-line Step Arguments

Cucumber is aimed at end-to-end testing. You’ll probably have a feature that requires long text, perhaps a file with extensive configuration or a lengthy LaTeX document. It becomes hard to understand long steps when you face something like that. You usually have to resort to using real files that act as fixtures, but you end up not really knowing what you’re testing against because the content is not right there.

Multiline step arguments allow you to specify content in between your scenarios. In this lesson, you learn how to write that kind of content and how Cucumber parses it into your step definitions.