【发布时间】:2019-10-24 09:31:28
【问题描述】:
我有一个带有测试项目的 UWP 项目。本地测试通过。我为这些项目配置了 Azure DevOps 管道。测试也通过了 azure DevOps!但是测试任务失败并出现下一个错误:
DEP7100: Failed to activate app '748f39e5-19db-43a2-ba4a-fb4b137bdbf3_4r2k005x7atxw!vstest.executionengine.universal.App' with parameters '--port 50037 --endpoint 127.0.0.1:050037 --role client --parentprocessid 5044 --telemetryoptedin false'. The app didn't start.
The app didn't start.
DEP7100: Failed to activate app '748f39e5-19db-43a2-ba4a-fb4b137bdbf3_4r2k005x7atxw!vstest.executionengine.universal.App' with parameters '--port 50037 --endpoint 127.0.0.1:050037 --role client --parentprocessid 5044 --telemetryoptedin false'. The app didn't start.
The app didn't start.
App activation failed.
Failed to initialize client proxy: could not connect to test process.
DEP7100: Failed to activate app '748f39e5-19db-43a2-ba4a-fb4b137bdbf3_4r2k005x7atxw!vstest.executionengine.universal.App' with parameters '--port 50040 --endpoint 127.0.0.1:050040 --role client --parentprocessid 5044 --telemetryoptedin false'. The app didn't start.
The app didn't start.
DEP7100: Failed to activate app '748f39e5-19db-43a2-ba4a-fb4b137bdbf3_4r2k005x7atxw!vstest.executionengine.universal.App' with parameters '--port 50040 --endpoint 127.0.0.1:050040 --role client --parentprocessid 5044 --telemetryoptedin false'. The app didn't start.
The app didn't start.
在这里您可以找到包含 UWP 项目和测试项目的 repo:https://dev.azure.com/melashkina0755/UWP_App_With_Tests
这是最后一次构建,您可以看到,有 2 个测试通过(1 个用于 x84,1 个用于 x64): https://dev.azure.com/melashkina0755/UWP_App_With_Tests/_build/results?buildId=3&view=ms.vss-test-web.build-test-results-tab
这里是构建本身: https://dev.azure.com/melashkina0755/UWP_App_With_Tests/_build/results?buildId=3&view=logs
不确定我的配置有什么问题?
更新
我尝试了新事物:
1) 我创建了另一个带有自托管代理的分支,称为with_self_hosted_agent。最后一个版本在这里。作为自托管代理,我使用我的笔记本电脑。构建成功,但测试甚至没有运行(运气不好):https://dev.azure.com/melashkina0755/UWP_App_With_Tests/_build/results?buildId=10
2) 我只更改为 x86 架构。为唯一的 x86 构建在这里(运气不好):https://dev.azure.com/melashkina0755/UWP_App_With_Tests/_build/results?buildId=9
3) 在另一个名为 with_1.3.1_version 的分支上尝试了 1.3.1 版。与 master 分支相同的结果:测试正在运行,但构建失败。 (没运气): https://dev.azure.com/melashkina0755/UWP_App_With_Tests/_build/results?buildId=11
【问题讨论】:
标签: uwp azure-devops automated-tests azure-pipelines