【发布时间】:2022-01-13 04:28:04
【问题描述】:
在下面的例子中,有没有办法缩短When the doctor opens the details page of appointment 步骤?目前它必须包含约会的所有信息才能从约会列表中找到正确的。
Feature: Open Appointment Details page from Appointment list
Background:
Given the doctor has following appointments in appointment list
| Date | Time | Patient | Room | First Examination |
| 1/20/2022 | 9:00 AM - 10:00 AM | Allan | 1 | Yes |
| 1/20/2022 | 10:30 AM - 11:00 AM | Bred | 3 | No |
| 1/20/2022 | 1:00 PM - 1:30 PM | Allan | 1 | Yes |
| 1/20/2022 | 2:00 PM - 3:00 PM | David | 4 | No |
Scenario Outline: Open appointment details page
When the doctor opens the details page of appointment <Date>, <Time>, <Patient>, <Room>, <First Examination>
Then the appointment details page displays correct <Date>, <Time>, <Patient>, <Room>, <First Examination>
Examples:
| Date | Time | Patient | Room | First Examination |
| 1/20/2022 | 9:00 AM - 10:00 AM | Allan | 1 | Yes |
| 1/20/2022 | 10:30 AM - 11:00 AM | Bred | 3 | No |
| 1/20/2022 | 1:00 PM - 1:30 PM | Allan | 1 | Yes |
| 1/20/2022 | 2:00 PM - 3:00 PM | David | 4 | No |
【问题讨论】: