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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


