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

extra check not recording property incase of video recording is false #13475

Merged

Conversation

omkarkhatavkar
Copy link

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

@omkarkhatavkar omkarkhatavkar requested a review from a team as a code owner December 15, 2023 10:06
@omkarkhatavkar omkarkhatavkar added CherryPick PR needs CherryPick to previous branches 6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 labels Dec 15, 2023
@@ -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:
Copy link
Member

@jyejare jyejare Dec 15, 2023

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 ?

Copy link
Author

@omkarkhatavkar omkarkhatavkar Dec 17, 2023

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.

@omkarkhatavkar omkarkhatavkar force-pushed the extra_check_video_recording branch from 610130c to 1349c4f Compare December 27, 2023 10:57
@jyejare jyejare merged commit 61219a1 into SatelliteQE:master Dec 27, 2023
5 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 27, 2023
github-actions bot pushed a commit that referenced this pull request Dec 27, 2023
github-actions bot pushed a commit that referenced this pull request Dec 27, 2023
github-actions bot pushed a commit that referenced this pull request Dec 27, 2023
Gauravtalreja1 pushed a commit that referenced this pull request Dec 27, 2023
… 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]>
Gauravtalreja1 pushed a commit that referenced this pull request Dec 27, 2023
… 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]>
Gauravtalreja1 pushed a commit that referenced this pull request Dec 27, 2023
… 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]>
Gauravtalreja1 pushed a commit that referenced this pull request Dec 27, 2023
… 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants