摘要
针对软件接口类型多、接口故障注入自动控制复杂的困难以及目前缺少有效的软件接口故障注入工具现状,对软件故障注入中的交联接口故障注入技术展开研究,提出了一种基于模型的软件接口故障注入测试平台技术;通过交联接口测试可视化建模和接口故障注入算子设计,自动生成XML格式的测试用例,并且通过基于XSLT的脚本自动化生成与执行技术实现测试的控制与执行;故障注入测试主机与接口故障注入器网络连接,接口故障注入器将接口故障数据转换成以太网、串口或CAN网络数据注入到被测软件中,并返回被测件输出数据到测试主机实现测试数据收集与判断;基于模型的软件接口故障注入测试平台具有较强的通用性与易用性,提高了接口故障注入测试的效率,降低了接口测试的成本。
In order to solve the automatic control difficulties of interface fault injection and the lack of effective software interface fault in- jection tools, a model--based software interface fault injection testing platform by researching software fault injection techniques for the crosslinking interface is proposed. The platform can automatically generate test cases in XML format by visual modeling erosslinking interface and designing fault injection operator, and automatically generate test script through the XSLT to control the test execution. The platform architecture using network connection from fault injection host to interface fault injector, effectively improves the versatility and usability. The realization of this platform improves the efficiency of interface testing and reduces its cost.
出处
《计算机测量与控制》
2016年第11期52-55,59,共5页
Computer Measurement &Control
关键词
模型
接口故障注入
脚本自动化生成
测试平台
model
interface fault injection
script automatic generation
testing platform