CN113485881A - Testing method and device of temporary speed limiting server, electronic equipment and medium - Google Patents

Testing method and device of temporary speed limiting server, electronic equipment and medium Download PDF

Info

Publication number
CN113485881A
CN113485881A CN202110790389.4A CN202110790389A CN113485881A CN 113485881 A CN113485881 A CN 113485881A CN 202110790389 A CN202110790389 A CN 202110790389A CN 113485881 A CN113485881 A CN 113485881A
Authority
CN
China
Prior art keywords
test
test instruction
tested object
interface simulation
simulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110790389.4A
Other languages
Chinese (zh)
Other versions
CN113485881B (en
Inventor
郁文斌
任超
王宇杰
李淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202110790389.4A priority Critical patent/CN113485881B/en
Publication of CN113485881A publication Critical patent/CN113485881A/en
Application granted granted Critical
Publication of CN113485881B publication Critical patent/CN113485881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method and a device for testing a temporary speed limiting server, electronic equipment and a medium. Wherein, the method comprises the following steps: sending a test instruction to a tested object, and determining at least one target interface simulation associated with the test instruction by the tested object according to the association relationship between the pre-stored test instruction and the preset interface simulation; the system comprises a tested object, a target interface simulation module, a speed limit server and a wireless block center interface simulation module, wherein the tested object is a temporary speed limit server, and the target interface simulation module is a train control center interface simulation module and a wireless block center interface simulation module; controlling the tested object to send the test instruction to a target interface simulation, and processing the test instruction at the target interface simulation according to a pre-configured interface simulation processing logic to obtain test instruction feedback data; and sending the feedback data to the tested object for the tested object to determine the test result of the test instruction. The feedback of the test instruction by the simulation of the target interface is realized, and the complexity of the automatic test logic and the test script is simplified.

Description

Testing method and device of temporary speed limiting server, electronic equipment and medium
Technical Field
The embodiment of the invention relates to an automatic testing technology, in particular to a testing method and device of a temporary speed limiting server, electronic equipment and a medium.
Background
The development of high-speed rail has comprehensively influenced our daily trip and life, so that the high safety and high reliability of high-speed rail are particularly important. As a key device for managing the temporary speed limit by the high-speed rail signals, the temporary speed limit server has the characteristics of multiple interfaces, large data volume, complex engineering scene and the like.
When the temporary speed limit server performs speed limit Control, one speed limit instruction needs a plurality of TCC (Train Control Center) and RBC (Radio Block Center) interfaces to be matched and completed. When the temporary speed limiting server is tested, the protocol realization of each interface is handed to the test engine, so that the script logic of the test engine is complex. The temporary speed limit server has more interfaces, the work difficulty and the work load of a user for writing scripts are increased, the work pressure of a test engine is increased, and the test efficiency of the temporary speed limit server is influenced.
Disclosure of Invention
The embodiment of the invention provides a testing method and device of a temporary speed-limiting server, electronic equipment and a medium, and aims to improve the testing efficiency of the temporary speed-limiting server.
In a first aspect, an embodiment of the present invention provides a method for testing a temporary speed limit server, where the method includes:
sending a test instruction to a tested object, and determining at least one target interface simulation associated with the test instruction by the tested object according to the association relation between the pre-stored test instruction and a preset interface simulation; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation;
controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to a pre-configured interface simulation processing logic to obtain feedback data of the test instruction;
and sending at least one feedback data to the tested object, so that the tested object determines the test result of the test instruction according to a preset test result determination rule.
In a second aspect, an embodiment of the present invention further provides a device for testing a temporary speed limit server, where the device includes:
the target interface determining module is used for sending a test instruction to the tested object, so that the tested object determines at least one target interface simulation related to the test instruction according to the incidence relation between the pre-stored test instruction and a preset interface simulation; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation;
the feedback data acquisition module is used for controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to a pre-configured interface simulation processing logic to obtain feedback data of the test instruction;
and the test result determining module is used for sending at least one piece of feedback data to the tested object, so that the tested object determines the test result of the test instruction according to a preset test result determining rule.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for testing the temporary speed limit server according to any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a method for testing a temporary speed limit server according to any embodiment of the present invention.
The embodiment of the invention transmits the test instruction to the temporary speed limit server to be tested, so that the temporary speed limit server forwards the test instruction to the target interface simulation, the target interface simulation processes the test instruction, and the processing result is fed back to the temporary speed limit server. The target interface simulation does not need to forward the test instruction to the test engine, so that the problem that the test engine processes the test instructions of all interface simulations in the prior art is solved, the complexity of script logic of the test engine and the redundancy of contents are reduced, the workload of writing scripts by a user is reduced, the implementation logic of the test engine is simplified, and the automatic test efficiency of the temporary speed-limiting server is improved.
Drawings
Fig. 1 is a schematic flowchart of a method for testing a temporary speed limit server according to a first embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for testing a temporary speed limit server according to a second embodiment of the present invention;
fig. 3 is a block diagram of a testing apparatus of a temporary speed limit server according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a test device of a temporary speed limit server in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a testing method for a temporary speed limit server according to an embodiment of the present invention, where the embodiment is applicable to a situation where a test is performed on the temporary speed limit server, and the method can be executed by a testing apparatus for the temporary speed limit server. As shown in fig. 1, the method specifically includes the following steps:
step 110, sending a test instruction to a tested object, so that the tested object determines at least one target interface simulation associated with the test instruction according to the association relationship between the pre-stored test instruction and a preset interface simulation; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation.
The test system of the Temporary Speed limit server is also an automatic test system of the Temporary Speed limit server, and can automatically test a TSRS (Temporary Speed limit server), that is, the Temporary Speed limit server is a tested object. The test system of the temporary speed limit server sends a test instruction to the tested object, wherein the test instruction can be any instruction which needs to be executed by the temporary speed limit server during working, and the test instruction can be a speed limit drawing-up instruction, a verification instruction, a speed limit execution instruction, a deletion instruction and the like. The temporary speed limiting server is provided with interface logic, the incidence relation between a test instruction and preset interface simulation is preset, different instructions correspond to different interfaces, and the interfaces mainly bear the function of a safety protocol and can perform safety data communication with a tested object. In the test system of the temporary speed-limiting server, the interface is represented by interface simulation, one test instruction may need to be completed by the cooperation of a plurality of interface simulations, and the incidence relation between the test instruction and the preset interface simulation can be stored in advance. For example, multiple TCC interface simulations and multiple RBC interface simulations are required for validation instructions. After the tested object receives the test instruction, at least one target interface simulation related to the test instruction can be determined according to the association relationship between the preset test instruction and the interface simulation, and the target interface simulation can be TCC interface simulation and/or RBC interface simulation.
In this embodiment, optionally, the sending a test instruction to the object to be tested includes: responding to a test instruction sent to a test engine by a user, and sending the test instruction to a dispatching centralized control system interface for simulation; and transmitting the test instruction from the interface of the dispatching centralized control system to the tested object in a simulation way.
Specifically, the automated test system of the temporary speed limit server may include a test engine and interface simulation, where the interface simulation may include TCC interface simulation and RBC interface simulation, and may also include CTC (central Traffic Control, dispatch Centralized Control system) interface simulation. And the CTC interface simulation can convert the format of the test instruction after receiving the test instruction, and sends the converted test instruction to the tested object. For example, the data format sent by the CTC interface emulation is an information packet expressed in 16-ary, and according to the TSRS-CTC application interface protocol, with 0x8002 as the identifier, the test instruction needs to be mutually converted according to the data packet expressed in 16-ary at the beginning of the identifier 0x8002 and the internal unified data structure. The method has the advantages that a user sends a test instruction, the test engine executes the script, the test engine or the CTC interface simulation is assembled into test instruction data according to the user requirement, the CTC interface simulation directly sends the test instruction to the tested object, complexity and redundancy of an assembly process of the test instruction in the script executed by the test engine are reduced, and test precision and efficiency are improved.
And 120, controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to the pre-configured interface simulation processing logic to obtain feedback data of the test instruction.
After the tested object receives the test instruction, the target interface simulation associated with the test instruction is determined, and the test system of the temporary speed limiting server can control the tested object to forward the received test instruction to the target interface simulation. The test system is pre-stored with processing logic of each interface simulation, each interface simulation can call its own processing logic, check and feed back the test instruction, and calculate the feedback data of the test instruction, the processing logic can judge the logic of the inherent designated parameter in the test instruction as required, and the designated parameter refers to the preset parameters such as the speed to be tested. The data fed back by the simulation of the target interface can comprise successful test, failed test, or no reply message and the like according to the requirements of the user, and different specified parameters are associated with the three feedback data to obtain preset feedback associated data. And after receiving the data transmitted by the tested object, the target interface simulation matches the received data with preset feedback associated data to determine the feedback data. For example, the processing logic feeds back feedback data of test failure when the speed to be verified is 60km/h, and the test instruction comprises the speed to be verified, namely 60km/h, and the determined feedback data is test failure.
In this embodiment, optionally, controlling the tested object to send the test instruction to the target interface for simulation includes: controlling the tested object to convert the test instruction into a target test instruction in a target format according to a data conversion specification pre-stored in the tested object; and sending the target test instruction from the tested object to the target interface for simulation.
Specifically, the format of the test instruction received by the tested object is different from the format of the test instruction received by each interface simulation, so that format conversion is required when the CTC interface simulation sends the test instruction to the tested object, and format conversion is also required when the tested object sends the test instruction to the TCC interface simulation and the RBC interface simulation. That is, the object to be tested needs to convert the test instruction into a target test instruction in a target format, and the target test instruction is sent from the object to be tested to the corresponding target interface for simulation. For example, according to application interface protocols of TSRS and TCC and TSRS and RBC, for TCC interface simulation, a 16-ary format in which a data packet of a test instruction is identified by 0x8003 and an internal data structure need to be converted into each other, and for RBC interface simulation, a 16-ary format in which a data packet of a test instruction is identified by 0x8004 and an internal data structure need to be converted into each other. When the test engine sends the test instruction to the target interface simulation, the identifier corresponding to the test instruction can be searched and sent to the corresponding target interface simulation according to the identifier. Besides receiving the test instruction, the tested object may also receive parameters related to the test instruction, for example, the parameters may include a speed parameter, an odometer parameter, and the like. The target test instruction received by the target interface simulation may include an information type identifier of a preset data conversion specification, an identifier corresponding to the test instruction, a speed limit parameter, and the like. For example, if the target interface simulation is TCC interface simulation, the data transformation specification is beginning with 0x8003, the test command is a verification command, and the identifier is 0x0104, and the speed parameter is speed 80km/h, the data of the target test command received by the TCC interface simulation may be 0x 80030104. The method has the advantages that the target interface simulation can accurately receive and analyze the data of the test instruction, feedback logic processing is carried out according to the analysis result and the user requirement designated parameter, and the automatic test efficiency and precision of the temporary speed limiting server are improved.
In this embodiment, optionally, after controlling the object to be tested to send the test instruction to the target interface for simulation, the method further includes: sending a target test instruction from the target interface simulation to a test engine; and obtaining feedback data corresponding to the simulation of the target interface according to a test result feedback script which is pre-configured in the test engine.
Specifically, the interface simulation in the automated test system of the temporary speed limit server may include two working modes, one is a transit mode and the other is an autonomous logic mode. In the transfer mode, the interface simulation is only used for data transmission, and in the mode, the interface simulation does not process the data of the test instruction any more but only performs transfer, and the test engine processes the data through the script. In the autonomous logic mode, after the TCC and RBC interface simulation receives the data of the test instruction, the data can be analyzed and processed, and the data can be logically fed back to the tested object, the analysis and processing process is directly completed by the interface simulation, and the user does not need to specify the analysis and processing process in the script according to the requirement, so that the complexity of the test script is greatly simplified, and the redundancy caused by the fact that the TSRS interface devices are more and the parameters need to be set in the script one by one is reduced. The user can appoint the working mode of the interface simulation before starting the test, if the working mode is the autonomous logic mode, the target interface simulation processes the test instruction at the target interface simulation position according to the pre-configured interface simulation processing logic after receiving the data of the test instruction, the autonomous logic processes and obtains the feedback data of the test instruction according to the processing result and the parameters of the user test requirement, and the feedback data is sent to the tested object without the intervention of the test engine execution script. And if the working mode is a transfer mode, transmitting the target test instruction from the target interface simulation to the test engine, and enabling the test engine to call a pre-configured data processing script to obtain feedback data corresponding to the target interface simulation. A user writes a data processing script corresponding to each interface simulation in the script in advance, the test engine calls the script, and the test engine processes data of a target test instruction to obtain feedback data. The test engine transmits the feedback data to the target interface simulation, and the target interface simulation transmits the feedback data to the tested object. The beneficial effect that sets up like this lies in, the user can select the mode of interface emulation as required, to the many test instruction of relevant interface, can adopt autonomic logic mode, to the less test instruction of relevant interface, can adopt the transfer mode, effectively alleviate test engine's operating pressure, through two kinds of processing methods, improve the test accuracy, and very big reduction user test's work redundancy and complexity, improved the test flexibility simultaneously, let the user test according to the test demand, realize the selection of granularity size.
And step 130, sending the at least one feedback data to the object to be tested, so that the object to be tested determines the test result of the test instruction according to a preset test result determination rule.
Because at least one target interface simulation exists, each target interface simulation can obtain one feedback result, and therefore at least one feedback result can be obtained. If the target interface fails to receive the test instruction in the simulation mode, the feedback data cannot be generated, for example, if the test instruction is not converted into the target test instruction by the object to be tested, the data of the test instruction cannot be received by the target interface in the simulation mode. A test result determination rule is preset, for example, the test result determination rule specifies that the test is successful only when all the feedback data of the target interface simulation are successful. And the tested object receives the feedback data of each target interface simulation, and the rule is determined according to the test result, so that each feedback data is integrated to obtain the test result of the test instruction.
The tested object judges whether the quantity of the feedback data is consistent with the quantity of the target interface simulation; if yes, judging whether at least one piece of feedback data is data with test errors; if yes, determining that the test result of the test instruction is wrong.
And if the target interface simulation receives the data of the test instruction, the number of the feedback data received by the tested object is consistent with the number of the target interface simulation. The preset test result determining rule is that the test result is successful under the condition that all target interface simulations generate feedback data and the feedback data are successful in testing. And after the tested object receives the feedback data, judging whether the quantity of the received feedback data is consistent with that of the target interface simulation, and if so, determining that each target interface simulation generates the feedback data. And judging whether the feedback data are successful test data, namely judging whether one or more test error data exist, and if the test error feedback data exist, determining that the test result is a test error. The tested object can comprehensively consider the feedback result of each target interface simulation, and the testing precision is improved.
In this embodiment, optionally, after determining the test result of the test instruction according to a preset test result determining rule, the method further includes: sending the test result to an interface of a dispatching centralized control system for simulation; and (4) simulating and sending the test result to a test engine through the interface of the dispatching centralized control system, so that the test engine can record the test.
Specifically, the tested object obtains a test result of the test instruction, the test system of the temporary speed limit server sends the test result to the CTC interface simulation, the test result is sent to the test engine through the CTC interface simulation, the test engine records the test result to obtain a final test result, and a user can directly check the test result to complete the test process of the test instruction. The test process is that the test instruction is sent to the CTC interface simulation from the test engine, then is sent to the tested object from the CTC interface simulation, then is sent to the target interface simulation from the tested object, the generated feedback data is sent to the tested object from the target interface simulation, the test result is sent to the CTC interface simulation from the tested object, and the test result is sent to the test engine from the CTC interface simulation. Or after the target interface simulation receives the data of the test instruction, the data of the test instruction is sent to the test engine, the test engine sends the feedback data to the target interface simulation, the target interface simulation sends the feedback data to the tested object, and the tested object sends the test result to the CTC interface simulation and finally transmits the test result to the test engine. The beneficial effect of the setting is that the process of starting from the test engine and finally returning to the test engine is realized, and the recording of the test result is realized.
According to the technical scheme of the embodiment, the temporary speed limit server transmits the test instruction to the target interface simulation by sending the test instruction to the temporary speed limit server to be tested, the target interface simulation executes the test instruction, and the execution result is fed back to the temporary speed limit server. The target interface simulation does not need to forward the test instruction to the test engine, so that the problem that the test engine executes the test instruction of all interface simulations in the prior art is solved, the complexity of script logic of the test engine and the redundancy of contents are reduced, the workload of writing scripts by a user is reduced, the implementation logic of the test engine is simplified, and the automatic test efficiency of the temporary speed-limiting server is improved.
Example two
Fig. 2 is a schematic flow chart of a testing method for a temporary speed limit server according to a second embodiment of the present invention, which is further optimized based on the above embodiments. As shown in fig. 2, the method specifically includes the following steps:
step 210, responding to a test instruction sent to the test engine by a user, and sending the test instruction to the interface simulation of the dispatching centralized control system.
And step 220, sending the test instruction from the interface simulation of the dispatching centralized control system to the tested object, so that the tested object determines at least one target interface simulation associated with the test instruction according to the association relationship between the pre-stored test instruction and the preset interface simulation.
After the temporary speed limiting server receives the test instruction, the target interface simulation related to the test instruction can be determined, so that the target interface simulation carries out analysis processing on the test data. The target emulation interface may include interface emulation such as TCC, RBC, CTC, and TSRS. Under normal conditions, the CTC does not have the requirement of autonomously feeding back data to the tested object, and a user can set the simulation of the CTC interface into an autonomous logic mode according to the test requirement to test the temporary speed limiting server.
In this embodiment, optionally, after the sending the test instruction from the interface of the dispatch centralized control system to the object to be tested in a simulation manner, the method further includes: determining whether an adjacent tested object exists in the tested object according to a line connection network of a preset temporary speed limit server; and if so, controlling the tested object to send the test instruction to the adjacent tested object, and determining at least one adjacent target interface simulation associated with the test instruction according to the association relationship between the pre-stored test instruction of the adjacent tested object and the preset interface simulation.
Specifically, different regions are provided with different temporary speed limiting servers, the track lines of each region form a line connection network, and the lines of adjacent regions can be connected with each other. According to the line connection network, the temporary speed limit server connected with the tested object can be determined, and the temporary speed limit server connected with the tested object is an adjacent tested object. After the adjacent measured object is determined, the test instruction received by the measured object can be sent to the adjacent measured object. Namely, the tested object can not only send the test instruction to TCC and RBC interface simulation, but also send the test instruction to the adjacent TSRS. For a tested object, data interaction is carried out on all interface simulations such as TCC, RBC and adjacent TSRS and the like and the tested object, and then a complete test flow of a service scene can be completed. The incidence relation between the test instruction of different temporary speed limiting servers and the simulation of the preset interface can be the same or different. According to the incidence relation between the test instruction of the adjacent tested object and the preset interface simulation, at least one target interface simulation related to the test instruction can be determined to be used as the adjacent target interface simulation. The test instruction of the adjacent tested object needs to be transmitted to the adjacent target interface for simulation, and the data processing is carried out by the adjacent target interface for simulation, so as to obtain the feedback data. And transmitting the feedback data to the adjacent tested object, and obtaining a preliminary test result by the adjacent tested object according to the feedback data. And sending the preliminary test result of the adjacent tested objects to the tested objects as the feedback data of the adjacent tested objects, and combining the feedback data of the target interface simulation to obtain the test result of the tested objects. For example, the places a and B are adjacent in geographical position, the lines are connected, and the temporary speed limit server of the place a receives the test instruction as the tested object, and then the test instruction of the temporary speed limit server of the place a can be sent to the temporary speed limit server of the place B. The adjacent tested objects are used as target interface simulation, and in the embodiment, the automatic test system also has a transit mode and an autonomous logic mode. The beneficial effect of the setting is that different temporary speed limiting servers can be tested, the test range is expanded, and the test efficiency is improved.
And step 230, controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to the pre-configured interface simulation processing logic to obtain the feedback data of the test instruction.
And 240, sending the at least one feedback data to the tested object, and determining a test result of the test instruction according to a preset test result determination rule.
The embodiment of the invention sends a test instruction to the CTC interface simulation through the test engine, sends the test instruction to the tested temporary speed limiting server through the CTC interface simulation, enables the temporary speed limiting server to forward the test instruction to the target interface simulation and the adjacent tested object, processes the test instruction by the target interface simulation, sends the test instruction to the adjacent target interface simulation by the adjacent tested object, transmits the feedback data of the target interface simulation to the adjacent tested object, and feeds back the primary test result of the adjacent tested object and the feedback data of the target interface simulation to the tested object. The target interface simulation does not need to forward the test instruction to the test engine, so that the problem that the test engine executes the test instruction of all interface simulations in the prior art is solved, the complexity of script logic of the test engine and the redundancy of contents are reduced, the workload of writing scripts by a user is reduced, the implementation logic of the test engine is simplified, and the automatic test efficiency of the temporary speed-limiting server is improved.
EXAMPLE III
Fig. 3 is a block diagram of a testing apparatus for a temporary speed limit server according to a third embodiment of the present invention, which is capable of executing a testing method for a temporary speed limit server according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 3, the apparatus specifically includes:
the target interface determining module 301 is configured to send a test instruction to a to-be-tested object, so that the to-be-tested object determines, according to an association relationship between a pre-stored test instruction and a preset interface simulation, at least one target interface simulation associated with the test instruction; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation;
a feedback data obtaining module 302, configured to control the object to be tested to send the test instruction to the target interface simulation, and process the test instruction at the target interface simulation according to a pre-configured interface simulation processing logic to obtain feedback data of the test instruction;
the test result determining module 303 is configured to send at least one feedback data to the object to be tested, so that the object to be tested determines a test result of the test instruction according to a preset test result determining rule.
Optionally, the target interface determining module 301 includes:
the instruction issuing unit is used for responding to a test instruction issued to the test engine by a user and sending the test instruction to the interface simulation of the dispatching centralized control system;
and the instruction forwarding unit is used for transmitting the test instruction from the interface of the dispatching centralized control system to the tested object in a simulation way.
Optionally, the apparatus further comprises:
the adjacent object determining module is used for determining whether the tested object has an adjacent tested object or not according to a line connection network of a preset temporary speed limiting server after the test instruction is sent to the tested object from the interface simulation of the dispatching centralized control system;
and the adjacent interface simulation determining module is used for controlling the tested object to send the test instruction to the adjacent tested object if the test instruction is received, and determining at least one adjacent target interface simulation related to the test instruction according to the pre-stored incidence relation between the test instruction of the adjacent tested object and the preset interface simulation.
Optionally, the apparatus further comprises:
the test result sending module is used for sending the test result to the interface simulation of the dispatching centralized control system after determining the test result of the test instruction according to a preset test result determination rule;
and the test result forwarding module is used for sending the test result to a test engine through the dispatching centralized control system interface in a simulation way so as to record the test by the test engine.
Optionally, the feedback data obtaining module 302 is specifically configured to:
controlling the tested object to convert the test instruction into a target test instruction in a target format according to a data conversion specification pre-stored in the tested object;
and sending the target test instruction from the tested object to the target interface for simulation.
Optionally, the apparatus further comprises:
the target instruction sending module is used for sending the target test instruction from the target interface simulation to a test engine after controlling the tested object to send the test instruction to the target interface simulation;
and the feedback data acquisition module is used for calling a data processing script of the test engine configured in advance to acquire feedback data corresponding to the simulation of the target interface.
The embodiment of the invention transmits the test instruction to the temporary speed limit server to be tested, so that the temporary speed limit server forwards the test instruction to the target interface simulation, the target interface simulation processes the test instruction, and the processing result is fed back to the temporary speed limit server. The target interface simulation does not need to forward the test instruction to the test engine, so that the problem caused by the fact that the test engine executes the test instruction of all interface simulations and the test of all interface simulations needs to be realized in the test script in the prior art is solved, a user can strip the logic irrelevant to the test requirement from the test script according to the requirement to carry out autonomous feedback, the content redundancy of the test script executed by the test engine is reduced, the logic complexity of the script is reduced, the working pressure of the test engine is reduced, and the automatic test efficiency of the temporary speed-limiting server is improved.
Example four
Fig. 4 is a schematic structural diagram of a test device of a temporary speed limit server according to a fourth embodiment of the present invention. The test equipment of the temporary speed limit server is an electronic device and fig. 4 shows a block diagram of an exemplary electronic device 400 suitable for implementing an embodiment of the invention. The electronic device 400 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 4, electronic device 400 is embodied in the form of a general purpose computing device. The components of electronic device 400 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 400 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 400 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 400, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 400 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 400 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown in FIG. 4, the network adapter 412 communicates with the other modules of the electronic device 400 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running the program stored in the system memory 402, for example, implementing a method for testing a temporary speed limit server provided by an embodiment of the present invention, including:
sending a test instruction to a tested object, and determining at least one target interface simulation associated with the test instruction by the tested object according to the association relation between the pre-stored test instruction and a preset interface simulation; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation;
controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to a pre-configured interface simulation processing logic to obtain feedback data of the test instruction;
and sending at least one feedback data to the tested object, so that the tested object determines the test result of the test instruction according to a preset test result determination rule.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the storage medium stores a computer program, and when the computer program is executed by a processor, the method for testing a temporary speed limit server according to the fifth embodiment of the present invention is implemented, where the method includes:
sending a test instruction to a tested object, and determining at least one target interface simulation associated with the test instruction by the tested object according to the association relation between the pre-stored test instruction and a preset interface simulation; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation;
controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to a pre-configured interface simulation processing logic to obtain feedback data of the test instruction;
and sending at least one feedback data to the tested object, so that the tested object determines the test result of the test instruction according to a preset test result determination rule.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A test method of a temporary speed limit server is characterized by comprising the following steps:
sending a test instruction to a tested object, and determining at least one target interface simulation associated with the test instruction by the tested object according to the association relation between the pre-stored test instruction and a preset interface simulation; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation;
controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to a pre-configured interface simulation processing logic to obtain feedback data of the test instruction;
and sending at least one feedback data to the tested object for the tested object to determine the test result of the test instruction according to a preset test result determination rule.
2. The method of claim 1, wherein sending test instructions to the measurand comprises:
responding to a test instruction sent to a test engine by a user, and sending the test instruction to a dispatching centralized control system interface for simulation;
and simulating and sending the test instruction to the tested object from the interface of the dispatching centralized control system.
3. The method of claim 2, after sending the test instructions from the dispatch centralized control system interface simulation to a measurand, further comprising:
determining whether the tested object has an adjacent tested object according to a line connection network of a preset temporary speed limit server;
and if so, controlling the tested object to send the test instruction to the adjacent tested object, and determining at least one adjacent target interface simulation associated with the test instruction according to the association relationship between the pre-stored test instruction of the adjacent tested object and the preset interface simulation.
4. The method of claim 2, after determining the test result of the test instruction according to a preset test result determination rule, further comprising:
sending the test result to a dispatching centralized control system interface for simulation;
and the test result is sent to a test engine through the interface simulation of the dispatching centralized control system, so that the test engine can record the test.
5. The method of claim 1, wherein controlling the object under test to send the test instruction to the target interface simulation comprises:
controlling the tested object to convert the test instruction into a target test instruction in a target format according to a data conversion specification pre-stored in the tested object;
and sending the target test instruction from the tested object to the target interface for simulation.
6. The method of claim 5, after controlling the object under test to send the test instruction to the target interface simulation, further comprising:
sending the target test instruction from the target interface simulation to a test engine;
and calling a data processing script of a pre-configured test engine to obtain feedback data corresponding to the simulation of the target interface.
7. A testing device for a temporary speed limit server is characterized by comprising:
the target interface determining module is used for sending a test instruction to the tested object, so that the tested object determines at least one target interface simulation related to the test instruction according to the incidence relation between the pre-stored test instruction and a preset interface simulation; the tested object is a temporary speed limiting server, and the target interface simulation comprises train control center interface simulation and/or wireless block center interface simulation;
the feedback data acquisition module is used for controlling the tested object to send the test instruction to the target interface simulation, and processing the test instruction at the target interface simulation position according to a pre-configured interface simulation processing logic to obtain feedback data of the test instruction;
and the test result determining module is used for sending at least one piece of feedback data to the tested object so that the tested object can determine the test result of the test instruction according to a preset test result determining rule.
8. The apparatus of claim 7, wherein the target interface determination module comprises:
the instruction issuing unit is used for responding to a test instruction issued to the test engine by a user and sending the test instruction to the interface simulation of the dispatching centralized control system;
and the instruction forwarding unit is used for transmitting the test instruction from the interface of the dispatching centralized control system to the tested object in a simulation way.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for testing the temporary speed limit server according to any one of claims 1 to 6 when executing the program.
10. A storage medium containing computer-executable instructions for performing the method of testing the temporary speed limit server of any one of claims 1-6 when executed by a computer processor.
CN202110790389.4A 2021-07-13 2021-07-13 Test method and device of temporary speed limiting server, electronic equipment and medium Active CN113485881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110790389.4A CN113485881B (en) 2021-07-13 2021-07-13 Test method and device of temporary speed limiting server, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110790389.4A CN113485881B (en) 2021-07-13 2021-07-13 Test method and device of temporary speed limiting server, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113485881A true CN113485881A (en) 2021-10-08
CN113485881B CN113485881B (en) 2024-04-26

Family

ID=77939160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110790389.4A Active CN113485881B (en) 2021-07-13 2021-07-13 Test method and device of temporary speed limiting server, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113485881B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584475A (en) * 2022-05-06 2022-06-03 卡斯柯信号(北京)有限公司 Communication test method and device
CN115118627A (en) * 2022-08-29 2022-09-27 卡斯柯信号(北京)有限公司 Temporary speed limiting server testing method and device
CN115714725A (en) * 2022-10-17 2023-02-24 江西科骏实业有限公司 Network instruction virtual simulation implementation method and system for teaching application

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170361856A1 (en) * 2014-12-23 2017-12-21 Siemens Aktiengesellschaft Method and device for carrying out a test process relating to a rail vehicle
CN108616518A (en) * 2018-04-10 2018-10-02 北京全路通信信号研究设计院集团有限公司 Interface of dispatching centralized system, dispatching centralized system and information transmission method
CN109699023A (en) * 2018-12-12 2019-04-30 中国铁道科学研究院集团有限公司通信信号研究所 The automatic test data encapsulation of high-speed rail signalling arrangement and processing method
CN112463510A (en) * 2021-01-25 2021-03-09 卡斯柯信号(北京)有限公司 Deployment method and device of temporary speed limiting server test system
CN112810668A (en) * 2021-04-19 2021-05-18 卡斯柯信号(北京)有限公司 Method and device for generating speed limit test data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170361856A1 (en) * 2014-12-23 2017-12-21 Siemens Aktiengesellschaft Method and device for carrying out a test process relating to a rail vehicle
CN108616518A (en) * 2018-04-10 2018-10-02 北京全路通信信号研究设计院集团有限公司 Interface of dispatching centralized system, dispatching centralized system and information transmission method
CN109699023A (en) * 2018-12-12 2019-04-30 中国铁道科学研究院集团有限公司通信信号研究所 The automatic test data encapsulation of high-speed rail signalling arrangement and processing method
CN112463510A (en) * 2021-01-25 2021-03-09 卡斯柯信号(北京)有限公司 Deployment method and device of temporary speed limiting server test system
CN112810668A (en) * 2021-04-19 2021-05-18 卡斯柯信号(北京)有限公司 Method and device for generating speed limit test data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
段雯誉;杨扬;李毓磊;: "基于CTCS-3级列车控制场景下的CTC仿真系统研究与设计", 铁路计算机应用, no. 02, pages 53 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584475A (en) * 2022-05-06 2022-06-03 卡斯柯信号(北京)有限公司 Communication test method and device
CN114584475B (en) * 2022-05-06 2022-08-30 卡斯柯信号(北京)有限公司 Communication test method and device
CN115118627A (en) * 2022-08-29 2022-09-27 卡斯柯信号(北京)有限公司 Temporary speed limiting server testing method and device
CN115118627B (en) * 2022-08-29 2022-12-09 卡斯柯信号(北京)有限公司 Temporary speed limiting server testing method and device
CN115714725A (en) * 2022-10-17 2023-02-24 江西科骏实业有限公司 Network instruction virtual simulation implementation method and system for teaching application
CN115714725B (en) * 2022-10-17 2023-09-12 江西科骏实业有限公司 Teaching application-oriented network instruction virtual simulation implementation method and system

Also Published As

Publication number Publication date
CN113485881B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
CN113485881B (en) Test method and device of temporary speed limiting server, electronic equipment and medium
US11321122B2 (en) Method, apparatus, device and medium for processing topological relation of tasks
CN110909460B (en) V2X simulation test method, device, equipment and storage medium for Internet of vehicles
WO2023125852A1 (en) Remote diagnosis method and apparatus, and electronic device and storage medium
CN112905262B (en) Configuration method and device of aerospace measurement and control system
CN111930489A (en) Task scheduling method, device, equipment and storage medium
CN113384896B (en) Resource packaging method, device, equipment and medium based on Unity
CN110554929B (en) Data verification method, device, computer equipment and storage medium
CN111984303A (en) Transaction data processing method, device, equipment and storage medium
CN112367680A (en) External communication test method and device based on intelligent electric meter and computer equipment
CN110647318A (en) Method, device, equipment and medium for creating instance of stateful application
CN113572658A (en) Vehicle control signal testing method and device, electronic equipment and storage medium
WO2023103248A1 (en) Automatic device commissioning method, apparatus, device, system, and storage medium
CN112765246A (en) Task processing method and device, electronic equipment and storage medium
CN112069158A (en) Data restoration method, device, equipment and storage medium
CN110888641A (en) Automatic script generation method and device, server and storage medium
CN116118826A (en) General simulation method, system, equipment and medium for train operation scene
CN112084114B (en) Method and apparatus for testing interfaces
CN112131611B (en) Data correctness verification method, device, equipment, system and storage medium
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN112650698A (en) Data transmission method and device, electronic equipment and storage medium
CN111654547A (en) Data transmission method, device, equipment and storage medium
CN111857664B (en) Application development method, device, equipment and storage medium
CN112711602A (en) Running method and device of storage process, database system and storage medium

Legal Events

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