예제 #1
0
 def execute(self, driver, config):
     logging.debug("Executing Action %s" % self.name)
     # if not self.start_state.is_state_present(driver):
     #     result =Result(step_results=self.execution_results,passed=False,message="State %s not present" % self.start_state)
     #     result.failed_state = self.start_state
     #     result.actual_state = self.start_state.get_current_state(driver)
     #     result.actual_state.save()
     #     result.html = driver.html
     #     result.screenshot = driver.get_screenshot_as_base64()
     #     return result
     result = Executable.execute(self, driver, config)
     if not result.passed:
         result.failed_state = self.start_state
         result.actual_state = self.start_state.get_current_state(driver)
         result.actual_state.save()
         result.html = driver.html
         result.screenshot = driver.get_screenshot_as_base64()
     return result
예제 #2
0
 def execute(self, driver, config):
     logging.debug("Executing Test %s" % self.name)
     self.steps = self.actions
     suite_results = Executable.execute(self, driver, config)
     return suite_results