I am working on a web automation framework(C#/Selenium) and I am told by product owners to record the screen whilst automation testing is in progress. I have scheduled nightly test pack on test server.
I am using below code to start capture job immediately after I trigger test pack:-
scj = new ScreenCaptureJob();
scj.CaptureLargeMouseCursor = true;
scj.CaptureFollowCursor = true;
scj.OutputScreenCaptureFileName = VideoDirectoty + @"\ScreenRecording.mp4";
scj.Start();
This code works and records the video,
But the issue is that it only records when remote desktop session(where test automation runs) is opened and maximized.
It does not work when window is minimized or machine is locked. However my automation pack continues to run.
The size of captured job when remote desktop window was minimized(Just 5 kb)
And video two was captured when remote desktop session was maximized(230 MB, records all scenarios).
Microsoft.Expression.Encoder(4.0.0.0)
Aucun commentaire:
Enregistrer un commentaire