Amir3

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-03-09
09:30
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
3 Replies
mschneider23

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-03-09
09:38
We experienced a similar problem. There needs to be an active RDP (remote desktop) session open on the machine, which runs your test.
nyoung

Micro Focus Contributor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-03-09
09:44
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.
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.


Cadet 2nd Class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-03-10
01:06
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.
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.