Verification program management method and device, equipment, medium and program product

Through cloud server management of test resource files and verification programs, resource sharing and online editing and execution are realized, the problem of low efficiency in verification program management in HIL tests is solved and the testing efficiency of vehicle ECU is improved.

CN119441005APending Publication Date: 2025-02-14CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411533094.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When performing hardware in-loop (HIL) testing, the management of verification procedures in the prior art results in a reduced test efficiency of the vehicle ECU.

Method used

Through cloud servers, the testing resource files and verification programs are uniformly managed, resource sharing and online editing and execution of verification programs are realized. The client obtains configuration information in response to configuration operations and sends it to the cloud server. The cloud server distributes configuration information and test resource files to the upper computer to realize the online issuance and execution of the verification program.

Benefits of technology

It improves the efficiency of verification program development and verification of vehicle ECUs, solves the problem that verification programs cannot be edited and executed online, and reduces the risk of errors in local management verification program files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441005A_ABST
    Figure CN119441005A_ABST
Patent Text Reader

Abstract

The invention provides a verification program management method, a verification program management device, verification program management equipment, a medium and a program product, and relates to the technical field of testing. Obtaining configuration information including a file identifier of the target test resource file, a tool identifier of the target test tool and an equipment identifier of an upper computer running on the target test rack, and sending the configuration information to a cloud server; the cloud server sends configuration information and a target test resource file to an upper computer, so that the upper computer calls an execution framework to load configuration; the client sends an execution instruction to the cloud server in response to the execution instruction for a target verification program of the target test bench, and the verification program comprises a first verification program obtained through editing of the client; and the cloud server exports and sends the target verification program to the upper computer, so that the upper computer calls the execution framework to execute the target verification program. According to the invention, the test efficiency of the vehicle ECU can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing technology, and in particular to a verification program management method, device, equipment, medium and program product. Background Art

[0002] Hardware in the Loop (HIL) testing simulates the operating state of the controlled object by running a simulation model through a real-time processor, connecting simulation devices and hardware to simulate the actual environment, and conducts a systematic and comprehensive test of the vehicle's Electronic Control Unit (ECU).

[0003] At present, when conducting HIL testing, testers usually edit the verification program of the vehicle ECU locally through ECU-TEST (an automated testing software). After editing, the verification program is copied or transferred to the host computer running on the HIL bench in the test environment, and then the verification program is executed by the host computer in the test environment. However, managing the verification program in the above way reduces the test efficiency of the vehicle ECU. Summary of the invention

[0004] The purpose of the present invention is to provide a verification program management method, device, equipment, medium and program product to solve the problem of reducing the test efficiency of vehicle ECU by managing the verification program in the current way.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0006] A verification program management method is applied to a cloud server, the verification program management method comprising: receiving configuration information sent by a client, the configuration information is obtained by the client in response to a configuration operation on a target test bench, the configuration information includes a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; sending the configuration information and the target test resource file to the host computer, so that the host computer calls an execution framework to load the configuration according to the configuration information; receiving an execution instruction for a target verification program for the target test bench sent by the client, the verification program including a first verification program obtained by editing the client; exporting the target verification program, and sending the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool.

[0007] According to the above-mentioned technical means, since the test resource files are uniformly managed through the cloud server, resource sharing of the test resource files can be realized, and the testers do not need to manually transfer the test resource files, which helps to improve the test efficiency; since the ability to edit the verification program online can be provided through the client, the edited verification program is stored on the cloud server, the verification program can be shared online, reducing the risk of errors in the local management of the verification program files; and the verification program can be sent online through the cloud server for execution, which can effectively improve the development and verification efficiency of the verification program of the vehicle ECU and solve the problem that the verification program of the vehicle ECU cannot be edited and executed online.

[0008] Furthermore, the first verification program is obtained in the following manner: receiving editing information sent by the client, the editing information including basic steps used to construct the first verification program and variable information in the target test resource file referenced in the basic steps; based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, storing the editing information to obtain the first verification program, wherein the dialog box information of the basic steps is stored in a preset storage format.

[0009] Furthermore, the verification program also includes a second verification program uploaded by the client, and the verification program management method also includes: receiving a target file corresponding to the second verification program sent by the client, the target file containing variables defined in the second verification program, a mapping relationship between the variables and their storage paths, and operation steps for the variables; parsing the target file to obtain variables, mapping relationships, and operation steps; storing the variables, mapping relationships, and operation steps to obtain the second verification program.

[0010] Further, exporting the target verification program includes: exporting target data corresponding to the target verification program, the target data including target variables, mapping relationships between target variables and storage paths of target variables, target steps and hierarchical relationships between target steps; based on the target data, generating a target verification program in a preset format.

[0011] Furthermore, based on the target data, a target verification program in a preset format is generated, including: converting the infix expression in the target data into a reverse Polish notation; converting the reverse Polish notation into an expression binary tree; and generating a target verification program in a preset format by traversing the expression binary tree in pre-order.

[0012] Furthermore, the verification program management method also includes: receiving a test resource file sent by a client; parsing the test resource file to obtain variable information in the test resource file; and storing the variable information.

[0013] Furthermore, the test resource file includes a model file, and the test resource file is parsed to obtain variable information in the test resource file, including: decompressing the model file to obtain a system description file; obtaining a variable description file based on the system description file; parsing the variable description file to obtain variable information in the model file.

[0014] Furthermore, after sending the target verification program to the host computer, the verification program management method also includes: receiving a verification result corresponding to the target verification program sent by the host computer; generating a verification report according to the verification result; and sending the verification report to the client so that the client displays the verification report.

[0015] A verification program management method, characterized in that it is applied to a client, and the verification program management method includes: in response to a configuration operation for a target test bench, obtaining configuration information, the configuration information including a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; sending the configuration information to a cloud server, so that the cloud server sends the configuration information and the target test resource file to the host computer, so that the host computer calls an execution framework to load the configuration according to the configuration information; in response to an execution instruction for a target verification program for the target test bench, sending an execution instruction to the cloud server, so that the cloud server exports the target verification program, and sends the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool, and the verification program includes a first verification program obtained by editing the client.

[0016] Furthermore, the first verification program is obtained in the following manner: in response to an editing operation on the first verification program, obtaining editing information, the editing information including basic steps used to construct the first verification program and variable information in a target test resource file referenced in the basic steps; sending the editing information to a cloud server so that the cloud server stores the editing information based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, thereby obtaining the first verification program, wherein the dialog box information of the basic steps is stored in a preset storage format.

