摘要
API是软件工程中的一个重要组成部分,需要设计大量的测试用例来进行充分测试。借助PICT工具利用组合测试原理可产生比手动生成更高效的测试用例。本文介绍了PICT的工作原理及使用方法,分析了API测试用例的设计思路,并通过一个API测试用例设计实例详细说明了如何通过PICT工具对API进行测试用例进行设计。
Application Programming Interface(API) is an import part of soft engineer, which needed be tested by a large number of test cases. The Pairwise Independent Combinatorial Testing tool(PICT) can help you generate tests that are more effective than manually generated tests. This paper describes the principle of PICT and how it works, analyses the design thinking about the API test case and shows how to design API test case with PICT by giving a detailed example.
引文
[1]颜乐鸣.基于工作流的软件测试过程模型研究[J].软件,2018,39(5):160-165.
[2]张琪.大数据背景下软件测试的挑战与展望[J].软件,2018,39(6):181-183.
[3]沈默,刘强,童自力.API测试的二元组合测试算法研究与实现[J].计算机工程与应用,2005,26:48-57.
[4]黄沛.基于RESTful架构的科技信息共享接口系统的设计[J].软件,2018,39(7):170-172.
[5]Patton,R著:张小松,王钰,曹跃等译.软件测试(原书第2版)[M].北京:机械工业出版社,2006.
[6]叶常春,尹良泽.面向小规模程序的轻型测试方法[J].软件,2015,36(10):90-93.
[7]陈星,赵佳萌,宣军法.移动应用自动化兼容性测试方法综述[J].软件,2018,39(7):89-94.
[8]Trehan A.Algorithms for self-healing networks[D].USA:The University of New Mexico,2010.
[9]Kuhn DR,Reilly MJ.An investigation of the applicability of design of experiments to software testing.[R]In:Caulfield M,ed.Proc.of the Annual NASA/IEEE Software Engineering Workshop(SEW).Los Alamitos:IEEE Press,2002.91-95.
[10]王子元,徐宝文,聂长海.组合测试用例生成技术[J],计算机科学与探索,2008,2(6).
[11]陈皓,王曙燕,潘晓英.成对组合测试数据的整体优化和生成方法[J].计算机工程与应用,2012,48(11):32-36.