Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Comparison between
extentreports-java-2.031.jar
and
extentreports-java-2.4.jar
Pseudocode
// verifyIssueWorkflow Test
parent = report.startTest("verifyIssueWorkflow","verify that the Issue workflow
functions as expected");
// verifyAmendWorkflow Test
parent = report.startTest("verifyAmendFlow","verify that the amend workflow
functions as expected");
// based on the logStatus of the child steps, log status as parent test status
parent.log(LogStatus.PASS,"verify Issue Workflow","PASSED");
// based on the logStatus of the child steps, log status as parent test status
parent.log(LogStatus.PASS,"verify Issue Workflow","PASSED");
report.endTest(parent);
report.endTest(parent);
} else {
Test View in v2.04 the status of the
// need to log this to parent if at least 1 test step failed
parent.log(LogStatus.FAIL, "verifyIssueWorkflow", "Status:parent
FAILED");
is based on the last
}
RunStatus as seen in the Quick Test
// close the report
report.endTest(parent);
3. Test view
reflects correct
test count graph
and matches
with Quick Test
Summary
Reflects 28
steps instead
of 26
Reflects 2
Failed steps
instead of 1
4. Pass
Percentage
reflects correct
value based on
Test View
Expanding verifyIssueWorkflow
Status taken from
parent.logStatus()
This line is counted as 1 step possible
side effect when calling - parent =
report.startTest()
Expanding verifyAmendFlow
Status taken from
parent.logStatus()
This line is counted as 1 step as a
side effect of calling - parent =
report.startTest()
For v2.031 & v2.04, it
would be more accurate
if these are the only
items counted as test
steps
Which means there
would be:
13 steps, 12 passed, 1
failed
Should be the same for
verifyIssueWorkflow
Steps View
values is now the
same as the
Quick Test View.
Still has 28 steps
total instead of
26
1. In Quick Test
Summary, only
LogStatus used is
reflected
3
2
1
3
2
1
Findings
Conclusions
Revisit Test Step count to reflect the actual test steps without
adding the additional step that could be brought about by parent
= report.startTest() and appendChild() methods