Suppose we have a feature where our members get daily news and articles about health-related topics that they're interested in. For example, Michael, he's interested in running, gym, and dieting, so we want to send him articles that are just related to these topics, but there's a lot of repetition in this scenario. And he is interested in running, and he is interested in the gym, and he is interested in dieting. All these words make the scenario quite hard to read. How we can simplify this requirement.

570    Asked by AbhinavPillai in QA Testing , Asked on Jan 24, 2020
Answered by Abhinav Pillai

Fortunately, with Gherkin, we can have a much more elegant way to express this kind of requirement. Embedded tables. Using data tables, we can provide a pipe-delimited embedded table just like below:


This format is both readable and flexible. You can easily add new items to the order just by adding a row, or you could add extra information about each order item by adding an extra column.



Your Answer

Interviews

Parent Categories