检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:潘雄[1] 郝帅 苑政国 宋凝芳[1] PAN Xiong;HAO Shuai;YUAN Zhengguo;SONG Ningfang(School of Instrumentation and Optoelectronic Engineering, Beihang University, Beijing 100083 , China)
机构地区:[1]北京航空航天大学仪器科学与光电工程学院,北京100083
出 处:《北京航空航天大学学报》2019年第5期919-929,共11页Journal of Beijing University of Aeronautics and Astronautics
摘 要:扩展有限状态机(EFSM)相比于有限状态机(FSM)能够更加精确地刻画系统的动态行为,因而广泛作为各种控制流与数据流系统的测试模型。在EFSM模型的测试中,使用搜索的方法获得触发目标测试路径的测试数据是近年来的一个研究热点。为进一步提高搜索效率,在遗传算法(GA)的基础上提出一种自动分离测试路径中无关输入变量的方法,该方法通过分析模型中变量与迁移间的关系,判定不影响子路径中谓词条件的无关输入变量,进而从个体中将其分离以实现搜索空间的自动缩减,提升测试数据生成效率。对几种具有不同复杂度的基准EFSM模型进行实验后的结果表明,该方法生成有效测试数据的成功率均达到98. 2%以上,且与未分离输入变量的遗传算法相比,所需平均迭代次数减少44. 7%~85. 9%,平均运行时间减少24. 1%~85. 5%。Extended finite state machine( EFSM),a more accurate test model than finite state machine(FSM),has been widely used to describe dynamic behavior of system,and thus has been taken as the test model of various control flow and data flow systems. For EFSM model test,using search method to obtain test data to trigger a given test path has become a research hotspot in recent years. In order to improve the search efficiency,this paper proposed a method that originates from genetic algorithm( GA) and can automatically separate irrelevant input variables in a test path. By analyzing the relationship between variables and state transitions in EFSM and separating irrelevant input variables from the individual that does not affect the transition’s guard in the sub-test path,the new method reduced the search space and enhanced the efficiency of test data generation. The experimental results on various complex benchmark EFSM models show that the success rate of the new method to generate effective test data is larger than 98. 2%. Compared to the traditional genetic algorithm,the average number of iterations of the new method is reduced by 44. 7%-85. 9% and the average running time is reduced by 24. 1%-85. 5%.
关 键 词:软件测试 扩展有限状态机(EFSM) 测试数据生成 遗传算法(GA) 空间缩减 无关变量分离
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.43