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

Method and device for generating test scripts

A test script and generation device technology, applied in the field of vehicles, can solve the problems of shortening the test script development cycle, prolonging the test script development cycle, and poor reusability of test scripts, so as to enhance readability and reusability, shorten development time, etc. The effect of a unified period, structure and format

Active Publication Date: 2021-03-09
SAIC GENERAL MOTORS +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Based on the above problems, the present invention proposes a method and device for generating test scripts, which solves the problems in the prior art that testers are required to participate in the process of generating test scripts, making the test script development cycle longer and the reusability of test scripts poor. The embodiments of the present invention can automatically generate test scripts according to the test and variable library, which shortens the test script development cycle, enables the automobile controller to be tested quickly, and thus can be put into the market as soon as possible; and the structure and format of the generated test script Unified, enhancing the readability and reusability 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
  • Method and device for generating test scripts
  • Method and device for generating test scripts
  • Method and device for generating test scripts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] refer to figure 1 , the embodiment of the present invention proposes a method for generating a test script, including:

[0034] Step S001, load the test case and the variable library, the test case includes at least one test case data, and the variable library includes at least one test case variable;

[0035] Step S002, according to the test case and the variable library, a test script is generated using a test script generation rule.

[0036] In step S001, first load the test case and the variable library, the test case can be a file, load the test case by loading the test case file, the variables required for generating the test script are stored in the variable library, when generating the test script, from Read the different variables needed in the variable library, and the variable library can be a file, such as a file with an extension of .lib.

[0037] In step S002, after the test case and the variable library have been loaded, execute the program for generati...

Embodiment 2

[0040] refer to figure 2 , the embodiment of the present invention proposes a method for generating a test script, including:

[0041] Step S201, displaying a test script generation interface, the generation interface is used to load test cases and variable libraries. image 3 Shown is the generation interface, where the entry "use case_source file" for loading test cases and the entry "library_source file" for loading variable libraries are provided on the generation interface. Optionally, a button for "generate script" or " Test" button. By providing a test script generation interface, it is more convenient for users to load test cases and variable libraries, and it is also more convenient to generate test scripts.

[0042] Step S202, load the test case and the variable library through the test script generation interface, the test case includes at least one test case data, and the variable library includes at least one test case variable.

[0043] The test case data at ...

Embodiment 3

[0072] refer to Figure 7 , the embodiment of the present invention proposes a test script generation device, including:

[0073] The loading module 701 is configured to: load a test case and a variable library, the test case includes at least one test case data, and the variable library includes at least one test case variable;

[0074] The generation module 702 is configured to: generate test scripts by using test script generation rules according to the test cases and the variable library.

[0075] Optionally, the test case data includes at least a test case serial number, a test case calibration value, a test case variable, a test step and / or an expected test result.

[0076] Optionally, the test case variables include at least system initialization variables, message variables and / or subsystem variables.

[0077] Optionally, before loading the test case and the variable library, the device further includes a display module, configured to: display a test script generatio...

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 present invention proposes a method and device for generating a test script. The method includes: loading a test case and a variable library, the test case includes at least one test case data, and the variable library includes at least one test case variable; according to the The test case and the variable library use test script generation rules to generate test scripts. The present invention can automatically generate a test script according to the test and variable library, shortens the test script development cycle, enables the automobile controller to be tested quickly, and thus can be put into the market as early as possible; moreover, the structure and format of the generated test script are unified, Enhanced the readability and reusability of test scripts.

Description

technical field [0001] The invention relates to the field of vehicles, in particular to a method and device for generating test scripts. Background technique [0002] In the prior art, the application of automotive controllers is becoming more and more extensive, and the design of automotive controllers is becoming more and more complex. Under the fierce competition in the market, it is required that automotive controllers can be quickly developed and tested in order to be put into the market as soon as possible, so The test of the current automobile controller generally adopts the automatic test. [0003] The dSPACE product is one of the products widely used in the hardware-in-the-loop automatic test system of the automotive controller. It has the characteristics of high precision, high reliability and can be applied to a variety of complex working conditions. Automation Desk is a test script development environment for the hardware-in-the-loop automatic test system of 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 吕志峰叶钟松
Owner SAIC GENERAL MOTORS