Method and device for generating testing codes

A technology for testing codes and codes, applied in program control devices, software testing/debugging, etc., can solve problems such as the inability to have the flexibility of programming languages ​​at the same time, the ease of use of automated testing frameworks, etc.

Inactive Publication Date: 2014-09-10
HISENSE VISUAL TECH CO LTD
View PDF6 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a test code generation method and a generation device to solve the probl

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 generating testing codes
  • Method and device for generating testing codes
  • Method and device for generating testing codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0026] First, briefly explain the technical idea of ​​the present invention to generate test codes:

[0027] The inventor of the present invention considers that when writing the original test code of the software under test, the test code corresponding to each test step is a minimum basic unit, which should execute a single test operation step, verify whether the step is executed successfully and Output step execution information, etc. Specifically, a test step generally includes:

[0028] Positioning object part: used for positioning the control view of the interface, etc.

[0029] Execute action part: used to perform action operations on the located object. The execution action also contains data, for example, the input operation needs to con...

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 and device for generating testing codes. The method comprises the steps that a testing script of tested software is analyzed, and variable information included in the testing script is extracted; original testing codes are classified according to the testing type of the tested software and the programming language of the original testing codes, a differential code portion in each kind of the original testing codes is extracted and marked, and code templates of the original testing codes are formed by the differential code portions and common code portions in the original testing codes; the variable information of the testing script and the corresponding code templates are loaded, the differential code portions marked in the code templates are replaced with the variable information according to set rules, and the testing codes are generated. According to the method and device, the problem that the flexibility of the programming language and the usability of an automatic test framework cannot be obtained at the same time in the prior art can be solved.

Description

technical field [0001] The present invention relates to the technical field of software testing, in particular to the technology of test codes for software testing, and more specifically to a method and device for generating test codes. Background technique [0002] With the rapid development of software systems, the functions of software products with software systems are becoming more and more abundant, the number of software in software systems is increasing, and the challenges to software testing are also increasing. More and more R&D teams Considering automated testing of software products to improve testing efficiency. [0003] At present, the software automation testing of software products mainly has the following two application forms: [0004] One is to directly use the test tools provided by the software system to write automated test codes to execute automated tests. For example, use the testing tools MonkeyRunner or UIAutomator provided by Android to write aut...

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/36G06F9/44
Inventor 祝尚元万辉盖玉罡秦曙光
Owner HISENSE VISUAL 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