The invention relates to an interface testing device which is tested by using an interface testing method. The testing device is electrically connected with a power supply device. The testing device includes a test instruction acquisition module, a pre-condition query module, a parameter information acquisition module, a use case acquisition module and a test case generation module, which are used according to the requirements. The parameter information of the test case and the template of the test case generate the test case of the test interface and the test module of the test interface; the parameter information acquisition module includes the pre-information query module, the pre-use case generation module and the use case parameter acquisition module, and the power supply device includes the solar energy battery working independently and the 220V city. Electricity, the solar battery and 220V municipal electricity are automatically switched through the optical induction module and the solar battery power detection module. The invention not only improves the test efficiency of automatic test by correlating the test case identification with the pre-condition information, but also improves the working stability of the device.
【技术实现步骤摘要】
应用接口测试方法进行测试的接口测试设备
本专利技术涉及测试
,具体说是应用接口测试方法进行测试的接口测试设备。
技术介绍
目前,随着计算机技术的日益发展以及不同领域的业务种类的日益丰富(例如金融交易领域),对复杂系统进行自动化测试的需求日益增长。通常的测试方法主要是通过开发测试工具实现的,现有的测试工具从技术架构的角度而言主要分为商用测试工具、开源测试框架和测试人员编制的轻量级测试脚本;从功能的角度而言主要分为功能测试工具、性能测试工具和安全性测试工具等;从运行平台角度而言主要分为基于Windows操作系统、基于Unix/Linux操作系统等;从被测系统角度而言例如分为Web测试工具、报文测试工具等。然而,在测试过程中,现有的接口测试设备对某个接口进行测试时,需要获取关联接口的参数,根据获取到的参数才能对该接口进行测试,故在编写接口的测试用例时,需要将关联接口的测试用例内容写入到该接口的测试用例内容中。这样,很容易造成一些测试用例内容被重复吸入不同的测试用例中,使得编写测试用例耗费更多的时间,从而降低了接口测试效率。而且,现有的接口测试设备供电方式单一,不够 ...
【技术保护点】
1.应用接口测试方法进行测试的接口测试设备,其特征在于:所述测试设备与供电装置电连,所述测试设备包括测试指令获取模块,用于获取接口测试指令;前置条件查询模块,用于查询与所述接口测试指令中的测试用例标识关联的前置条件信息;参数信息获取模块,用于根据所述前置条件信息获取所述测试用例标识对应的待测用例参数信息;用例模块获取模块,用于从测试用例库中获取与所述测试用例标识对应的待测用例模板和待测接口通信参数;测试用例生成模块,用于根据所述待测用例参数信息和所述待测用例模板生成待测接口测试用例;待测接口测试模块,用于根据所述待测接口测试用例和所述待测接口通信参数,对所述待测接口测试用例 ...
【技术特征摘要】
1.应用接口测试方法进行测试的接口测试设备,其特征在于:所述测试设备与供电装置电连,所述测试设备包括测试指令获取模块,用于获取接口测试指令;前置条件查询模块,用于查询与所述接口测试指令中的测试用例标识关联的前置条件信息;参数信息获取模块,用于根据所述前置条件信息获取所述测试用例标识对应的待测用例参数信息;用例模块获取模块,用于从测试用例库中获取与所述测试用例标识对应的待测用例模板和待测接口通信参数;测试用例生成模块,用于根据所述待测用例参数信息和所述待测用例模板生成待测接口测试用例;待测接口测试模块,用于根据所述待测接口测试用例和所述待测接口通信参数,对所述待测接口测试用例中待测接口地址所对应的待测接口进行测试;所述参数信息获取模块,包括:前置信息查询模块,用于在查询到存在关联的前置条件信息时,从测试用例库中获取与所述前置条件信息对应的前置用例生成信息、前置用例模板和前...
【专利技术属性】
技术研发人员:刘业,刘学,
申请(专利权)人:湖南鑫蜀山网络科技有限公司,
类型:发明
国别省市:湖南,43
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。