Could not capture screenshot when test failed on windows

Problems:

We have configured to capture screenshot when selenium (or any web based automation test, e.g. web driver, sahi, etc… ) tests failed, but each time we got is a blank image which only has a black background. The CI agent runs on Windows 2008 in a virtual machine

blank black ground image

Reason:

There is no any real window opened because nobody logged on this machine, Continue reading “Could not capture screenshot when test failed on windows”

WLW: QI for IEnumVARIANT failed on the unmanaged server.

It maybe popup an error message to say that “QI for IEnumVARIANT failed on the unmanaged server” when open the Windows Live Writer.

After search on google, I found the resolution is import some settings into registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREClassesInterface{00020404-0000-0000-C000-000000000046}]
@="IEnumVARIANT"

[HKEY_LOCAL_MACHINESOFTWAREClassesInterface{00020404-0000-0000-C000-000000000046}NumMethods]
@="7"

[HKEY_LOCAL_MACHINESOFTWAREClassesInterface{00020404-0000-0000-C000-000000000046}ProxyStubClsid]
@="{00020421-0000-0000-C000-000000000046}"

[HKEY_LOCAL_MACHINESOFTWAREClassesInterface{00020404-0000-0000-C000-000000000046}ProxyStubClsid32]
@="{00020421-0000-0000-C000-000000000046}"

You can also download the file here, unzip and import it to your registry.

Add Command here to right button click in explore (Windows XP)

Add Command here to right button click in explore (Windows XP)

Cmd Here

  1. Download the file and unzip the file CMDHere.reg.
  2. Double click it to import into registry,
  3. Right click on any folder, you’ll see there’s a menu which is “Command here”,
  4. Click it, you’ll get into the cmd window with the current path is which you selected.

Or you can import the settings manually.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]
@="Command Prompt"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]
@="Cmd.exe /k pushd %L"