dimanche 18 septembre 2016

Using a list in a Cucumber data-table

is it possible to use a list of things in a Cucumber data table?

A possible example is to schedule a meeting. I have a meeting with a set date, topic and a list of attendants which i want to check in my acceptance test.

Feature:
   Scenario:
      Given I want to save a meeting with the following set of data
      | Date | Attendants | Topic
      | 2017-03-12 | Jobs, Steve; Reznik, Trevor | Beer is great
      Then is the data successfully saved

How do i correctly pass a list of attendants to the test? Is this possible at all? I could only find examples of single-column tables that make up lists, but I need something nested here.

Aucun commentaire:

Enregistrer un commentaire