Test case file generation method and device

A test case and file generation technology, applied in the computer field, can solve problems such as error-prone, low efficiency, and low threshold, and achieve the effect of improving efficiency

Active Publication Date: 2017-11-10
BEIJING QIANXIN TECH
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since the existing manual method of configuring test cases is simple and has low threshold, but the efficiency is very low and error-prone, the embodiment of the present invention proposes a method and device for generating test case files

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 case file generation method and device
  • Test case file generation method and device
  • Test case file generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056]The specific embodiments of the present invention will be further described below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solution of the present invention more clearly, but not to limit the protection scope of the present invention.

[0057] figure 1 It shows a schematic flowchart of a method for generating a test case file provided in this embodiment, including:

[0058] S101. Run the first script in the script file, read the first preset character string in the middle template file according to the first script, and copy all the data in the middle template file to the test case file.

[0059] Wherein, the script file includes a plurality of scripts performing different operations, such as a first script, a second script, a third script and a fourth script.

[0060] The first script is used to read the first preset character string in the middle template file.

[0061] The second script is 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
Login to view more

PUM

No PUM Login to view more

Abstract

Embodiments of the invention disclose a test case file generation method and device. The method comprises the following steps of: reading a first preset character string in a middle template file according to a first script, and copying all the pieces of data in the middle template file into a test case file; reading a data file according to a second script, and judging whether the first preset character string exists in the data file or not; and if the first preset character string exists in the data file, reading a target character string, corresponding to the first preset character string, in a target line of the data file, and replacing the first preset character string in the test case file by the target character string. According to the method and device, the manual configuration part which consuming most time is realized by scripts, so that the efficiency is greatly improved; the data and template content are independent from the scripts, and the corresponding middle template file can be directly selected in allusion to different interface tests; and the data file and the middle template file are connected in series through the first preset character string, so that the test case file can be rapidly and automatically generated, and the operation is high in efficiency and is not easy to make mistakes.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a method and device for generating a test case file. Background technique [0002] When performing interface testing and performance testing of equipment, the core step is to prepare test cases, and the test cases corresponding to different scenarios and test points are different. [0003] Especially for private protocols, when it is necessary to conduct interface or performance tests on private protocol interfaces, in addition to analyzing test points and test scenarios, writing test cases and preparing test data, extracting the input conditions and output expectations of the interface, it is also necessary to These test cases and data are converted into a form that can be recognized by the test framework, that is, test cases that can be recognized by the private protocol of each interface. And this part of the conversion work needs to be manuall...

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/3684
Inventor 高国政郭海超李强高强姚俊晓
Owner BEIJING QIANXIN TECH
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