Interface testing method and device, client and computer readable storage medium

An interface testing and client-side technology, applied in computing, software testing/debugging, error detection/correction, etc., can solve problems such as time-consuming writing, learning, and reducing the efficiency of interface testing, achieving strong ease of use, Highly readable effect

Inactive Publication Date: 2018-02-27
ALIBABA (CHINA) CO LTD
View PDF5 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If there are hundreds or even thousands of test cases, it will take a lot of time to write test cases. Moreover, once the interface changes, the amount of changes to the test cases will be very large. At the same time, testers need to spend a lot of time learning each function. Realization, seriously reduces the efficiency of interface testing

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
  • Interface testing method and device, client and computer readable storage medium
  • Interface testing method and device, client and computer readable storage medium
  • Interface testing method and device, client and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0034] Please refer to image 3 , image 3 A flow chart of the interface testing method provided by the embodiment of the present invention is shown. The interface testing method is applied to the client 100, and it includes the following steps:

[0035] Step S101, obtain the target test case of the interface to be tested according to the tree structure diagram, wherein the tree structure diagram includes multiple branches, each branch forms a test case, and the target test case is a target branch in the tree structure diagram Formed test cases.

[0036] In the embodiment of the present invention, the tree structure diagram can be a mind map, which is composed of nodes, including top-level nodes, first-level nodes, second-level nodes, etc., the top-level node is the root node, and the first-level nodes belong to the top-level nodes , the second-level nodes belong to the first-level nodes, and the mind map is written by testers according to actual testing needs. For example...

no. 2 example

[0100] Please refer to Figure 9 , Figure 9 A schematic block diagram of the interface testing device 110 provided by the embodiment of the present invention is shown. The interface test device 110 is applied to the client 100, which includes a target test case acquisition module 111, a judgment module 112, an execution module 113, a use case data information acquisition module 114, a test protocol generation module 115, an interface response data reception module 116 and a test result acquisition module. Module 117.

[0101] The target test case acquisition module 111 is used to obtain the target test case of the interface to be tested according to the tree structure diagram, wherein the tree structure diagram includes a plurality of branches, each branch forms a test case, and the target test case is a tree structure A test case formed by a target branch in the graph.

[0102] In the embodiment of the present invention, the target test case acquisition module 111 may be ...

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 relates to the field of software testing and provides an interface testing method and device, a client and a computer readable storage medium. The interface testing method is used for testing an interface to be tested. The interface testing method comprises the steps that according to a tree-shaped structure chart, a target testing case of the interface to be tested is acquired; thetarget testing case is traversed, and case data information is obtained, wherein the case data information comprises request data information and response data information, and the case data information is formed by unlabeled languages; according to the request data information, a testing protocol used for testing the interface to be tested is generated; based on the testing protocol, an interfacetesting request is sent to a server, and interface response data fed back by the server is received; the interface response data is compared with the response data information, and thus a testing result is obtained. Compared with the prior art, the testing case can be quickly modified by dragging a node of the tree-shaped structure chart, meanwhile the testing case can be directly used for automatic interface testing, and the interface testing method is high in usability and testing efficiency.

Description

technical field [0001] The present invention relates to the technical field of software testing, in particular to an interface testing method, device, client and computer-readable storage medium. Background technique [0002] With the development of Internet technology, computer software is widely used, and the quality of software is more and more valued by enterprises, so now software often involves various tests. Interface testing is an important branch of software testing. Interfaces are some pre-defined functions to provide applications and developers with the ability to access a set of routines based on certain software or hardware. Interface testing is a test that submits input data to the interface, obtains the returned results, and analyzes whether the results meet expectations. [0003] At present, the automated testing of interfaces usually encapsulates each test case as a function, and then realizes the automated testing of interface functions by calling the func...

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 ALIBABA (CHINA) 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