Interface Automation test phpunit-Framework Code Development 3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.