CN112286829A - Test script generation method and device - Google Patents

Test script generation method and device Download PDF

Info

Publication number
CN112286829A
CN112286829A CN202011585884.3A CN202011585884A CN112286829A CN 112286829 A CN112286829 A CN 112286829A CN 202011585884 A CN202011585884 A CN 202011585884A CN 112286829 A CN112286829 A CN 112286829A
Authority
CN
China
Prior art keywords
target
test
configuration
files
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011585884.3A
Other languages
Chinese (zh)
Other versions
CN112286829B (en
Inventor
吕鑫
张弛
史建友
董飞飞
张瑞
杨菲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casco Signal Beijing Ltd
Original Assignee
Casco Signal Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casco Signal Beijing Ltd filed Critical Casco Signal Beijing Ltd
Priority to CN202011585884.3A priority Critical patent/CN112286829B/en
Publication of CN112286829A publication Critical patent/CN112286829A/en
Application granted granted Critical
Publication of CN112286829B publication Critical patent/CN112286829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Abstract

The application discloses a test script generation method and device, and relates to the technical field of urban rail signal system testing. The method of the present application comprises: acquiring a plurality of target data labels corresponding to a target test item; downloading a plurality of target project data files at a target server according to a plurality of the target data tags; updating a preset configuration pointing file according to the target project data files, and generating a plurality of test scripts and configuration information files corresponding to the test scripts according to the target project data files and the updated preset configuration pointing file, wherein the configuration information files record data which the corresponding test scripts need to call. The method and the device are suitable for the process of generating the test script used by the integrated test platform.

Description

Test script generation method and device
Technical Field
The application relates to the technical field of urban rail signal system testing, in particular to a test script generation method and device.
Background
With the continuous development of society, the urban rail construction of China is also rapidly developed. In order to ensure the safety and reliability of the urban rail signal system, the urban rail signal system needs to be subjected to safety testing, wherein the indoor testing of the urban rail project is a part of the safety testing of the urban rail signal system, and the system integration confirmation testing is the last stage of the indoor testing of the urban rail project. In the system Integration confirmation test process, an Integration test Platform (FIVP) performs a system Integration confirmation test on the urban rail signal system to be tested based on a test script, and the normal operation of the Integration test Platform depends on the correctness of the test script.
At present, a test script used by an integrated test platform is compiled by a test worker according to work experience. However, the working efficiency of manually writing the test script by the test staff is low; moreover, a test script written by a test worker may have a bug, so that the integrated test platform cannot normally run.
Disclosure of Invention
The embodiment of the application provides a test script generation method and device, and mainly aims to automatically generate a test script used by an integrated test platform.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
in a first aspect, the present application provides a test script generating method, where the method is applied to a first terminal device, and the method includes:
acquiring a plurality of target data labels corresponding to a target test item;
downloading a plurality of target project data files at a target server according to a plurality of the target data tags;
updating a preset configuration pointing file according to the target project data files, and generating a plurality of test scripts and configuration information files corresponding to the test scripts according to the target project data files and the updated preset configuration pointing file, wherein the configuration information files record data which the corresponding test scripts need to call.
Optionally, the obtaining of multiple target data tags corresponding to the target test item includes:
receiving a target issue list number corresponding to the target test item, and searching a target issue list according to the target issue list number;
analyzing the target issue list to obtain a plurality of data labels recorded in the target issue list;
outputting and displaying a plurality of data labels;
if a tag confirmation instruction is received, determining the plurality of data tags as a plurality of target data tags;
if a tag supplement instruction is received, determining at least one data tag carried in the tag supplement instruction and a plurality of data tags recorded in the target issue list as a plurality of target data tags.
Optionally, the downloading, at a target server, a plurality of target item data files according to a plurality of the target data tags includes:
downloading a plurality of target project data packets at the target server according to the plurality of target data tags, and storing the plurality of target project data packets into a local storage space;
decompressing the plurality of target project data packets to obtain a plurality of target project data folders;
extracting a plurality of the target project data files from a plurality of the target project data folders.
Optionally, the plurality of target project data files include a vehicle-mounted description file, and vehicle-mounted device information corresponding to a target vehicle-mounted device is recorded in the vehicle-mounted description file; the tag confirmation instruction and the tag supplement instruction carry platform information corresponding to a target integrated test platform; the updating a preset configuration pointing file according to the plurality of target project data files, and generating a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file, includes:
updating a preset vehicle configuration file according to the vehicle-mounted equipment information;
creating a configuration source file directory, and storing a plurality of target project data files, the updated preset vehicle configuration files and a plurality of preset general configuration files into the configuration source file directory;
updating the preset configuration pointing file according to the configuration source file directory;
generating a plurality of test scripts and configuration information files corresponding to each test script according to the configuration source file directory and the updated preset configuration pointing file;
and updating the plurality of test scripts according to the platform information.
Optionally, the method further includes:
acquiring equipment information of real equipment corresponding to each test script;
generating equipment information of the simulation equipment corresponding to each test script according to the equipment information of the real equipment corresponding to each test script;
generating a simulation script according to the mapping relation between the equipment information of the real equipment and the equipment information of the simulation equipment corresponding to each test script;
acquiring a target equipment model library version corresponding to the target test item according to the target release order number;
and updating the plurality of test scripts and the simulation scripts according to the target equipment model library version.
Optionally, the method further includes:
acquiring I/O code bit information corresponding to the target vehicle-mounted equipment according to the vehicle-mounted instruction file;
and generating a finger configuration file according to the I/O code bit information.
Optionally, the method further includes:
generating a batch processing command;
sending the batch processing command to second terminal equipment, wherein the target integrated test platform runs in the second terminal equipment;
and controlling the second terminal equipment to run the batch processing command so as to control the second terminal equipment to update a local storage space according to the plurality of configuration information files, load the finger configuration file and load the plurality of test scripts and the simulation scripts after the plurality of test scripts, the plurality of configuration information files, the simulation scripts and the finger configuration files are downloaded at the first terminal equipment.
In a second aspect, the present application further provides a test script generating apparatus, where the apparatus is applied to a first terminal device, and the apparatus includes:
the first acquisition unit is used for acquiring a plurality of target data labels corresponding to the target test items;
a downloading unit, configured to download a plurality of target project data files at a target server according to a plurality of target data tags;
and the first generating unit is used for updating a preset configuration pointing file according to the plurality of target project data files, and generating a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file, wherein the configuration information files record data which the corresponding test scripts need to call.
Optionally, the first obtaining unit includes:
the receiving module is used for receiving a target release order number corresponding to the target test item;
the searching module is used for searching the target issue list according to the target issue list number;
the analysis module is used for analyzing the target issue list to obtain a plurality of data labels recorded in the target issue list;
the output module is used for outputting and displaying the data labels;
a first determining module, configured to determine, when a tag confirmation instruction is received, the plurality of data tags as a plurality of target data tags;
a second determining module, configured to determine, when a tag supplement instruction is received, at least one data tag carried in the tag supplement instruction and the plurality of data tags recorded in the target issue ticket as a plurality of target data tags.
Optionally, the downloading unit includes:
a download module for downloading a plurality of target project data packages at the target server according to the plurality of target data tags;
the storage module is used for storing a plurality of target project data packets into a local storage space;
the decompression module is used for decompressing the target project data packets to obtain a plurality of target project data folders;
an extraction module to extract the plurality of target project data files from the plurality of target project data folders.
Optionally, the plurality of target project data files include a vehicle-mounted description file, and vehicle-mounted device information corresponding to a target vehicle-mounted device is recorded in the vehicle-mounted description file; the tag confirmation instruction and the tag supplement instruction carry platform information corresponding to a target integrated test platform; the first generation unit includes:
the first updating module is used for updating a preset vehicle configuration file according to the vehicle-mounted equipment information;
the creating module is used for creating a configuration source file directory;
the storage module is used for storing the target project data files, the updated preset vehicle configuration files and the preset general configuration files into the configuration source file directory;
the second updating module is used for updating the preset configuration pointing file according to the configuration source file directory;
the generating module is used for generating a plurality of test scripts and configuration information files corresponding to each test script according to the configuration source file directory and the updated preset configuration direction file;
and the third updating module is used for updating the plurality of test scripts according to the platform information.
Optionally, the apparatus further comprises:
the second obtaining unit is used for obtaining the equipment information of the real equipment corresponding to each test script;
the second generation unit is used for generating the equipment information of the simulation equipment corresponding to each test script according to the equipment information of the real equipment corresponding to each test script;
the third generating unit is used for generating simulation scripts according to the mapping relation between the equipment information of the real equipment and the equipment information of the simulation equipment, which correspond to each test script;
the third acquisition unit is used for acquiring the target equipment model library version corresponding to the target test item according to the target release order number;
and the updating unit is used for updating the plurality of test scripts and the simulation scripts according to the target equipment model library version.
Optionally, the apparatus further comprises:
the fourth acquisition unit is used for acquiring the I/O code bit information corresponding to the target vehicle-mounted equipment according to the vehicle-mounted description file;
and the fourth generating unit is used for generating a finger configuration file according to the I/O code bit information.
Optionally, the apparatus further comprises:
a fifth generation unit configured to generate a batch processing command;
the sending unit is used for sending the batch processing command to second terminal equipment, wherein the target integrated test platform runs in the second terminal equipment;
and the control unit is used for controlling the second terminal equipment to run the batch processing command so as to control the second terminal equipment to update a local storage space according to the plurality of configuration information files, load the finger configuration file and load the plurality of test scripts and the simulation scripts after the plurality of test scripts, the plurality of configuration information files, the simulation scripts and the finger configuration files are downloaded at the first terminal equipment.
In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the test script generation method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a test script generating apparatus, which includes a storage medium; and one or more processors, the storage medium coupled with the processors, the processors configured to execute program instructions stored in the storage medium; the program instructions, when executed, perform the test script generation method of the first aspect.
By means of the technical scheme, the technical scheme provided by the application at least has the following advantages:
compared with the test script used by a test worker for compiling an integrated test platform according to work experience in the prior art, the test script generating method and the test script generating device can download a plurality of target project data files at a target server according to a plurality of target data labels after the script generating application program obtains the plurality of target data labels corresponding to the target test project, update the preset configuration pointing file according to the plurality of target project data files, and generate a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file. After the script generation application program obtains the plurality of target data labels corresponding to the target test items, the script generation application program can automatically obtain a plurality of target item data files used when the plurality of test scripts are generated according to the plurality of target data labels, and automatically generate a plurality of test scripts corresponding to the target test items according to the target item data recorded in the plurality of target item data files, so that the working efficiency and the accuracy of generating the test scripts can be effectively improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present application are illustrated by way of example and not by way of limitation in the figures of the accompanying drawings and in which like reference numerals refer to similar or corresponding parts and in which:
FIG. 1 is a flowchart illustrating a test script generation method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of another test script generation method provided by the embodiment of the present application;
FIG. 3 is a block diagram illustrating a test script generating apparatus according to an embodiment of the present disclosure;
fig. 4 shows a block diagram of another test script generation apparatus provided in the embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
An embodiment of the present application provides a test script generation method, as shown in fig. 1, the method includes:
101. and acquiring a plurality of target data labels corresponding to the target test items.
In this embodiment of the present invention, the execution subject in each step is an application program generated for a script running in a first terminal device, where the target integrated test platform runs in a second terminal device, the first terminal device can perform data interaction with the second terminal device, and the first terminal device may be, but is not limited to: computer, server, etc., the second terminal device may be, but is not limited to: computers, servers, etc.
In the embodiment of the present invention, in the process of generating a plurality of test scripts corresponding to a target test item, a plurality of target item data files used when the plurality of test scripts are generated need to be acquired, and then a plurality of test scripts are generated according to target item data recorded in the plurality of target item data files, and acquiring the plurality of target item data files needs to be implemented based on a plurality of target data tags corresponding to the target test item.
Specifically, in this step, a test worker may input a plurality of target data tags corresponding to the target test item to the script generation application program, so that the script generation application program obtains the plurality of target data tags corresponding to the target test item; the corresponding release order may also be created for each test item in advance, a plurality of data tags corresponding to the test item are recorded in the release order, after receiving a target release order number corresponding to the target test item, which is input by a test worker, the script generation application program may search for a target release order corresponding to the target test item according to the target release order number, and after analyzing the target release order, a plurality of target data tags corresponding to the target test item may be obtained, but is not limited thereto.
102. A plurality of target project data files are downloaded at the target server according to the plurality of target data tags.
Wherein the plurality of target project data files may include, but are not limited to: on-board profile, vehicle system information file, trackside equipment information file, etc.; the target server stores a plurality of target project data files.
In the embodiment of the application, after obtaining the plurality of target data tags corresponding to the target test item, the script generation application program may download the plurality of target item data files at the target server according to the plurality of target data tags.
103. And updating the preset configuration pointing file according to the target project data files, and generating a plurality of test scripts and configuration information files corresponding to the test scripts according to the target project data files and the updated preset configuration pointing file.
And the configuration information file records data which needs to be called by the corresponding test script.
In the embodiment of the application, after the script generation application program downloads and obtains a plurality of target project data files, the preset configuration pointing file can be updated according to the plurality of target project data files, that is, the relevant information recorded in the preset configuration pointing file is updated according to the number of the plurality of target project data files, the file name corresponding to each target project data file, the storage path corresponding to each target project data file, and the like; after the preset configuration pointing file is updated according to the plurality of target project data files, the script generation application program can generate a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file.
Compared with a test script used by a test worker for compiling an integrated test platform according to work experience in the prior art, the test script generating method provided by the embodiment of the application can download a plurality of target project data files at a target server according to a plurality of target data labels after the script generating application program obtains the plurality of target data labels corresponding to target test projects, update a preset configuration pointing file according to the plurality of target project data files, and generate a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file. After the script generation application program obtains the plurality of target data labels corresponding to the target test items, the script generation application program can automatically obtain a plurality of target item data files used when the plurality of test scripts are generated according to the plurality of target data labels, and automatically generate a plurality of test scripts corresponding to the target test items according to the target item data recorded in the plurality of target item data files, so that the working efficiency and the accuracy of generating the test scripts can be effectively improved.
To explain in more detail below, an embodiment of the present application provides another test script generation method, specifically as shown in fig. 2, the method includes:
201. and acquiring a plurality of target data labels corresponding to the target test items.
In the embodiment of the application, a corresponding release order is established for each test item in advance, and a plurality of data tags corresponding to the test items are recorded in the release order; and generating a corresponding publication list number for each publication list, and storing the plurality of publication lists and the mapping relation between each publication list and the corresponding publication list number in a local storage space of the first terminal device.
Specifically, in this step, the script generation application may obtain a plurality of target data tags corresponding to the target test item by the following method:
firstly, receiving a target release order number corresponding to a target test project, which is input by a test worker; then, searching a target issue sheet according to the target issue sheet number corresponding to the target test item; secondly, analyzing the target issue list to obtain a plurality of data labels recorded in the target issue list; thirdly, outputting and displaying the plurality of data labels so that a test worker can confirm whether the plurality of data labels recorded in the target issue list are a plurality of target data labels corresponding to the target test item or not; finally, if a label confirmation instruction input by a test worker is received, determining a plurality of data labels recorded in the target release list as a plurality of target data labels corresponding to the target test item; if a tag supplement instruction input by a test worker is received, determining at least one data tag carried in the tag supplement instruction and a plurality of data tags recorded in a target issue form as a plurality of target data tags corresponding to a target test item, but not limited thereto.
202. A plurality of target project data files are downloaded at the target server according to the plurality of target data tags.
In the embodiment of the application, after obtaining the plurality of target data tags corresponding to the target test item, the script generation application program may download the plurality of target item data files at the target server according to the plurality of target data tags. A detailed description of how the script generation application downloads the plurality of target project data files at the target server based on the plurality of target data tags will be provided below.
(1) And downloading a plurality of target project data packets at the target server according to the plurality of target data tags, and storing the plurality of target project data packets into the local storage space.
In the embodiment of the application, after obtaining a plurality of target data tags corresponding to a target test item, a script generation application program can send the plurality of target data tags to a target server, after receiving the plurality of target data tags, the target server can search a plurality of target item data files corresponding to the plurality of target data tags, and package the plurality of target item data files according to a preset rule, after obtaining a plurality of target item data packets, feed the plurality of target item data packets back to the script generation application program, and after receiving the plurality of target item data packets, the script generation application program can store the plurality of target item data packets in a local storage space.
(2) And decompressing the target project data packets to obtain a plurality of target project data folders.
In this embodiment of the present application, after the script generation application stores the plurality of target item data packets in the local storage space, the script generation application may decompress the plurality of target item data packets, thereby obtaining a plurality of target item data folders.
(3) A plurality of target project data files are extracted from a plurality of target project data folders.
In the embodiment of the present application, after the script generation application decompresses and obtains the plurality of target project data folders, the plurality of target project data files may be extracted from the plurality of target project data folders.
203. And updating the preset configuration pointing file according to the target project data files, and generating a plurality of test scripts and configuration information files corresponding to the test scripts according to the target project data files and the updated preset configuration pointing file.
In the embodiment of the application, after the script generation application program downloads and obtains a plurality of target project data files, the preset configuration pointing file can be updated according to the plurality of target project data files, and a plurality of test scripts and configuration information files corresponding to each test script are generated according to the plurality of target project files and the updated preset configuration pointing file. The following will describe in detail how the script generation application updates the preset configuration direction file according to the plurality of target item data files, and how the script generation application generates the plurality of test scripts and the configuration information file corresponding to each test script according to the plurality of target item files and the updated preset configuration direction file.
The target project data files comprise vehicle-mounted description files, vehicle-mounted equipment information corresponding to target vehicle-mounted equipment is recorded in the vehicle-mounted description files, and the target vehicle-mounted equipment is vehicle-mounted equipment in an urban rail signal system to be tested; the tag confirmation instruction or the tag supplement instruction received in step 201 carries platform information corresponding to the target integrated test platform.
(1) And updating the preset vehicle configuration file according to the vehicle-mounted equipment information.
In the embodiment of the application, after the script generation application program downloads the vehicle-mounted description file, the script generation application program can update the relevant information recorded in the preset vehicle configuration file according to the vehicle-mounted device information recorded in the vehicle-mounted description file and corresponding to the target vehicle-mounted device.
(2) And creating a configuration source file directory, and storing the target item data files, the updated preset vehicle configuration files and the preset general configuration files into the configuration source file directory.
In the embodiment of the application, after the script generation application program updates the preset vehicle configuration file according to the vehicle-mounted device information, a configuration source file directory can be created, and the target item data files, the updated preset vehicle configuration file and the preset general configuration files are stored in the configuration source file directory.
It should be noted that, in an actual application process, after the plurality of target project data files, the updated preset vehicle configuration file, and the plurality of preset general configuration files are stored in the configuration source file directory, the plurality of target project data files, the updated preset vehicle configuration file, and the plurality of preset general configuration files may also be renamed according to an actual requirement, which is not specifically limited in this embodiment of the present application.
(3) And updating the preset configuration pointing file according to the configuration source file directory.
In this embodiment of the application, after the script generation application stores the plurality of target item data files, the updated preset vehicle configuration file, and the plurality of preset general configuration files in the configuration source file directory, the preset configuration direction file needs to be updated according to the configuration source file directory, that is, the related information recorded in the preset configuration direction file is updated according to the number of the plurality of target item data files, the file name corresponding to each target item data file, the file name corresponding to the updated preset vehicle configuration file, the storage path corresponding to the updated preset vehicle configuration file, the number of the plurality of preset general configuration files, the file name corresponding to each preset general configuration file, the storage path corresponding to each preset general configuration file, and other information.
(4) And generating a plurality of test scripts and configuration information files corresponding to each test script according to the configuration source file directory and the updated preset configuration pointing file.
In the embodiment of the application, after the script generation application program updates the preset configuration direction file according to the configuration source file directory, a plurality of test scripts and configuration information files corresponding to each test script can be generated according to the configuration source file directory and the updated preset configuration direction file.
Specifically, in this step, the script generation application may extract target item data, vehicle configuration information, and general configuration information from the configuration source file directory, and extract configuration direction information from the updated preset configuration direction file, and then generate a plurality of test scripts and configuration information files corresponding to each test script according to preset test script generation rules and the extracted target item data, vehicle configuration information, general configuration information, and configuration direction information; after the target item data, the vehicle configuration information, and the general configuration information are extracted from the configuration source file directory and the configuration direction information is extracted from the updated preset configuration direction file, a plurality of test scripts and configuration information files corresponding to each test script may be generated according to the preset test script template and the extracted target item data, vehicle configuration information, general configuration information, and configuration direction information, but the method is not limited thereto.
(5) And updating the plurality of test scripts according to the platform information.
In this embodiment of the application, after the script generation application program generates a plurality of test scripts and a configuration information file corresponding to each test script according to the configuration source file directory and the updated preset configuration direction file, platform information recorded in the plurality of test scripts needs to be updated according to platform information corresponding to the target integrated test platform.
Further, in the embodiment of the present application, because the plurality of test scripts generated in the foregoing steps are oriented to real devices in the urban rail signal system to be tested, but the target integrated test platform side may not have real devices corresponding to all test scripts, when the target integrated test platform side does not have real devices corresponding to a certain test script, the target integrated test platform side simulates simulation devices corresponding to the real devices through a simulator, and generates device information of the simulation devices through the simulator according to the device information of the real devices and a preset generation rule, in order to enable the test scripts to be applied to the simulation devices, after the script generation application program updates platform information recorded in the plurality of test scripts according to platform information corresponding to the target integrated test platform, it is further required to obtain device information of the real devices corresponding to each test script in each test script, and generating equipment information of the simulation equipment corresponding to each test script according to the equipment information of the real equipment corresponding to each test script and a preset generation rule, and generating the simulation script according to a mapping relation between the equipment information of the real equipment corresponding to each test script and the equipment information of the simulation equipment, wherein the preset generation rule used by the simulator is the same as the preset generation rule used by the script generation application program. Specifically, in this step, the script generation application program may generate the simulation script according to the preset simulation script generation rule and the mapping relationship between the device information of the real device corresponding to each test script and the device information of the simulation device, or may generate the simulation script according to the preset simulation script template and the mapping relationship between the device information of the real device corresponding to each test script and the device information of the simulation device, but is not limited thereto.
Further, in this embodiment of the application, a mapping relationship between the device model library version corresponding to each test item and the release order number is further stored in the local storage space of the first terminal device, and after the script generation application generates the simulation script, the script generation application needs to obtain the target device model library version corresponding to the target test item according to the target release order number received in step 201, and update the plurality of test scripts and the related information recorded in the simulation script according to the obtained target device model library version.
204. And generating a finger line configuration file according to the vehicle-mounted instruction file.
The vehicle-mounted instruction file records I/O code bit information corresponding to the target vehicle-mounted equipment.
In this embodiment of the application, after the script generation application generates a plurality of test scripts and a configuration information file corresponding to each test script according to a plurality of target project files and an updated preset configuration pointing file, it is further required to obtain I/O code bit information corresponding to a target vehicle-mounted device according to a vehicle-mounted description file, and generate a guideline configuration file according to the I/O code bit information corresponding to the target vehicle-mounted device. Specifically, in this step, the script generation application may replace the relevant information recorded in the preset finger configuration file template with the I/O code bit information corresponding to the target vehicle-mounted device, so as to generate the finger configuration file, but is not limited thereto.
Further, in this embodiment of the application, the downloading and obtaining of the plurality of target item data files in step 202 further includes a communication configuration file corresponding to the target vehicle-mounted device, and vehicle network communication node information corresponding to the target vehicle-mounted device is recorded in the communication configuration file; after the script generation application program generates the finger configuration file according to the vehicle-mounted description file, whether the communication type between the target vehicle-mounted device and the target vehicle system comprises network communication can be determined according to vehicle network communication node information corresponding to the target vehicle-mounted device recorded in the communication configuration file, if yes, the network communication configuration file is generated according to the vehicle network communication node information corresponding to the target vehicle-mounted device, wherein the target vehicle system is a vehicle system of the target urban rail vehicle, and the target urban rail vehicle is an urban rail vehicle capable of communicating with an urban rail signal system to be tested.
205. And loading a plurality of test scripts, simulation scripts and finger configuration files into the second terminal equipment.
And the target integrated test platform runs in the second terminal equipment.
In the embodiment of the present application, after completing the operation in step 201 and 205, the script generation application program may generate a batch processing command, send the batch processing command to the second terminal device, and control the second terminal device to run the batch processing command; after the batch processing command is run by the second terminal device, a plurality of test scripts, a plurality of configuration information files, simulation scripts and finger line configuration files are downloaded at the first terminal device, a preset application program is executed after the download is completed, and after the preset application program is executed, the data recorded in the plurality of configuration information files are used for updating the stored project data in the local storage space, the finger line configuration files are loaded, and a plurality of test scripts and simulation scripts are loaded, so that the construction of the test environment of the target integrated test platform is completed, and the target integrated test platform can use the plurality of test scripts and the simulation scripts to test the city rail signal system to be tested.
It should be noted that, in an actual application process, the script generation application program may further perform a packaging process on the multiple test scripts, the multiple configuration information files, the simulation script, and the finger configuration file to obtain a target data packet, and generate a corresponding batch processing command, so that after the second terminal device runs the batch processing command, the target data packet may be downloaded at the first terminal device, and the target data packet is decompressed to obtain the multiple test scripts, the multiple configuration information files, the simulation script, and the finger configuration file, which is not specifically limited in the embodiment of the present application.
It should be noted that, in this embodiment of the application, if the script generation application generates the network communication configuration file in step 204, the script generation application needs to transmit the network communication configuration file to the second terminal device at the same time of transmitting the plurality of test scripts, the plurality of configuration information files, the simulation script, and the finger configuration file to the second terminal device, and this embodiment of the application is not particularly limited.
In order to achieve the above object, according to another aspect of the present application, an embodiment of the present application further provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the test script generation method described above.
In order to achieve the above object, according to another aspect of the present application, an embodiment of the present application further provides a test script generating apparatus, where the apparatus includes a storage medium; and one or more processors, the storage medium coupled with the processors, the processors configured to execute program instructions stored in the storage medium; and when the program instruction runs, the test script generation method is executed.
Further, as an implementation of the method shown in fig. 1 and fig. 2, another embodiment of the present application further provides a test script generating device, where the test script generating device is applied to a first terminal device. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device is applied to automatically generate a test script used by an integrated test platform, and specifically as shown in fig. 3, the device includes:
a first obtaining unit 301, configured to obtain a plurality of target data tags corresponding to a target test item;
a downloading unit 302, configured to download a plurality of target project data files at a target server according to a plurality of target data tags;
a first generating unit 303, configured to update a preset configuration direction file according to the plurality of target item data files, and generate a plurality of test scripts and a configuration information file corresponding to each test script according to the plurality of target item files and the updated preset configuration direction file, where data that the corresponding test script needs to call is recorded in the configuration information file.
Further, as shown in fig. 4, the first obtaining unit 301 includes:
a receiving module 3011, configured to receive a target issue list number corresponding to the target test item;
the searching module 3012 is configured to search the target issue ticket according to the target issue ticket number;
an analyzing module 3013, configured to analyze the target issue ticket to obtain a plurality of data tags recorded in the target issue ticket;
an output module 3014, configured to output and display a plurality of data tags;
a first determining module 3015, configured to determine, when a tag confirmation instruction is received, the plurality of data tags as a plurality of target data tags;
a second determining module 3016, configured to determine, when a tag supplement instruction is received, at least one data tag carried in the tag supplement instruction and multiple data tags recorded in the target issue ticket as multiple target data tags.
Further, as shown in fig. 4, the downloading unit 302 includes:
a downloading module 3021, configured to download a plurality of target item data packages at the target server according to a plurality of the target data tags;
a storage module 3022, configured to store a plurality of target item data packets in a local storage space;
a decompression module 3023, configured to decompress a plurality of the target project data packets to obtain a plurality of target project data folders;
an extracting module 3024, configured to extract a plurality of the target project data files from a plurality of the target project data folders.
Further, as shown in fig. 4, the plurality of target item data files include a vehicle-mounted description file, and vehicle-mounted device information corresponding to a target vehicle-mounted device is recorded in the vehicle-mounted description file; the tag confirmation instruction and the tag supplement instruction carry platform information corresponding to a target integrated test platform; the first generation unit 303 includes:
the first updating module 3031 is configured to update a preset vehicle configuration file according to the vehicle-mounted device information;
a creating module 3032, configured to create a configuration source file directory;
a storing module 3033, configured to store the plurality of target item data files, the updated preset vehicle configuration file, and the plurality of preset general configuration files in the configuration source file directory;
a second updating module 3034, configured to update the preset configuration direction file according to the configuration source file directory;
a generating module 3035, configured to generate a plurality of test scripts and configuration information files corresponding to each test script according to the configuration source file directory and the updated preset configuration direction file;
a third updating module 3036, configured to update the plurality of test scripts according to the platform information.
Further, as shown in fig. 4, the apparatus further includes:
a second obtaining unit 304, configured to obtain device information of a real device corresponding to each test script;
a second generating unit 305, configured to generate device information of the simulation device corresponding to each test script according to the device information of the real device corresponding to each test script;
a third generating unit 306, configured to generate a simulation script according to a mapping relationship between device information of real devices and device information of simulation devices corresponding to each test script;
a third obtaining unit 307, configured to obtain, according to the target release order number, a target device model library version corresponding to the target test item;
an updating unit 308, configured to update the plurality of test scripts and the simulation scripts according to the target device model library version.
Further, as shown in fig. 4, the apparatus further includes:
a fourth obtaining unit 309, configured to obtain, according to the vehicle-mounted specification file, I/O code bit information corresponding to the target vehicle-mounted device;
and a fourth generating unit 310 for generating a finger configuration file according to the I/O code bit information.
Further, as shown in fig. 4, the apparatus further includes:
a fifth generation unit 311 for generating a batch processing command;
a sending unit 312, configured to send the batch processing command to a second terminal device, where the target integrated test platform operates in the second terminal device;
a control unit 313, configured to control the second terminal device to run the batch processing command, so as to control the second terminal device to update a local storage space according to the plurality of configuration information files, load the finger configuration file, and load the plurality of test scripts and the plurality of simulation scripts after downloading the plurality of test scripts, the plurality of configuration information files, the simulation script, and the finger configuration file at the first terminal device.
Compared with a test script used by a test worker for compiling an integrated test platform according to work experience in the prior art, the test script generating method and the test script generating device can download a plurality of target project data files at a target server according to a plurality of target data labels after the script generating application program obtains the plurality of target data labels corresponding to target test projects, update a preset configuration pointing file according to the plurality of target project data files, and generate a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file. After the script generation application program obtains the plurality of target data labels corresponding to the target test items, the script generation application program can automatically obtain a plurality of target item data files used when the plurality of test scripts are generated according to the plurality of target data labels, and automatically generate a plurality of test scripts corresponding to the target test items according to the target item data recorded in the plurality of target item data files, so that the working efficiency and the accuracy of generating the test scripts can be effectively improved.
The test script generating device comprises a processor and a memory, wherein the first acquiring unit, the downloading unit, the first generating unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the test script used by the integrated test platform is automatically generated by adjusting the kernel parameters.
The embodiment of the application provides a storage medium, which includes a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the test script generation method.
The storage medium may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the application also provides a test script generating device, which comprises a storage medium; and one or more processors, the storage medium coupled with the processors, the processors configured to execute program instructions stored in the storage medium; and when the program instruction runs, the test script generation method is executed.
The embodiment of the application provides a first terminal device, the first terminal device includes a processor, a memory and a program stored on the memory and capable of running on the processor, and the processor implements the following steps when executing the program:
acquiring a plurality of target data labels corresponding to a target test item;
downloading a plurality of target project data files at a target server according to a plurality of the target data tags;
updating a preset configuration pointing file according to the target project data files, and generating a plurality of test scripts and configuration information files corresponding to the test scripts according to the target project data files and the updated preset configuration pointing file, wherein the configuration information files record data which the corresponding test scripts need to call.
Further, the obtaining of the plurality of target data tags corresponding to the target test item includes:
receiving a target issue list number corresponding to the target test item, and searching a target issue list according to the target issue list number;
analyzing the target issue list to obtain a plurality of data labels recorded in the target issue list;
outputting and displaying a plurality of data labels;
if a tag confirmation instruction is received, determining the plurality of data tags as a plurality of target data tags;
if a tag supplement instruction is received, determining at least one data tag carried in the tag supplement instruction and a plurality of data tags recorded in the target issue list as a plurality of target data tags.
Further, the downloading a plurality of target project data files at a target server according to a plurality of the target data tags includes:
downloading a plurality of target project data packets at the target server according to the plurality of target data tags, and storing the plurality of target project data packets into a local storage space;
decompressing the plurality of target project data packets to obtain a plurality of target project data folders;
extracting a plurality of the target project data files from a plurality of the target project data folders.
Further, the plurality of target project data files comprise a vehicle-mounted description file, and vehicle-mounted equipment information corresponding to target vehicle-mounted equipment is recorded in the vehicle-mounted description file; the tag confirmation instruction and the tag supplement instruction carry platform information corresponding to a target integrated test platform; the updating a preset configuration pointing file according to the plurality of target project data files, and generating a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file, includes:
updating a preset vehicle configuration file according to the vehicle-mounted equipment information;
creating a configuration source file directory, and storing a plurality of target project data files, the updated preset vehicle configuration files and a plurality of preset general configuration files into the configuration source file directory;
updating the preset configuration pointing file according to the configuration source file directory;
generating a plurality of test scripts and configuration information files corresponding to each test script according to the configuration source file directory and the updated preset configuration pointing file;
and updating the plurality of test scripts according to the platform information.
Further, the method further comprises:
acquiring equipment information of real equipment corresponding to each test script;
generating equipment information of the simulation equipment corresponding to each test script according to the equipment information of the real equipment corresponding to each test script;
generating a simulation script according to the mapping relation between the equipment information of the real equipment and the equipment information of the simulation equipment corresponding to each test script;
acquiring a target equipment model library version corresponding to the target test item according to the target release order number;
and updating the plurality of test scripts and the simulation scripts according to the target equipment model library version.
Further, the method further comprises:
acquiring I/O code bit information corresponding to the target vehicle-mounted equipment according to the vehicle-mounted instruction file;
and generating a finger configuration file according to the I/O code bit information.
Further, the method further comprises:
generating a batch processing command;
sending the batch processing command to second terminal equipment, wherein the target integrated test platform runs in the second terminal equipment;
and controlling the second terminal equipment to run the batch processing command so as to control the second terminal equipment to update a local storage space according to the plurality of configuration information files, load the finger configuration file and load the plurality of test scripts and the simulation scripts after the plurality of test scripts, the plurality of configuration information files, the simulation scripts and the finger configuration files are downloaded at the first terminal equipment.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: acquiring a plurality of target data labels corresponding to a target test item; downloading a plurality of target project data files at a target server according to a plurality of the target data tags; updating a preset configuration pointing file according to the target project data files, and generating a plurality of test scripts and configuration information files corresponding to the test scripts according to the target project data files and the updated preset configuration pointing file, wherein the configuration information files record data which the corresponding test scripts need to call.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (16)

1. A test script generation method is applied to a first terminal device and comprises the following steps:
acquiring a plurality of target data labels corresponding to a target test item;
downloading a plurality of target project data files at a target server according to a plurality of the target data tags;
updating a preset configuration pointing file according to the target project data files, and generating a plurality of test scripts and configuration information files corresponding to the test scripts according to the target project data files and the updated preset configuration pointing file, wherein the configuration information files record data which the corresponding test scripts need to call.
2. The method of claim 1, wherein the obtaining a plurality of target data tags corresponding to target test items comprises:
receiving a target issue list number corresponding to the target test item, and searching a target issue list according to the target issue list number;
analyzing the target issue list to obtain a plurality of data labels recorded in the target issue list;
outputting and displaying a plurality of data labels;
if a tag confirmation instruction is received, determining the plurality of data tags as a plurality of target data tags;
if a tag supplement instruction is received, determining at least one data tag carried in the tag supplement instruction and a plurality of data tags recorded in the target issue list as a plurality of target data tags.
3. The method of claim 1, wherein downloading a plurality of target item data files at a target server according to a plurality of the target data tags comprises:
downloading a plurality of target project data packets at the target server according to the plurality of target data tags, and storing the plurality of target project data packets into a local storage space;
decompressing the plurality of target project data packets to obtain a plurality of target project data folders;
extracting a plurality of the target project data files from a plurality of the target project data folders.
4. The method according to claim 2, wherein the plurality of target project data files comprise an on-board description file, and on-board device information corresponding to a target on-board device is recorded in the on-board description file; the tag confirmation instruction and the tag supplement instruction carry platform information corresponding to a target integrated test platform; the updating a preset configuration pointing file according to the plurality of target project data files, and generating a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file, includes:
updating a preset vehicle configuration file according to the vehicle-mounted equipment information;
creating a configuration source file directory, and storing a plurality of target project data files, the updated preset vehicle configuration files and a plurality of preset general configuration files into the configuration source file directory;
updating the preset configuration pointing file according to the configuration source file directory;
generating a plurality of test scripts and configuration information files corresponding to each test script according to the configuration source file directory and the updated preset configuration pointing file;
and updating the plurality of test scripts according to the platform information.
5. The method of claim 4, further comprising:
acquiring equipment information of real equipment corresponding to each test script;
generating equipment information of the simulation equipment corresponding to each test script according to the equipment information of the real equipment corresponding to each test script;
generating a simulation script according to the mapping relation between the equipment information of the real equipment and the equipment information of the simulation equipment corresponding to each test script;
acquiring a target equipment model library version corresponding to the target test item according to the target release order number;
and updating the plurality of test scripts and the simulation scripts according to the target equipment model library version.
6. The method of claim 5, further comprising:
acquiring I/O code bit information corresponding to the target vehicle-mounted equipment according to the vehicle-mounted instruction file;
and generating a finger configuration file according to the I/O code bit information.
7. The method of claim 6, further comprising:
generating a batch processing command;
sending the batch processing command to second terminal equipment, wherein the target integrated test platform runs in the second terminal equipment;
and controlling the second terminal equipment to run the batch processing command so as to control the second terminal equipment to update a local storage space according to the plurality of configuration information files, load the finger configuration file and load the plurality of test scripts and the simulation scripts after the plurality of test scripts, the plurality of configuration information files, the simulation scripts and the finger configuration files are downloaded at the first terminal equipment.
8. A test script generation device is applied to a first terminal device, and comprises:
the first acquisition unit is used for acquiring a plurality of target data labels corresponding to the target test items;
a downloading unit, configured to download a plurality of target project data files at a target server according to a plurality of target data tags;
and the first generating unit is used for updating a preset configuration pointing file according to the plurality of target project data files, and generating a plurality of test scripts and configuration information files corresponding to each test script according to the plurality of target project files and the updated preset configuration pointing file, wherein the configuration information files record data which the corresponding test scripts need to call.
9. The apparatus of claim 8, wherein the first obtaining unit comprises:
the receiving module is used for receiving a target release order number corresponding to the target test item;
the searching module is used for searching the target issue list according to the target issue list number;
the analysis module is used for analyzing the target issue list to obtain a plurality of data labels recorded in the target issue list;
the output module is used for outputting and displaying the data labels;
a first determining module, configured to determine, when a tag confirmation instruction is received, the plurality of data tags as a plurality of target data tags;
a second determining module, configured to determine, when a tag supplement instruction is received, at least one data tag carried in the tag supplement instruction and the plurality of data tags recorded in the target issue ticket as a plurality of target data tags.
10. The apparatus of claim 8, wherein the downloading unit comprises:
a download module for downloading a plurality of target project data packages at the target server according to the plurality of target data tags;
the storage module is used for storing a plurality of target project data packets into a local storage space;
the decompression module is used for decompressing the target project data packets to obtain a plurality of target project data folders;
an extraction module to extract the plurality of target project data files from the plurality of target project data folders.
11. The apparatus according to claim 9, wherein the plurality of target item data files include an in-vehicle profile in which in-vehicle device information corresponding to a target in-vehicle device is recorded; the tag confirmation instruction and the tag supplement instruction carry platform information corresponding to a target integrated test platform; the first generation unit includes:
the first updating module is used for updating a preset vehicle configuration file according to the vehicle-mounted equipment information;
the creating module is used for creating a configuration source file directory;
the storage module is used for storing the target project data files, the updated preset vehicle configuration files and the preset general configuration files into the configuration source file directory;
the second updating module is used for updating the preset configuration pointing file according to the configuration source file directory;
the generating module is used for generating a plurality of test scripts and configuration information files corresponding to each test script according to the configuration source file directory and the updated preset configuration direction file;
and the third updating module is used for updating the plurality of test scripts according to the platform information.
12. The apparatus of claim 11, further comprising:
the second obtaining unit is used for obtaining the equipment information of the real equipment corresponding to each test script;
the second generation unit is used for generating the equipment information of the simulation equipment corresponding to each test script according to the equipment information of the real equipment corresponding to each test script;
the third generating unit is used for generating simulation scripts according to the mapping relation between the equipment information of the real equipment and the equipment information of the simulation equipment, which correspond to each test script;
the third acquisition unit is used for acquiring the target equipment model library version corresponding to the target test item according to the target release order number;
and the updating unit is used for updating the plurality of test scripts and the simulation scripts according to the target equipment model library version.
13. The apparatus of claim 12, further comprising:
the fourth acquisition unit is used for acquiring the I/O code bit information corresponding to the target vehicle-mounted equipment according to the vehicle-mounted description file;
and the fourth generating unit is used for generating a finger configuration file according to the I/O code bit information.
14. The apparatus of claim 13, further comprising:
a fifth generation unit configured to generate a batch processing command;
the sending unit is used for sending the batch processing command to second terminal equipment, wherein the target integrated test platform runs in the second terminal equipment;
and the control unit is used for controlling the second terminal equipment to run the batch processing command so as to control the second terminal equipment to update a local storage space according to the plurality of configuration information files, load the finger configuration file and load the plurality of test scripts and the simulation scripts after the plurality of test scripts, the plurality of configuration information files, the simulation scripts and the finger configuration files are downloaded at the first terminal equipment.
15. A storage medium comprising a stored program, wherein the program, when executed, controls a device on which the storage medium is located to execute the test script generation method according to any one of claims 1 to 7.
16. The test script generating device is characterized in that the vehicle control unit comprises a storage medium; and one or more processors, the storage medium coupled with the processors, the processors configured to execute program instructions stored in the storage medium; the program instructions when executed perform the test script generation method of any one of claims 1 to 7.
CN202011585884.3A 2020-12-29 2020-12-29 Test script generation method and device Active CN112286829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011585884.3A CN112286829B (en) 2020-12-29 2020-12-29 Test script generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011585884.3A CN112286829B (en) 2020-12-29 2020-12-29 Test script generation method and device

Publications (2)

Publication Number Publication Date
CN112286829A true CN112286829A (en) 2021-01-29
CN112286829B CN112286829B (en) 2021-04-13

Family

ID=74426604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011585884.3A Active CN112286829B (en) 2020-12-29 2020-12-29 Test script generation method and device

Country Status (1)

Country Link
CN (1) CN112286829B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844190A (en) * 2015-12-07 2017-06-13 中兴通讯股份有限公司 test script automatic generation method and device
CN113253707A (en) * 2021-06-02 2021-08-13 卡斯柯信号(北京)有限公司 System integration testing method and device for novel train control vehicle-mounted equipment
CN113740077A (en) * 2021-09-13 2021-12-03 广州文远知行科技有限公司 Vehicle chassis testing method, device, equipment and storage medium
CN113852516A (en) * 2021-08-27 2021-12-28 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for generating switch diagnostic program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130086420A1 (en) * 2011-10-03 2013-04-04 Verizon Patent And Licensing, Inc. Method and system for implementing a test automation results importer
CN108052451A (en) * 2017-12-26 2018-05-18 网易(杭州)网络有限公司 Test method, system, test server, test terminal and storage medium
CN111290933A (en) * 2018-12-06 2020-06-16 中兴通讯股份有限公司 Software automation software testing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130086420A1 (en) * 2011-10-03 2013-04-04 Verizon Patent And Licensing, Inc. Method and system for implementing a test automation results importer
CN108052451A (en) * 2017-12-26 2018-05-18 网易(杭州)网络有限公司 Test method, system, test server, test terminal and storage medium
CN111290933A (en) * 2018-12-06 2020-06-16 中兴通讯股份有限公司 Software automation software testing method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844190A (en) * 2015-12-07 2017-06-13 中兴通讯股份有限公司 test script automatic generation method and device
CN106844190B (en) * 2015-12-07 2022-06-07 中兴通讯股份有限公司 Automatic test script generation method and device
CN113253707A (en) * 2021-06-02 2021-08-13 卡斯柯信号(北京)有限公司 System integration testing method and device for novel train control vehicle-mounted equipment
CN113253707B (en) * 2021-06-02 2021-10-19 卡斯柯信号(北京)有限公司 System integration testing method and device for novel train control vehicle-mounted equipment
CN113852516A (en) * 2021-08-27 2021-12-28 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for generating switch diagnostic program
CN113852516B (en) * 2021-08-27 2023-06-02 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for generating switch diagnostic program
CN113740077A (en) * 2021-09-13 2021-12-03 广州文远知行科技有限公司 Vehicle chassis testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112286829B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN112286829B (en) Test script generation method and device
CN104793946A (en) Application deployment method and system based on cloud computing platform
CN103077043B (en) A kind of method of quick Start-up and operating performance Linux
CN109614325B (en) Method and device for determining control attribute, electronic equipment and storage medium
CN111026080A (en) Hardware-in-loop test method and device for controller
CN107015903B (en) Interface test program generation method and device and electronic equipment
US10990507B2 (en) System and method for provisioning a virtual machine test environment
CN115686606A (en) Method, device, system and medium for displaying item dependency tree
CN114116134A (en) Intelligent contract deployment and execution method, equipment and storage medium
CN114237754A (en) Data loading method and device, electronic equipment and storage medium
CN111124525A (en) Website function implementation method and device
CN112835587A (en) Compiling integration method and device
CN110806891B (en) Method and device for generating software version of embedded device
WO2010067119A1 (en) Data storage apparatus
CN113326211B (en) Test case generation method and device
CN111930387B (en) Integration method and device of integration package, electronic equipment and storage medium
JP6717140B2 (en) Analysis program, analysis method, and analysis device
CN107766228B (en) Multi-language-based automatic testing method and device
CN109062789B (en) Continuous integration method, device and equipment and readable storage medium
CN114816816A (en) Collapse stack information processing method, device, equipment and storage medium
CN109144575A (en) Device, method, electronic equipment and the memory of cross operating system operation application
CN113504904A (en) User-defined function implementation method and device, computer equipment and storage medium
CN113254040A (en) Front-end framework updating method, device, equipment and storage medium
CN110554867B (en) Application processing method and device
CN113071541B (en) Method and device for generating trackside configuration file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant