diff options
author | rexlee8776 <limingjiang@huawei.com> | 2016-08-27 06:26:46 +0000 |
---|---|---|
committer | rexlee8776 <limingjiang@huawei.com> | 2016-08-27 07:55:16 +0000 |
commit | f53fc8221faf7718d1cf060038ad3a23463b8398 (patch) | |
tree | a0d3bf61e9e10f1ef006f59b29e47138230fc8ec /utils/test/reporting/yardstick/scenarioResult.py | |
parent | f0830fb30a41e6db542ce7c843c5819fcb205c9e (diff) |
Add the function of yardstick testcase reporter
JIRA: YARDSTICK-324
Change-Id: I58969265f88d5c20f46f0b1097f5b0ccb1d9a40d
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'utils/test/reporting/yardstick/scenarioResult.py')
-rw-r--r-- | utils/test/reporting/yardstick/scenarioResult.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/test/reporting/yardstick/scenarioResult.py b/utils/test/reporting/yardstick/scenarioResult.py new file mode 100644 index 000000000..743346adc --- /dev/null +++ b/utils/test/reporting/yardstick/scenarioResult.py @@ -0,0 +1,20 @@ +#!/usr/bin/python +# +# This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# + + +class ScenarioResult(object): + def __init__(self, status, score=0): + self.status = status + self.score = score + + def getStatus(self): + return self.status + + def getScore(self): + return self.score |