自动化测试方法、装置及网络设备制造方法及图纸

技术编号:6091554 阅读:163 留言:0更新日期:2012-04-11 18:40
本发明专利技术提供一种自动化测试方法、装置及网络设备。其中方法包括:获取测试环境拓扑与测试脚本对应的最小逻辑拓扑和所述最小逻辑拓扑中逻辑设备之间链路数变化标识信息,所述链路数变化标识信息包括所述最小逻辑拓扑中逻辑设备之间的链路个数随测试环境拓扑变化的信息和链路个数的变化值;根据所述最小逻辑拓扑和所述链路数变化标识信息,在所述测试环境拓扑中进行映射,生成全局虚拟拓扑;根据所述全局虚拟拓扑,调用所述测试脚本执行测试。采用本发明专利技术技术方案进行自动化测试,可以提高测试脚本的灵活性和可移植性,提高测试端口的覆盖率和覆盖测试的执行效率。

Automatic testing method, device and network equipment

The invention provides an automated testing method, device and network device. The method comprises the following steps: minimum test environment topology and logical topology to obtain corresponding test scripts and the minimum logic topology logic link between changes in the number of equipment identification information, change the number of links change identification information including the minimum logic topology link between the logical device number changes with the test environment and link topology information the number of the minimum value; according to the logical topology and the changes in the number of link identification information, mapping in the test environment topology, generating global virtual topology; based on the global virtual topology, called the test execution test script. Adopting the technical scheme of the invention to carry out automatic testing can improve the flexibility and portability of the test scripts, and improve the coverage rate of the test port and the efficiency of the cover test.

【技术实现步骤摘要】

【技术保护点】
1.一种自动化测试方法,其特征在于,包括:获取测试环境拓扑与测试脚本对应的最小逻辑拓扑和所述最小逻辑拓扑中逻辑设备之间链路数变化标识信息,所述链路数变化标识信息包括所述最小逻辑拓扑中逻辑设备之间的链路个数随测试环境拓扑变化的信息和链路个数的变化值;根据所述最小逻辑拓扑和所述链路数变化标识信息,在所述测试环境拓扑中进行映射,生成全局虚拟拓扑;根据所述全局虚拟拓扑,调用所述测试脚本执行测试。

【技术特征摘要】

【专利技术属性】
技术研发人员:李炳泉
申请(专利权)人:北京星网锐捷网络技术有限公司
类型:发明
国别省市:11

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1