[0017] Furthermore, the verification program also includes a second verification program uploaded through the client, and the verification program management method also includes: in response to an upload instruction for a target file corresponding to the second verification program, obtaining the target file, the target file including variables defined in the second verification program, a mapping relationship between the variables and their storage paths, and operation steps for the variables; sending the target file to a cloud server so that the cloud server parses the target file, obtains variables, mapping relationships and operation steps, and stores the variables, mapping relationships and operation steps to obtain the second verification program.

[0018] Furthermore, the verification program management method also includes: obtaining the test resource file in response to an upload instruction for the test resource file; sending the test resource file to the cloud server so that the cloud server parses the test resource file, obtains variable information in the test resource file, and stores the variable information.

[0019] Furthermore, after sending the execution instruction to the cloud server, the verification program management method also includes: receiving a verification report sent by the cloud server, the verification report is generated by the cloud server according to the verification result corresponding to the target verification program sent by the host computer; and displaying the verification report.

[0020] A verification program management device is applied to a cloud server, and the verification program management device includes: a first receiving module, which is used to receive configuration information sent by a client, the configuration information is obtained by the client in response to a configuration operation on a target test bench, and the configuration information includes a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; a sending module, which is used to send the configuration information and the target test resource file to the host computer, so that the host computer calls an execution framework to load the configuration according to the configuration information; a second receiving module, which is used to receive an execution instruction for a target verification program for the target test bench sent by the client, and the verification program includes a first verification program obtained by editing the client; a processing module, which is used to export the target verification program and send the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool.

[0021] Furthermore, the verification program management device also includes a first acquisition module, which is used to obtain the first verification program in the following manner: receiving editing information sent by the client, the editing information including basic steps used to construct the first verification program and variable information in the target test resource file referenced in the basic steps; based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, storing the editing information to obtain the first verification program, wherein the dialog box information of the basic steps is stored in a preset storage format.

[0022] Furthermore, the verification program also includes a second verification program uploaded by the client, and the verification program management device also includes a second acquisition module, which is used to: receive a target file corresponding to the second verification program sent by the client, the target file containing variables defined in the second verification program, a mapping relationship between the variables and the storage path of the variables, and operation steps for the variables; parse the target file to obtain variables, mapping relationships and operation steps; store the variables, mapping relationships and operation steps to obtain the second verification program.

[0023] Furthermore, when the processing module is used to export a target verification program, it is specifically used to: export target data corresponding to the target verification program, the target data including target variables, a mapping relationship between target variables and storage paths of target variables, target steps, and a hierarchical relationship between target steps; based on the target data, generate a target verification program in a preset format.

[0024] Furthermore, when the processing module is used to generate a target verification program in a preset format based on target data, it is specifically used to: convert the infix expression in the target data into a reverse Polish notation; convert the reverse Polish notation into an expression binary tree; and generate a target verification program in a preset format by traversing the expression binary tree in pre-order.

[0025] Furthermore, the verification program management device also includes a third receiving module, which is used to: receive a test resource file sent by the client; parse the test resource file to obtain variable information in the test resource file; and store the variable information.

[0026] Furthermore, the test resource file includes a model file. When the third receiving module is used to parse the test resource file and obtain the variable information in the test resource file, it is specifically used to: decompress the model file to obtain the system description file; obtain the variable description file according to the system description file; parse the variable description file to obtain the variable information in the model file.

[0027] Furthermore, the processing module is also used to: after sending the target verification program to the host computer, receive the verification result corresponding to the target verification program sent by the host computer; generate a verification report according to the verification result; and send the verification report to the client so that the client displays the verification report.

[0028] A verification program management device is applied to a client, and the verification program management device includes: a first acquisition module, which is used to respond to a configuration operation for a target test bench and obtain configuration information, the configuration information including a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; a first sending module, which is used to send the configuration information to a cloud server, so that the cloud server sends the configuration information and the target test resource file to the host computer, so that the host computer calls an execution framework to load the configuration according to the configuration information; a second sending module, which is used to respond to an execution instruction for a target verification program for the target test bench, and send an execution instruction to the cloud server, so that the cloud server exports the target verification program, and sends the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool, and the verification program includes a first verification program obtained by editing on the client.

[0029] Furthermore, the verification program management device also includes a second acquisition module, which is used to obtain the first verification program in the following manner: in response to an editing operation on the first verification program, obtaining editing information, the editing information including basic steps used to construct the first verification program and variable information in a target test resource file referenced in the basic steps; sending the editing information to a cloud server, so that the cloud server stores the editing information based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, to obtain the first verification program, wherein the dialog box information of the basic steps is stored in a preset storage format.

[0030] Furthermore, the verification program also includes a second verification program uploaded through the client, and the verification program management device also includes a third acquisition module, which is used to: respond to an upload instruction for a target file corresponding to the second verification program, obtain the target file, the target file contains variables defined by the second verification program, a mapping relationship between the variables and the storage path of the variables, and operation steps for the variables; send the target file to the cloud server so that the cloud server parses the target file, obtains the variables, mapping relationships and operation steps, and stores the variables, mapping relationships and operation steps to obtain the second verification program.

[0031] Furthermore, the verification program management device also includes a third sending module, which is used to: obtain the test resource file in response to the upload instruction for the test resource file; send the test resource file to the cloud server so that the cloud server parses the test resource file, obtains the variable information in the test resource file, and stores the variable information.

[0032] Furthermore, the verification program management device also includes a receiving module, which is used to: receive a verification report sent by the cloud server after the second sending module sends an execution instruction to the cloud server, the verification report is generated by the cloud server based on the verification result corresponding to the target verification program sent by the host computer; and display the verification report.

[0033] A verification program management system includes: a cloud server and a client; the cloud server is used to execute the verification program management method of the cloud server as described above in the present invention; the client is used to execute the verification program management method of the client as described above in the present invention.

[0034] An electronic device comprises: a processor and a memory connected to the processor in communication; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the verification program management method as described above in the present invention.

[0035] A computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed, the verification program management method of the present invention is implemented.

[0036] A computer program product includes a computer program, and when the computer program is executed, the verification program management method as described above in the present invention is implemented.

[0037] Beneficial effects of the present invention: The verification program management method, apparatus, equipment, medium and program product provided by the present invention obtain configuration information through a client in response to a configuration operation on a target test bench, the configuration information including a file identifier of a target test resource file, a tool identifier of a target test tool and a device identifier of a host computer running on the target test bench, and send the configuration information to a cloud server; the cloud server sends the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information, thereby realizing resource sharing of the target test resource file without the need for testers to manually transfer the target test resource file, which helps to improve testing efficiency. The client responds to the execution instruction of the target verification program for the target test bench by sending the execution instruction to the cloud server; the cloud server exports the target verification program and sends the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool; wherein the verification program includes a first verification program obtained by editing the client, so as to realize online editing and execution of the target verification program, solve the problem that the verification program of the vehicle ECU can only be edited and executed locally, can effectively improve the testing efficiency of the vehicle ECU, and supports online sharing of the verification program, which can reduce the risk of errors in local management of the verification program file. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present invention;

