我遇到了編寫測試場景的問題,它將檢查將添加到數據庫的站點的有效性。任何人都可以爲我提供一個示例,顯示如何正確編寫它。不知怎的,我覺得「情景綱要」是不正確的方法... 「站」和「new_stations」是複雜類型 我想有「站」與已經定義,並檢查「new_stations」的每一個可以添加。 Scenario Outline:
Given We have <stations>
A
我記得有一種方法可以在另一步中使用菠菜執行一步。 我記得,這樣的步驟會出現類似以下內容: ...
step "I create a patient as a facility's administrator" do
%Q{ Given I am a facility's administrator }
%Q{ Given I create a patient }
end
我有一個功能文件,像這樣: Feature: Viewing revenue
Background:
Given invoices
| Date | Amount |
| 1/1/2010 | 200 |
| 1/1/2011 | 300 |
Scenario: Total revenue
Then the total revenue is
| Label | Revenue
我正在使用cucumber-jvm。我在.feature文件中有以下內容: Background:
Given the following account file line:
| First Name | Lance |
| Last Name | Fisher |
| Corporate Name | |
這是一個垂直定向的表格。以下生成