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

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, which can at least solve the problems of high code writing cost, difficult maintenance and low utilization rate in the prior art

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

Embodiment Construction

[0051] 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.

[0052] It should be noted that the method provided by the embodiment of the present invention is applicable to the automatic testing of all java languages ​​in the software industry. Function, shopping cart as an example to illustrate.

[0053] Automated testing is the realization of simulating manual testing, and refers to the process of automatically executing software ...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products