Unlock instant, AI-driven research and patent intelligence for your innovation.

Test code generation method and device, test framework code execution method and device

A technology for testing codes and testing frameworks, applied in the field of automation, can solve the problems of high test case maintenance costs, high labor costs and time costs, and unsuitable test methods, so as to reduce the cost of manual testing and save testing time.

Active Publication Date: 2018-09-25
聚智科技(湖北)有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, in the testing process, almost all test cases are manually written and test cases are performed manually. The labor cost and time cost are high. Under the requirements of rapid changes, many version iterations, diversified interface types, tight test time, and high maintenance costs of test cases , the original test method is no longer suitable for

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 generation method and device, test framework code execution method and device
  • Test code generation method and device, test framework code execution method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] Below, in conjunction with accompanying drawing and specific embodiment, the present invention is described further:

[0050] see figure 1 , the present invention provides a method for generating test codes, comprising the steps of:

[0051] S1: Read the script file of the test framework template, and generate a test code file according to the script file;

[0052] Save the written script file in the specified directory, run it through the update tool, automatically read the script file under the specified template, and replace a series of algorithm constants to obtain the test code file, the test code file is data.db file, and save it to data .tb file. The test code file is an encrypted file to prevent abnormal changes. In the operation applied to the test code file later, in fact, the test code file is first decrypted to obtain the code framework.

[0053] S2: Load the test code file and receive the project name input by the user;

[0054] The running tool is obj_...

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 test code generation method and device and a test framework code execution method and device. The test framework code execution method includes the steps that running file selection input by a user is received, and all test case codes of corresponding types are loaded according to the running file section, wherein the types include failure case codes and other test case codes; the test case codes are executed respectively, and execution results are recorded; whether the test case codes are all executed or not is judged, if yes, whether the test case codes pass the test or not is judged, if yes, a test report is generated, and if not, the test case codes are recorded as failure case codes, wherein the test case codes are obtained through the test code generation method. According to test code generation method and device and the test framework code execution method and device, test code files are generated according to different script files, and code changing is not needed when different test code files are used, so that when a user receives a test task, test time is greatly shortened, and manual test cost is reduced.

Description

technical field [0001] The invention relates to the technical field of automation, in particular to a test code generation method and device, and a test framework code execution method and device. Background technique [0002] At present, in the testing process, almost all test cases are manually written and test cases are performed manually. The labor cost and time cost are high. Under the requirements of rapid changes, many version iterations, diversified interface types, tight test time, and high maintenance costs of test cases , the original test method is no longer suitable. Contents of the invention [0003] In order to overcome the deficiencies of the prior art, one of the objectives of the present invention is to provide a method for generating test codes, which can automatically generate test codes according to existing test template files. [0004] The second object of the present invention is to provide a test code generating device, which can realize the first...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 王振飞郑明伟邵福兴
Owner 聚智科技(湖北)有限公司