Skip to content
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

Fixing the issue of the fail attribute not existing in _end_test #80

Merged
merged 1 commit into from
Jan 27, 2021

Conversation

josev814
Copy link
Contributor

@josev814 josev814 commented Jan 27, 2021

When RobotEyes is included in the RobotFramework and it isn't used, the open_eyes method is never called.
If another task triggers a failure, Robot Eyes improperly handles the error. The self.fail attribute is set in open_eyes, but it needs to be set in either init or as a global variable for RobotEyes when it's invoked.

[ ERROR ] Calling method '_end_test' of listener 'RobotEyes' failed: AttributeError: 'RobotEyes' object has no attribute 'fail'

I set it as a global variable for the class. So when open_eyes is triggered it will set the value for fail. I set the default value to False. This should remove the error that's encountered when other libraries have failed and RobotEyes has been included in the test suite, but open_eyes hasn't been invoked.

@jessezach jessezach changed the base branch from master to v/1.5.4 January 27, 2021 16:02
@jessezach jessezach merged commit 7b130ca into jessezach:v/1.5.4 Jan 27, 2021
jessezach added a commit that referenced this pull request Jan 27, 2021
* Fixing the issue of the fail attribute not existing in _end_test (#80)

Co-authored-by: Jose <josev814@gmail.com>
@jessezach
Copy link
Owner

Released in v1.5.4

@josev814 josev814 deleted the Bug_event_fail branch February 25, 2021 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants