Skip to content

Commit

Permalink
Handle Skip test fir old script python test cases (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
rquidute authored and hiltonlima committed Oct 24, 2024
1 parent 6061a1b commit c734c28
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ def test_skipped(self, filename: str, name: str) -> None:
self.skip_to_last_step()

def step_skipped(self, name: str, expression: str) -> None:
self.current_test_step.mark_as_not_applicable("Test step skipped")
# From TH perspective, Legacy test cases shows only 2 steps in UI
# but it may have several in the script file.
# So TH should not skip the step in order to keep the test execution flow
skiped_msg = "Test step skipped"
if self.python_test.python_test_type == PythonTestType.LEGACY:
logger.info(skiped_msg)
else:
self.current_test_step.mark_as_not_applicable(skiped_msg)

def step_start(self, name: str) -> None:
self.step_over()
Expand Down

0 comments on commit c734c28

Please sign in to comment.