diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-18 15:23:42 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-18 15:26:38 +0100 |
commit | 8048b797f8147b3db5dfcf68caf6bb449b2f2067 (patch) | |
tree | 80aaff9fc8c787e612a7ccd5a937d7c0187404c9 /functest/core | |
parent | ddf121f9511368eaf5b8e3ebd4e00fbd4f91ee6e (diff) |
Adapt Domino to Test Abstraction
JIRA: FUNCTEST-547
Change-Id: Iaeb1bb3e6f4529343eacc2f5ceda6d61ca6d96f7
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'functest/core')
-rw-r--r-- | functest/core/TestCasesBase.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/core/TestCasesBase.py b/functest/core/TestCasesBase.py index 3d6b82d5..777b09f0 100644 --- a/functest/core/TestCasesBase.py +++ b/functest/core/TestCasesBase.py @@ -21,10 +21,9 @@ class TestCasesBase(object): logger = ft_logger.Logger(__name__).getLogger() - project = "functest" - def __init__(self): self.details = {} + self.project_name = "functest" self.case_name = "" self.criteria = "" self.start_time = "" @@ -36,12 +35,13 @@ class TestCasesBase(object): def push_to_db(self): try: + assert self.project_name assert self.case_name assert self.criteria assert self.start_time assert self.stop_time if ft_utils.push_results_to_db( - TestCasesBase.project, self.case_name, self.start_time, + self.project_name, self.case_name, self.start_time, self.stop_time, self.criteria, self.details): self.logger.info("The results were successfully pushed to DB") return TestCasesBase.EX_OK |