Through the above several articles of practice, our basic framework is put up, but found that there is a problem is that before we are all a single testcase written and then go to run, if I want to run more than testcase how to do? Here is used to test the concept of building testsuite, in fact, is to put a number of testcase together, and then run this testsuite, so ta on the traversal of the implementation of the multiple testcase included.
demo.php content is as follows
<?php
Code acquisition Please pay attention to this headline number, and then private messages, the content of the private messages "PHPUnit"
Use Phpunitframeworktestsuite;
Class Testsuitedemo extends TestSuite
{
Public Function __construct ()
{
Here, you can add test cases
$this->addtestfile (". /testcases/lhl_test.php ");
}
public static function Suite ()
{
return new self ();
}
}
?>
The overall directory structure see previous articles on framing ideas OH
This article is from the "Cockroach Performance automation test brand" blog, please be sure to keep this source http://xqtesting.blog.51cto.com/4626073/1983654
Interface Automation test phpunit-Framework Code Development 3