轻量级接口自动化测试框架设计与实践  被引量:13

DESIGN AND PRACTICE OF LIGHTWEIGHT INTERFACE AUTOMATION TESTING FRAMEWORK

在线阅读下载全文

作  者:孙立哲 Sun Lizhe(eID Department,The Third Research Institute of Ministry of Public Security,Shanghai 201204,China)

机构地区:[1]公安部第三研究所eID事业部

出  处:《计算机应用与软件》2020年第1期27-30,36,共5页Computer Applications and Software

摘  要:某后端服务产品接口多,接口功能复杂,针对该产品多版本迭代测试时需执行的测试用例数多达上万条,以手动测试方式难以满足短时间版本频繁迭代的测试需求。为了对该产品实现自动化测试,基于面向对象、Web页面开发等技术,借鉴JUnit的分层思路,设计并实现了一套较实用的轻量级接口自动化测试框架。框架支持自动生成内含各测试用例细节描述及对应结果等信息的测试结果文件,支持以Web页面形式对测试结果进行个性化展示与浏览。基于此框架的自动化测试能在短时间内高效、准确地完成多个版本、上万条测试用例的快速执行,有效地解决了该产品因短时间版本频繁迭代所带来的测试压力。There are many interfaces in a back-end service product,and each interface has complex functionality.The number of test cases to be executed in multi-version iteration test is up to tens of thousands.It is difficult to meet the test requirements of frequent iteration of short-time version by manual test.In order to realize the automatic testing of the product,we draw on JUnit s layered thinking,and design and implement a set of practical and lightweight interface automatic testing framework based on several technology such as the object-oriented technology and Web page development technology.The framework supported the automatic generation of test result files which included test case details and the corresponding executing results,and supported personalized presentation and browsing of test results in the form of Web pages.The framework can efficiently and accurately complete the rapid execution of multiple versions and tens of thousands of test cases in a short time,which effectively solves the test pressure caused by frequent iterations of short time versions.

关 键 词:面向对象技术 自动化测试框架设计 Web页面开发技术 JAVA编程 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象