Automatic test code generation method and device

A technology for automated testing and code generation, applied in the computer field, can solve the problems of low utilization, high code writing cost, difficult maintenance, etc., and achieve the effect of reducing code writing cost

Pending Publication Date: 2020-03-03
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In view of this, the embodiment of the present invention provides an automated test code generation method and device, w

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
  • Automatic test code generation method and device
  • Automatic test code generation method and device
  • Automatic test code generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0051] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and should be regarded as merely exemplary. Therefore, those of ordinary skill in the art should realize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Likewise, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0052] It should be noted that the method provided in the embodiments of the present invention is applicable to all the automated testing of java language in the software industry, with the purpose of automatically testing products or interfaces on a regular basis. Other types of unit testing can be implemented based on specific language extensions. The present inventio...

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 an automatic test code generation method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the steps of determining aninterface corresponding to a test instruction in a target application, and collecting test data of the interface in a test process based on a probe corresponding to the target application; and in thetest process of the interface, generating an automatic test code corresponding to the interface according to the template corresponding to the target application and the test data. According to the implementation mode, the byte code enhancement technology is adopted to obtain the test data in real time, an implementation basis is provided for automatically generating the automatic code while the function test is completed, the automatic code is also automatically completed when the function test is completed, and the code writing cost is reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an automatic test code generation method and device. Background technique [0002] With the rapid development of Internet technology, automated testing technology plays an increasingly important role in the current testing process. It can save testing time during the regression testing phase and contribute to the overall quality assurance of the software. [0003] In the existing automated testing process, usually the tester manually writes the automated test code or uses a script according to the functional test case after the test is completed. [0004] In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0005] 1) Functional testing is separated from automated testing. Generally, functional testing is performed first, and then automated testing is performed after completion, resulting in hig...

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/3684
Inventor 王甲林
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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