Test code automatic generation method and device, computer equipment and storage medium

A test code, automatic generation technology, applied in computing, software testing/debugging, error detection/correction, etc., can solve the problems of low efficiency, complexity and cumbersome development of terminal software, and achieve the goal of improving software development efficiency and simplifying the development process. Effect

Pending Publication Date: 2020-09-22
XIAN WINGTECH ELECTRONICS TECH CO LTD
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, the Uiautomatorviewer tool is generally used to obtain relevant information of UI controls, and to develop test codes through these information, but this process is very complicated and cumbersome, and the efficiency of terminal software development is very low

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
  • Test code automatic generation method and device, computer equipment and storage medium
  • Test code automatic generation method and device, computer equipment and storage medium
  • Test code automatic generation method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0046] Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0047] It should be noted that relative ter...

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 embodiment of the invention provides an automatic test code generation method and device, computer equipment and a storage medium, and relates to the technical field of testing. The test code automatic generation method comprises the steps of obtaining a layout file and a screenshot of a current display interface; wherein the layout file comprises coordinate information; monitoring an operation event generated on the screenshot, obtaining target coordinate information corresponding to the operation event from the coordinate information, and the target coordinate information represents theposition of the operation event in the screenshot; and determining a test code corresponding to the operation event according to the operation event and the target coordinate information. Test codes can be automatically generated, the development process of the test codes is simplified, and the software development efficiency of computer equipment is improved.

Description

technical field [0001] The invention relates to the technical field of automatic testing, in particular to a method, device, computer equipment and storage medium for automatically generating test codes. Background technique [0002] The Uiautomatorviewer tool is a graphical interface tool provided in the Android SDK (Android Software Development Kit, Android Software Development Kit), which is used to scan and analyze UI (UserInterface, user interface) controls of applications. [0003] In the prior art, information related to UI controls is generally obtained through the Uiautomatorviewer tool, and test codes are developed through these information, but this process is very complicated and cumbersome, and the efficiency of software development for the terminal is very low. Contents of the invention [0004] In view of this, the object of the present invention is to provide a test code automatic generation method, device, computer equipment and storage medium, which can a...

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 XIAN WINGTECH ELECTRONICS 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