An automatic interface testing device and method

A technology of automated testing and interface testing, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of manpower and material resources consumption, low testing efficiency, and heavy testing workload, so as to improve work efficiency and simplify testing workload effect

Inactive Publication Date: 2019-03-01
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the actual operation process, every time a new interface is generated, the test content of the interface needs to be realized through the program. The test workload is heavy, a lot of manpower and material resources are consumed, and the test efficiency is low.

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
  • An automatic interface testing device and method
  • An automatic interface testing device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Such as figure 1 As shown, this embodiment provides an interface automation testing device, which specifically includes the following modules:

[0033] (1) Source data module 1: used to save interface source data.

[0034] It should be noted that the source data module saves the interface source data in the form of excel or text document. The saved interface source data includes: interface test API, test expected result and test expected result judgment method.

[0035] (2) Data analysis module 2: used to extract and analyze the interface source data in the source data module to obtain data for interface testing.

[0036] It should be noted that this module can obtain interface test data by analyzing the data identifier of the interface source data, obtain the test data of each interface, and provide it to the next module for use. The acquired data for the interface test includes: the interface test API, the expected test result, and the way of judging the expected t...

Embodiment 2

[0045] Such as figure 2 As shown, this embodiment provides an interface automated testing method, which specifically includes the following steps:

[0046] S1-1: save interface source data;

[0047] The interface source data is saved in the form of excel or text document, and the interface source data may include: interface test API, test expected result and test expected result judgment method.

[0048] S1-2: Extract and analyze interface source data to obtain data for interface testing;

[0049] In this step, data for interface testing can be obtained by analyzing the data identification of the interface source data, and the testing data for each interface can be obtained for use in the next step. The acquired data for the interface test includes: the interface test API, the expected test result, and the way of judging the expected test result.

[0050] S1-3: Convert interface test data into test case codes, and add test case codes to the automated test framework to gene...

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 discloses an automatic interface testing device and method. The method includes saving interface source data; extracting and analyzing the interface source data to obtain interface testdata; converting the interface test data into test case codes, and adding the test case codes into an automatic test framework to generate test cases; when the automatic test framework generates the test case, the generated test case is automatically operated, and an interface automatic test is carried out; and finally collecting and displaying a test result obtained by the automatic test execution module. Through data scanning of the interface, the API test case is automatically generated, the interface test is automatically executed, the purpose of interface test is achieved, the test workload is greatly reduced, and the working efficiency is improved.

Description

technical field [0001] The invention relates to the field of interface testing, in particular to an interface automatic testing device and method. Background technique [0002] In the field of interface automation testing, interface testing is mostly implemented by calling related APIs. Its main operating principle is to call its native interface through API, send requests through http and verify its related requests, so as to achieve the purpose of automated testing. However, in the actual operation process, every time a new interface is generated, the test content of the interface needs to be realized through a program, which results in a large test workload, consumes a lot of manpower and material resources, and has low test efficiency. Contents of the invention [0003] In order to solve the above problems, the present invention provides an interface automatic testing device and testing method to improve testing efficiency. [0004] The technical solution of the pres...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 王亮
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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