這是可能的: Scenario Outline: Add two numbers
Given I have entered <num1> and <num2> into the calculator
When I press add
Then the result should be <result> on the screen
Examples:
| num1 | num2 | res
在SpecFlow中使用場景輪廓 Scenario Outline: Invalid Login Details
Given some pre-conditions...
When user "Larry" enters username <username> and password <password>
Then the message "Invalid Login Details"
在編寫場景時,沒有人有強烈的論點來選擇下列其中一種風格嗎? Feature: Search Product
As a customer
I want to search for a product
So that I can easily locate what I want to purchase
Scenario: Multiple Products Found (First Pe
使用SpecFlow捕捉負數,我有這樣的場景: Scenario: Amount is not negative
Given a Validator
Given a TestData
And MinimumAmount is -0.01
When when validator is invoked
Then validator sets valid