Skip to content

Commit 2515b34

Browse files
committed
Update boilerplate to save a screenshot before the tearDown()
1 parent a19a63c commit 2515b34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/boilerplates/base_test_case.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ class BaseTestCase(BaseCase):
1212

1313
def setUp(self):
1414
super(BaseTestCase, self).setUp()
15-
# Add custom setUp code for your tests AFTER the super().setUp()
15+
# <<< Add custom setUp code for tests AFTER the super().setUp() >>>
1616

1717
def tearDown(self):
18-
# Add custom tearDown code for your tests BEFORE the super().tearDown()
18+
self.save_teardown_screenshot()
19+
# <<< Add custom tearDown code BEFORE the super().tearDown() >>>
1920
super(BaseTestCase, self).tearDown()
2021

2122
def login(self):

0 commit comments

Comments
 (0)