Design and Implementation of HTTP Interface Automation Test Framework PHPUnit
- DOI
- 10.2991/ncce-18.2018.126How to use a DOI?
- Keywords
- PHPUnit; automated test; test framework; HTTP protocol; PHP.
- Abstract
Because the system under test contains multiple subsystem interactions, the correctness and consistency of the interface return between the subsystems plays an important role in the entire process. It is very important to ensure the quality of the interface testing. However, there are many types of interfaces and the structure is complex. As a result, there are problems such as long test execution time, low efficiency, and missing test in the interface test process [1]. To solve this problem, the paper proposes and implements an interface automation test framework based on PHPUnit, so as to improve the test efficiency and ensure the test quality through automated testing. The framework is based on the tested interface services using the HTTP protocol and the development language using PHP. The PHPUnit lightweight unit testing framework was used to transform the design and development. Based on the functional design of the PHPUnit framework,the layered design process realizes functions such as scene-driven data isolation, data verification logic encapsulation, etc, making the framework clear and readable in structure, and easy to use. Such advantages can effectively improve the test efficiency and reduce the test cost.
- Copyright
- © 2018, the Authors. Published by Atlantis Press.
- Open Access
- This is an open access article distributed under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).
Cite this article
TY - CONF AU - Tao Zhang AU - Lei He PY - 2018/05 DA - 2018/05 TI - Design and Implementation of HTTP Interface Automation Test Framework PHPUnit BT - Proceedings of the 2018 International Conference on Network, Communication, Computer Engineering (NCCE 2018) PB - Atlantis Press SP - 765 EP - 771 SN - 1951-6851 UR - https://doi.org/10.2991/ncce-18.2018.126 DO - 10.2991/ncce-18.2018.126 ID - Zhang2018/05 ER -