[0039] Figure 2 A flowchart of a verification program management method provided by an embodiment of the present invention;

[0040] Figure 3 A schematic diagram of storing dialog information in JSON format provided by an embodiment of the present invention;

[0041] Figure 4 A flowchart of converting an infix expression into an expression binary tree provided by an embodiment of the present invention;

[0042] Figure 5 A flowchart of traversing an expression binary tree provided by an embodiment of the present invention;

[0043] Figure 6 A flowchart for parsing a model file provided by an embodiment of the present invention;

[0044] Figure 7A flowchart of a host computer executing a verification program provided by an embodiment of the present invention;

[0045] Figure 8 A schematic diagram of the structure of a verification program management device provided by an embodiment of the present invention;

[0046] Fig. 9 A schematic diagram of the structure of a verification program management device provided by another embodiment of the present invention;

[0047] FIG. 10( a ) is a schematic diagram of a verification program management system provided by an embodiment of the present invention;

[0048] FIG10( b) is a schematic diagram of a verification program management system provided by another embodiment of the present invention;

[0049] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0051] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0052] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and corresponding operation entrances shall be provided for users to choose to authorize or refuse.

[0053] HIL testing simulates the operating state of the controlled object by running a simulation model through a real-time processor, connects the simulation device (model) and the hardware (the vehicle's ECU under test) to simulate the actual environment, and conducts a systematic and comprehensive test on the ECU under test. HIL testing plays a vital role in the ECU development process. It can reduce the number of real vehicle tests and quickly verify the functions of the ECU under test, thereby improving the software quality of the ECU while reducing costs. The verification of vehicle ECUs is mainly carried out by modifying the values ​​of various variables in the HIL bench and then verifying whether the results produced after the modification meet expectations. It is a process to ensure that the ECU can work normally under various operating conditions and meet the design requirements.

[0054] At present, the verification program of vehicle ECU is usually developed using the automated test software ECU-TEST. ECU-TEST provides a concise and clear test case management interface, and has a large number of basic test steps built in. Testers can build corresponding test cases through graphical programming methods such as dragging and dropping steps to complete the development of the verification program. When performing HIL testing, testers copy or transfer the verification program from the local to the host computer running on the HIL bench in the test environment, and then execute the verification program through the host computer in the test environment. However, by managing the verification program in the above way, testers can only develop and execute the verification program locally. Even if the host computer is deployed on the local computer to call the relevant interface of ECU-TEST, they can only execute tasks and cannot directly edit and create the verification program on computers in other locations. This limitation makes the role of the host computer in the verification process relatively single. At the same time, testers also need to frequently switch between personal computers and laboratory test environments to edit and execute verification programs, resulting in the problem of reducing the test efficiency of vehicle ECUs and may also increase the risk of errors.

[0055] Based on the above problems, the present invention provides a verification program management method, which provides the ability to create and edit verification programs online through a client, and the edited verification programs are stored in a cloud server, so that the verification programs can be shared online, which can reduce the risk of errors in local management of verification program files; and the verification program can be issued online through a cloud server without the need to develop and execute the verification program on a local computer, wherein the test resource files needed to execute the verification program are also managed through the cloud server to achieve resource sharing. The present invention can effectively improve the development and verification efficiency of the verification program of the vehicle ECU, and solve the problem that the verification program of the vehicle ECU cannot be edited and executed online.

[0056] In the following, the application scenario of the solution provided by the present invention is firstly described by way of example.

[0057] Figure 1Schematic diagram of an application scenario provided by an embodiment of the present invention. Figure 1 As shown, in this application scenario, the cloud server connects various regions ( Figure 1 The host computer running on the test bench equipment in area A, area B and area C is taken as an example; according to the verification program management method provided by the present invention, the tester can edit the verification program online through the client to realize resource sharing of the verification program, and can send the verification program to the host computer running on the test bench equipment in the specified area through the remote sending function, and execute the target verification program through the host computer, thereby realizing the test of the ECU.

[0058] It should be noted that Figure 1 This is only a schematic diagram of an application scenario provided by an embodiment of the present invention. Figure 1 does not limit the equipment included in Figure 1 The positional relationship between the devices is limited.

[0059] The technical solution of the present invention is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0060] Figure 2 Flow chart of a verification program management method provided by an embodiment of the present invention. Figure 2 As shown, the method of the embodiment of the present invention includes:

[0061] S201. In response to a configuration operation on a target test bench, a client obtains configuration information, where the configuration information includes a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench.

[0062] In the embodiment of the present invention, the target test bench is, for example, a HIL bench, the target test resource file includes, for example, a model file and a bus file, and the target test tool includes, for example, a tool such as ControlDesk (a graphical user interface software for real-time control and simulation systems). It can be understood that the verification of the vehicle ECU is mainly carried out by modifying the values ​​of various variables in the HIL bench, and then verifying whether the results produced after the modification meet the expectations. Therefore, it is first necessary to obtain the variables to be read and written in the ECU to be verified, as well as the test tools for operating these variables. Specifically, the tester can upload the target test resource file and the target test tool to be used to the cloud server through the client, and the cloud server receives the target test resource file and the target test tool, and parses the file of the target test resource file. Taking the target test resource file as a model file as an example, after receiving the model file sent by the client, the cloud server decompresses the model file to obtain the system description file corresponding to the sub-model contained in the model file; according to the system description file, obtain the variable description (Traceability Record Configuration, TRC) file; parse the variable description file to obtain the variable information, and store the variable information in the database, so that the tester can edit the corresponding read and write steps based on the variable information. When storing variable information, the cloud server determines whether the same variable information already exists in the database. If the same variable information already exists, the variable information already in the database is updated. In addition, the cloud server can also provide a query interface to facilitate testers to select the corresponding model file when configuring the target test bench. For specific information on how to parse the model file, please refer to the subsequent embodiments.

[0063] In this step, for the target test bench, the tester configures the target test resource file and the corresponding target test tool to be used. Correspondingly, the client responds to the configuration operation for the target test bench and obtains configuration information, which includes the file identifier of the target test resource file, the tool identifier of the target test tool, and the device identifier of the host computer running on the target test bench.

[0064] S202: The client sends configuration information to the cloud server; correspondingly, the cloud server receives the configuration information sent by the client.

[0065] In this step, after obtaining the configuration information, the client sends the configuration information to the cloud server.

[0066] S203: The cloud server sends configuration information and target test resource files to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information.

[0067] Exemplarily, after receiving the configuration information sent by the client, the cloud server can export the configuration file in a set format according to the configuration information, and send the configuration file and the target test resource file to the host computer. Correspondingly, after receiving the configuration file and the target test resource file, the host computer can call the loading configuration interface of the execution framework according to the configuration information to complete the configuration loading. Among them, the execution framework is, for example, ECU-TEST or other similar programs. Since the configuration information is managed by the cloud server, configuration files of different formats can be exported according to the needs of different execution frameworks, so that the host computer can load the configuration. After the execution framework loads the configuration, it returns the loading result to the host computer, and the host computer sends the loading configuration result to the cloud server.

[0068] It is understandable that the tester first uploads the test resource file locally, and then the cloud server sends the test resource file required for the test to the host computer during execution. This process of uploading and then sending is not redundant. The specific reasons mainly include the following two aspects: (1) After the tester uploads the test resource file to the cloud server, the cloud server will first store the test resource file in the file server, and then parse the test resource file to obtain the corresponding variable information; if the tester does not upload, these variable information can only be obtained through the local tools of the host computer, and the development verification cannot be relieved of the dependence on local software or tools, resulting in reduced flexibility in the development process; (2) After the cloud server saves the test resource file, the verification task can be executed on any host computer without the tester manually transferring the test resource file, which can effectively improve the test efficiency.

[0069] S204. The client sends an execution instruction to the cloud server in response to the execution instruction of the target verification program for the target test bench; accordingly, the cloud server receives the execution instruction of the target verification program for the target test bench sent by the client, and the verification program includes a first verification program obtained by editing by the client.

[0070] Exemplarily, the tester can create a new verification program through the client and edit the verification program, so that the cloud server can obtain the first verification program obtained through the client editing, and the tester can view the edited first verification program through the client. The tester can also upload the existing local verification program to the cloud server through the client, so that the cloud server can obtain the second verification program. For how to obtain the first verification program and the second verification program, please refer to the subsequent embodiments. In this step, the target verification program may be the first verification program or the second verification program. Exemplarily, for the verification program stored in the cloud server, the tester can determine the target verification program for the target test bench through the client, and then trigger the execution instruction for the target verification program. The client responds to the execution instruction for the target verification program for the target test bench and sends the execution instruction to the cloud server. Accordingly, the cloud server receives the execution instruction for the target verification program for the target test bench sent by the client.

[0071] S205. The cloud server exports the target verification program and sends the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool.

[0072] In this step, for the verification program, the cloud server stores (such as through a database) the variables defined in the verification program, the mapping relationship between the variables and the storage path of the variables, and the operation steps of the variables, etc. Therefore, after receiving the execution instruction of the target verification program for the target test bench sent by the client, the cloud server needs to export the target verification program. Exemplarily, the cloud server can retrieve the variables, mapping relationships, steps and other information belonging to the target verification program in the database according to the identification of the target verification program, and then generate a target verification program in a preset format according to the information, and complete the export process of the target verification program. Among them, when exporting the steps, the hierarchical relationship between the steps will be retained; the target verification program is, for example, an extended markup language (eXtensible Markup Language, XML) file. It can be understood that XML is a markup language that represents data in a structured manner and is very suitable for describing data structures with nested relationships. In the verification program, the verification steps, the data and configuration information in the verification steps, etc. usually have complex nested relationships, and XML can clearly represent the nested relationships, making the test cases in the verification program easy to read and maintain. For how the cloud server specifically exports the target verification program, please refer to the subsequent embodiments.

[0073] In this step, after exporting the target verification program, the cloud server sends the target verification program to the host computer. Accordingly, the host computer can call the execution interface of the execution framework (such as ECU-TEST) to execute the target verification program based on the target test resource file and the target test tool.

[0074] Optionally, after the cloud server sends the target verification program to the host computer, the verification program management method provided by the embodiment of the present invention may also include: receiving the verification result corresponding to the target verification program sent by the host computer, generating a verification report based on the verification result, and sending the verification report to the client; the client receives the verification report sent by the cloud server and displays the verification report.

[0075] For example, the host computer calls the interface of ECU-TEST or other execution framework to execute the target verification program, and returns the verification result to the host computer after the target verification program is executed. After receiving the verification result, the host computer parses the verification result into information in a set format that can be received by the cloud, and reports the verification result to the cloud server. After receiving the verification result corresponding to the target verification program, the cloud server generates a verification report based on the verification result, and provides the verification report to the user through the client for viewing.

[0076] The verification program management method provided by the embodiment of the present invention, the client responds to the configuration operation for the target test bench, obtains configuration information, the configuration information includes the file identifier of the target test resource file, the tool identifier of the target test tool and the device identifier of the host computer running on the target test bench, and sends the configuration information to the cloud server; the cloud server sends the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information, realizes the resource sharing of the target test resource file, and does not require the tester to manually transfer the target test resource file, which helps to improve the test efficiency. The client responds to the execution instruction of the target verification program for the target test bench, sends the execution instruction to the cloud server; the cloud server exports the target verification program, and sends the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool; wherein the verification program includes the first verification program obtained by editing the client, realizes the online editing and execution of the target verification program, solves the problem that the verification program of the vehicle ECU can only be edited and executed locally, can effectively improve the test efficiency of the vehicle ECU, and supports the online sharing of the verification program, which can reduce the risk of errors in the local management of the verification program file.

[0077] Based on the above embodiment, optionally, the first verification program is obtained in the following manner: the client obtains editing information in response to an editing operation on the first verification program, the editing information including basic steps for constructing the first verification program and variable information in a target test resource file referenced in the basic steps, and sends the editing information to a cloud server; the cloud server receives the editing information sent by the client, stores the editing information based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, and obtains the first verification program, wherein the dialog box information of the basic steps is stored in a preset storage format.

[0078] Exemplarily, the tester can create a new verification program through the client and edit the verification program. Specifically, the tester can build the first verification program by dragging the variables in the basic steps and the target test resource file on the client. The client responds to the tester's editing operation on the first verification program, obtains the editing information, and sends the editing information to the cloud server. Considering that there is a nested and contained relationship between the steps of the verification program, and a verification program can also reference another verification program, the client converts the steps of the verification program developed by the tester into step information of a tree structure and sends it to the cloud server. After receiving the step information, the cloud server converts the step information of the tree structure into a step list. At the same time, in order to record the structural relationship between the steps, the parent step of each step is recorded when converting the step list, so that when the verification program is exported and sent and when it is queried through the client, the step list can be converted into step information of a tree structure. The cloud server traverses the step list. If there is a step that references other verification programs, it is necessary to record the reference information additionally to ensure that there is no circular reference. This can be understood as an additional verification process that the cloud server needs to perform when storing editing information. The cloud server stores the editing information corresponding to the first verification program, so that the first verification program can be obtained, wherein the dialog information of the basic steps is stored in a preset storage format, and the preset storage format is, for example, JSON (a data exchange format) format. Figure 3 A schematic diagram of storing dialog information in JSON format provided by an embodiment of the present invention is as follows Figure 3 As shown, the dialog information in 301 is stored as code information in JSON format in 302.

[0079] Optionally, the verification program also includes a second verification program uploaded by the client. The verification program management method provided by the embodiment of the present invention may also include: in response to an upload instruction for a target file corresponding to the second verification program, obtaining the target file, the target file including variables defined in the second verification program, a mapping relationship between the variables and their storage paths, and operation steps for the variables, and sending the target file to a cloud server; the cloud server receives the target file corresponding to the second verification program sent by the client, parses the target file, obtains variables, mapping relationships, and operation steps; stores the variables, mapping relationships, and operation steps to obtain the second verification program.

[0080] It can be understood that this embodiment is used to facilitate the tester to upload the existing local vehicle ECU verification program directly to the cloud server. The vehicle ECU verification program is developed based on ECU-TEST, for example. Since ECU-TEST is a mainstream vehicle ECU verification program development tool, the tester has developed a large number of verification programs. If the tester redevelops the existing verification program on the cloud server, it will increase the workload of the tester and will also cause the tester to spend a lot of time on the migration of the verification program from the local computer to the cloud server. Therefore, the embodiment of the present invention provides an upload function of the existing vehicle ECU verification program. The verification program upload function is used for the tester to upload the already developed verification program such as ECU-TEST to the cloud server, and then the tester can edit and issue the uploaded verification program for execution. Exemplarily, when the tester uploads the second verification program to the cloud server through the client, the cloud server first parses the target file corresponding to the verification program, the target file is, for example, an XML file, and the target file contains the variables defined in the second verification program, the mapping relationship between the variables and the storage path of the variables, and the operation steps of the variables. The cloud server parses and stores this information in the database respectively. Especially for the verification steps, each step requires the tester to fill in information in the step dialog box when writing, and the dialog boxes of different steps are also different, so it is difficult to design a unified database table to store the dialog box information.

[0081] In order to solve this problem, the embodiment of the present invention stores the dialog information in JSON format. It can be understood that JSON is a lightweight data exchange format and a text format that is completely independent of language. It is precisely because of the unique characteristics of JSON that JSON can become an ideal data exchange language. JSON displays data in the form of key-value pairs. On the one hand, it is easy to understand and the access to JSON content is relatively convenient and flexible; on the other hand, it is also convenient for computer processing. The use of JSON format to save the dialog information of each step can flexibly handle different dialog boxes. At the same time, only one additional field is required in the database table to store the dialog information in JSON format. In addition, by using JSON format to store dialog information, when exporting the verification program to the host computer, the format to be exported can be flexibly set to be compatible with ECU-TEST and other execution frameworks, so as to enhance the reusability of the verification program and reduce the workload of testers after switching the execution framework.

[0082] In this embodiment, by supporting the uploading of the tester's local verification program and storing the dialog information of each step of the verification program in JSON format, it is compatible with ECU-TEST and other execution frameworks, which can enhance the reusability of the verification program and reduce the workload of the tester to redevelop the verification program after switching the execution framework.

[0083] Based on the above embodiments, in a specific implementation, S205, the cloud server exports the target verification program, which may further include: exporting target data corresponding to the target verification program, the target data including target variables, a mapping relationship between target variables and storage paths of target variables, target steps and a hierarchical relationship between target steps; based on the target data, generating a target verification program in a preset format.

[0084] Exemplarily, when exporting a target verification program, the cloud server first exports target data such as target variables, mapping relationships, target steps, and hierarchical relationships between target steps corresponding to the target verification program, and then generates a target verification program in a preset format based on the target data, such as XML format.

[0085] Furthermore, based on the target data, generating a target verification program in a preset format may include: converting an infix expression in the target data into a reverse Polish notation; converting the reverse Polish notation into an expression binary tree; and generating a target verification program in a preset format by traversing the expression binary tree in pre-order.

[0086] In this embodiment, in order to ensure that the verification program can correctly process various complex expressions and shorten the time it takes for the execution framework to process expressions, it is necessary to convert the infix expression into an expression binary tree. Figure 4A flowchart of converting an infix expression into an expression binary tree is provided in one embodiment of the present invention, such as Figure 4 As shown, the infix expression is converted into an expression binary tree through the following steps:

[0087] S401, preprocessing the infix expression, removing spaces and unnecessary characters in the infix expression, and splitting the infix expression into words (such as operands, operators, method references, etc.).

[0088] S402. Construct a reverse Polish notation, convert the infix expression into a reverse Polish notation (postfix expression) through a stack and a queue, and then convert the reverse Polish notation into an expression binary tree.

[0089] S403, traverse the reverse Polish expression, and convert the reverse Polish expression into an expression binary tree through a stack.

[0090] In this step, specifically, first initialize the stack to construct the expression binary tree; traverse the reverse Polish expression to determine whether the current element is an operator or an operand, if it is an operand, directly push it into the stack; if it is an operator, further determine whether it is a unary operator or a binary operator, if it is a unary operator, generate a binary tree left node and push it into the stack, if it is a binary operator, pop the top two elements of the stack, use the current operator as the parent node of the two popped elements, and then push the newly generated binary tree into the stack. The reverse Polish expression is traversed in the above manner to obtain the expression binary tree.

[0091] After converting the infix expression in the target data into an expression binary tree, the target verification program in XML format can be generated by traversing the expression binary tree in pre-order. Figure 5 A flowchart of traversing an expression binary tree provided by an embodiment of the present invention is as follows: Figure 5 As shown, the expression binary tree is traversed through the following steps:

[0092] S501. The current node is set as the root node of the expression binary tree.

[0093] S502, determine whether the current node is empty. If it is empty, it means that the expression binary tree has been traversed and step S503 is executed; if it is not empty, then S504 and steps after S504 are executed.

[0094] S503, the expression binary tree has been traversed and exit directly.

[0095] S504: Process the current node.

[0096] S505, determine whether the current node is an operator, if it is an operator, execute step S506; if it is not an operator, execute step S509.

[0097] S506, determine whether the current node is a unary operator, if it is a unary operator, execute step S507; if it is not a unary operator, execute step S508.

[0098] S507: Use the left subtree of the current node as a parameter to perform a recursive call, i.e., continue to execute step S501.

[0099] S508: Use the left subtree and the right subtree of the current node as parameters to perform recursive calls respectively, and continue to execute step S501.

[0100] S509: The current node is an operand, and each type of operand is processed separately, and the previous level of recursion is returned.

[0101] Based on the above embodiment, optionally, the client responds to an upload instruction for the test resource file to obtain the test resource file; sends the test resource file to the cloud server; the cloud server receives the test resource file sent by the client, parses the test resource file, obtains variable information in the test resource file, and stores the variable information.

[0102] For example, the tester can upload the test resource file to the cloud server through the client to realize resource sharing of the test resource file. After receiving the test resource file sent by the client, the cloud server parses the test resource file, obtains the variable information in the test resource file and stores the variable information.

[0103] Further, optionally, the test resource file includes a model file, and parsing the test resource file to obtain variable information in the test resource file may include: decompressing the model file to obtain a system description file; obtaining a variable description file based on the system description file; parsing the variable description file to obtain variable information in the model file.

[0104] For example, the model file is an experimental compressed file developed using a specific tool. The cloud server decompresses the model file, traverses and searches to obtain the system description file, obtains the variable description file based on the relevant information of the variable description file contained in the system description file (such as the storage path of the variable description file, etc.), and then parses the variable description file to obtain the variable information in the model file. Figure 6 A flowchart for parsing a model file provided by an embodiment of the present invention, such as Figure 6 As shown, the model file is parsed through the following steps:

[0105] S601, determine whether the TRC file is opened correctly. If the TRC file is not opened correctly, execute step S602; if the TRC file is opened correctly, execute S603 and steps after S603.

[0106] S602: The TRC file is not found or the opening of the TRC file fails, and the reason for the failure in opening the TRC file is returned.

[0107] S603, after opening the TRC file, perform initialization, including initializing the queue storage variables (variable), initializing the stack storage categories (group), and initializing the key-value pair table storage type definitions (enum or typedef).

[0108] S604, traverse the TRC file to see if the current line is the end-of-file marker, if so, execute step S605; if not, execute steps S606 and subsequent steps.

[0109] S605. After the TRC file is read, the variable list is stored in the database.

[0110] S606: Determine whether the current line is a variable definition. If not, execute step S607; if so, execute step S612.

[0111] S607, determine whether the current row is a category definition, if not, execute step S608; if yes, execute step S609.

[0112] S608: The current row is a type definition, and the row information is temporarily stored in the key-value pair table.

[0113] S609, the current line is a category definition, determine whether the current line has a category start mark, if so, execute step S610; if not, execute step S611.

[0114] S610: The current row is a category start identifier (group), and the element (ie, the category start identifier) ​​is pushed into the stack.

[0115] S611. The current row is the category end marker (endgroup), and the top element of the stack is popped.

[0116] S612, the current line is a variable definition, initialize the variable, search for the variable definition and set the name, traverse the TRC file, and read the next line.

[0117] S613. Determine whether the current line is a variable attribute end mark. If not, execute step S614; if so, execute step S615.

[0118] S614: The current behavior is not a variable attribute end identifier, and the current behavior is a variable attribute. The corresponding attribute of the initialized variable is set.

[0119] S615, the current behavior variable attribute end mark, determines whether the current variable type is a reference type, if not, executes step S616; if yes, executes step S617.

[0120] S616: If the variable is not a reference type, the variable attribute has been parsed, the stack storing the category information is traversed, the variable path is obtained, and the variable is stored in the variable list.

[0121] S617: The variable is a reference type. The actual type is set according to the type definition key-value pair table, the variable path is obtained, and the variable is stored in the variable list.

[0122] Continue to loop through the TRC file through the above steps until the end of the TRC file is read, and the parsing of the TRC file is completed. After parsing the TRC file, the cloud server stores the compressed package for use when sending it to the host computer to load the configuration, and records the model file in the database and provides a query interface to facilitate users to select the corresponding model file in the configuration.

[0123] Based on the above embodiments, Figure 7 The flowchart of the host computer executing the verification program provided by one embodiment of the present invention is applied to the host computer. Figure 7 As shown, the process includes the following steps:

[0124] S701. Receive the verification program sent by the cloud server.

[0125] S702, determine whether the interface of the execution framework is successfully called, if not, execute step S703; if yes, execute step S704.

[0126] S703: The interface call fails and the reason for the failure is returned.

[0127] S704 , calling the interface of ECU-TEST or other execution framework to start executing the verification program.

[0128] S705: Determine whether the interface of the execution framework executes the verification program correctly. If not, execute step S706; if yes, execute step S707.

[0129] S706: If the verification procedure fails, the reason for the failure is returned.

[0130] S707: The verification program is executed successfully and the verification result is returned to the host computer.

[0131] S708. The host computer parses the verification result, parses the verification result into a format that can be received by the cloud server, and reports the verification result to the cloud server.

[0132] The following are embodiments of the device of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.

[0133] Figure 8 This is a schematic diagram of the structure of a verification program management device provided by an embodiment of the present invention, which is applied to a cloud server. Figure 8 As shown, the verification program management device 800 of the embodiment of the present invention includes: a first receiving module 801, which is used to receive configuration information sent by a client, the configuration information is obtained by the client in response to a configuration operation on a target test bench, and the configuration information includes a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; a sending module 802, which is used to send the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information; a second receiving module 803, which is used to receive an execution instruction of a target verification program for the target test bench sent by the client, the verification program includes a first verification program obtained by editing the client; a processing module 804, which is used to export the target verification program and send the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool.

[0134] Furthermore, the verification program management device 800 also includes a first acquisition module (not shown in the figure), which is used to obtain the first verification program in the following manner: receiving editing information sent by the client, the editing information including basic steps for constructing the first verification program and variable information in the target test resource file referenced in the basic steps; based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, storing the editing information to obtain the first verification program, wherein the dialog box information of the basic steps is stored in a preset storage format.

[0135] Furthermore, the verification program also includes a second verification program uploaded by the client, and the verification program management device 800 also includes a second acquisition module (not shown in the figure), which is used to: receive a target file corresponding to the second verification program sent by the client, the target file containing variables defined in the second verification program, a mapping relationship between the variables and the storage path of the variables, and operation steps for the variables; parse the target file to obtain variables, mapping relationships and operation steps; store variables, mapping relationships and operation steps to obtain the second verification program.

[0136] Furthermore, when the processing module 804 is used to export a target verification program, it is specifically used to: export target data corresponding to the target verification program, the target data including target variables, a mapping relationship between target variables and storage paths of target variables, target steps, and a hierarchical relationship between target steps; based on the target data, generate a target verification program in a preset format.

[0137] Furthermore, when the processing module 804 is used to generate a target verification program in a preset format based on the target data, it is specifically used to: convert the infix expression in the target data into a reverse Polish notation; convert the reverse Polish notation into an expression binary tree; and generate a target verification program in a preset format by traversing the expression binary tree in pre-order.

[0138] Furthermore, the verification program management device 800 also includes a third receiving module (not shown in the figure), which is used to: receive a test resource file sent by the client; parse the test resource file to obtain variable information in the test resource file; and store the variable information.

[0139] Furthermore, the test resource file includes a model file. When the third receiving module is used to parse the test resource file and obtain the variable information in the test resource file, it is specifically used to: decompress the model file to obtain the system description file; obtain the variable description file according to the system description file; parse the variable description file to obtain the variable information in the model file.

[0140] Furthermore, the processing module 804 is also used to: after sending the target verification program to the host computer, receive the verification result corresponding to the target verification program sent by the host computer; generate a verification report according to the verification result; and send the verification report to the client so that the client displays the verification report.

[0141] The device of the embodiment of the present invention can be used to execute the technical solution of the cloud server in any of the above-mentioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0142] Fig. 9 This is a schematic diagram of the structure of a verification program management device provided by another embodiment of the present invention, which is applied to a client. Fig. 9As shown, the verification program management device 900 of the embodiment of the present invention includes: a first acquisition module 901, which is used to respond to the configuration operation for the target test bench and obtain configuration information, the configuration information including the file identifier of the target test resource file, the tool identifier of the target test tool and the device identifier of the host computer running on the target test bench; a first sending module 902, which is used to send the configuration information to the cloud server, so that the cloud server sends the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information; a second sending module 903, which is used to respond to the execution instruction of the target verification program for the target test bench, send the execution instruction to the cloud server, so that the cloud server exports the target verification program, and sends the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool, and the verification program includes the first verification program obtained by client editing.

