-
Notifications
You must be signed in to change notification settings - Fork 111
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
Added Scope feature to timeout, retry_assertion and strice_mode #2319
Conversation
if self._auto_closing_level == AutoClosingLevel.TEST: | ||
try: | ||
self._execution_stack.append(self.get_browser_catalog()) | ||
except ConnectionError as e: | ||
logger.debug(f"Browser._start_test connection problem: {e}") | ||
|
||
def _start_keyword(self, name, attrs): |
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.
This code is just moved and unaltered from the lower part of that file, so that it is in a better place between start and end test
@@ -509,6 +509,7 @@ def get_selected_options( | |||
option_attribute: SelectAttribute = SelectAttribute.label, | |||
assertion_operator: Optional[AssertionOperator] = None, | |||
*assertion_expected, |
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.
The message argument was just missing...
f95480b
to
c522fa3
Compare
1a4c54d
to
263a60b
Compare
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
Signed-off-by: René Rohner <snooz@posteo.de>
6acb9cb
to
6adfed5
Compare
Signed-off-by: René Rohner <snooz@posteo.de>
With this feature a scope is added to the following keywords:
Set Browser Timeout
Set Strict Mode
Set Retry Assertions For
With that scope argument one can set the "live time" of that setting.
Available Scopes are:
Global
,Suite
andTest
/Task
Live Times:
Global
scope will live forever until it is overwritten by anotherGlobal
scope.Suite
scope will locally override theGlobal
scope and live until the end of the Suite within it is set, or if it is overwritten by a later setting withGlobal
or same scope. Children suite does inherit the setting from the parent suite but also may have its own localSuite
setting that then will be inherited to its children suites.Test
orTask
scope will be inherited from its parent suite but when set, lives until the end of that particular test or task.A new set higher order Scope will always remove the lower order scope which may be in charge.
So the setting of a
Suite
scope from a test, will set that scope to the robot file suite where that test is and removes theTest
scope that has been in place.Bugfixes: