summaryrefslogtreecommitdiffstats
path: root/reporting/yardstick/scenarioResult.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-08-30 06:21:12 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-30 06:21:12 +0000
commit684408009496d951dabb7750a5891f25b2aacdec (patch)
tree33933c2c381c4ce64b00e1df5910f11d8d1f5b47 /reporting/yardstick/scenarioResult.py
parent2fc683adaf689f3f1afbf8e8919f3a8fa4ec9f9a (diff)
parent15dd840440573191b9405891198afd29a0c8fbd0 (diff)
Merge "Add the function of yardstick testcase reporter"
Diffstat (limited to 'reporting/yardstick/scenarioResult.py')
-rw-r--r--reporting/yardstick/scenarioResult.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/reporting/yardstick/scenarioResult.py b/reporting/yardstick/scenarioResult.py
new file mode 100644
index 0000000..743346a
--- /dev/null
+++ b/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