Absent Member.
Absent Member.
1542 views

Screenshots and videos captured are black when executing automated tests

When I execute my automated NUnit tests on Silk Central, all screenshots and videos captured are black. Any idea?

 

I'm using Silk Central 15.5.0.17

0 Likes
3 Replies
Absent Member.
Absent Member.

We experienced a similar problem. There needs to be an active RDP (remote desktop) session open on the machine, which runs your test.
0 Likes
Micro Focus Contributor
Micro Focus Contributor

Hi,
Just another possibility, but you might also want to make sure you have no screensavers or power saving activated (most Windows plans turn off the screen after 15 minutes) - and yes, you would need to run in an active console session with a logged in user otherwise there is no display to capture.
0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Hi Amir,

The Screenshots and videos will not be captured unless there is an active session open on the remote server. Usually in the enterprise level setup there will be screensaver always on.
Below are the following options you have

1. add an key in the registry - "TO DISABLE OR ENABLE SCREEN SAVER"
a. These screen saver settings are stored under the following registry key.HKEY_CURRENT_USER\Control Panel\Desktop
b. Set the value of the registry value ScreenSaveActive to 0.
c. Open notepad (Start->Run and type “notepad”)
d. Copy the code below into the file.
e. Save the file as disable_screensaver_group_policy.reg
f. Now when ever you want to override the group policy just double click this file.
**CODE STARTS HERE**
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop]
"ScreenSaverIsSecure"="0"
"ScreenSaveActive"="0"
"SCRNSAVE.EXE"=""
"ScreenSaveTimeOut"=""
**CODE ENDS HERE**
2. Disable screensaver group policy using group policy editor
3. either ask your admin team (if you dont have rights) to disable the screensaver mode/sleep mode.

Cheers,
Sai Kiran.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.