-
Notifications
You must be signed in to change notification settings - Fork 115
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
extra check not recording property incase of video recording is false #13475
extra check not recording property incase of video recording is false #13475
Conversation
robottelo/hosts.py
Outdated
@@ -1849,8 +1849,9 @@ def get_caller(): | |||
video_url = settings.ui.grid_url.replace( | |||
':4444', f'/videos/{ui_session.ui_session_id}.mp4' | |||
) | |||
self.record_property('video_url', video_url) | |||
self.record_property('session_id', ui_session.ui_session_id) | |||
if not self.record_property and settings.ui.record_video: |
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.
IMHO check forself.record_property
to be none is not required because this could have been already populated when nested/multiple session would be running for a test for same satellite ?
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.
I wanted to prevent a scenario where the test passes, but the record property for that specific SAT instance doesn't get retrieved somehow. Omitting this condition could lead to test failures.
To address this, I can include a warning message or logging mechanism if such a situation occurs. Another approach is to detect this issue through failing UI tests when the UI recording session cannot be obtained. This will avoid the side effects in this case. We are not going to often see this issue.
610130c
to
1349c4f
Compare
… is false (#13561) extra check not recording property incase of video recording is false (#13475) (cherry picked from commit 61219a1) Co-authored-by: Omkar Khatavkar <[email protected]>
… is false (#13564) extra check not recording property incase of video recording is false (#13475) (cherry picked from commit 61219a1) Co-authored-by: Omkar Khatavkar <[email protected]>
… is false (#13563) extra check not recording property incase of video recording is false (#13475) (cherry picked from commit 61219a1) Co-authored-by: Omkar Khatavkar <[email protected]>
… is false (#13562) extra check not recording property incase of video recording is false (#13475) (cherry picked from commit 61219a1) Co-authored-by: Omkar Khatavkar <[email protected]>
Problem Statement
Currently, every time we record a video URL is a JUnit report, which is not necessary in case the video recording is false.
Solution
Adding extra layer check to see record_property is not null and video recording is true