The present invention relates to a method to improve the anti-interference ability of the automatic test system, the test device, control device, test device, test process includes the steps of: A1 anti jamming test source device to a control device to transmit the test command; whether the A2 control unit test commands executed in suitable condition, if the environmental conditions are not met step A3, if the environmental conditions are met step A4; A3 control device of measuring transmission device, testing device to establish environmental conditions to be ordered through the interface device, return to step A2; A4 control device through the interface device commands to the tested equipment, testing equipment to send test equipment to be tested, test execution device test. The test results and return to the control device. The method to improve the anti-interference ability of the automated test system of the invention enhances the automation test system self-healing ability and anti-interference ability, to ensure the system to operate more stably; simplify the design automation scripts.
【技术实现步骤摘要】
本专利技术涉及自动化测试方法,具体涉及一种。
技术介绍
对于产品的自动化测试,都是希望能在无人值守的情况下自动连续执行,要达到这样目标的一个前提就是整个测试系统(包括被测设备和所有相关的外围设备和仪器工具)不受外界干扰,完全在可控和可预期的条件下运行。然而,现实中由于各种因素的制约,一般很难创造这样理想的环境,所以,自动化测试系统若要稳定运行,就必须具备一定的抗干扰能力。以一种基本的测试模型为例进行说明如图1所示为自动化测试的一种简化模型,这里以使用TCL语言为例,执行器是所有自动化脚本的执行平台,由它载入我们设计好的测试用例脚本,并按照指定的执行方式运行脚本。它需要与控制终端双向通信,主要工作是把命令发送到控制终端,同时还接收来自控制终端的信息或响应消息,并进行处理。控制终端相当于在测试执行器与其它所有设备、仪器工具之间搭建了一个桥梁,在应用中,通常是由控制终端通过Telnet方式远程登录到设备上,接受来自执行器发来的命令,发送到设备上去,同时再把来自设备的响应或其它信息反馈到执行器。被测设备、辅助设备、仪器工具等都经由IP网络由控制终端进行控制。由于其它某些需求,自动化测试系统运行所需的IP网络还需要与其它网络互通。存在的问题如下在正常应用的情况下,控制终端首先登录到各个设备及仪器工具上,然后根据不同的测试流程,发送命令、判断结果,连续进行测试。由于在自动化测试系统在运行过程中,经常出现网络不稳定或受到其它设备的冲击,导致测试执行系统与被测试设备或其它辅助设备、仪器的通讯中断,另外,被测设备及辅助设备自身的不稳定或缺陷也会引起类似的问题。但很多时候 ...
【技术保护点】
一种提高自动化测试系统抗干扰能力的方法,采用用于测试被测设备的测试装置,用于控制自动测试过程的控制装置,和所述控制装置相连用来产生测试任务的测试源装置,所述被测设备、测试装置、控制装置通过接口装置实现互连,其特征在于,提高自动化测试系统抗干扰能力的方法包括如下步骤:A1测试源装置向控制装置发送测试命令;A2控制装置检测所述测试命令执行的环境条件是否满足,如果环境条件不满足则执行步骤A3,如果环境条件符合则执行步骤A4;A3控制装置通过所述接口装置向被测设备、测试装置发送建立环境条件命令,所述被测设备、测试装置执行建立环境条件动作,并向控制装置返回建立环境条件结果,返回步骤A2;A4控制装置通过所述接口装置向被测设备、测试装置发送所述测试命令,所述被测设备、测试装置执行测试动作,并向控制装置返回测试结果。
【技术特征摘要】
【专利技术属性】
技术研发人员:宋永刚,刘承东,
申请(专利权)人:华为技术有限公司,
类型:发明
国别省市:94[中国|深圳]
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。