CN111026089A - Automatic deployment method and device for train control center test environment - Google Patents

Automatic deployment method and device for train control center test environment Download PDF

Info

Publication number
CN111026089A
CN111026089A CN201911356118.7A CN201911356118A CN111026089A CN 111026089 A CN111026089 A CN 111026089A CN 201911356118 A CN201911356118 A CN 201911356118A CN 111026089 A CN111026089 A CN 111026089A
Authority
CN
China
Prior art keywords
test
test object
software required
peripheral software
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911356118.7A
Other languages
Chinese (zh)
Other versions
CN111026089B (en
Inventor
宋青阳
徐建华
张瑞
郭海琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casco Signal Beijing Ltd
Original Assignee
Casco Signal Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casco Signal Beijing Ltd filed Critical Casco Signal Beijing Ltd
Priority to CN201911356118.7A priority Critical patent/CN111026089B/en
Publication of CN111026089A publication Critical patent/CN111026089A/en
Application granted granted Critical
Publication of CN111026089B publication Critical patent/CN111026089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for automatically deploying a test environment of a train control center, which relate to the technical field of railway control system maintenance. The main technical scheme of the invention is as follows: acquiring a test object, configuration data corresponding to the test object and peripheral software required by the test from a data server; replacing data information written into a lower computer chip by using the test object and the configuration data corresponding to the test object and restarting the lower computer; and deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test. The method is mainly applied to the process of automatically deploying the test environment.

Description

Automatic deployment method and device for train control center test environment
Technical Field
The invention relates to the technical field of railway control system maintenance, in particular to a method and a device for automatically deploying a test environment of a train control center.
Background
With the development and innovation of information technology, a Chinese Train operation control system (CTCS) is also continuously developed, a Train control center is an important component of a CTCS-2-level Train control system, the Train control center is ground safety equipment arranged at each station or relay station, and is connected with a track circuit, a computer interlock, a temporary speed limit server, other station Train control centers, a responder ground electronic unit, a CTC and signal centralized monitoring, so that the control and management of functions such as track circuits, active responders, section directions, block control and the like are realized. The train control center plays an important role in the efficient and safe operation of the passenger special railway train.
Currently, in the process of testing functions and data of a train control center, for different testing tasks, the testing environment needs to be replaced and deployed manually and frequently, for example: for each test task, manually acquiring an original data file containing a test object and a configuration test object from a data server, and uploading the original data file to the test server; for the operation of replacing the data information in the lower computer, the chip in the lower computer is usually taken out, and the data file required by the lower computer is written in by using the chip writer and restarted; in addition, the matched test environment peripheral software needs to be replaced again according to the test task, and the like. However, such repetitive labor increases the workload of the tester, affecting the efficiency of the test.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for automatically deploying a test environment in a train control center, and mainly aims to implement automation of a test environment deployment process before testing by using an automatic deployment tool on a client side, so as to save labor and time costs, improve deployment efficiency, and also contribute to improving test efficiency.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
in a first aspect, the present invention provides a method for automatically deploying a test environment of a train control center, where the method includes:
acquiring a test object, configuration data corresponding to the test object and peripheral software required by the test from a data server;
replacing data information written into a lower computer chip by using the test object and the configuration data corresponding to the test object and restarting the lower computer;
and deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test.
Optionally, the obtaining a test object and configuration data corresponding to the test object from a data server includes:
after first identification information input by a user is received, finding a test object and a data compression packet matched with the first identification information from the data server according to the first identification information;
downloading the test object;
and acquiring corresponding configuration data by decompressing the data compression packet.
Optionally, the replacing, by using the test object and the configuration data corresponding to the test object, the data information written on the lower computer chip includes:
establishing network connection with a lower computer by calling a preset configuration file;
uploading the test object and the configuration data corresponding to the test object through a network data exchange protocol and writing the configuration data into the lower computer chip;
optionally, restart the lower computer includes:
establishing network connection with a remote power supply module by calling a preset configuration file;
and sending a control command to the remote power supply module, wherein the control command is used for restarting the lower computer.
Optionally, the obtaining peripheral software required for testing from the data server includes:
after second identification information input by a user is received, searching a simulator software compressed package matched with the second identification information from the data server according to the second identification information;
and acquiring corresponding peripheral software required by the test by decompressing the simulator software compression packet.
Optionally, the deploying the peripheral software required for the test to a test server and starting the peripheral software required for the test includes:
configuring peripheral software required by the test according to the configuration data corresponding to the test object;
compressing peripheral software required for testing after configuration processing to obtain a compressed packet of the peripheral software required for testing;
sending the compressed packet of the peripheral software required by the test to a test server;
controlling the test server side to remotely decompress the compressed packet of the peripheral software required by the test to obtain decompressed peripheral software required by the test;
and controlling the test server side to remotely start the peripheral software required by the decompressed test.
In a second aspect, the present invention further provides an automatic deployment apparatus for a test environment of a train control center, including:
the device comprises an acquisition unit, a test unit and a control unit, wherein the acquisition unit is used for acquiring a test object, configuration data corresponding to the test object and peripheral software required by the test from a data server;
a replacement unit configured to replace data information written on the lower computer chip with the test object and the configuration data corresponding to the test object;
the restarting unit is used for restarting the lower computer;
the deployment unit is used for deploying the peripheral software required by the test to a test server;
and the starting unit is used for starting the peripheral software required by the test.
Optionally, the obtaining unit includes:
the searching module is used for searching a test object and a data compression packet which are matched with first identification information from the data server according to the first identification information after receiving the first identification information input by a user;
the downloading module is used for downloading the test object;
the decompression module is used for decompressing the data compression packet;
and the acquisition module is used for acquiring the corresponding configuration data.
Optionally, the replacement unit includes:
the establishing module is used for establishing network connection with the lower computer by calling a preset configuration file;
the execution module is used for uploading the test object and the configuration data corresponding to the test object through a network data exchange protocol and writing the configuration data into the lower computer chip;
optionally, the restart unit includes:
the establishing module is used for establishing network connection with the remote power supply module by calling a preset configuration file;
and the sending module is used for sending a control command to the remote power supply module, and the control command is used for restarting the lower computer.
Optionally, the obtaining unit includes:
the searching module is further used for searching a simulator software compression package matched with second identification information from the data server according to the second identification information after receiving the second identification information input by a user;
the decompression module is also used for decompressing the simulator software compression packet;
the acquisition module is further used for acquiring the peripheral software required by the corresponding test.
Optionally, the deployment unit includes:
the configuration module is used for configuring peripheral software required by the test according to the configuration data corresponding to the test object;
the compression module is used for compressing the peripheral software required by the test after the configuration processing to obtain a compression packet of the peripheral software required by the test;
the sending module is used for sending the compressed packet of the peripheral software required by the test to a test server;
and the control module is used for remotely decompressing the compressed packet of the peripheral software required by the test at the test server side to obtain the decompressed peripheral software required by the test.
Optionally, the starting unit includes:
and the control module is used for controlling the peripheral software required by the test after the decompression is remotely started at the test server side.
In a third aspect, the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the above automatic deployment method for the test environment of the train control center.
In a fourth aspect, the present invention also provides an electronic device, comprising at least one processor, and at least one memory, a bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory so as to execute the automatic deployment method of the test environment of the train control center.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
the invention provides a method and a device for automatically deploying a test environment of a train control center. And sending the test object and the corresponding configuration data to the lower computer to complete the replacement and the restart of the data information written into the lower computer chip. And deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test. Compared with the prior art, the problem that excessive manpower and time cost are consumed and the efficiency is low due to manual test environment deployment is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of an automatic deployment method of a train control center test environment according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for automatically deploying a test environment of a train control center according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a test application scenario provided by an embodiment of the present invention;
fig. 4 is a block diagram of a device for automatically deploying a test environment in a train control center according to an embodiment of the present invention;
fig. 5 is a block diagram of another automatic deployment apparatus for a test environment of a train control center according to an embodiment of the present invention;
fig. 6 is an electronic device automatically deployed in a test environment of a column control center according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides an automatic deployment method of a test environment of a train control center, as shown in fig. 1, the method utilizes an automatic deployment tool at a client side to establish network connection with a data server, a lower computer and a test server so as to complete the process of automatically deploying the test environment, and the method is applied to the automatic deployment tool, and the following specific steps are provided for the embodiment of the invention:
101. acquiring a test object, configuration data corresponding to the test object and peripheral software required by the test from a data server;
the test object is column control center software and serves as software to be tested. The configuration data corresponding to the test object is the data required for configuring the software to be tested.
The peripheral software required for testing is a simulation tool, simulator software, etc. for assisting in completing testing of the test object, such as: the system comprises a CITB (namely an analog drive acquisition circuit), an analog CTC (namely a train dispatching centralized command control system), an analog CBI (namely a computer interlock), an analog TSRS (namely a temporary speed limiting server), an analog ZPW (namely a track circuit) and an analog adjacent TCC (namely a train control center), wherein peripheral software is deployed in advance in a test environment and is used for assisting in completing test work on a test object.
In the embodiment of the invention, the test object, the configuration data corresponding to the test object and the peripheral software required for testing are prestored at the data server side according to the test requirements of different test tasks, and before the test task is executed once, when the test environment needs to be deployed, the test object required for deploying the test environment, the configuration data corresponding to the test object and the peripheral software required for testing are downloaded from the data server side by using the automatic deployment tool at the client side.
102. And replacing the data information written into the lower computer chip and restarting the lower computer by using the test object and the configuration data corresponding to the test object.
In the embodiment of the present invention, after the client-side automatic deployment tool downloads the test object and the corresponding configuration data, the test object and the configuration data corresponding to the test object are sent to the lower computer, the lower computer includes an upper module and a lower module of a double system of the lower computer A, B and a DVCOM (communication module), and data in each module needs to be replaced. And after the data information written into the lower computer chip is automatically replaced, remotely controlling and restarting the lower computer by using the client side automatic deployment tool, so that the replaced data information becomes effective.
103. And deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test.
In the embodiment of the present invention, after the client-side automatic deployment tool downloads the peripheral software required for testing, the peripheral software required for testing is sent to the testing server, and for the embodiment of the present invention, the number of the testing servers may be 1 or more. For each test server, after receiving the peripheral software required for testing, the client-side automatic deployment tool remotely controls and starts the peripheral software required for testing on the test server side so as to complete the deployment of the test environment on the test server side.
The embodiment of the invention provides an automatic deployment method for a test environment of a train control center. And sending the test object and the corresponding configuration data to the lower computer to complete the replacement and the restart of the data information written into the lower computer chip. And deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test. Compared with the prior art, the problem that excessive labor and time cost are consumed and the efficiency is low due to manual test environment deployment is solved.
In order to explain the above embodiment in more detail, as shown in fig. 2, the embodiment of the present invention further provides another automatic deployment method for a train control center test environment, which realizes further detailed statement and supplementary statement for the above steps 101-103, and for this embodiment of the present invention, the following specific steps are provided:
201. and pre-writing a configuration file on the client-side automatic deployment tool, wherein the configuration file is used for configuring network connection of the automatic deployment tool and other hardware devices in the test application scene respectively.
It should be noted that, as shown in fig. 3, a test application scenario including a client-side automatic deployment tool, a data server, a lower computer, a remote power control module, and a test server is constructed in advance. In a test application scenario, these hardware devices are allowed to access the network, thereby enabling data communication between the client-side automated deployment tool and other device hardware.
In the embodiment of the invention, the pre-written configuration file at least comprises the IP address, the port number and the host name of different other hardware devices in the test application scene, so that when the automatic deployment tool at the client side calls the configuration file, the network connection can be automatically established with the appointed other hardware devices, and the data communication is realized.
202. And acquiring the test object, the configuration data corresponding to the test object and the peripheral software required by the test from the data server.
In the embodiment of the invention, the data information required by the test environment is stored and deployed on the data server side according to the test requirements of different test tasks, so that the data server side is equivalent to a data storage end, and the automatic deployment tool on the client side is equivalent to a control end, thereby realizing the separation between the data storage end and the control end, and facilitating the unified management of data calling, control and the like.
Further, for the embodiment of the present invention, the data identifier may be used to implement invocation/control of the data information stored by the data server side by the client-side automatic deployment tool, for example: the method comprises the steps that a test object stored at a data server side, configuration data corresponding to the test object and peripheral software required by testing are added with identification information in advance, so that a preset mapping relation between a data file and the identification information is constructed at the data server side in advance, and when an automatic deployment tool at a client side receives the identification information input by a user, the specified data file can be automatically downloaded/called from the data server side.
Specifically, the following is set forth in detail for the configuration data corresponding to the test object obtained from the data server:
after receiving the identification information input by the user, searching the test object and the data compression packet matched with the identification information from the data server according to the identification information, downloading the test object, and decompressing the data compression packet to obtain corresponding configuration data.
Specifically, the detailed statement about the peripheral software required for obtaining the test from the data server is as follows:
after identification information input by a user is received, a simulator software compression packet matched with the identification information is searched from the data server according to the identification information, and corresponding peripheral software required by testing is obtained by decompressing the simulator software compression packet.
Furthermore, it should be noted that, a data file at the data server side corresponds to unique identification information, but because the test object and the configuration data corresponding to the test object have a mapping relation, therefore, in order to simplify the operation of searching the identification information corresponding to the designated file on the data server side, when the identification information is added to the data file in advance on the data server side, an identification information may also be added to the mapping relationship existing between the test object and the configuration data corresponding to the test object, so that, after the automatic deployment tool at the client side receives the user input of the identification information and sends the identification information to the data server side, the data server side can search two data files (namely, the test object and the configuration data corresponding to the test object) according to the identification information, so that the file retrieval efficiency of the data server side is improved.
In the embodiment of the invention, the client side automatic deployment tool is utilized to automatically download the test object and the configuration data from the data server according to the identification information, so that the risk of manually taking wrong data is avoided.
203. And replacing the data information written into the lower computer chip by using the test object and the configuration data corresponding to the test object.
In the embodiment of the invention, the detailed statement of the step is as follows: the network connection with the lower computer is automatically established by calling a preset configuration file, where the preset configuration file is a configuration file pre-programmed on the client-side automatic deployment tool in step 201, and the test object and the configuration data corresponding to the test object are uploaded and written into the lower computer chip through a network data exchange protocol. Specifically, the test object and the configuration data corresponding to the test object are sent to a module corresponding to the lower computer through a File Transfer Protocol (FTP) and an FTP library (a high-level abstract FTP management library) based on Python (an object-oriented interpreted language), so that the writing of the replaced data information into the lower computer is completed.
204. And restarting the lower computer.
In the embodiment of the invention, the detailed statement of the step is as follows: and automatically establishing network connection with the remote power supply module by calling a preset configuration file, wherein the preset configuration file is a configuration file which is compiled in advance on the automatic deployment tool at the client side in the step 201, and a control command is sent to the remote power supply module, and the control command is used for restarting the lower computer to enable the data information replaced in the lower computer to take effect.
It should be noted that, in the above step 203 and 204, for the embodiment of the present invention, the remote power module is used to control and restart the lower computer, instead of manually restarting the lower computer, the data information of the lower computer is replaced by ftp and is restarted in combination with the remote power control module, and the data information of the lower computer can be replaced in the operating room without the need of entering the equipment room by a worker.
205. And deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test.
In the embodiment of the present invention, the detailed statement of the step may include the following:
first, since the peripheral software necessary for the test is used for assisting the test of the test object, the peripheral software necessary for the test is automatically configured by using the client-side automatic deployment tool according to the configuration data corresponding to the test object. And compressing the peripheral software required by the test after the configuration processing to obtain a compressed packet of the peripheral software required by the test.
Next, the compressed packet of the peripheral software necessary for the test is transmitted to the test server.
In the embodiment of the present invention, at the client side, the preset configuration file edited in step 201 is called, the network connection with the test server is automatically established, and the compressed packet of the peripheral software required for the test is sent to the test server.
Specifically, for the embodiment of the present invention, the client-side automatic deployment tool may send the compressed packet of the peripheral software required for testing to the test server through a Secure Shell (SSH) protocol and a Fabric library of Python (i.e., a high-level abstract SSH management library), where the SSH protocol is a protocol dedicated to providing security for telnet sessions and other network services.
And finally, the automatic deployment tool at the client side controls the test server side to remotely decompress the compressed package of the peripheral software required by the test, so as to obtain the decompressed peripheral software required by the test. Then, the client-side automatic deployment tool controls the testing server side to remotely start the decompressed peripheral software required for testing so as to complete the deployment of the testing environment on the testing server side.
Specifically, for the embodiment of the present invention, the client-side automatic deployment tool may remotely decompress the compressed packets of the peripheral software required for testing, which have been sent to the testing server side, through the SSH protocol and the Fabric library of Python (i.e., a high-level abstract SSH management library), and remotely start the peripheral software required for testing in each testing server through the PsExec tool (i.e., a tool provided by microsoft officials for remotely running programs).
Further, as an implementation of the method shown in fig. 1 and fig. 2, an embodiment of the present invention provides an automatic deployment apparatus for a test environment of a train control center. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. The device is applied to realize the automation of the test environment deployment process before testing by using an automatic deployment tool at the client side, and specifically as shown in fig. 4, the device comprises:
an obtaining unit 31, configured to obtain a test object, configuration data corresponding to the test object, and peripheral software required for testing from a data server;
a replacing unit 32 configured to replace the data information written on the lower computer chip with the test object and the configuration data corresponding to the test object;
a restart unit 33 for restarting the lower computer;
a deployment unit 34, configured to deploy the peripheral software required for the test to a test server;
and the starting unit 35 is used for starting the peripheral software required by the test.
Further, as shown in fig. 5, the acquiring unit 31 includes:
the searching module 311 is configured to, after receiving first identification information input by a user, search a test object and a data compression packet matching the first identification information from the data server according to the first identification information;
a downloading module 312, configured to download the test object;
a decompression module 313 for decompressing the data compression packet;
the obtaining module 314 is configured to obtain corresponding configuration data.
Further, as shown in fig. 5, the replacement unit 32 includes:
the establishing module 321 is configured to establish a network connection with a lower computer by calling a preset configuration file;
an execution module 322, configured to upload and write the test object and the configuration data corresponding to the test object into the lower computer chip through a network data exchange protocol;
further, as shown in fig. 5, the restart unit 33 includes:
the establishing module 331 is configured to establish a network connection with the remote power module by calling a preset configuration file;
and the sending module 332 is configured to send a control command to the remote power supply module, where the control command is used to restart the lower computer.
Further, as shown in fig. 5, the acquiring unit 31 includes:
the searching module 311 is further configured to search, after receiving second identification information input by a user, a simulator software compression package matched with the second identification information from the data server according to the second identification information;
the decompression module 313 is further configured to decompress the simulator software compression packet;
the obtaining module 314 is further configured to obtain corresponding peripheral software required for testing.
Further, as shown in fig. 5, the deployment unit 34 includes:
a configuration module 341, configured to configure the peripheral software required for the test according to the configuration data corresponding to the test object;
the compression module 342 is configured to compress the peripheral software required for testing after configuration processing to obtain a compression packet of the peripheral software required for testing;
a sending module 343, configured to send the compressed packet of the peripheral software required for the test to the test server;
and the control module 344 is configured to control the test server to remotely decompress the compressed packet of the peripheral software required for the test, so as to obtain the decompressed peripheral software required for the test.
Further, as shown in fig. 5, the starting unit 35 includes:
the control module 351 is used for controlling the test server side to remotely start the decompressed peripheral software required by the test.
In summary, embodiments of the present invention provide an automatic deployment method and apparatus for a train control center test environment, where an automatic deployment tool is pre-constructed on a client side in the present invention, and the automatic deployment tool is used to invoke a test object, corresponding configuration data, and peripheral software required for testing from a data server. And sending the test object and the corresponding configuration data to the lower computer to complete the replacement and the restart of the data information written into the lower computer chip. And deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test. Compared with the prior art, the problem that excessive labor and time cost are consumed and the efficiency is low due to manual test environment deployment is solved.
The automatic deployment device for the test environment of the train control center comprises a processor and a memory, wherein the acquisition unit, the replacement unit, the restart unit, the deployment unit, the starting unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, automation of the test environment deployment process before testing is realized by using an automatic deployment tool at the client side through adjusting kernel parameters, labor and time cost are saved, deployment efficiency is improved, and the improvement of the test efficiency is facilitated.
The embodiment of the invention provides a storage medium, wherein a program is stored on the storage medium, and the program realizes the automatic deployment method of the test environment of the train control center when being executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the automatic deployment method of the test environment of the train control center is executed when the program runs.
An embodiment of the present invention provides an electronic device 40, as shown in fig. 6, the device includes at least one processor 401, and at least one memory 402 and a bus 403 connected to the processor 401; the processor 401 and the memory 402 complete communication with each other through the bus 403; the processor 401 is configured to call the program instructions in the memory 402 to execute the automatic deployment method of the column control center test environment.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: acquiring a test object, configuration data corresponding to the test object and peripheral software required by the test from a data server; replacing data information written into a lower computer chip by using the test object and the configuration data corresponding to the test object and restarting the lower computer; and deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for automatically deploying a test environment of a train control center is characterized by comprising the following steps:
acquiring a test object, configuration data corresponding to the test object and peripheral software required by the test from a data server;
replacing data information written into a lower computer chip by using the test object and the configuration data corresponding to the test object and restarting the lower computer;
and deploying the peripheral software required by the test to a test server and starting the peripheral software required by the test.
2. The method of claim 1, wherein the obtaining a test object and configuration data corresponding to the test object from a data server comprises:
after first identification information input by a user is received, finding a test object and a data compression packet matched with the first identification information from the data server according to the first identification information;
downloading the test object;
and acquiring corresponding configuration data by decompressing the data compression packet.
3. The method of claim 1, wherein replacing the data information written to the lower computer chip with the test object and the configuration data corresponding to the test object comprises:
establishing network connection with a lower computer by calling a preset configuration file;
and uploading the test object and the configuration data corresponding to the test object through a network data exchange protocol and writing the configuration data into the lower computer chip.
4. The method of claim 1 or 3, wherein the restarting the lower computer comprises:
establishing network connection with a remote power supply module by calling a preset configuration file;
and sending a control command to the remote power supply module, wherein the control command is used for restarting the lower computer.
5. The method of claim 1, wherein the obtaining peripheral software required for testing from a data server comprises:
after second identification information input by a user is received, searching a simulator software compressed package matched with the second identification information from the data server according to the second identification information;
and acquiring corresponding peripheral software required by the test by decompressing the simulator software compression packet.
6. The method according to claim 1, wherein said deploying the peripheral software for testing to a testing server and starting the peripheral software for testing comprises:
configuring peripheral software required by the test according to the configuration data corresponding to the test object;
compressing peripheral software required for testing after configuration processing to obtain a compressed packet of the peripheral software required for testing;
sending the compressed packet of the peripheral software required by the test to a test server;
controlling the test server side to remotely decompress the compressed packet of the peripheral software required by the test to obtain decompressed peripheral software required by the test;
and controlling the test server side to remotely start the peripheral software required by the decompressed test.
7. An automatic deployment device for a train control center test environment, the device comprising:
the device comprises an acquisition unit, a test unit and a control unit, wherein the acquisition unit is used for acquiring a test object, configuration data corresponding to the test object and peripheral software required by the test from a data server;
a replacement unit configured to replace data information written on the lower computer chip with the test object and the configuration data corresponding to the test object;
the restarting unit is used for restarting the lower computer;
the deployment unit is used for deploying the peripheral software required by the test to a test server;
and the starting unit is used for starting the peripheral software required by the test.
8. The apparatus of claim 7, wherein the obtaining unit comprises:
the searching module is used for searching a test object and a data compression packet which are matched with first identification information from the data server according to the first identification information after receiving the first identification information input by a user;
the downloading module is used for downloading the test object;
the decompression module is used for decompressing the data compression packet;
and the acquisition module is used for acquiring the corresponding configuration data.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the automatic deployment method of the column control center test environment according to any one of claims 1 to 6.
10. An electronic device, comprising at least one processor, and at least one memory, bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is configured to call program instructions in the memory to perform the train control center test environment auto-deployment method of any one of claims 1-6.
CN201911356118.7A 2019-12-25 2019-12-25 Automatic deployment method and device for train control center test environment Active CN111026089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911356118.7A CN111026089B (en) 2019-12-25 2019-12-25 Automatic deployment method and device for train control center test environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911356118.7A CN111026089B (en) 2019-12-25 2019-12-25 Automatic deployment method and device for train control center test environment

Publications (2)

Publication Number Publication Date
CN111026089A true CN111026089A (en) 2020-04-17
CN111026089B CN111026089B (en) 2021-06-15

Family

ID=70213120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911356118.7A Active CN111026089B (en) 2019-12-25 2019-12-25 Automatic deployment method and device for train control center test environment

Country Status (1)

Country Link
CN (1) CN111026089B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152665A (en) * 2020-09-28 2020-12-29 北京锐为信科技有限公司 Optical block remote switching system
CN112396905A (en) * 2020-11-12 2021-02-23 中国铁路郑州局集团有限公司 Cross-network and distance-crossing-based railway multiplex distributed simulation method and system
CN112463510A (en) * 2021-01-25 2021-03-09 卡斯柯信号(北京)有限公司 Deployment method and device of temporary speed limiting server test system
CN113094261A (en) * 2021-03-23 2021-07-09 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for automatically updating test environment
CN113253708A (en) * 2021-06-07 2021-08-13 卡斯柯信号(北京)有限公司 Method and device for automatically generating simulation tool configuration file for signal system test

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109614321A (en) * 2018-11-24 2019-04-12 卡斯柯信号有限公司 For the continuous integrating of ATS software and the system of delivery
CN109840210A (en) * 2019-01-30 2019-06-04 郑州云海信息技术有限公司 A kind of test method, device and electronic equipment
CN110008123A (en) * 2019-03-28 2019-07-12 武汉达梦数据库有限公司 A kind of method of automatic deployment test software and corresponding device
CN110134583A (en) * 2019-04-11 2019-08-16 口碑(上海)信息技术有限公司 Software test and data processing method and device
US20190294528A1 (en) * 2018-03-26 2019-09-26 Ca, Inc. Automated software deployment and testing
CN110532170A (en) * 2019-07-18 2019-12-03 北京文渊佳科技有限公司 Build method, apparatus, electronic equipment and the medium of test environment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190294528A1 (en) * 2018-03-26 2019-09-26 Ca, Inc. Automated software deployment and testing
CN109614321A (en) * 2018-11-24 2019-04-12 卡斯柯信号有限公司 For the continuous integrating of ATS software and the system of delivery
CN109840210A (en) * 2019-01-30 2019-06-04 郑州云海信息技术有限公司 A kind of test method, device and electronic equipment
CN110008123A (en) * 2019-03-28 2019-07-12 武汉达梦数据库有限公司 A kind of method of automatic deployment test software and corresponding device
CN110134583A (en) * 2019-04-11 2019-08-16 口碑(上海)信息技术有限公司 Software test and data processing method and device
CN110532170A (en) * 2019-07-18 2019-12-03 北京文渊佳科技有限公司 Build method, apparatus, electronic equipment and the medium of test environment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112152665A (en) * 2020-09-28 2020-12-29 北京锐为信科技有限公司 Optical block remote switching system
CN112396905A (en) * 2020-11-12 2021-02-23 中国铁路郑州局集团有限公司 Cross-network and distance-crossing-based railway multiplex distributed simulation method and system
CN112463510A (en) * 2021-01-25 2021-03-09 卡斯柯信号(北京)有限公司 Deployment method and device of temporary speed limiting server test system
CN113094261A (en) * 2021-03-23 2021-07-09 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for automatically updating test environment
CN113094261B (en) * 2021-03-23 2023-06-27 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for automatically updating test environment
CN113253708A (en) * 2021-06-07 2021-08-13 卡斯柯信号(北京)有限公司 Method and device for automatically generating simulation tool configuration file for signal system test

Also Published As

Publication number Publication date
CN111026089B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN111026089B (en) Automatic deployment method and device for train control center test environment
CN109525624B (en) Container login method and device and storage medium
CN107733985B (en) Method and device for deploying functional components of cloud computing system
CN105373404A (en) Software mirror image burning method and equipment
CN107911467B (en) Service operation management system and method for scripted operation
CN111796838B (en) Automatic deployment method and device for MPP database
CN108549542A (en) A kind of file dispositions method, device and equipment
CN115357198B (en) Mounting method and device of storage volume, storage medium and electronic equipment
CN113687858A (en) Configuration file checking method and device, electronic equipment and storage medium
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN109286617B (en) Data processing method and related equipment
CN108616966B (en) Wireless networking method and device of air conditioning system
CN104572255A (en) Multilayer application hosting method, device and system
CN109660575B (en) Method and device for realizing NFV service deployment
CN115357258A (en) Application deployment method and device, storage medium and electronic device
CN114490746A (en) Equipment testing method and device, equipment to be tested and storage medium
CN115473799B (en) System and method for automatically deploying micro-service application of virtual machine
CN109561121B (en) Method and device for monitoring deployment
CN110266762A (en) Data uploading method, system, device and storage medium
CN115344356B (en) Distributed training system based on containerization realization and construction method thereof
CN111399943B (en) Data processing method, device, storage medium and electronic device
CN110213127B (en) Automated testing system and method fusing virtualization multitasks
CN114258020B (en) Proprietary cloud deployment method, platform and electronic equipment
CN109495288B (en) Service deployment method and device
CN116170345A (en) Automatic flow testing method, equipment and 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