Skip to content

Commit 32fb53e

Browse files
committed
Simplified browser management for run-on-failure test
1 parent e6bc25d commit 32fb53e

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

test/acceptance/keywords/run_on_failure_only_once.txt

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*** Settings ***
2-
Suite Setup Run Keywords Prefer Custom Keywords Go To Front Page
3-
Suite Teardown Run Keywords Set Debug Loglevel Restore Old Search Order
2+
Suite Setup Run Keywords Prefer Custom Keywords Open Browser To Front Page
3+
Suite Teardown Run Keywords Close Browser Set Debug Loglevel Restore Old Search Order
44
Test Teardown Register Keyword To Run On Failure Nothing
55
Resource ../resource.txt
66
Library CustomSeleniumKeywords

test/resources/testlibs/CustomSeleniumKeywords.py

100644100755
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
class CustomSeleniumKeywords(Selenium2Library):
66

7-
def __init__(self, *args, **kwargs):
8-
ret = super(CustomSeleniumKeywords, self).__init__(*args, **kwargs)
9-
self._cache = BuiltIn().get_library_instance("Selenium2Library")._cache
10-
117
def custom_selenium_keyword(self):
128
self.custom_selenium_keyword_inner()
139

0 commit comments

Comments
 (0)