[0143] Furthermore, the verification program management device 900 also includes a second acquisition module (not shown in the figure), which is used to obtain the first verification program in the following manner: in response to an editing operation on the first verification program, obtaining editing information, the editing information including basic steps used to construct the first verification program and variable information in a target test resource file referenced in the basic steps; sending the editing information to a cloud server so that the cloud server stores the editing information based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, to obtain the first verification program, wherein the dialog box information of the basic steps is stored in a preset storage format.

[0144] Furthermore, the verification program also includes a second verification program uploaded through the client, and the verification program management device 900 also includes a third acquisition module (not shown in the figure), which is used to: respond to an upload instruction for a target file corresponding to the second verification program, obtain the target file, the target file contains variables defined in the second verification program, a mapping relationship between the variables and the storage path of the variables, and operation steps for the variables; send the target file to the cloud server so that the cloud server parses the target file, obtains the variables, mapping relationships and operation steps, and stores the variables, mapping relationships and operation steps to obtain the second verification program.

[0145] Furthermore, the verification program management device 900 also includes a third sending module (not shown in the figure), which is used to: obtain the test resource file in response to the upload instruction for the test resource file; send the test resource file to the cloud server so that the cloud server parses the test resource file, obtains the variable information in the test resource file, and stores the variable information.

[0146] Furthermore, the verification program management device 900 also includes a receiving module (not shown in the figure), which is used to: receive a verification report sent by the cloud server after the second sending module 903 sends an execution instruction to the cloud server, and the verification report is generated by the cloud server based on the verification result corresponding to the target verification program sent by the host computer; display the verification report.

[0147] The device of the embodiment of the present invention can be used to execute the technical solution of the cloud server in any of the above-mentioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0148] FIG10( a) is a schematic diagram of a verification program management system provided by an embodiment of the present invention. As shown in FIG10( a), the verification program management system 1000 includes a cloud server 1001 and a client 1002, and the cloud server 1001 is in communication with the client 1002. The cloud server 1001 may be configured as Figure 8 The structure of the device embodiment, which can be executed accordingly Figure 2 , Figure 4 , Figure 5 or Figure 6 The technical solution of the embodiment has similar implementation principles and technical effects, which will not be described in detail here. Fig. 9 The structure of the device embodiment, which can be executed accordingly Figure 2 The technical solutions of the embodiments have similar implementation principles and technical effects, which will not be described in detail here.

[0149] FIG10(b) is a schematic diagram of a verification program management system provided by another embodiment of the present invention. As shown in FIG10(b), based on FIG10(a), the verification program management system 1000 includes a cloud server 1001 and a client 1002, and can also include a host computer 1003. The host computer 1003 can execute Figure 2 or Figure 7 The technical solutions in the embodiments have similar implementation principles and technical effects, which will not be described in detail here.

[0150] Fig.11 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Fig.11 As shown, the electronic device 1100 may include: at least one processor 1101 and a memory 1102 .

[0151] The memory 1102 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer-executable instructions.

[0152] The memory 1102 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0153] The processor 1101 is used to execute the computer-executable instructions stored in the memory 1102 to implement the verification program management method described in the aforementioned method embodiment. Among them, the processor 1101 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. Specifically, when implementing the verification program management method described in the aforementioned method embodiment, the electronic device can be, for example, an electronic device with processing functions such as a server.

[0154] Optionally, the electronic device 1100 may further include a communication interface 1103. In a specific implementation, if the communication interface 1103, the memory 1102 and the processor 1101 are implemented independently, the communication interface 1103, the memory 1102 and the processor 1101 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.

[0155] Optionally, in a specific implementation, if the communication interface 1103, the memory 1102 and the processor 1101 are integrated on a chip, the communication interface 1103, the memory 1102 and the processor 1101 can communicate through an internal interface.

[0156] The present invention also provides a computer-readable storage medium, in which computer program instructions are stored. When a processor executes the computer program instructions, the above verification program management method is implemented.

[0157] The present invention also provides a computer program product, including a computer program, which implements the above verification program management method when executed by a processor.

[0158] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0159] An exemplary readable storage medium is coupled to the processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in a dedicated integrated circuit. Of course, the processor and the readable storage medium can also exist as discrete components in the verification program management device.

