@microfocus/alm-octane-test-result-convertion
Version:
A NodeJS library for converting different kinds of test reports into OpenText SDP / SDM format.
108 lines (104 loc) • 5.08 kB
text/xml
<test_result>
<build build_id="123" job_id="myJob" server_id="serverId"/>
<test_fields>
<test_field type="Test_Level" value="Gherkin Test"/>
<test_field type="Test_Type" value="Sanity"/>
<test_field type="Framework" value="Cucumber"/>
</test_fields>
<test_runs>
<gherkin_test_run name="Boolean Calculator Operations" duration="0" status="Failed">
<feature name="Boolean Calculator Operations" path="src/test/resources/calculator_features/BooleanCalculator.feature" started="1733747517214" tag="">
<file><![CDATA[Feature: Boolean Calculator Operations
Scenario: Perform OR operation
Given a boolean calculator
When I OR true and false
Then the result should be true
Scenario: Perform AND operation
Given a boolean calculator
When I AND true and false
Then the result should be false
Scenario: Perform AND operation failed
Given a boolean calculator
When I AND true and false
Then the result should be true]]>
</file>
<scenarios>
<scenario name="Perform OR operation" status="Passed">
<steps>
<step name="Given a boolean calculator" duration="0" status="passed"/>
<step name="When I OR true and false" duration="0" status="passed"/>
<step name="Then the result should be true" duration="0" status="passed"/>
</steps>
</scenario>
<scenario name="Perform AND operation" status="Passed">
<steps>
<step name="Given a boolean calculator" duration="0" status="passed"/>
<step name="When I AND true and false" duration="0" status="passed"/>
<step name="Then the result should be false" duration="0" status="passed"/>
</steps>
</scenario>
<scenario name="Perform AND operation failed" status="Failed">
<steps>
<step name="Given a boolean calculator" duration="0" status="passed"/>
<step name="When I AND true and false" duration="0" status="passed"/>
<step name="Then the result should be true" duration="0" status="failed">
<error_message><![CDATA[org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1141)
at me.opopescu.test_octane_github_actions.steps.BooleanCalculatorSteps.the_result_should_be(BooleanCalculatorSteps.java:37)
at ✽.the result should be true(file:///home/runner/work/alm-octane-github-actions-tests/alm-octane-github-actions-tests/src/test/resources/calculator_features/BooleanCalculator.feature:15)
]]>
</error_message>
</step>
</steps>
</scenario>
</scenarios>
</feature>
</gherkin_test_run>
<gherkin_test_run name="Calculator Operations" duration="0" status="Passed">
<feature name="Calculator Operations" path="src/test/resources/calculator_features/Calculator.feature" started="1733747517214" tag="">
<file><![CDATA[Feature: Calculator Operations
Scenario: Add two numbers
Given a calculator
When I add 5 and 3
Then the result should be 8
Scenario: Subtract two numbers
Given a calculator
When I subtract 5 from 10
Then the result should be 5
Scenario: Divide two numbers
Given a calculator
When I divide 10 by 2
Then the result should be 5]]>
</file>
<scenarios>
<scenario name="Add two numbers" status="Passed">
<steps>
<step name="Given a calculator" duration="0" status="passed"/>
<step name="When I add 5 and 3" duration="0" status="passed"/>
<step name="Then the result should be 8" duration="0" status="passed"/>
</steps>
</scenario>
<scenario name="Subtract two numbers" status="Passed">
<steps>
<step name="Given a calculator" duration="0" status="passed"/>
<step name="When I subtract 5 from 10" duration="0" status="passed"/>
<step name="Then the result should be 5" duration="0" status="passed"/>
</steps>
</scenario>
<scenario name="Divide two numbers" status="Passed">
<steps>
<step name="Given a calculator" duration="0" status="passed"/>
<step name="When I divide 10 by 2" duration="0" status="passed"/>
<step name="Then the result should be 5" duration="0" status="passed"/>
</steps>
</scenario>
</scenarios>
</feature>
</gherkin_test_run>
</test_runs>
</test_result>