QunitJS-Tests 不启动:PhantomJS 超时,可能是由于缺少 QUnit start() 调用

时间:2023-04-21
本文介绍了QunitJS-Tests 不启动:PhantomJS 超时,可能是由于缺少 QUnit start() 调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我已经按照此处描述的使用 QunitJS + PhantomJS + GruntJS 设置了我的测试环境:http://jordankasper.com/blog/2013/04/automated-javascript-tests-using-grunt-phantomjs-and-qunit/

I have set up my test environment as described here with QunitJS + PhantomJS + GruntJS: http://jordankasper.com/blog/2013/04/automated-javascript-tests-using-grunt-phantomjs-and-qunit/

如果我在本地执行测试(grunt 任务),一切正常.但是如果我尝试在我们的构建服务器上执行测试,它会抛出以下错误:

If I execute the tests (grunt task) locally everything works fine. But If I try to execute the tests on our buildserver it throws following error:

我多次检查了 URL 和路径,用于启动 qunit 测试的 html 文档也可以在我们构建服务器的配置路径上找到.任何想法为什么会发生此错误?

I checked the URL and path several times and the html-document for starting the qunit tests is also available on the configured path on our build server. Any ideas why this error can occur?

推荐答案

Grunt任务中qunit html文件的URL配置不正确!

The URL configuration for the qunit html file in the Grunt task was not correct!

这篇关于QunitJS-Tests 不启动:PhantomJS 超时,可能是由于缺少 QUnit start() 调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:发现元素可见后无法使用递归定位元素 下一篇:在警报上单击“确定"或通过 jquery/javascript 确认对话框?

相关文章