Windows Store apps cannot be run from a service or non-interactive process

When I try to run my test on Windows Phone 10 on a computer using vstest.console.exe , the emulator starts as expected and the test succeeds.

Now, when I configure the build machine and start the vNext TFS build from the remote machine, the test fails with the following error:

Error: Failed to start test run for tests for Windows Phone application: unit tests for Windows Store applications cannot be run from a service or non-interactive process. Please run unit tests from the interactive process.

Researching online, I found this to be expected behavior to isolate Session-0.

  • What is the workaround / solution to successfully run Windows Phone Tests on a remote build machine?

Thanks.

+4
source share
1 answer

By default, your build agent runs as a service. This means that it fully runs in the background and does not interact with the user interface.

To run Coded UI Tests (or any other test that interacts with the user interface), you need to run the build agent interactively. This means that the build agent runs as a real program that you can see. Running in this mode, the agent can interact with the user interface.

TFS " ". .

. .


Update

vNext , . , . (, Visual Studio, Azure SDK ..).

: https://.visualstudio.com/_admin/_AgentPool

, ConfigureAgent.cmd. . , , :

vNext screenshot screens

, , . . .

+4

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


All Articles