When executing automated tests via hyperbrowser (Python Playwright integration), if multiple tests are run in parallel/concurrently, and my script then tries to retrieve the session video recording (mp4) via the hyperbrowser API, then some of the sessions won't return any video, with the response indicating that the video is 'pending' no matter how long I wait (e.g. even 24 hours after the test was run this is the same result).
Example:
- I ran 6x automated tests concurrently using Python Playwright connected to a hyperbrowser session
- At the end of each test I close the session and browser as per the hyperbrowser docs
- I then have some logic to wait a few seconds before starting to call the hyperbrowser API on the retrieve video endpoint(s) (just to allow some time for video processing)
- When my script tried to get the video recordings from each session, the video was retrieved successfully for 4x sessions but is in 'pending' status for the other 2x
- The video recording for the other 2x sessions remain in 'pending' no matter how long I wait and are never available to download
I will paste the session ID and video recording URLs for the 2x sessions that fail to retrieve video below:
Session ID 1: 8ef3ef5f-731b-47a4-83e3-f7ede63245f3
GET VideoRecordingURL API URI 1: https://api.hyperbrowser.ai/api/session/8ef3ef5f-731b-47a4-83e3-f7ede63245f3/video-recording-url
Session ID 2: 1efe9b24-5638-4b15-86f0-cf634a49e151
GET VideoRecordingURL API URI 2: https://api.hyperbrowser.ai/api/session/1efe9b24-5638-4b15-86f0-cf634a49e151/video-recording-url
When executing automated tests via hyperbrowser (Python Playwright integration), if multiple tests are run in parallel/concurrently, and my script then tries to retrieve the session video recording (mp4) via the hyperbrowser API, then some of the sessions won't return any video, with the response indicating that the video is 'pending' no matter how long I wait (e.g. even 24 hours after the test was run this is the same result).
Example:
I will paste the session ID and video recording URLs for the 2x sessions that fail to retrieve video below:
Session ID 1: 8ef3ef5f-731b-47a4-83e3-f7ede63245f3
GET VideoRecordingURL API URI 1: https://api.hyperbrowser.ai/api/session/8ef3ef5f-731b-47a4-83e3-f7ede63245f3/video-recording-url
Session ID 2: 1efe9b24-5638-4b15-86f0-cf634a49e151
GET VideoRecordingURL API URI 2: https://api.hyperbrowser.ai/api/session/1efe9b24-5638-4b15-86f0-cf634a49e151/video-recording-url