diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-10-20 17:17:37 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2017-10-20 17:48:05 +0200 |
commit | f97f2212e862644178b87708ea62eb091b51a506 (patch) | |
tree | a0bf45fe025cba0c133837ab2c3d05c8da1d5919 /reporting/reporting | |
parent | 5b2b99e43eba2e7dfd2694ce165c1945642c3838 (diff) |
bug fix: score calculation based on build_tag
we were used to count the number of PASS of the last 4 runs
it works 80% of the cases
4 runs
4 OK => 3 points
3 OK => 3 points
2 OK => 2 points
1 OK => 1 point
0 => 0
it is different from the normal score calculation
4 OK => 3 points
3 OK => 2 points
2 OK => 2 points
1 OK => 1 point
0 => 0
Change-Id: Ib8df2c294e0036246176c181b7a7ac290ebea07e
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'reporting/reporting')
-rw-r--r-- | reporting/reporting/utils/reporting_utils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/reporting/reporting/utils/reporting_utils.py b/reporting/reporting/utils/reporting_utils.py index 8dc4f09..58a0c62 100644 --- a/reporting/reporting/utils/reporting_utils.py +++ b/reporting/reporting/utils/reporting_utils.py @@ -114,7 +114,8 @@ def getScenarios(project, case, installer, version): """ Get the list of Scenarios """ - + test_results = None + scenario_results = None period = get_config('general.period') url_base = get_config('testapi.url') @@ -373,8 +374,8 @@ def getCaseScoreFromBuildTag(testCase, s_results): test_result_indicator += 1 except: print "No results found for this case" - if test_result_indicator > 3: - test_result_indicator = 3 + if test_result_indicator > 2: + test_result_indicator = test_result_indicator - 1 return test_result_indicator |