Repository navigation
Run on failure flag #349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
just-be-dev
merged 30 commits into
robotframework:master
from
dpsfrishberg:run-on-failure-flag
May 12, 2015
Merged
Run on failure flag #349
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ba19ad0
Merge pull request #1 in IFT/robotframework-selenium2library from QAR…
eweitz 54b7709
Merge pull request #2 in IFT/robotframework-selenium2library from neg…
eweitz 45b588b
Modified the run-on-failure mechanism so that only one screenshot is …
dpsfrishberg 6007ac0
Added comments
dpsfrishberg c0d0eab
Fixed indentation
dpsfrishberg 4c7e074
Added test
dpsfrishberg d39b3db
Fixed reference in resourse.txt
dpsfrishberg 0465c8f
Moved run-on-failure test to new file
dpsfrishberg 37822fc
Fixed test
dpsfrishberg fc1174b
Setting keyword to run on failure
dpsfrishberg 44815c5
Tests are working now
dpsfrishberg 81a673e
Restored permissions
dpsfrishberg 0636b6d
Merge remote-tracking branch 'rtomac/master'
dpsfrishberg 1e4d418
Merge branch 'master' into run-on-failure-flag
dpsfrishberg 795a67c
Modified the run-on-failure mechanism so that only one screenshot is …
dpsfrishberg 46a1343
Added comments
dpsfrishberg 4095549
Fixed indentation
dpsfrishberg f9f48c3
Added test
dpsfrishberg d6b29f8
Fixed reference in resourse.txt
dpsfrishberg e13f9ba
Moved run-on-failure test to new file
dpsfrishberg 5e35ce8
Fixed test
dpsfrishberg 97340ed
Setting keyword to run on failure
dpsfrishberg b07cee2
Tests are working now
dpsfrishberg e6bc25d
Restored permissions
dpsfrishberg 32fb53e
Simplified browser management for run-on-failure test
dpsfrishberg e713ed4
Moved run_on_failure_only_once test out into run_on_failure.txt
dpsfrishberg 213f634
Moving tests into run_on_failure.txt
dpsfrishberg 73c296f
Comments
dpsfrishberg 1206fad
Comments
dpsfrishberg 2025650
Removing old test file
dpsfrishberg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 24 additions & 1 deletion
25
test/acceptance/keywords/run_on_failure.txt
100644 → 100755
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from Selenium2Library import Selenium2Library | ||
| from robot.utils import asserts | ||
| from robot.libraries.BuiltIn import BuiltIn | ||
|
|
||
| class CustomSeleniumKeywords(Selenium2Library): | ||
|
|
||
| def __init__(self, *args, **kwargs): | ||
| """Share `Selenium2Library`'s cache of browsers, so that | ||
| we don't have to open a separate browser instance for the | ||
| `Run On Failure Keyword Only Called Once` test.""" | ||
| ret = super(CustomSeleniumKeywords, self).__init__(*args, **kwargs) | ||
| self._cache = BuiltIn().get_library_instance("Selenium2Library")._cache | ||
|
|
||
| def custom_selenium_keyword(self): | ||
| self.custom_selenium_keyword_inner() | ||
|
|
||
| def custom_selenium_keyword_inner(self): | ||
| asserts.assert_false(True) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I've got everything in the one test file, but I had to introduce this
__init__hack, so that theGo Tocommand would work with this library.