mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
add support for RobotFramework .robot files
This commit is contained in:
33
samples/RobotFramework/gherkin.robot
Normal file
33
samples/RobotFramework/gherkin.robot
Normal file
@@ -0,0 +1,33 @@
|
||||
*** Settings ***
|
||||
Documentation Example test case using the gherkin syntax.
|
||||
...
|
||||
... This test has a workflow similar to the keyword-driven
|
||||
... examples. The difference is that the keywords use higher
|
||||
... abstraction level and their arguments are embedded into
|
||||
... the keyword names.
|
||||
...
|
||||
... This kind of _gherkin_ syntax has been made popular by
|
||||
... [http://cukes.info|Cucumber]. It works well especially when
|
||||
... tests act as examples that need to be easily understood also
|
||||
... by the business people.
|
||||
Library CalculatorLibrary
|
||||
|
||||
*** Test Cases ***
|
||||
Addition
|
||||
Given calculator has been cleared
|
||||
When user types "1 + 1"
|
||||
and user pushes equals
|
||||
Then result is "2"
|
||||
|
||||
*** Keywords ***
|
||||
Calculator has been cleared
|
||||
Push button C
|
||||
|
||||
User types "${expression}"
|
||||
Push buttons ${expression}
|
||||
|
||||
User pushes equals
|
||||
Push button =
|
||||
|
||||
Result is "${result}"
|
||||
Result should be ${result}
|
||||
Reference in New Issue
Block a user