groupon / Selenium-Grid-Extras

Simplify the management of the Selenium Grid Nodes and stabilize said nodes by cleaning up the test environment after the build has been completed
BSD 3-Clause "New" or "Revised" License
536 stars 209 forks source link

Resizing Screen Ends Video Recording #150

Open levisiebens opened 9 years ago

levisiebens commented 9 years ago

I have some test which trigger a screen resize in the middle of the test. I've noticed this immediately kills any video recording that was in progress as the videos that are uploaded to the server end up being shortened. Is this a known issue or just a limitation of the system?

dimacus commented 9 years ago

This is a new issue but it makes sense, the video recording is tied into Java robot for capturing the screen, and the initial screen size is set up front. Either the robot is no longer able to take pictures (unlikely) or the video encoder is not able to deal with multi sizes image inputs (most likely)

Sent via Payphone

On Aug 5, 2015, at 5:55 PM, levisiebens notifications@github.com wrote:

I have some test which trigger a screen resize in the middle of the test. I've noticed this immediately kills any video recording that was in progress as the videos that are uploaded to the server end up being shortened. Is this a known issue or just a limitation of the system?

— Reply to this email directly or view it on GitHub.

levisiebens commented 9 years ago

So does that mean that I will have to change resolution before running the test? Or is there the potential for a fix for this?

On Wed, Aug 5, 2015, 4:40 PM Dima Kovalenko notifications@github.com wrote:

This is a new issue but it makes sense, the video recording is tied into Java robot for capturing the screen, and the initial screen size is set up front. Either the robot is no longer able to take pictures (unlikely) or the video encoder is not able to deal with multi sizes image inputs (most likely)

Sent via Payphone

On Aug 5, 2015, at 5:55 PM, levisiebens notifications@github.com wrote:

I have some test which trigger a screen resize in the middle of the test. I've noticed this immediately kills any video recording that was in progress as the videos that are uploaded to the server end up being shortened. Is this a known issue or just a limitation of the system?

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/groupon/Selenium-Grid-Extras/issues/150#issuecomment-128184572 .

dimacus commented 9 years ago

I don't know the video encoder off the top of my head, but I doubt it is possible to change a resolution mid flight. Since each test starts its own video recorder, try to change resolution in between the individual tests and see if that works

Sent via Payphone

On Aug 5, 2015, at 8:01 PM, levisiebens notifications@github.com wrote:

So does that mean that I will have to change resolution before running the test? Or is there the potential for a fix for this?

On Wed, Aug 5, 2015, 4:40 PM Dima Kovalenko notifications@github.com wrote:

This is a new issue but it makes sense, the video recording is tied into Java robot for capturing the screen, and the initial screen size is set up front. Either the robot is no longer able to take pictures (unlikely) or the video encoder is not able to deal with multi sizes image inputs (most likely)

Sent via Payphone

On Aug 5, 2015, at 5:55 PM, levisiebens notifications@github.com wrote:

I have some test which trigger a screen resize in the middle of the test. I've noticed this immediately kills any video recording that was in progress as the videos that are uploaded to the server end up being shortened. Is this a known issue or just a limitation of the system?

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/groupon/Selenium-Grid-Extras/issues/150#issuecomment-128184572 .

— Reply to this email directly or view it on GitHub.