|
|
@@ -266,10 +266,12 @@ public:
|
|
|
const auto ec = pAsynWaitSp->AsyncGetAnswer(dwUserCode);
|
|
|
if (result->op == OP_START)
|
|
|
{
|
|
|
- if (IS_FAILURED(ec)) {
|
|
|
+ if (IS_FAILURED(ec))
|
|
|
+ {
|
|
|
THROW_ERROR("Start %s failed return %s!", result->strEntityName.GetData(), SpStrError(ec));
|
|
|
}
|
|
|
- else {
|
|
|
+ else
|
|
|
+ {
|
|
|
Dbg("Start entity %s succ.", result->strEntityName.GetData());
|
|
|
_arrTestEntities[_dwStartedTestEntities++] = result->strEntityName;
|
|
|
}
|
|
|
@@ -279,7 +281,7 @@ public:
|
|
|
if (Error_IgnoreAll == ec || Error_NotImpl == ec)
|
|
|
{
|
|
|
LogWarn(Severity_Middle, Error_NotImpl, 0, CSimpleStringA::Format(
|
|
|
- "Test for entity [%s] is not OK: detect no any test case!!", result->strEntityName.GetData()));
|
|
|
+ "Test for entity [%s] is not OK: Detect no any TestCase!!", result->strEntityName.GetData()));
|
|
|
}
|
|
|
else if (Error_Accept == ec || Error_Succeed == ec)
|
|
|
{
|
|
|
@@ -287,7 +289,10 @@ public:
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- THROW_ERROR("Test for entity[%s] failed return %s!", result->strEntityName.GetData(), SpStrError(ec));
|
|
|
+ TestCaseStatistics statistic;
|
|
|
+ statistic.ConvertFormUserCode(dwUserCode);
|
|
|
+ THROW_ERROR("Test for entity[%s] failed return %s: %.2lf percent tests passed, %u test failed out of %u cases",
|
|
|
+ result->strEntityName.GetData(), SpStrError(ec), statistic.FailureRate(), statistic.Failures(), statistic.Total());
|
|
|
}
|
|
|
Dbg("return usercode: 0x%08X", dwUserCode);
|
|
|
}
|