Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for automatically generating echo tests in batches

An automatic generation and echo technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of many repetitive actions, time-consuming, low efficiency, etc., to save time, reduce repetitive operations, and improve work efficiency Effect

Inactive Publication Date: 2019-10-15
极智(上海)企业管理咨询有限公司
View PDF1 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a method and device for automatically generating echo tests in batches, so as to solve the problem of repeated actions, time-consuming and inefficient when the existing methods need to query the availability status of dubbo interfaces in batches The problem

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 automatically generating echo tests in batches
  • Method and device for automatically generating echo tests in batches

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] Example 1, such as figure 1 As shown, a method for automatically generating echo tests in batches is provided, including the following steps:

[0031] S1. Configure the configuration file and test code required by the echo test into a corresponding code template;

[0032] S2. Interface information that needs to be echo tested in the detection project;

[0033] S3. Generate echo test programs in batches according to the interface information and the code template;

[0034] S4. Run the echo test program to detect whether the interfaces that need to be echo tested in the project are available.

[0035] The present invention can quickly and batch generate the echo test program (the code required for the dubbo service echo test), which saves time compared with the traditional method, and can complete a series of automatic reading of project interface data, automatic generation of service configuration files, automatic generation of test codes, etc. Operation, which frees ...

Embodiment 2

[0037] Example 2, such as figure 1 As shown, a method for automatically generating echo tests in batches includes the following steps:

[0038] S1. Configure the configuration files and test codes required by the echo test into corresponding code templates; specifically, configure the configuration files and test codes required for a single echo test into corresponding code templates, convert the dubbo service into an EchoService interface and Call the $echo(Object message) method to configure variable information such as service name, class name, package name, and interface name in the form of variables;

[0039] S2. Detect the interface information that needs to be echo tested in the project; including creating a static method for reading dubbo service information from the jar package, the implementation of the static method for reading dubbo service information from the jar package is from the jar package Get the file path, format the file path into the package name format...

Embodiment 3

[0043] Embodiment 3 provides a device for automatically generating echo tests in batches. The device in this embodiment includes a template generation unit, a detection unit, and a test unit.

[0044] The template generation unit is used to configure the configuration files and test codes required by the echo test, configure the configuration files and test codes required for a single echo test into corresponding code templates, convert the dubbo service into the EchoService interface and call $echo( Object message) method, which configures variable information such as service name, class name, package name, and interface name in the form of variables.

[0045] The detection unit is used to detect the interface information that needs to be echo tested in the project. The detection unit reads the static method of dubbo service information from the jar package. The detection unit obtains the file path from the jar package and formats the file path into xx.xx. The package name fo...

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 method for automatically generating echo tests in batches. The method comprises the following steps: S1, configuring configuration files and test codes required by echo testsinto corresponding code templates; S2, detecting interface information needing to be subjected to echo testing in a project; S3, generating echo test programs in batches according to the interface information and the code template; and S4, running an echo test program to detect whether the interface needing to be tested in the project is available or not. The invention further discloses a devicefor automatically generating echo tests in batches. The device comprises a template generation unit, a detection unit and a test unit. According to the method disclosed by the invention, the availablestates of the dubbo service can be detected in batches, repeated operations are reduced, time and labor are saved, and the efficiency is high.

Description

technical field [0001] The invention relates to the technical field of echo processing, in particular to a method and device for automatically generating echo tests in batches. Background technique [0002] At present, when developers need to check the availability status of dubbo services, they generally use the method of directly calling the interface or manually querying on the dubbo service management platform: [0003] For example, one of the methods is to directly call the interface; in related technologies, the following methods are generally used to directly call the interface to query the availability status of dubbo services: Step 1. Prepare the Spring configuration file required for testing; Step 2. According to the interface information and Spring configuration file, manually write the echo test program; step 3, run the echo test program to check whether the interface is available; step 4, if you want to echo test multiple interfaces in the project, you need to 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 冯汝一
Owner 极智(上海)企业管理咨询有限公司