diff options
author | 2016-09-29 15:39:42 +0200 | |
---|---|---|
committer | 2016-09-29 17:21:03 +0200 | |
commit | b24f036bc4817ec3f8ee29593c93721f826a6264 (patch) | |
tree | 8bf0fff668ce1859a7b6d25e53d059426ccc64e3 /utils/test/reporting/functest/reporting-status.py | |
parent | 0b4d1cc2c3acd59f4e2d50785a442f13ed070e70 (diff) |
Add a trend line to Functest reporting
And use d3js lib rather than static images
JIRA: FUNCTEST-483
Change-Id: I3c372a8e18fc366dfe510ab551596640fb6d9242
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'utils/test/reporting/functest/reporting-status.py')
-rwxr-xr-x | utils/test/reporting/functest/reporting-status.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/test/reporting/functest/reporting-status.py b/utils/test/reporting/functest/reporting-status.py index 90699bd61..9df699629 100755 --- a/utils/test/reporting/functest/reporting-status.py +++ b/utils/test/reporting/functest/reporting-status.py @@ -184,8 +184,13 @@ for version in conf.versions: scenario_criteria = conf.MAX_SCENARIO_CRITERIA s_score = str(scenario_score) + "/" + str(scenario_criteria) - s_score_percent = float( + s_score_percent = 0.0 + try: + s_score_percent = float( scenario_score) / float(scenario_criteria) * 100 + except: + logger.error("cannot calculate the score percent") + s_status = "KO" if scenario_score < scenario_criteria: logger.info(">>>> scenario not OK, score = %s/%s" % |