Merge "Reporting docker deployment improvement"
[releng.git] / utils / test / reporting / reporting / functest / scenarioResult.py
1 #!/usr/bin/python
2 #
3 # This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9
10
11 class ScenarioResult(object):
12
13     def __init__(self, status, score=0, score_percent=0, url_lastrun=''):
14         self.status = status
15         self.score = score
16         self.score_percent = score_percent
17         self.url_lastrun = url_lastrun
18
19     def getStatus(self):
20         return self.status
21
22     def getScore(self):
23         return self.score
24
25     def getScorePercent(self):
26         return self.score_percent
27
28     def getUrlLastRun(self):
29         return self.url_lastrun