Repository navigation
bdd2octane incorrectly converts failed Behave test to passed in OctaneGherkinResults.xml #45
Unanswered
GraceQ2023
asked this question in
Q&A
Replies: 1 comment
|
@GraceQ2023
This will help us pinpoint the exact issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We are using bdd2octane 1.1.10 jar with a Python Behave framework and have encountered an issue where failed tests are sometimes converted to passed in the generated OctaneGherkinResults.xml, which then results in incorrect status in ValueEdge (ALM Octane).
Setup
Framework: Python Behave (BDD)
Conversion tool: bdd2octane-1.1.10
Input:
JUnit XML (Junit-results/.xml)
Feature files (features/.feature)
Command used:
java -jar bdd2octane-1.1.10.jar
--reportFiles=Junit-results/.xml
--featureFiles=features/.feature
--framework=python-behave
--resultFile=OctaneGherkinResults.xml
If a test fails in execution (and is marked as failed in JUnit XML), it should be marked as failed in OctaneGherkinResults.xml.
BUT!
Test fails during execution
JUnit XML correctly marks the test as failed
However, in OctaneGherkinResults.xml, the same test is generated with:
all steps marked as passed
no failure information
ValueEdge then shows the test as passed.
We confirmed that:
Workspace is cleaned before execution (no stale files)
JUnit XML is verified to be correct to show the failed steps
Looks like the issue occurs before upload to ValueEdge as OctaneGherkinResults.xml marked all steps passed
Also,
This does not happen consistently
Some failed tests are correctly converted to failed
Others (like this case) are converted to passed
Any guidance or suggestions would be greatly appreciated.
Thanks!
All reactions