UWP Unit Tests Cannot Initiate Client Proxies in Visual Studio 2015

Using the Visual Studio 2015 Community Edition, I cannot run even the most basic universal tests of Windows devices. As soon as I create a test and try to run it through Test Explorer, the code compiles and seems to deploy the unit test windows application. The application remains for about 10 seconds, then closes. Test result for test: Inconclusive: Failed to initialize client proxy: could not connect to test process . Running Visual Studio as an administrator had no effect.

To create a sample project that caused my error:

  • Start a new project
  • From the templates, select: Templates> Visual C #> Windows> Universal> unit test Application (Universal Windows)
  • Write a simple test: Assert.IsTrue( true )
  • In the menu Test> Run> Run all tests

In the "Exit" window for the "Tests" parameter, the following is shown:

Checking for installed frameworks ...

Registering the application to run from the layout ...

Deployment completed (3566 ms). Full name of the package: "edd458e2-c3b1-4d8a-b7c3-5669e2fe7d75_1.0.0.0_x86__97afpx01qh2gg"

Error: DEP3000: Attempts to stop the application failed. This may cause deployment to fail. HRESULT exception: 0x92330047

Layout update ...

Deployment completed (104 ms). Full name of the package: "edd458e2-c3b1-4d8a-b7c3-5669e2fe7d75_1.0.0.0_x86__97afpx01qh2gg"

+5
source share
1 answer

I had the same problem, and I solved it by explicitly deploying the test project and calling โ€œRun All Testsโ€ again. You can also check in the "Add or Remove Programs" section whether the application of the test project is installed (deployed) or not. If necessary, delete it and deploy it again.

UWP application unit testing concept - mess: - (

0
source

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


All Articles