快捷搜索:  as  2018  FtCWSyGV  С˵  test  xxx  Ψһ  w3viyKQx

和记娱乐怡情怎么样_机器人论坛



一提到web自动化框架/对象,很多同业会想起: watir等。着实PHP的天下一样很杰出,盛行PHP测试框架phpunit、simpletest、PHP-QAT 。PHP-QAT 能做单元测试、web利用测试等。

1 下载安装

http://downloads.php.net/johannes/php-5.3.0alpha1.tar.gz

安装php: ./configure;make

在当前目录有run-tests.php。

2 情况设置

export TEST_PHP_EXECUTABLE=/usr/local/bin/php

3样例

$ cd/usr/local/apache2/php-5.3.0alpha1

$ ./run-tests.phpxyz/001.phpt

=====================================================================

PHP: /usr/local/bin/php

PHP_SAPI: cli

PHP_VERSION : 5.3.0alpha1

ZEND_VERSION: 2.3.0

PHP_OS: Linux - Linux alitest146 2.6.9-和记娱乐怡情怎么样42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686

INI actual: /usr/local/apache2/php-5.3.0alpha1

More .INIs:

CW和记娱乐怡情怎么样D: /usr/local/apache2/php-5.3.0alpha1

Extra dirs:

VALGRIND: Not 和记娱乐怡情怎么样used

=====================================================================

Running selec和记娱乐怡情怎么样ted tests.

b user is/usr/local/apache2/php-5.3.0alpha1/xyz/001.phptArray/usr/local/apache2/php-5.3.0alpha1/xyz/001.phpt is fileTEST 1/1 [xyPASS Simple和记娱乐怡情怎么样 POST Method test [xyz/001.phpt]

=====================================================================

Number of tests :11

Tests skipped:0 (0.0%) --------

Tests warned:0 (0.0%) (0.0%)

Tests failed:0 (0.0%) (0.0%)

Expected fail:0 (0.0%) (0.0%)

Tests passed:1 (100.0%) (100.0%)

---------------------------------------------------------------------

Time taken:0 seconds

=====================================================================

[root@alitest146 /usr/local/apache2/php-5.3.0alpha1]

$ cat xyz/001.phpt

--TEST--

Simple POST Method test

--SKIPIF--

--POST--

a=Hello+World

--FILE--

--EXPECT--

Hello World

4更多具体信息参考 http://qa.php.net/write-test.php

您可能还会对下面的文章感兴趣: