Testing method and device of zone controller
By combining data driving principles with traditional simulation platforms in regional controller testing, the ZC equipment is automatically tested, and the problems of high testing cost, low efficiency and low accuracy in the existing technology are solved, and efficient and full testing is achieved.
Patent Information
- Application Number
- CN202211255951.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-13
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2042-10-13
AI Technical Summary
In the prior art, the testing method of regional controller (ZC) is expensive and inefficient, and cannot achieve full testing. The test results are susceptible to human influence and have low accuracy.
By determining the test instructions to be executed based on the target test data, sending them to the target ZC device in turn, and receiving and verifying their feedback data, combining the data driving principle with the traditional simulation platform, automated testing of ZC is achieved.
It improves testing efficiency, reduces testing costs, realizes full testing of ZC, and improves testing accuracy.
Smart Images

Figure CN115755824B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit technology, and in particular to a testing method and device for a zone controller. Background Art
[0002] The Zone Controller (ZC) is the core ground control equipment of the Communication Based Train Control (CBTC). Its main function is to generate movement authorization for trains within its control range based on the position information reported by the communication train and the track occupancy or idle information provided by the interlocking route and trackside equipment. It is the hub of vehicle-ground information processing, ensuring the driving efficiency and safe operation of communication trains under the CBTC system, and has the ability to manage trains under various train control levels and driving modes. Therefore, it is extremely important to test the ZC efficiently to ensure the functional integrity, reliability, safety and stability of the ZC.
[0003] In the related art, the ZC is usually tested by manual testing based on traditional simulation platforms. However, the manual testing method has the disadvantages of high cost, low efficiency, inability to achieve full testing, and the test results are easily affected by human factors, resulting in low test accuracy.
[0004] Therefore, how to test ZC efficiently and accurately has become an urgent problem to be solved in the industry. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a method and device for testing a zone controller.
[0006] In a first aspect, the present invention provides a method for testing a zone controller, comprising:
[0007] Determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction;
[0008] According to the execution order corresponding to each test instruction, each test instruction is sent to the target ZC device in sequence, and the target ZC device is determined by the target test data;
[0009] receiving test feedback data sent by the target ZC device, wherein the test feedback data is generated by the target ZC device executing the test instruction;
[0010] The test feedback data is verified to complete the test of the target ZC device.
[0011] Optionally, according to a test method for a zone controller provided by the present invention, the step of determining a test instruction to be executed based on target test data includes:
[0012] Receive a test request message, wherein the test request message carries target test data;
[0013] determining a target test regulation based on the target test data;
[0014] The test instructions to be executed are determined based on the target test rule.
[0015] Optionally, according to a test method for a zone controller provided by the present invention, the step of determining the test instruction to be executed based on the target test rule includes:
[0016] Determining a test rule sequence instruction based on the target test rule;
[0017] Performing a test rule query operation based on the test rule sequence instruction, obtaining a test rule query result, and determining a target basic adaptation based on the test rule sequence instruction;
[0018] The test instruction to be executed is determined based on the test rule query result and the adaptation logic of the target basic adaptation.
[0019] Optionally, according to a zone controller testing method provided by the present invention, the target basic adaptation includes any one or more of the following:
[0020] VOBC basic adaptation, CI basic adaptation, DSU basic adaptation and ATS basic adaptation.
[0021] Optionally, according to a zone controller testing method provided by the present invention, sending each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction respectively includes:
[0022] According to the execution order corresponding to each test instruction, each test instruction is packaged according to the communication protocol, and the test instruction after the package processing is sent to the target ZC device.
[0023] Optionally, according to a test method for a zone controller provided by the present invention, the verifying the test feedback data includes:
[0024] The test feedback data is parsed according to the communication protocol, and the parsed test feedback data is verified.
[0025] In a second aspect, the present invention further provides a testing device for a zone controller, comprising:
[0026] A determination module, configured to determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction;
[0027] A sending module, used for sending each test instruction to a target ZC device in sequence according to the execution order corresponding to each test instruction, wherein the target ZC device is determined by the target test data;
[0028] A receiving module, configured to receive test feedback data sent by the target ZC device, wherein the test feedback data is generated by the target ZC device executing the test instruction;
[0029] The verification module is used to verify the test feedback data to complete the test of the target ZC device.
[0030] In a third aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for testing the zone controller as described in the first aspect is implemented.
[0031] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for testing the zone controller as described in the first aspect.
[0032] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for testing the zone controller as described in the first aspect is implemented.
[0033] The test method and device for the zone controller provided by the present invention determine the test instructions to be executed based on the target test data, send each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction in the test instructions to be executed, receive and verify the test feedback data sent by the target ZC device, and implement the test of the target ZC device; by integrating the data-driven principle with the traditional simulation platform, the automated test of the ZC is implemented, which can not only improve the test efficiency and reduce the test cost, but also implement the full test of the ZC and improve the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 This is one of the flow charts of the test method of the zone controller provided by the present invention;
[0036] Figure 2 It is a schematic diagram of a test framework of a zone controller provided by the present invention;
[0037] Figure 3 This is the second flow chart of the test method of the zone controller provided by the present invention;
[0038] Figure 4 It is a structural schematic diagram of a test device for a zone controller provided by the present invention;
[0039] Figure 5 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Combine the following Figure 1-Figure 5 The present invention describes a method and device for testing a zone controller.
[0042] Figure 1 It is one of the flow charts of the test method of the zone controller provided by the present invention, such as Figure 1 As shown, the method includes:
[0043] Step 100, determining a test instruction to be executed based on target test data, wherein the test instruction to be executed includes at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction;
[0044] Step 110, sending each test instruction to a target ZC device in sequence according to the execution order corresponding to each test instruction, wherein the target ZC device is determined by the target test data;
[0045] Step 120, receiving test feedback data sent by the target ZC device, where the test feedback data is generated by the target ZC device executing the test instruction;
[0046] Step 130: verify the test feedback data to complete the test of the target ZC device.
[0047] Specifically, in order to overcome the defects of the manual ZC testing method based on the traditional simulation platform, such as high cost, low efficiency, inability to realize full-scale testing, and test results being easily affected by human factors, and low test accuracy, the present invention determines the test instructions to be executed based on the target test data, sends each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction in the test instructions to be executed, receives and verifies the test feedback data sent by the target ZC device, and realizes the testing of the target ZC device; by integrating the data-driven principle with the traditional simulation platform, the automated testing of ZC is realized, which can not only improve the test efficiency and reduce the test cost, but also realize the full-scale testing of ZC and improve the test accuracy.
[0048] Optionally, in an embodiment of the present invention, target test data may be determined first, and then a test instruction to be executed may be determined based on the target test data, wherein the test instruction to be executed may include multiple test instructions, and each test instruction is executed successfully.
[0049] Optionally, each test instruction may be sent to a target ZC device in sequence according to the execution order corresponding to each test instruction, wherein the target ZC device may be determined by target test data.
[0050] Optionally, in the embodiment of the present invention, the target ZC device may be a simulated target ZC software.
[0051] Optionally, when the target ZC device receives a test instruction, it outputs corresponding test feedback data based on the received test instruction.
[0052] Optionally, the test feedback data sent by the target ZC device may be received, and the received test feedback data may be verified to determine whether the test feedback data output by the target ZC device is consistent with the standard result, thereby completing the test of the target ZC device.
[0053] It can be understood that, in the embodiment of the present invention, the target test data may be converted from a target test scenario, and the target test scenario is used to verify the functional points of the target ZC device.
[0054] For example, a test scenario may include the following elements: the status of various equipment on the urban rail line (such as signal machines, axle counters and sections, etc.), train status and external commands, etc.
[0055] The test method of the zone controller provided by the present invention determines the test instructions to be executed based on the target test data, sends each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction in the test instructions to be executed, receives and verifies the test feedback data sent by the target ZC device, and realizes the test of the target ZC device; by integrating the data-driven principle with the traditional simulation platform, the automated test of the ZC is realized, which can not only improve the test efficiency and reduce the test cost, but also realize the full test of the ZC and improve the test accuracy.
[0056] Optionally, determining the test instruction to be executed based on the target test data includes:
[0057] Receive a test request message, wherein the test request message carries target test data;
[0058] determining a target test regulation based on the target test data;
[0059] The test instructions to be executed are determined based on the target test rule.
[0060] Specifically, in the embodiment of the present invention, a test request message carrying target test data input by a user may be received first, and then a target test rule may be determined based on the target test data, and then a test instruction to be executed may be determined based on the target test rule.
[0061] It is understandable that different test scenarios correspond to different test scripts, and the test scripts can be converted into test regulations.
[0062] The testing method of the zone controller provided by the present invention determines the target test rules based on the target test data, and then determines the test instructions to be executed based on the target test rules, thereby providing a basis for realizing the integration of data-driven principles and traditional simulation platforms to perform automated testing on the ZC.
[0063] Optionally, determining the test instruction to be executed based on the target test rule includes:
[0064] Determining a test rule sequence instruction based on the target test rule;
[0065] Performing a test rule query operation based on the test rule sequence instruction, obtaining a test rule query result, and determining a target basic adaptation based on the test rule sequence instruction;
[0066] The test instruction to be executed is determined based on the test rule query result and the adaptation logic of the target basic adaptation.
[0067] Specifically, in an embodiment of the present invention, after determining the target test regulations, a test rule sequence instruction can be determined based on the target test regulations, and then a test rule query operation can be performed based on the test rule sequence instruction to obtain the test rule query result. At the same time, a target basic adaptation can be determined based on the test rule sequence instruction, and then the test instruction to be executed can be determined based on the test rule query result and the adaptation logic of the target basic adaptation.
[0068] Optionally, the target basic adaptation includes any one or more of the following:
[0069] Basic adaptation of Vehicle On-Board Controller (VOBC), basic adaptation of Computer Interlocking (CI), basic adaptation of Database Storage Unit (DSU) and basic adaptation of Automatic Train Supervision (ATS).
[0070] Optionally, in an embodiment of the present invention, the target test regulations may include test steps and identifiers corresponding to the test steps. Therefore, the test rule sequence instructions may be determined based on the test steps included in the target test regulations and the identifiers corresponding to the test steps.
[0071] Optionally, a test rule query operation may be performed based on the test rule sequence instructions, and the adaptation logic of the target base adaptation may be integrated to organize the instructions of the test sequence, thereby determining the test instructions to be executed.
[0072] The testing method for the zone controller provided by the present invention determines the test rule sequence instructions based on the target test regulations, and then performs the test rule query operation based on the test rule sequence instructions to obtain the test rule query result, and determines the target basic adaptation based on the test rule sequence instructions, and then determines the test instruction to be executed based on the test rule query result and the adaptation logic of the target basic adaptation, thereby providing a basis for realizing the integration of data-driven principles and traditional simulation platforms to perform automated testing on ZC.
[0073] Optionally, sending each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction includes:
[0074] According to the execution order corresponding to each test instruction, each test instruction is packaged according to the communication protocol, and the test instruction after the package processing is sent to the target ZC device.
[0075] Specifically, in an embodiment of the present invention, after determining the test instructions to be executed based on the target test data, each test instruction can be packaged according to the communication protocol according to the execution order corresponding to each test instruction included in the test instructions to be executed, and the test instructions after package processing can be sent to the target ZC device.
[0076] The zone controller testing method provided by the present invention can accurately transmit the test instructions to the target ZC device by performing communication protocol packet processing on each test instruction and then sending the packetized test instructions to the target ZC device.
[0077] Optionally, the verifying the test feedback data includes:
[0078] The test feedback data is parsed according to the communication protocol, and the parsed test feedback data is verified.
[0079] Specifically, in the embodiment of the present invention, after receiving the test feedback data sent by the target ZC device, the received test feedback data may be first parsed according to the communication protocol, and then the test feedback data after the parsing process may be verified.
[0080] Optionally, test feedback data sent by the target ZC device can be received. The test feedback data is data that has been packaged at the external interface of the target ZC device. After receiving the test feedback data sent by the target ZC device, it is necessary to parse and process the test feedback data, and then verify the parsed test feedback data.
[0081] The zone controller testing method provided by the present invention performs communication protocol parsing processing on the test feedback data sent by the target ZC device, thereby facilitating subsequent verification operations on the test feedback data.
[0082] Figure 2 Schematic diagram of the test framework of the regional controller provided by the present invention, such as Figure 2 As shown, it includes: a test rule traversal module, a test drive module, a basic adaptation module and a communication processing module; wherein:
[0083] The test rule traversal module is used to manage and store the test rules and receive test requests, which include target test data. The identifier of the target ZC device can be identified based on the target test data, and the target test rules can be determined from the test rule set based on the target test data. The target test rules include test steps and identifiers corresponding to the test steps. Based on the test steps and the identifiers corresponding to the test steps, the test rule sequence instructions can be determined and sent to the test drive module, and the test results fed back by the test drive module are received.
[0084] The test driving module is used to execute test rule queries and integrate the logic of the basic adaptation module, organize the instructions of the test sequence, and send the test instructions to the target ZC device in sequence through the communication processing module according to the execution sequence; it is also used to receive the test feedback data generated by the target ZC device executing the test instructions through the communication processing module, and compare the test feedback data with the standard results of the test regulations, determine the test results and feed them back to the test regulation traversal module.
[0085] Basic adaptation modules include but are not limited to VOBC basic adaptation, CI basic adaptation, ATS basic adaptation and DSU basic adaptation; the basic adaptation module is used to identify the called adaptation software according to the basic logic of the basic adaptation called by the test drive module, and perform analysis and calculation according to the logic of the simulation adaptation software to obtain the calculation results, and feed back the calculation results to the test drive module.
[0086] The communication processing module is used to receive the test sequence of the test driving module, assemble the packets according to the communication protocol and send them to the software under test ZC (target ZC device), and receive the test feedback data assembled by the external interface of the software under test ZC, parse the test feedback data and feed it back to the test driving module, so that the test driving module can confirm the test results based on the test feedback data.
[0087] exist Figure 2 Based on the test framework schematic diagram of the zone controller provided, Figure 3 FIG. 2 is a flow chart of the test method of the zone controller provided by the present invention. Figure 3 As shown, the method includes:
[0088] Step 300, with the test rule traversal module as the execution body, the test rule traversal module receives a test request message, the test request message carries target test data; based on the target test data, determines the target test rule from the test rule set, the target test rule includes test steps and identifiers corresponding to the test steps; determines the test rule sequence instruction based on the test steps and the identifiers corresponding to the test steps; sends the test rule sequence instruction to the test driving module.
[0089] Step 310, with the test driver module as the execution subject, the test driver module executes the test rule query and integrates the logic of the basic adaptation module, organizes the instructions of the test sequence, and sends the test instructions to the target ZC device in sequence through the communication processing module according to the test instruction execution order.
[0090] Step 320, with the test driving module as the execution body, the test driving module receives the test feedback data sent by the target ZC device through the communication processing module, and compares the test feedback data with the standard results of the test regulations, determines the test results and feeds them back to the test regulations traversal module.
[0091] Step 330, with the test rule traversal module as the execution body, the test rule traversal module updates the test conclusion based on the test result fed back by the test driving module, and restarts the test environment.
[0092] It is understandable that with the continuous development of the signal system in the rail transit industry, version release iterations are frequent, manual testing is costly, inefficient and has a high error rate, the demand for automated testing is also increasing, and the product logic of ZC products is relatively complex compared to other signal systems, so it is particularly important to build an automated testing framework for ZC. The present invention realizes automated testing of ZC by integrating the traditional simulation platform and the data-driven principle, overcoming the two defects of traditional simulation software: high manual dependence, high manual testing cost, inability to achieve full-scale testing, and difficulty in acquiring data-driven test data. The two solutions are integrated to achieve automated testing of ZC, and because the ZC software logic is complex, automated testing can achieve full-scale testing, overcoming the defects of previous reliance on change test analysis.
[0093] Optionally, visual simulation software can be completely built manually to verify the effectiveness of the test method for the zone controller provided in the embodiment of the present invention, and the test environment construction, test scenario creation and test result verification are guaranteed manually.
[0094] It is understandable that, compared with manual testing, automated testing has the advantages of higher resource utilization, more convenient test execution, less impact of human errors, and test reuse, etc. The test method of the zone controller provided by the embodiment of the present invention realizes automated testing of the ZC, improves test efficiency, and can better utilize test resources.
[0095] The test method of the zone controller provided by the present invention determines the test instructions to be executed based on the target test data, sends each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction in the test instructions to be executed, receives and verifies the test feedback data sent by the target ZC device, and realizes the test of the target ZC device; by integrating the data-driven principle with the traditional simulation platform, the automated test of the ZC is realized, which can not only improve the test efficiency and reduce the test cost, but also realize the full test of the ZC and improve the test accuracy.
[0096] The test device of the zone controller provided by the present invention is described below. The test device of the zone controller described below and the test method of the zone controller described above can be referred to each other.
[0097] Figure 4 Schematic diagram of the structure of the test device of the zone controller provided by the present invention, such as Figure 4 As shown, the device includes: a determination module 410, a sending module 420, a receiving module 430 and a verification module 440; wherein:
[0098] The determination module 410 is used to determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction;
[0099] The sending module 420 is used to send each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction, and the target ZC device is determined by the target test data;
[0100] The receiving module 430 is used to receive the test feedback data sent by the target ZC device, where the test feedback data is generated by the target ZC device executing the test instruction;
[0101] The verification module 440 is used to verify the test feedback data to complete the test of the target ZC device.
[0102] Specifically, the test device of the zone controller provided by the embodiment of the present invention can determine the test instructions to be executed based on the target test data through the determination module 410, and the test instructions to be executed include at least one test instruction and the execution order corresponding to each test instruction in the at least one test instruction; then, according to the execution order corresponding to each test instruction, each test instruction is sent to the target ZC device in sequence through the sending module 420, and the target ZC device is determined by the target test data; further, the test feedback data sent by the target ZC device is received through the receiving module 430, and the test feedback data is generated by the target ZC device executing the received test instruction; finally, the test feedback data is verified through the verification module 440 to complete the test of the target ZC device.
[0103] The test device for the zone controller provided by the present invention determines the test instructions to be executed based on the target test data, sends each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction in the test instructions to be executed, receives and verifies the test feedback data sent by the target ZC device, and realizes the test of the target ZC device; by integrating the data-driven principle with the traditional simulation platform, the automated test of the ZC is realized, which can not only improve the test efficiency and reduce the test cost, but also realize the full test of the ZC and improve the test accuracy.
[0104] It should be noted here that the testing device for the above-mentioned zone controller provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned zone controller testing method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0105] Figure 5 is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the test method of the zone controller provided by the above methods, and the method includes:
[0106] Determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction;
[0107] According to the execution order corresponding to each test instruction, each test instruction is sent to the target ZC device in sequence, and the target ZC device is determined by the target test data;
[0108] receiving test feedback data sent by the target ZC device, wherein the test feedback data is generated by the target ZC device executing the test instruction;
[0109] The test feedback data is verified to complete the test of the target ZC device.
[0110] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0111] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the test method of the zone controller provided by the above methods, the method comprising:
[0112] Determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction;
[0113] According to the execution order corresponding to each test instruction, each test instruction is sent to the target ZC device in sequence, and the target ZC device is determined by the target test data;
[0114] receiving test feedback data sent by the target ZC device, wherein the test feedback data is generated by the target ZC device executing the test instruction;
[0115] The test feedback data is verified to complete the test of the target ZC device.
[0116] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for testing the zone controller provided above is implemented, and the method comprises:
[0117] Determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction;
[0118] According to the execution order corresponding to each test instruction, each test instruction is sent to the target ZC device in sequence, and the target ZC device is determined by the target test data;
[0119] receiving test feedback data sent by the target ZC device, wherein the test feedback data is generated by the target ZC device executing the test instruction;
[0120] The test feedback data is verified to complete the test of the target ZC device.
[0121] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for testing a zone controller, characterized in that: include: Determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction; the target test data is converted from a target test scenario, and the target test scenario is used to verify the functional points of the target ZC device; According to the execution order corresponding to each test instruction, each test instruction is sent to the target ZC device in sequence, and the target ZC device is determined by the target test data; receiving test feedback data sent by the target ZC device, wherein the test feedback data is generated by the target ZC device executing the test instruction; Verifying the test feedback data to complete the test of the target ZC device. Determining the test instructions to be executed based on the target test data includes: Receive a test request message, wherein the test request message carries target test data; determining a target test regulation based on the target test data; Based on the target test rule, the test instruction to be executed is determined.
2. The method for testing a zone controller according to claim 1, characterized in that: The step of determining the test instruction to be executed based on the target test rule includes: Determining a test rule sequence instruction based on the target test rule; Performing a test rule query operation based on the test rule sequence instruction, obtaining a test rule query result, and determining a target basic adaptation based on the test rule sequence instruction; The test instruction to be executed is determined based on the test rule query result and the adaptation logic of the target basic adaptation.
3. The method for testing a zone controller according to claim 2, characterized in that: The target basic adaptation includes any one or more of the following: VOBC basic adaptation, CI basic adaptation, DSU basic adaptation and ATS basic adaptation.
4. The method for testing a zone controller according to any one of claims 1 to 3, characterized in that: The step of sending each test instruction to the target ZC device in sequence according to the execution order corresponding to each test instruction includes: According to the execution order corresponding to each test instruction, each test instruction is packaged according to the communication protocol, and the test instruction after the package processing is sent to the target ZC device.
5. The method for testing a zone controller according to claim 4, characterized in that: The verifying the test feedback data includes: The test feedback data is parsed according to the communication protocol, and the parsed test feedback data is verified.
6. A test device for a zone controller, characterized in that: include: A determination module, configured to determine the test instructions to be executed based on the target test data, wherein the test instructions to be executed include at least one test instruction and an execution order corresponding to each test instruction in the at least one test instruction; A sending module, used for sending each test instruction to a target ZC device in sequence according to the execution order corresponding to each test instruction, wherein the target ZC device is determined by the target test data; A receiving module, configured to receive test feedback data sent by the target ZC device, wherein the test feedback data is generated by the target ZC device executing the test instruction; The verification module is used to verify the test feedback data to complete the test of the target ZC device.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the test method of the zone controller according to any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for testing the zone controller according to any one of claims 1 to 5 is implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for testing the zone controller according to any one of claims 1 to 5 is implemented.
