1

これは可能です:

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 | result |
| 50   | 70   | 120    |
| 10   | 20   | 30     |

私の質問は:

アウトラインの例にテーブルを使用することは可能ですか? 次のシナリオのように:

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
| a  | b  | c   |
| 50 | 70 | 120 |
| 10 | 20 | 30  |  
Examples: 
| num1 | num2 | result |
| a    | b    | c      |
4

1 に答える 1

0

yes, it is possible. for example

Scenario Outline: filing data
  Given I am on the home page
  And I <action>
  And "<field>" field loses focus
  Then I should see "<error>"
  Examples:
  | action                               | field | error              |
  | fill in "Email" with "test.test.com" | email | Email is not valid |
于 2012-10-08T04:32:22.817 に答える