We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using the latest version 1.1.1 and running the tests on MAC.
When add_screenshot bool is set to True, an invalid screenshot is attached to the report:
add_screenshot
I tried to figure out why, and I saw that the attachment is sent with 'mime': 'application/octet-stream':
'mime': 'application/octet-stream'
self.service.log_step_result(end_time=timestamp(), message=error_msg, level='ERROR', attachment={ 'name': step_name, 'data': open(screenshot_name, 'rb'), 'mime': 'application/octet-stream' }, item_id=item_id )
When I change it to 'mime': 'image/png' it works as expected:
'mime': 'image/png'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using the latest version 1.1.1 and running the tests on MAC.
When
add_screenshot
bool is set to True, an invalid screenshot is attached to the report:I tried to figure out why, and I saw that the attachment is sent with
'mime': 'application/octet-stream'
:self.service.log_step_result(end_time=timestamp(),
message=error_msg,
level='ERROR',
attachment={
'name': step_name,
'data': open(screenshot_name, 'rb'),
'mime': 'application/octet-stream'
},
item_id=item_id
)
When I change it to
'mime': 'image/png'
it works as expected:The text was updated successfully, but these errors were encountered: