adiralashiva8 / testng-metrics

A HTML Report of test executions via TestNG (No code changes required, Export results)
https://testng-metrics.netlify.com/#
MIT License
4 stars 3 forks source link

DashBoard Showing wrong count #18

Closed gvreddyreddy closed 5 years ago

gvreddyreddy commented 5 years ago

I have executed only 1 test case but Dashboard showing count as 4

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Forgot Password">
    <test name="Forgot Password" verbose="2">
        <parameter name="browserName" value="chrome" />
        <classes>
            <class name="com.fs.goeasy.tests.ForgotPwdTest">
            <methods>
             <include name="tc05_validateErrorMsgForPasswordsMismatch"></include>
            </methods>
            </class>
        </classes>
    </test>
</suite>

Metrics-2019Feb28-1310.zip

gvreddyreddy commented 5 years ago

Sample TestNG xml file. sample.zip

gvreddyreddy commented 5 years ago

One more issue: To show total count in code observed that you have written following code int getTotal() { return getPassed() + getFailed() + getSkipped() + getIgnored() + getRetried(); }

Here ignored and retired count also but not showing in the report so we are unable to understand report .

If we show ignored and retired count in report then count will match.

adiralashiva8 commented 5 years ago

Thank you @gvreddyreddy for pointing the issue and also provding solution for it. will fix this as part of v1.4 release

adiralashiva8 commented 5 years ago

Fixed as part of https://github.com/adiralashiva8/testng-metrics/commit/807137d18b040c3a35cea227976fddd398749124 commit