Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for automatic data loading and multiplexing simulation service test

A technology of automatic loading and data, applied in the computer field, can solve problems such as inability to reuse, inability to enjoy annotations, inability to focus on test-related functions, etc., and achieve the effect of concise test code

Active Publication Date: 2020-03-03
厦门见福连锁管理有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With the existing technology, it is impossible to enjoy the convenient and efficient function of annotation; the mock object and simulated response logic cannot be reused in other test classes
[0010] 3. In the business code we are testing, we need to write new code to forge external interfaces and services. It is impossible to focus on testing related functions, and the code is not pure and concise enough.

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
  • Method and device for automatic data loading and multiplexing simulation service test
  • Method and device for automatic data loading and multiplexing simulation service test
  • Method and device for automatic data loading and multiplexing simulation service test

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0040] image 3 It is a schematic diagram of main steps of a method for automatically loading data and multiplexing simulated service testing according to an embodiment of the present invention.

[0041] Such as image 3 As shown, the method for automatically loading data and multiplexing simulated service testing in the embodiment of the present invention mainly include...

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 a method and device for automatically loading data and reusing simulated services during tests. Therefore, test data can be automatically loaded during operation of tests. The simulated services can be managed in a unified manner for reuse during testing processes. In addition, simulated codes can be separated from concrete test codes such that test codes are more concise. The method comprises following steps: utilizing external documents to configure test data; initializing a mock configuration class list in a spring framework; processing each mock configuration class in the mock configuration class list, utilizing the test data after configuration by the external documents to be loaded to member variables and method parameters of mock configuration classes and generating different mock services by calling different methods of the mock configuration classes; and registering generated mock services to the context of the spring framework for unified management to facilitate reuse according to the requirements of tests.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for automatically loading data and multiplexing simulation service testing. Background technique [0002] In the process of software development, developers need to conduct unit tests on the developed functions, also known as white box testing, to verify whether the corresponding functions are running normally by constructing various data inputs. [0003] Due to the complexity of software development, it is often necessary to call some complex services and interfaces, and these interfaces may be troublesome to configure and difficult to construct data. Therefore, in the test process, in order to improve efficiency and construct complex input data, it is necessary to simulate the structure (mock, that is, if the test code depends on some service objects, and these service objects are difficult to manually create during testing, then use A virtual object to s...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 张世彬
Owner 厦门见福连锁管理有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products