Automatic testing method of distributed big data service

An automated testing and big data technology, applied in data exchange networks, digital transmission systems, electrical components, etc., can solve the problems of unable to automatically generate test scripts, API test data sequences and test predictions, etc., to promote quality control level, effect of promoting improvement

Active Publication Date: 2018-09-14
NORTHWESTERN POLYTECHNICAL UNIV
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1. It is impossible to automatically generate API test data sequences and test predictions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic testing method of distributed big data service
  • Automatic testing method of distributed big data service
  • Automatic testing method of distributed big data service

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0067]下面详细描述本发明的实施例,所述实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。

[0068]本发明解决数据服务API测试数据序列、测试预言和测试脚本的自动生成问题,发明包括以下内容和技术:

[0069]1)采用XML schema,定义了一种数据服务测试接口描述规范。数据服务测试接口描述规范包括该服务的基本信息以及其依赖的服务名称,该服务的API集合及每个API所属的操作类型、所需输入参数的信息以及返回数据信息。

[0070]2)面向数据服务的添加、修改、查找和删除4类操作类型,提出了基于测试接口描述实例的测试模型和相应的测试模式,并可以自动解析测试接口描述实例,生成由正则表达式描述的测试模式。

[0071]3)基于测试模式,根据相关算法,自动生成数据服务API的测试序列、测试数据、测试预言和测试脚本。

[0072]具体技术方案为:

[0073]步骤1:建立基于XML Schema测试接口描述规范的实例;

[0074]本发明定义了测试接口的描述规范;所述测试接口的描述规范通过XML标签对接口信息进行描述,内容包括服务信息标签、操作标签、接口标签、请求标签、响应标签、依赖标签、以及数据标签和数据标签的约束类型标签;描述规范支持的7种数据类型分别为XMLSchema支持的3种数据类型:内置数据类型,简单数据类型、复杂数据类型,以及附加的4种数据类型,分别为文件数据类型,图像数据类型,音频数据类型和视频数据类型;

[0075]基于XML Schema的测试接口的描述规范中的XML标签具体分为:

[0076]服务信息标签:描述内容为服务信息;属性包括服务标识id,服务名称name,域名base,前驱服务标识premise(表示该服务依赖于服务标识为premise值的服务;允许值为空,表示不依赖于任何服务);服务信息标签的优先级为0,是所有标签的根;例如:。

[0077]操作标签,包括:描述内容为添加,删除,更新和查找操作,本发明将数据服务的每个API都归类为、、和等4种操作类型的一种;操作标签优先级为1;操作的行为:添加若干参数到服务中;操作的行为:删除相应操作添加的所有参数;操作的行为:修改相应添加的部分或全部参数;操作行为:查询已存储服务中的一个或多个参数信息。

[0078]接口标签:描述内容为接口的信息;属性包括接口标识id,接口名称name,请求的实...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an automatic testing method of distributed big data service. The method comprises the following steps: describing a testing interface by adopting XML Schema, proposing corresponding standard so as to effectively describe a web application or API of a cloud platform. by describing the XML of the API, a testing sequence, the testing script and the testing data can be automatically generated. Through the testing method provided by the invention, the user can automatically construct the testing sequence and generate the testing data by only describing the web application orthe API of the cloud platform, thereby achieving an automatic testing aim, the workload of the user is greatly lightened, the testing efficiency and the accuracy rate are improved, and the testing cost is reduced. And meanwhile, the pressure testing and like artificial testing and impossible testing work can be performed on the web application or the cloud platform.

Description

technical field [0001] The invention relates to the technical field of automatic testing of distributed big data services, in particular to an automatic testing method of distributed big data services. Background technique [0002] The Internet is growing at an alarming rate, and network applications have penetrated into every aspect of people's lives. Currently, cloud computing platforms (such as Amazon, Azure, Oracle, and Huawei) provide relatively stable application programming interfaces (APIs) for various distributed services (including infrastructure services, storage services, and data services). [0003] Cloud computing attracts more and more developers to migrate their web applications to the cloud platform. Under the cloud concept, the development of Web applications is different from traditional small and medium stand-alone applications. Web applications are becoming multi-user terminals with large data storage, large server background and cross-platform (such as...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/26H04L12/24H04L29/08
CPCH04L41/0266H04L43/50H04L67/02H04L67/34
Inventor 马春燕李尚儒王慧朝
Owner NORTHWESTERN POLYTECHNICAL UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products