NUnit result file result classification
Hello all,
i recently tried to count the results of a NUnit resultfile using xpath expressions. I have used version 2.5.10. What confuses me are the attributes of the test-case nodes. I have noticed the following attributes:
executed
result
success
time
asserts
So i have created some variables that count the results that way:
<xsl:variable name="TestsAllC
<xsl:variable name="FixturesF
<xsl:variable name="TestsFailed" select=
<xsl:variable name="TestsPassed" select=
<xsl:variable name="FixturesI
<xsl:variable name="TestsIgnored" select=
<xsl:variable name="FixturesI
<xsl:variable name="TestsInco
<xsl:variable name="TestsNotE
Is this correct or not?
I dig that ignored and inconclusive test have the executed-attribute set to 'False' but what for is the attribute "success"? Isn't a test successful even if it is ignored or inconclusive? As long as the attribute "success" just takes True|False as values, i wonder why i just can't use the attribute "result" that seems not to have just True|False as value but friendly names like "success", "failure" or "error" or "inconclusive" or "ignored". Is there any documentation about what values are set in what cases? What if a test-suite has 4 test-cases, one test is "Successful", another "Error", another "Ignored" and the last one is "Inconclusive". What value holds the attribute "result" of the appropriate test-suite of the mentioned test-cases? Does it contain all of the values of the test-cases in a comma-separated list? Please help. I am confused. Thank you.
Peter
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Peter Brightman for more information if necessary.