Dynamic baffle testing method based on Python function and related device

A test method and baffle technology, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc., can solve the problems of low accuracy of test results, inability to return response content, and reduced effectiveness of cross-system interface tests, etc. problem, to achieve the effect of improving the effectiveness

Pending Publication Date: 2022-03-18
SHENZHEN KEMANDA INTELLIGENT MANAGEMENT SCI &TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the existing interface testing technology, the return response content of the baffle corresponding to the same interface is fixed
When the system under test tests multiple different scenarios of the same interface, the baffle cannot return different response content according to different scenarios, and the accuracy of the final test results is low, which reduces the effectiveness of cross-system 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
  • Dynamic baffle testing method based on Python function and related device
  • Dynamic baffle testing method based on Python function and related device
  • Dynamic baffle testing method based on Python function and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The present application provides a dynamic baffle testing method based on Python functions and related devices, which are used to improve the effectiveness of cross-system interface testing.

[0057] The dynamic baffle test method based on the Python function described in this application is applied in the field of baffle testing in cross-system program testing, and can return different simulated data according to different test requests, instead of setting the default fixed when setting the baffle The return value is used as the return result of the test.

[0058] The Python function-based dynamic baffle test method described in this application is applied to the implementation on the server, please refer to figure 1 Shown, an embodiment of the dynamic baffle testing method based on Python function among the present application comprises:

[0059]101. The server acquires test request data of the system to be tested;

[0060] In this embodiment, the server obtains the...

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 a dynamic baffle testing method based on a Python function and a related device, which are used for improving the effectiveness of cross-system interface testing. The method comprises the steps of obtaining test request data of a to-be-tested system; according to the test request data, a Python function of a target interface baffle is obtained from a database, the Python function contains various preset conditional logics, and the conditional logics are used for generating different response contents according to different input test request data; executing a Python function of the target interface baffle; determining target response content according to the execution result; and returning the target response content to the to-be-tested system.

Description

technical field [0001] The present application relates to the field of system testing, in particular to a dynamic baffle testing method based on Python functions and related devices. Background technique [0002] In most cross-system test projects, it is usually limited by objective factors such as limited test hardware, difficulty in coordination between multiple systems, and difficulty in parallel development, which makes it impossible for testers to build a complete set of Test environment to complete cross-system testing work. [0003] At present, in order to cope with this situation, a baffle is usually used to simulate other systems, and then the interface test between the baffle and the system under test is performed. The test process is as follows: the bezel first receives the test request sent by the system under test, then parses the test request, obtains the test data, and then returns the response content to the system under test, so that the system under test c...

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): G06F11/36
CPCG06F11/3688G06F11/3696
Inventor唐健蔡玉宋青杉
OwnerSHENZHEN KEMANDA INTELLIGENT MANAGEMENT SCI &TECH