我希望能够定义将针对文件中的每个方案运行的一组运行规则。最简单的放置位置是在背景中,但是它们需要一个示例表,就像场景大纲一样。
Feature: Example Feature File
In order to perform as task
As I user
I want this test to work
Background:
Given I have used <data> in my test
Examples:
| data |
| test string |
| test String 2 |
Scenario Outline: Running a test
Given I have prepared the test data
When I run the test
Then The test should pass
有人能想到我可以做这项工作(或类似的东西)的方法吗,因为香港专业教育学院获得了200多个测试,我有点讨厌将其添加到每个测试中