File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1001,20 +1001,21 @@ def skip_step(self, step):
1001
1001
self .step (step )
1002
1002
self .mark_current_step_skipped ()
1003
1003
1004
- def skip_all_remaining_steps (self , starting_step ):
1004
+ def skip_all_remaining_steps (self , starting_step_number ):
1005
1005
''' Skips all remaining test steps starting with provided starting step
1006
1006
1007
- starting_step must be provided, and is not derived intentionally. By providing argument
1007
+ starting_step_number gives the first step to be skipped, as definted in the TestStep.test_plan_number
1008
+ starting_step_number must be provided, and is not derived intentionally. By providing argument
1008
1009
test is more deliberately identifying where test skips are starting from, making
1009
1010
it easier to validate against the test plan for correctness.
1010
1011
'''
1011
1012
steps = self .get_test_steps (self .current_test_info .name )
1012
1013
for idx , step in enumerate (steps ):
1013
- if step .test_plan_number == starting_step :
1014
+ if step .test_plan_number == starting_step_number :
1014
1015
starting_step_idx = idx
1015
1016
break
1016
1017
else :
1017
- raise TestingExpection ("skip_all_remaining_steps was provided with invalid starting_step_num" )
1018
+ asserts . fail ("skip_all_remaining_steps was provided with invalid starting_step_num" )
1018
1019
remaining = steps [starting_step_idx :]
1019
1020
for step in remaining :
1020
1021
self .skip_step (step .test_plan_number )
You can’t perform that action at this time.
0 commit comments