-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(GherkinParser): first running version
- Loading branch information
Showing
24 changed files
with
1,055 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
results/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "RobotCode: Run Current", | ||
"type": "robotcode", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"target": "${file}" | ||
}, | ||
{ | ||
"name": "RobotCode: Run All", | ||
"type": "robotcode", | ||
"request": "launch", | ||
"cwd": "${workspaceFolder}", | ||
"target": "." | ||
}, | ||
{ | ||
"name": "RobotCode: Default", | ||
"type": "robotcode", | ||
"request": "launch", | ||
"purpose": "default", | ||
"presentation": { | ||
"hidden": true | ||
}, | ||
"attachPython": true, | ||
"pythonConfiguration": "RobotCode: Python" | ||
}, | ||
{ | ||
"name": "RobotCode: Python", | ||
"type": "python", | ||
"request": "attach", | ||
"presentation": { | ||
"hidden": true | ||
}, | ||
"justMyCode": false | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
// "robotcode.extraArgs": [ | ||
// "-v" | ||
// ] | ||
"robotcode.debug.attachPython": true, | ||
"debugpy.debugJustMyCode": false, | ||
"python.analysis.typeCheckingMode": "off" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@browser | ||
Feature: Minimal | ||
|
||
@minimal | ||
Scenario: minimalistic | ||
Given the minimalism | ||
|
||
@maximal | ||
Scenario: another one | ||
Given do something in the maximal way | ||
|
||
@another | ||
@slow | ||
Scenario: another one1 | ||
Given the minimalism | ||
|
||
@browser | ||
Scenario: the last one | ||
Given the minimalism | ||
|
||
Scenario Outline: Cucumber Data Table | ||
Given Table with example | ||
| FirstName | <FirstName> | | ||
| MiddleName | <MiddleName> | | ||
| LastName | <LastName> | | ||
|
||
Examples: | ||
| FirstName | MiddleName | LastName | | ||
| Daniel | D | Biehl | | ||
| Philip | K | Dick | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*** Settings *** | ||
Suite Setup Log Suite Setup | ||
Suite Teardown Log Suite Teardown | ||
Test Setup Log Test Setup | ||
Test Teardown Log Test Teardown | ||
|
||
Resource ./steps/hooks.resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: Highlander | ||
|
||
Rule: There can be only One | ||
|
||
Example: Only One -- More than one alive | ||
Given there are 3 ninjas | ||
And there are more than one ninja alive | ||
When 2 ninjas meet, they will fight | ||
Then one ninja dies (but not me) | ||
And there is one ninja less alive | ||
|
||
Example: Only One -- One alive | ||
Given there is only 1 ninja alive | ||
Then he (or she) will live forever ;-) | ||
|
||
Rule: There can be Two (in some cases) | ||
|
||
Example: Two -- Dead and Reborn as Phoenix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Feature: blah | ||
|
||
@atag | ||
## Scenario: whatever | ||
|
||
- Given something | ||
- When something else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*** Settings *** | ||
Library step_impls.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
*** Keywords *** | ||
before_test | ||
[Arguments] ${context}= ${test}= | ||
[Tags] hook:before-test | ||
Log before test | ||
Fail har har test | ||
|
||
before_suite | ||
[Arguments] ${context}= ${suite}= | ||
[Tags] hook:before-suite | ||
Log hook before suite | ||
#Fail hahar suite | ||
|
||
before_keyword | ||
[Arguments] ${context}= ${suite}= | ||
[Tags] hook:before-keyword | ||
Log before keyword | ||
Fail blah | ||
RETURN after_keyword | ||
|
||
after_keyword | ||
[Arguments] ${context}= ${suite}= | ||
[Tags] hook:after-step | ||
Log after step | ||
|
||
before_tag | ||
[Arguments] ${context}= ${suite}= | ||
[Tags] hook:before-tag | ||
Log before suite | ||
|
||
|
||
start_browser | ||
[Arguments] ${context}= ${suite}= | ||
[Tags] hook:before-tag:browser | ||
Log before suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*** Settings *** | ||
Library step_impls.py | ||
|
||
*** Keywords *** | ||
the minimalism | ||
Log yeah | ||
|
||
Table with example | ||
[Arguments] ${blah} | ||
|
||
log ${blah} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from typing import Optional | ||
|
||
from robot.api.deco import keyword | ||
|
||
|
||
@keyword(name="before_feature", tags=["hook:before-feature"]) | ||
def before_feature(lang: Optional[str] = None): | ||
print("I'm doing something in lang") | ||
#raise Exception("I'm failing") | ||
|
||
|
||
@keyword(name="Do something in ${lang}") | ||
def do_something_in_python(lang: str): | ||
print(f"I'm doing something in {lang}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[parsers] | ||
GherkinParser = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*** Test Cases *** | ||
first | ||
Run Keyword My Keyword | ||
|
||
|
||
*** Keywords *** | ||
My Keyword | ||
# TODO: implement keyword "My Keyword". | ||
Fail Not Implemented |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.