dosc9472 2012-09-20 14:23
浏览 36

too long

PHP unit is skipping all of its tests when running. I am running a development environment. Here is my environment:

  • Windows 7 Pro 64bit
  • Apache 2.4
  • PHP 5.4.4
  • PHPUnit 3.7.0
  • Selenium 1.2.8
  • Yii 1.1.10

Everytime I run the functional (or any tests) for Yii, I get the following output.

C:\xampp\htdocs\mm\protected\tests>phpunit --verbose functional
PHPUnit 3.7.0 by Sebastian Bergmann.

Configuration read from C:\xampp\htdocs\mm\protected\tests\phpunit.xml

SSSSSS

Time: 12 seconds, Memory: 3.50Mb

There were 6 skipped tests:

1) SiteTest::testIndex
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

2) SiteTest::testContact
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

3) SiteTest::testLoginLogout
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

4) SiteTest::testIndex
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

5) SiteTest::testContact
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46

6) SiteTest::testLoginLogout
Could not connect to the Selenium Server on localhost:4444.

C:\xampp\php\phpunit:46
OK, but incomplete or skipped tests!
Tests: 6, Assertions: 0, Skipped: 6.

C:\xampp\htdocs\mm\protected\tests>

Note: Never received the could not connect to Selenium server before and didn't change a thing. Still posting this question and investigating.

Thanks for your help!

  • 写回答

1条回答 默认 最新

  • dqd3690 2012-12-05 04:26
    关注

    RTM. There is a chapter named Functional Testing in the official Yii guide. It begins with:

    Before reading this section, it is recommended that you read the Selenium documentation.

    The chapter ends with the following note, with a big mark in the left margin:

    Tip: Before running functional tests, the Selenium-RC server must be started. This can be done by executing the command java -jar selenium-server.jar under your Selenium server installation directory.

    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100