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

Automatic generation method and system for test script

A test script and automatic generation technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as grammatical errors, semantic errors, and low efficiency of test scripts, so as to improve generation efficiency and avoid grammatical errors Effect

Active Publication Date: 2018-02-09
BEIJING RUNKE GENERAL TECH
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] There are at least the following defects in the above-mentioned manner of the prior art: the efficiency of manually writing test scripts is low, and manually writing test scripts may introduce human errors, such as grammatical errors, semantic errors, etc. Although grammatical errors can be checked out by debugging, they are also Introduces more debugging workload, and semantic errors are difficult to be checked because they often do not affect the running of test scripts

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 generation method and system for test script
  • Automatic generation method and system for test script
  • Automatic generation method and system for test script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] 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. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0047]An embodiment of the present invention provides a method for automatically generating test scripts, aiming to overcome various defects in the manual writing of test scripts in the prior art through an automated test script generation solution. The test script generation scheme provided by the present invention is an automatic generation scheme for test scripts oriented to logical expressions, and the generated test scripts can be applied to the field of s...

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 provides an automatic generation method and system for a test script. After a logic expression is obtained and a mapping relationship between a decision condition and an ICD (Interface Control Document) variable is obtained, a test case set corresponding to the logic expression is generated, and the ICD variable corresponding to each decision condition in the logic expression is determined according to the mapping relationship between a decision condition and the ICD variable; and on the basis, according to the ICD variable corresponding to each decision condition in the logic expression and the test case set, generating the test script corresponding to each test case in the test case set. Obviously, an automatic test script generation scheme is realized, the generation efficiency of the test script can be effectively improved, and the introduction of manual errors including grammatical errors, semantic errors and the like can be avoided.

Description

technical field [0001] The invention belongs to the field of system function testing related to logical expressions, in particular to an automatic generation method and system of a test script. Background technique [0002] At present, when testing the system functions related to logical expressions, it is necessary to first design a set of test cases for the logical expressions that can cover various truth value combinations of the judgment conditions in the logical expressions, and manually select the test cases that need to be executed. On this basis, test developers need to manually write test scripts for each test case, and complete the condition setting of the logical expression under test by running the test script when executing the test, and then complete the test. [0003] There are at least the following defects in the above-mentioned manner of the prior art: the efficiency of manually writing test scripts is low, and manually writing test scripts may introduce hu...

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/3676G06F11/3684
Inventor 张智斌
Owner BEIJING RUNKE GENERAL TECH
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