Gherkin Makes Test-Scenarios Easy to Read



Feature: Calculator
 
Calculator for adding two numbers
 
@mytag
Scenario: Add two numbers
Add two numbers with the calculator
Given I have entered <First> into the calculator
And I have entered <Second> into the calculator
 
When I press add
Then the result should be <Result> on the screen
Examples:
| First | Second | Result |
| 50    | 70     | 120    |
| 30    | 40     | 70     |
| 60    | 30     | 90     |

With Gherkin, you can use your native language to describe test cases instead of difficult to read and understand camelcase test-method-names.

Comentarios

Entradas más populares de este blog

SpecFlow Tutorial For Automation Testing With Selenium C#

Rational Functional Tester for Java

¡¡ Linux Estándar !