-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the expected results of the tests
- Loading branch information
1 parent
3e11ac3
commit 88d811b
Showing
5 changed files
with
101 additions
and
2 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.idea | ||
*.iml | ||
target | ||
*.xml | ||
target |
19 changes: 19 additions & 0 deletions
19
src/test/resources/expectedResults/BackgroundStepFails.xml
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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<features version="1"><feature name="asd" path="src\test\resources\scenarios\backgroundStepFails.feature" tag=""><file><![CDATA[@ATag | ||
Feature: asd | ||
Background: | ||
Given I am logged in | ||
And I'm failed | ||
Scenario: scenario with passed steps | ||
When passed step | ||
Then another passed step | ||
Scenario: scenario with failed steps | ||
When failed step | ||
Then another failed step | ||
Scenario: scenario with skipped steps | ||
When pending step | ||
Then another pending step]]></file><scenarios><scenario name="scenario with passed steps"><steps><step name="Given I am logged in" status="passed"/><step name="And I'm failed" status="failed"><error_message><![CDATA[java.lang.Exception: exception happened at com.hpe.alm.octane.MyStepdefs.iMFailed(MyStepdefs.java:79) at ✽.I'm failed(src/test/resources/scenarios/backgroundStepFails.feature:6)]]></error_message></step><step name="When passed step" status="skipped"/><step name="Then another passed step" status="skipped"/></steps></scenario><scenario name="scenario with failed steps"><steps><step name="Given I am logged in" status="passed"/><step name="And I'm failed" status="failed"><error_message><![CDATA[java.lang.Exception: exception happened at com.hpe.alm.octane.MyStepdefs.iMFailed(MyStepdefs.java:79) at ✽.I'm failed(src/test/resources/scenarios/backgroundStepFails.feature:6)]]></error_message></step><step name="When failed step" status="skipped"/><step name="Then another failed step" status="skipped"/></steps></scenario><scenario name="scenario with skipped steps"><steps><step name="Given I am logged in" status="passed"/><step name="And I'm failed" status="failed"><error_message><![CDATA[java.lang.Exception: exception happened at com.hpe.alm.octane.MyStepdefs.iMFailed(MyStepdefs.java:79) at ✽.I'm failed(src/test/resources/scenarios/backgroundStepFails.feature:6)]]></error_message></step><step name="When pending step" status="skipped"/><step name="Then another pending step" status="skipped"/></steps></scenario></scenarios></feature></features> |
51 changes: 51 additions & 0 deletions
51
src/test/resources/expectedResults/RunCucumberFeatureClassPath.xml
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,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<features version="1"><feature name="test Feature" path="com\hpe\alm\octane\F1\test1.feature" tag="@TID2001REV0.2.0"><file><![CDATA[#Auto generated NGA revision tag | ||
@TID2001REV0.2.0 | ||
Feature: test Feature | ||
Background: | ||
Given back | ||
And back | ||
Scenario: test scenario | ||
Given test | ||
When test | ||
Then test | ||
Scenario Outline: Table TTT | ||
Given hello "<name>" | ||
When what "<question>" | ||
Then wow | ||
Examples: | ||
|name |question | | ||
|dan |what | | ||
|sari |who |]]></file><scenarios><scenario name="test scenario"><steps><step name="Given back" status="passed"/><step name="And back" status="passed"/><step name="Given test" status="passed"/><step name="When test" status="passed"/><step name="Then test" status="passed"/></steps></scenario><scenario name="Table TTT" outlineIndex="1"><steps><step name="Given back" status="passed"/><step name="And back" status="passed"/><step name="Given hello "dan"" status="passed"/><step name="When what "what"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario><scenario name="Table TTT" outlineIndex="2"><steps><step name="Given back" status="passed"/><step name="And back" status="passed"/><step name="Given hello "sari"" status="passed"/><step name="When what "who"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario></scenarios></feature><feature name="test Feature2" path="com\hpe\alm\octane\F2\test2.feature" tag="@TID2001REV0.2.0"><file><![CDATA[#Auto generated NGA revision tag | ||
@TID2001REV0.2.0 | ||
Feature: test Feature2 | ||
Background: | ||
Given back2 | ||
And back2 | ||
Scenario: test scenario2 | ||
Given test2 | ||
When test2 | ||
Then test2 | ||
Scenario Outline: Table TTT2 | ||
Given hello "<name>" | ||
When what "<question>" | ||
Then wow | ||
Examples: | ||
|name |question | | ||
|dan |what | | ||
|sari |who | | ||
Scenario: test scenario3 | ||
Given test3 | ||
When test3 | ||
Then test3 | ||
Scenario Outline: Table TTT4 | ||
Given hello "<name>" | ||
When what "<question>" | ||
Then wow | ||
Examples: | ||
|name |question | | ||
|dan |what | | ||
|sari |who |]]></file><scenarios><scenario name="test scenario2"><steps><step name="Given back2" status="passed"/><step name="And back2" status="passed"/><step name="Given test2" status="passed"/><step name="When test2" status="passed"/><step name="Then test2" status="passed"/></steps></scenario><scenario name="Table TTT2" outlineIndex="1"><steps><step name="Given back2" status="passed"/><step name="And back2" status="passed"/><step name="Given hello "dan"" status="passed"/><step name="When what "what"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario><scenario name="Table TTT2" outlineIndex="2"><steps><step name="Given back2" status="passed"/><step name="And back2" status="passed"/><step name="Given hello "sari"" status="passed"/><step name="When what "who"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario><scenario name="test scenario3"><steps><step name="Given back2" status="passed"/><step name="And back2" status="passed"/><step name="Given test3" status="passed"/><step name="When test3" status="passed"/><step name="Then test3" status="passed"/></steps></scenario><scenario name="Table TTT4" outlineIndex="1"><steps><step name="Given back2" status="passed"/><step name="And back2" status="passed"/><step name="Given hello "dan"" status="passed"/><step name="When what "what"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario><scenario name="Table TTT4" outlineIndex="2"><steps><step name="Given back2" status="passed"/><step name="And back2" status="passed"/><step name="Given hello "sari"" status="passed"/><step name="When what "who"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario></scenarios></feature></features> |
20 changes: 20 additions & 0 deletions
20
src/test/resources/expectedResults/RunCucumberFeatureFile.xml
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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<features version="1"><feature name="test Feature" path="src\test\resources\com\hpe\alm\octane\F1\test1.feature" tag="@TID2001REV0.2.0"><file><![CDATA[#Auto generated NGA revision tag | ||
@TID2001REV0.2.0 | ||
Feature: test Feature | ||
Background: | ||
Given back | ||
And back | ||
Scenario: test scenario | ||
Given test | ||
When test | ||
Then test | ||
Scenario Outline: Table TTT | ||
Given hello "<name>" | ||
When what "<question>" | ||
Then wow | ||
Examples: | ||
|name |question | | ||
|dan |what | | ||
|sari |who |]]></file><scenarios><scenario name="test scenario"><steps><step name="Given back" status="passed"/><step name="And back" status="passed"/><step name="Given test" status="passed"/><step name="When test" status="passed"/><step name="Then test" status="passed"/></steps></scenario><scenario name="Table TTT" outlineIndex="1"><steps><step name="Given back" status="passed"/><step name="And back" status="passed"/><step name="Given hello "dan"" status="passed"/><step name="When what "what"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario><scenario name="Table TTT" outlineIndex="2"><steps><step name="Given back" status="passed"/><step name="And back" status="passed"/><step name="Given hello "sari"" status="passed"/><step name="When what "who"" status="passed"/><step name="Then wow" status="passed"/></steps></scenario></scenarios></feature></features> |
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<features version="1"><feature name="asd" path="src\test\resources\scenarios\stepNotImplemented.feature" tag=""><file><![CDATA[Feature: asd | ||
Scenario: scenario with pending steps | ||
Given I am logged in | ||
When pending step | ||
Then another pending step]]></file><scenarios><scenario name="scenario with pending steps"><steps><step name="Given I am logged in" status="passed"/><step name="When pending step" status="pending"><error_message><![CDATA[cucumber.api.PendingException: TODO: implement me | ||
at com.hpe.alm.octane.MyStepdefs.pending_step(MyStepdefs.java:68) | ||
at ✽.pending step(src/test/resources/scenarios/stepNotImplemented.feature:5) | ||
]]></error_message></step><step name="Then another pending step" status="skipped"/></steps></scenario></scenarios></feature></features> |