[0160] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0161] Finally, it should be noted that the above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.

Claims

1. A verification program management method, characterized in that: Applied to a cloud server, the verification program management method includes: Receiving configuration information sent by a client, the configuration information being obtained by the client in response to a configuration operation on a target test bench, the configuration information including a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; Sending the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information; receiving an execution instruction of a target verification program for the target test bench sent by a client, wherein the verification program includes a first verification program obtained by editing by the client; The target verification program is exported and sent to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool.

2. The verification program management method according to claim 1, characterized in that: The first verification procedure is obtained by: Receiving editing information sent by a client, the editing information including basic steps for constructing the first verification program and variable information in the target test resource file referenced in the basic steps; Based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs, the editing information is stored to obtain the first verification program, wherein the dialog information of the basic steps is stored in a preset storage format.

3. The verification program management method according to claim 1, characterized in that: The verification program also includes a second verification program uploaded by the client, and the method further includes: Receive a target file corresponding to the second verification program sent by a client, wherein the target file includes variables defined by the second verification program, a mapping relationship between the variables and storage paths of the variables, and operation steps for the variables; Parsing the target file to obtain the variables, the mapping relationship and the operation steps; The variables, the mapping relationship and the operation steps are stored to obtain the second verification program.

4. The verification program management method according to any one of claims 1 to 3, characterized in that: The exporting of the target verification program comprises: Exporting target data corresponding to the target verification program, the target data including target variables, mapping relationships between target variables and storage paths of the target variables, target steps, and hierarchical relationships between the target steps; Based on the target data, a target verification program in a preset format is generated.

