Edge和Azure管道的Karma测试 [英] Karma tests on Edge and azure pipelines

查看:14
本文介绍了Edge和Azure管道的Karma测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在Azure管道中的Edge上运行我的Karma测试套件时,出现以下错误:

18 05 2020 16:34:20.217:INFO [karma-server]: Karma v5.0.7 server started at http://0.0.0.0:9876/
18 05 2020 16:34:20.217:INFO [launcher]: Launching browsers Edge with concurrency unlimited
18 05 2020 16:34:20.312:INFO [launcher]: Starting browser Edge
18 05 2020 16:34:46.536:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.

18 05 2020 16:34:46.536:ERROR [launcher]: Cannot start Edge
    undefined
18 05 2020 16:34:46.536:ERROR [launcher]: Edge stdout: 
Couldn't find Edge URL with URL: 00D53958
Found
18 05 2020 16:34:46.536:ERROR [launcher]: Edge stderr: 
18 05 2020 16:34:46.536:INFO [launcher]: Trying to start Edge again (1/2).
18 05 2020 16:35:07.958:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.

18 05 2020 16:35:07.958:ERROR [launcher]: Cannot start Edge
    undefined
18 05 2020 16:35:07.958:ERROR [launcher]: Edge stdout: 
Couldn't find Edge URL with URL: 00100250
Found
18 05 2020 16:35:07.958:ERROR [launcher]: Edge stderr: 
18 05 2020 16:35:07.973:INFO [launcher]: Trying to start Edge again (2/2).
18 05 2020 16:35:29.343:ERROR [launcher]: Killing Edge process failed. Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.

18 05 2020 16:35:29.343:ERROR [launcher]: Cannot start Edge
    undefined
18 05 2020 16:35:29.343:ERROR [launcher]: Edge stdout: 
Couldn't find Edge URL with URL: 013BFFB0
Found
18 05 2020 16:35:29.343:ERROR [launcher]: Edge stderr: 
18 05 2020 16:35:29.359:ERROR [launcher]: Edge failed 2 times (cannot start). Giving up.

它运行在Microsoft托管的WINDOWS-2019 VM上,根据documentation,它应该配置正确。 有没有人使用过这种设置?

请注意,Internet Explorer在相同的设置下运行良好!

推荐答案

我设法使用自定义插件:https://github.com/TankerHQ/karma-edge-launcher

您可以使用新的EdgeAzure浏览器。

这篇关于Edge和Azure管道的Karma测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