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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

