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

Method and device for generating test case script

A technology for generating test cases and test cases, which is applied in the fields of communications and computers, and can solve problems such as low efficiency in automated test development, poor usability, and inconformity with testers' natural language habits

Inactive Publication Date: 2018-07-10
ZTE CORP
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a method and device for generating test case scripts. Therefore, the existing technology does not conform to the natural language habits of testers, and there are many interfaces for searching databases in the process of developing automated test cases. The efficiency of automated test development is low and the usability is poor. technical issues

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 test case script
  • Method and device for generating test case script
  • Method and device for generating test case script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0019] It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence.

[0020] The embodiment of the present invention provides a method for generating test case scripts, figure 1 is a logic flowchart of a method for generating a test case script according to an embodiment of the present invention, such as figure 1 As shown, the method consists of three steps,

[0021] S101 Acquiring call information for calling a unit function script, wherein the unit function script includes script code and script comments for e...

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 a method and a device for generating a test case script. The method comprises the steps that calling information used for calling unit function scripts is acquired, wherein theunit function scripts comprise script codes used for executing unit function tests and script annotations; unit function scripts are selected according to the maximum-probability script annotations corresponding to the calling information, and the selected unit function scripts are assembled into the test case script; and the test case script is adopted to test a to-be-tested application program.Through matching of an input text string, subjected to word segmentation processing, of a tester and corresponding unit function scripts in a unit function script library, the purpose of recognizing anatural language input by the tester is achieved, the requirement on the coding ability of the tester is lowered, and the technical problems that the natural language habit of the tester is not met,and the requirement on the programming ability of the tester is high in the prior art in the automatic testing field are solved.

Description

technical field [0001] The invention relates to communication and computer fields, in particular to a method and device for generating test case scripts. Background technique [0002] Automated testing has developed into an increasingly important testing method because it improves testing efficiency. However, testers are required to have a certain code development ability, and the generalization ability is poor. After the test case is sent and changed, it needs to be redeveloped. In order to reduce the burden of code development, a method and system for automatic code generation are needed. The existing technology achieves the purpose of appeal by formulating use case writing specifications, including keyword definitions and template definitions, but at the same time, testers are required to write test cases in strict accordance with the design specifications, and generate test scripts by inputting test cases in a certain format. For example, by letting the operation comman...

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/36G06F11/3684
Inventor 葛中远龙天剑
Owner ZTE CORP
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