摘要
针对信号设备测试的复杂性,提出一种基于词法语法分析的测试场景自动解析方法,并对该方法的原理和流程进行了描述。实际应用表明,该方法相对于传统测试方法具备测试脚本格式简单,新增或修改测试场景不必重新编译测试控制软件,测试脚本具有可复用性等优点,能显著提升测试效率。
Aim at the complexity of signal equipment, a method to parse test case automatically by lexical analysis and grammar analysis was proposed, which was discussed from the principle and implementation. With the practical application, this method was validated for the advantages of the simple test script format, no recompilation for adding or modifying test cases and reusability of test script relative to traditional test methods, which improved the efficiency of testing greatly.
出处
《机车电传动》
北大核心
2017年第1期74-76,共3页
Electric Drive for Locomotives
关键词
信号设备
词法分析
语法分析
测试场景
自动测试
signaling equipment
lexical analysis
grammar analysis
test case
automatic testing