5. The verification program management method according to claim 4, characterized in that: The step of generating a target verification program in a preset format based on the target data comprises: Converting the infix expression in the target data into a reverse Polish notation; Convert the reverse Polish expression into an expression binary tree; A target verification program in a preset format is generated by traversing the expression binary tree in pre-order.

6. The verification program management method according to any one of claims 1 to 3, characterized in that: Also includes: Receive the test resource file sent by the client; Parsing the test resource file to obtain variable information in the test resource file; The variable information is stored.

7. The verification program management method according to claim 6, characterized in that: The test resource file includes a model file, and the parsing of the test resource file to obtain variable information in the test resource file includes: Decompressing the model file to obtain a system description file; According to the system description file, obtaining a variable description file; The variable description file is parsed to obtain variable information in the model file.

8. The verification program management method according to any one of claims 1 to 3, characterized in that: After sending the target verification program to the host computer, the method further includes: Receiving a verification result corresponding to the target verification program sent by the host computer; Generate a verification report based on the verification results; The verification report is sent to the client so that the client displays the verification report.

9. A verification program management method, characterized in that: Applied to the client, the verification program management method includes: In response to a configuration operation for a target test bench, obtaining configuration information, the configuration information including a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; Sending the configuration information to the cloud server, so that the cloud server sends the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information; In response to an execution instruction for a target verification program of the target test bench, the execution instruction is sent to the cloud server so that the cloud server exports the target verification program, and the target verification program is sent to the host computer so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool, and the verification program includes a first verification program obtained by editing the client.

10. The verification program management method according to claim 9, characterized in that: The first verification procedure is obtained by: In response to an editing operation on the first verification program, acquiring editing information, the editing information including basic steps for constructing the first verification program and variable information in the target test resource file referenced in the basic steps; The editing information is sent to the cloud server so that the cloud server stores the editing information based on the hierarchical relationship between the basic steps and / or the references of the basic steps to other verification programs to obtain the first verification program, wherein the dialog information of the basic steps is stored in a preset storage format.

11. The verification program management method according to claim 9, characterized in that: The verification program also includes a second verification program uploaded by the client, and the method further includes: In response to an upload instruction for a target file corresponding to the second verification program, the target file is acquired, where the target file includes variables defined by the second verification program, a mapping relationship between the variables and storage paths of the variables, and operation steps for the variables; The target file is sent to the cloud server so that the cloud server parses the target file to obtain the variables, the mapping relationship and the operation steps, and stores the variables, the mapping relationship and the operation steps to obtain the second verification program.

12. The verification program management method according to any one of claims 9 to 11, characterized in that: Also includes: In response to an upload instruction for a test resource file, obtaining the test resource file; The test resource file is sent to the cloud server, so that the cloud server parses the test resource file, obtains variable information in the test resource file, and stores the variable information.

13. The verification program management method according to any one of claims 9 to 11, characterized in that: After sending the execution instruction to the cloud server, the method further includes: Receiving a verification report sent by the cloud server, wherein the verification report is generated by the cloud server according to a verification result corresponding to the target verification program sent by the host computer; The validation report is displayed.

14. A verification program management device, characterized in that: Applied to a cloud server, the verification program management device includes: A first receiving module is used to receive configuration information sent by a client, wherein the configuration information is obtained by the client in response to a configuration operation on a target test bench, and the configuration information includes a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; A sending module, used for sending the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information; A second receiving module is used to receive an execution instruction of a target verification program for the target test bench sent by a client, where the verification program includes a first verification program obtained by editing by the client; The processing module is used to export the target verification program and send the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool.

15. A verification program management device, characterized in that: Applied to the client, the verification program management device includes: An acquisition module, configured to acquire configuration information in response to a configuration operation for a target test bench, wherein the configuration information includes a file identifier of a target test resource file, a tool identifier of a target test tool, and a device identifier of a host computer running on the target test bench; A first sending module is used to send the configuration information to the cloud server, so that the cloud server sends the configuration information and the target test resource file to the host computer, so that the host computer calls the execution framework to load the configuration according to the configuration information; The second sending module is used to respond to the execution instruction of the target verification program for the target test bench, send the execution instruction to the cloud server so that the cloud server exports the target verification program, and send the target verification program to the host computer, so that the host computer calls the execution framework to execute the target verification program based on the target test resource file and the target test tool, and the verification program includes a first verification program obtained by editing the client.

16. A verification program management system, characterized in that: include: Cloud servers and clients; The cloud server is used to execute the verification program management method according to any one of claims 1 to 8; The client is used to execute the verification program management method as described in any one of claims 9 to 13.

17. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the verification program management method according to any one of claims 1 to 13.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed, the verification program management method according to any one of claims 1 to 13 is implemented.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed, the verification program management method according to any one of claims 1 to 13 is implemented.

Citation Information

Cited By

  • Test resource management method and device, equipment, medium and program product

    CN119484506A

  • Test resource management methods, devices, equipment, media and program products

    CN119484506B