summaryrefslogtreecommitdiffstats
path: root/reporting/reporting/functest/scenarioResult.py
diff options
context:
space:
mode:
Diffstat (limited to 'reporting/reporting/functest/scenarioResult.py')
-rw-r--r--reporting/reporting/functest/scenarioResult.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/reporting/reporting/functest/scenarioResult.py b/reporting/reporting/functest/scenarioResult.py
new file mode 100644
index 0000000..5a54eed
--- /dev/null
+++ b/reporting/reporting/functest/scenarioResult.py
@@ -0,0 +1,29 @@
+#!/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, score_percent=0, url_lastrun=''):
+ self.status = status
+ self.score = score
+ self.score_percent = score_percent
+ self.url_lastrun = url_lastrun
+
+ def getStatus(self):
+ return self.status
+
+ def getScore(self):
+ return self.score
+
+ def getScorePercent(self):
+ return self.score_percent
+
+ def getUrlLastRun(self):
+ return self.url_lastrun