Silverlight tests fail until RDP connection opens

I have several Silverlight interface tests that I automate using White. These tests are then run by the TFS build agent, which runs interactively, so it can access the desktop.

The assembly is performed if I have a remote desktop connection that opens to the build agent during tests; I see how the mouse cursor moves. When a test clicks on a HyperlinkButton navigation, occurs and is subsequently checked by statements in the test.

The build fails if I do not have a remote desktop connection that opens to the build agent when running the tests. An Internet Explorer window is created and the Silverlight application loads, but no clicks occur; the application remains on the original page, and subsequent claims checks are not performed.

Has anyone found a solution to this problem?

+1
source share
2 answers

See Starting a Windows Service in an Interactive Session

If you are configuring a Windows service, this service can be configured to work with an interactive desktop, although it will work as a user on the local machine, not a domain user.

- AutoAdminLogon. !

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon:

  • DefaultUsername
  • DefaultPassword
  • DefaultDomain
  • AutoAdminLogon = 1
0

CodePlex. ; ( VNC RDP).

0

Source: https://habr.com/ru/post/1725839/


All Articles