CN111309533B - Automatic test system - Google Patents

Automatic test system Download PDF

Info

Publication number
CN111309533B
CN111309533B CN202010084965.9A CN202010084965A CN111309533B CN 111309533 B CN111309533 B CN 111309533B CN 202010084965 A CN202010084965 A CN 202010084965A CN 111309533 B CN111309533 B CN 111309533B
Authority
CN
China
Prior art keywords
subsystem
test
speed limit
test case
case
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.)
Active
Application number
CN202010084965.9A
Other languages
Chinese (zh)
Other versions
CN111309533A (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.)
Beijing Jiaoda Microunion Tech Co ltd
Nanjing Electric Department of China Railway Shanghai Group Co Ltd
Original Assignee
Beijing Jiaoda Microunion Tech Co ltd
Nanjing Electric Department of China Railway Shanghai 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 Beijing Jiaoda Microunion Tech Co ltd, Nanjing Electric Department of China Railway Shanghai Group Co Ltd filed Critical Beijing Jiaoda Microunion Tech Co ltd
Priority to CN202010084965.9A priority Critical patent/CN111309533B/en
Publication of CN111309533A publication Critical patent/CN111309533A/en
Application granted granted Critical
Publication of CN111309533B publication Critical patent/CN111309533B/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/261Functional testing by simulating additional hardware, e.g. fault simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • 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
    • 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)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses an automatic test system, which is used for testing a temporary speed limiting server and comprises the following components: the server comprises a WEB server subsystem and a use case control subsystem; the system comprises a client side and a data processing system, wherein the client side comprises a CTC simulation subsystem and a TCC simulation subsystem, the CTC simulation subsystem is used for generating a corresponding speed limit command according to a test case and sending the speed limit command to a tested temporary speed limit server, and the TCC simulation subsystem is used for receiving and processing first response data of the tested temporary speed limit server for the speed limit command; the CTC simulation subsystem is further used for sending the processed first response data to the case control subsystem, and the case control subsystem is further used for generating a first test report according to the first response data and the test case. The system can automatically generate a test report, realizes automatic testing, has high automation degree, saves labor cost, can avoid artificial interference factors, improves testing efficiency, and ensures testing accuracy.

Description

Automatic test system
Technical Field
The invention relates to the field of automatic testing, in particular to an automatic testing system.
Background
Currently, a manual test mode is mostly adopted for testing a Speed limiting function issued by a TSRS (Temporary Speed limiting Server). With the increase of the construction speed of high-speed railways in China, train control manufacturers and electric service departments need to test TSRSs of a plurality of lines every year.
The problem that the number of the blocked lines is large, the speed limit issuing process is complicated, so that a plurality of test items are caused, large manpower and material resources are consumed, the test result of the test items is inaccurate due to human negligence, fatigue and the like, and the problem that the test efficiency is low is particularly remarkable along with the increase of the opened lines.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention aims to provide an automatic testing system to realize automatic testing, the degree of automation is high, and the labor cost is saved, so that the manual interference factors can be avoided, the testing efficiency is improved, and the testing accuracy is ensured.
In order to achieve the above object, an embodiment of the present invention provides an automatic test system, configured to test a temporary speed limit server, where the automatic test system includes:
the system comprises a server, a test case control subsystem and a test case management subsystem, wherein the server comprises a WEB server subsystem and a case control subsystem, the WEB server subsystem is used for realizing human-computer interaction, and the case control subsystem is used for providing a corresponding test case when receiving a test instruction input by a tester through the WEB server subsystem;
the system comprises a client, a test case, a TCC (transmission control center) simulation subsystem and a test case simulation subsystem, wherein the client comprises the CTC simulation subsystem and the TCC simulation subsystem, the CTC simulation subsystem is used for generating a corresponding speed limit command according to the test case and sending the speed limit command to a tested temporary speed limit server, and the TCC simulation subsystem is used for receiving and processing first response data of the tested temporary speed limit server aiming at the speed limit command and sending the processed first response data to the CTC simulation subsystem;
the CTC simulation subsystem is further configured to send the processed first response data to the case control subsystem, and the case control subsystem is further configured to generate a first test report according to the first response data and the test case.
According to the automatic test system provided by the embodiment of the invention, a corresponding test case is provided through a test case system according to a test instruction, a corresponding speed limit instruction is generated through a CTC simulation subsystem according to the test instruction, and the speed limit instruction is sent to a tested temporary speed limit server; the TCC simulation subsystem receives and processes first response data of the tested temporary speed limit server for the speed limit command, and sends the processed first response data to the CTC simulation subsystem, and the CTC simulation subsystem sends the processed first response data to the case control subsystem, so that the case control subsystem generates a first test report according to the first response data and the test case.
Therefore, the automatic test system automatically generates the test cases according to the test instructions and finally automatically generates the test reports, so that automatic test is realized, the automation degree is high, the labor cost is saved, manual interference factors can be avoided, the test efficiency is improved, and the test accuracy is ensured.
In addition, the automated testing system according to the above embodiment of the present invention may also show the following additional technical features:
according to an embodiment of the present invention, the client further comprises: and the test case execution subsystem is used for reading the test case to be executed provided by the case control subsystem, sending the test case to be executed to the CTC simulation subsystem, and updating the execution condition of the test case to be executed in real time.
According to one embodiment of the invention, the TCC simulation subsystem is further used for updating the simulation state when receiving the simulation state information input by the tester through the WEB server subsystem, so that the tested temporary speed limit server generates second response data aiming at the updated simulation state; the CTC simulation subsystem is also used for receiving and processing the second response data and sending the processed second response data to the use case control subsystem; the case control subsystem is also used for generating a second test report according to the second response data and the test case.
According to an embodiment of the present invention, the CTC emulation subsystem and the TCC emulation subsystem both use a railway security communication protocol for communication, and the client further comprises: and the safety communication subsystem is used for communication, interaction, packaging and analysis of the safety information packet.
According to an embodiment of the present invention, the use case control subsystem is further configured to: and converting the test case in the excel format imported by the tester into a test case in a preset standard format, converting the test case in the preset standard format provided by the WEB server subsystem into the test case in the excel format, and exporting the test case.
According to one embodiment of the invention, the automated test system further comprises: and the user operating machine is used for checking the test report generated by the use case control subsystem and inputting an operating instruction.
According to an embodiment of the invention, the WEB server subsystem adopts a Django framework and is developed by adopting Python language, wherein the Django framework comprises a model layer, a view layer and a control layer, the model layer is used for encapsulating business logic, receiving data requested by the view layer and returning a final processing result to the control layer; the view layer is used for providing an interface for realizing interaction with a user and realizing data input and output; and the control layer is used for controlling the whole service process and realizing the cooperative work of the view layer and the model layer.
According to one embodiment of the invention, the execution condition of the test case, the state statistics of each device and the interaction information of each subsystem are stored by adopting a Redis database, the test case and the parameter information are stored by adopting a MongoDB database, and the fixed system configuration and enumeration parameters are stored by adopting a Sqlite database.
According to one embodiment of the invention, the server and the client are in communication connection with the tested temporary speed limiting server through a wireless router.
According to one embodiment of the invention, the speed limit command comprises one or more of a speed limit drawing-up command, a speed limit verification command, a speed limit execution command and a speed limit deletion command, and the execution condition of the test case to be executed comprises one or more of the execution progress of the test case to be executed, the operation command type corresponding to the test case to be executed and the test result of the test case to be executed.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a block diagram of an automated test system according to an embodiment of the present invention;
FIG. 2 is a block diagram of an automated test system according to one embodiment of the present invention;
FIG. 3 is a block diagram of an automated test system according to another embodiment of the present invention;
FIG. 4 is a block diagram of an automated test system according to yet another embodiment of the present invention;
FIG. 5 is a block diagram of an automated test system according to one example of the invention;
FIG. 6 is a schematic diagram of an automated test system according to one example of the invention;
fig. 7 is a block diagram of the structure of the Django framework according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
An automated test system according to an embodiment of the present invention is described below with reference to the drawings.
The automatic test system of the embodiment of the invention is used for testing the temporary speed limiting server. Fig. 1 is a block diagram of an automated test system according to an embodiment of the present invention.
As shown in fig. 1, the automated test system 100 includes a server 10 and a client 20.
The server 10 comprises a WEB server subsystem 11 and a case control subsystem 12, wherein the WEB server subsystem 11 is used for realizing human-computer interaction, and the case control subsystem 12 is used for providing a corresponding test case when receiving a test instruction input by a tester through the WEB server subsystem 11; the client 20 comprises a CTC (Centralized traffic Control) simulation subsystem 21 and a TCC (Train Control Center) simulation subsystem 22, wherein the CTC simulation subsystem 21 is used for generating a corresponding speed limit command according to a test case and sending the speed limit command to a tested temporary speed limit server, and the TCC simulation subsystem 22 is used for receiving and processing first response data of the tested temporary speed limit server aiming at the speed limit command and sending the processed first response data to the CTC simulation subsystem 21; the CTC emulation subsystem 21 is further configured to send the processed first response data to the case control subsystem 12, and the case control subsystem 12 is further configured to generate a first test report according to the first response data and the test case.
In practical application, when the automatic test system 100 is required to test the temporary speed-limiting server, a tester can input a test instruction to the WEB server subsystem 11, the WEB server subsystem 11 then sends the test instruction to the case control subsystem 12, the case control subsystem 12 provides a corresponding test case according to the test instruction, and sends the test case to the CTC emulation subsystem 21, the CTC emulation subsystem 21 generates a corresponding speed-limiting command according to the test case, and sends the speed-limiting command to the tested temporary speed-limiting server (also called tested TSRS), and the tested temporary speed-limiting server can generate first response data according to the speed-limiting command, and sends the first response data to the TCC emulation subsystem 22, the TCC emulation subsystem 22 receives and processes the first response data, and sends the processed first response data to the CTC emulation subsystem 21, the CTC emulation subsystem 21 sends the processed first response data to the case control subsystem 12, and the use case control subsystem 12 generates a first test report according to the first response data and the test case, thereby realizing automatic test of the tested temporary speed-limiting server. The first response data may include a refresh request command, a verification command, an execution command, and a line speed limit state initial confirmation command of the TSRS under test.
In this embodiment, the speed limit command may include one or more of a speed limit drawing command, a speed limit verification command, a speed limit execution command, and a speed limit deletion command. It can be understood that the CTC simulation subsystem 21 generates one or more of a corresponding speed limit drawing command, a speed limit verification command, a speed limit execution command, and a speed limit deletion command according to the test case, and sends the speed limit drawing command, the speed limit verification command, the speed limit execution command, and the speed limit deletion command to the tested temporary speed limit server.
In this embodiment, the WEB server subsystem 11 may include a front end and a back end, where the front end may be used for displaying a human-computer interaction interface to perform human-computer interaction; the back end is operable to respond to test instructions entered by the tester and to send the test execution to the use case control subsystem 12.
In summary, the automatic test system of the embodiment of the invention can automatically generate the speed limit command and further automatically generate the first test report only by inputting the test instruction by the tester, which can save at least 85% of the test time compared with the traditional manual test mode, i.e. the manual test requires 7 days of test tasks, the automatic test by adopting the invention can be completed within 24-48 hours, and the test accuracy can be ensured; the automation degree avoids the phenomenon of inaccurate test results caused by artificial careless omission.
Therefore, the automatic test system automatically generates the test cases according to the test instructions and finally automatically generates the test reports, so that automatic test is realized, the automation degree is high, the labor cost is saved, manual interference factors can be avoided, the test efficiency is improved, and the test accuracy is ensured.
In an embodiment of the present invention, as shown in fig. 2, the client 20 may further include a test case execution subsystem 23, configured to read a test case to be executed provided by the case control subsystem 12, send the test case to be executed to the CTC simulation subsystem 21, and update the execution condition of the test case to be executed in real time.
The execution condition of the test case to be executed may include one or more of an execution progress of the test case to be executed, an operation command type corresponding to the test case to be executed, and a test result of the test case to be executed.
Specifically, the use case control subsystem 12 may provide the test case to be executed to the test case execution subsystem 23, so that the test case execution subsystem 23 may read the test case and send the test case to the CTC simulation subsystem 21 for subsequent testing, and in the testing process, the test case execution subsystem 23 may update the execution progress, the corresponding operation command type, the test result, and other contents of the test case to be executed in real time, so as to update the execution condition of the test case to be executed in real time.
In this embodiment, the test case execution subsystem 23 may send the execution condition of the test case to be executed to the WEB server subsystem 11 through the case control subsystem 12, so that the WEB server subsystem 11 displays the execution condition for the user to view.
In an embodiment of the present invention, the TCC simulation subsystem 22 may further be configured to update the simulation state when receiving the simulation state information input by the tester through the WEB server subsystem 11, so that the tested temporary speed limit server generates second response data for the updated simulation state; the CTC emulation subsystem 21 is further configured to receive and process the second response data, and send the processed second response data to the use-case control subsystem 12; the case control subsystem 12 is further configured to generate a second test report according to the second response data and the test case.
Specifically, as shown in fig. 3, the WEB server subsystem 11 may be connected to the TCC simulation subsystem 22, and in practical applications, a tester may input simulation state information to the WEB server subsystem 11, so that the WEB server subsystem 11 sends the simulation state information to the TCC simulation subsystem 22, the TCC simulation subsystem 22 updates the simulation state, and sends the updated simulation state information to the tested temporary speed limiting server, so that the tested temporary speed limiting server generates second response data for the updated simulation state, and sends the second response data to the CTC simulation subsystem 21, and the CTC simulation subsystem 21 receives and processes the second response data, and sends the processed second response data to the case control subsystem 12, so that the use case control subsystem 12 generates a second test report according to the second response data and the test case.
In this embodiment, the second response data may include status information and error receipt information for the temporary speed limit server being tested.
In one embodiment of the present invention, the CTC emulation subsystem 21 and the TCC emulation subsystem 22 both communicate using a railway security communication protocol, as shown in fig. 4, and the client 20 may further include a secure communication subsystem 24 for communicating, interacting, packaging, and parsing of secure packets.
Specifically, the CTC emulation subsystem 21 implements related functions of a CTC-TSRS (Temporary Speed limit Server) interface based on RSSP (Railway Signal Safety ptocol, railway Signal Safety communication protocol), may generate a Speed limit command according to a test case, and sends the Speed limit command to a TSRS to be tested; the CTC emulation subsystem 21 can also receive and process second response data from the TSRS under test. The TCC simulation subsystem 22 realizes the related functions of a TCC-TSRS interface based on RSSP, can receive and process first response data from a tested TSRS, and sends the first response data to the CTC simulation subsystem 21; and the simulation state information can be received and updated, and the updated simulation state information is sent to the tested TSRS. During the communication process of the CTC simulation subsystem 21 and the TCC simulation subsystem 22, the safety communication subsystem 24 is used for realizing the communication, interaction, packaging and analysis of the safety information packet so as to ensure the safety and accuracy of the communication.
In one embodiment of the present invention, the use case control subsystem 12 is further operable to: converting the test case in the excel format imported by the tester into the test case in the preset standard format, converting the test case in the preset standard format provided by the WEB server subsystem 11 into the test case in the excel format, and exporting the converted test case.
Specifically, as for the test case, the test case may be imported by a tester, or may be automatically generated by the WEB server subsystem 11, specifically, the tester may weave the test case in the excel format manually, and directly import the test case in the excel format into the case control subsystem 12, so that the use case control subsystem 12 converts the test case in the excel format into a test case in a preset standard format; the WEB server subsystem 11 may automatically generate a test case with a preset standard format according to a test instruction input by a tester, and provide the test case to the case control subsystem 12. Then, the use-case control subsystem 12 converts the test case with the preset standard format into a test case with an excel format and exports the test case to the CTC simulation subsystem 21 for subsequent testing. Wherein, the test case can be used repeatedly.
Therefore, the test cases are continuously perfect, abundant and strong, and the accuracy of the automatic test system in testing is further improved.
In one example of the invention, as shown in FIG. 5, the automated test system 100 may further include a user-operated machine 30, the user-operated machine 30 being used to view test reports generated by the use case control subsystem 12 and to input operation instructions.
Specifically, in practical applications, a user (tester) may input a test instruction to the user operating machine 30, so that the user operating machine 30 sends the test instruction to the use-case control subsystem 12 through the WEB server subsystem 11 to perform subsequent related control, thereby generating a first test report, and the user may view the first test report through the user operating machine 30; the user (tester) may input the simulation state information to the user operator 30 so that the user operator 30 transmits the simulation state information to the TCC simulation subsystem 22 through the WEB server subsystem 11 for subsequent related control, thereby generating a second test report, which the user may view through the user operator 30. That is, the user (tester) can input the operation instruction (test instruction and simulation state information) and check the test result through the user operation machine 30, the automation degree is high, and the labor cost is greatly saved.
In one example, as shown in fig. 6, the server 10 and the client 20 are both communicatively connected to the temporary speed limit server under test through a wireless router.
Referring to fig. 6, a server 10 (TATS (Temporary Auto Test System) server) and a client 20 (TATS client) may be provided in one PC (Personal Computer) at the same time or in two PCs, respectively, to improve Test performance and communication stability. The server 10 and the client 20 can be accessed to the wireless router in a wired Ethernet mode, the tested temporary speed limiting server can also be accessed to the wireless router in an Ethernet mode, the user operating machine 30 can be accessed to the wireless router in a wireless or wired mode, and when the server 10, the client 20 and the user operating machine 30 all use the Ethernet to carry out wired communication, the wireless router can be replaced by a switch.
In an embodiment of the present invention, the WEB server subsystem 11 is developed by using a Django framework and using a Python language, and as shown in fig. 7, the Django framework includes a model layer, a view layer, and a control layer.
The Model (Model) layer is used for encapsulating the logic of the service, receiving data requested by the view layer and returning a final processing result to the control layer; the view (Views) layer is used for providing an interface for interaction with a user and realizing input and output of data; and the Control layer is used for controlling the whole business process and realizing the cooperative work of the view layer and the model layer.
Specifically, in the practical application of the WEB server subsystem 11, the view layer receives an operation instruction from a user input end and sends the operation instruction to the model layer, so that the model layer encapsulates the logic of the service, the service logic is determined, different views are determined according to the service logic, and a final processing result is returned to the control layer, so that the control layer calls the view layer to output a final result. The model layer can access the database to provide data to the view layer. That is, the WEB server subsystem 11 adopts an MVC (Model View Controller) framework, which has the advantages of low coupling, high reusability, low life cycle cost, and the like.
Therefore, the database can be developed simply and quickly through the Django framework, and the system is provided with a rich third-party plug-in library and can be provided with a plurality of components, so that the plurality of components serve the whole framework through the running of the plug-ins. The automatic testing system has the advantages of being rich in functions and high in expansibility due to the characteristics of strong expandability, cross-platform and rich third-party library resources of the python language.
In an example of the present invention, the execution condition of the test case, the statistics of the device states, and the interaction information of each subsystem are stored by using a Redis database, the test case and the parameter information are stored by using a MongoDB database, and the fixed system configuration and enumeration parameters are stored by using a Sqlite database.
Specifically, when the tested temporary speed limiting server is tested, the execution progress of the test case to be executed, the operation command type corresponding to the test case to be executed, and the test result of the test case to be executed may all be stored in a Redis database, the real-time state information of the server 10, the client 20, the user operating machine 30, and the tested temporary speed limiting server may all be stored in the Redis database, and the interaction information among the WEB server subsystem 11, the case control subsystem 12, the CTC simulation subsystem 21, the TCC simulation subsystem 22, the test case execution subsystem 23, and the secure communication subsystem 24 may be stored in the Redis database.
The Redis database is a high-performance key-value database, provides clients such as Java, C/C + +, C #, PHP, javaScript, perl, object-C, python, ruby, erlang and the like, and has the advantage of convenience in use; the MongoDB database is a database based on distributed file storage, is compiled by C + + language, can store more complex data types, has very strong supported query language, can realize most functions of single-table query of the database, and also supports the establishment of indexes on data; the Sqlite database is a lightweight database, is an ACID-compliant relational database management system, is contained in a relatively small C base, and has the advantage of high processing speed.
Therefore, the 3 database fusion strategies are adopted to give full play to respective advantages, and the use experience of the tester in the operation process is further improved.
It will be appreciated that in this example the Server 10 may employ a B/S architecture, the user work interface is implemented via a WWW Browser, with a very small portion of the transaction logic being implemented at the front end (Browser), and the main transaction logic being implemented at the Server end (Server), forming a so-called three-tier 3-tier architecture. The B/S framework is adopted, so that a tester can conveniently check in any terminal equipment, only the terminal equipment supports the use of a browser to access a website, for example, a PC (personal computer), and mobile phones, tablets and other equipment based on ANDROID (ANDROID, IOS and WINDOWS) systems support logging in a test interface to check and operate.
In conclusion, the automatic test system of the embodiment of the invention automatically generates the test cases according to the test instructions and finally automatically generates the test reports, thereby saving the labor cost, having high automation degree, and being capable of avoiding manual interference factors, thereby improving the test efficiency and ensuring the test accuracy; a Web server based on a Django framework is adopted to design a Web page, so that the effect of logging in a test platform by a Web page of any client browser is realized; the software development is carried out by adopting Python language, so that the expandability of software design is increased; the comprehensive management function of a test case, a test process, a test result and a test report is realized by applying a development technology combining three databases of Redis, mongoldb and SQlite; in the aspect of test cases, an excel file which is easy to edit and check is adopted, and one-key automatic test is realized through a test script of the excel. The method comprises the steps of (1) having a perfect test case library; the automatic test system and the tested temporary speed limit server both adopt Ethernet interfaces, carry out interactive communication according to standard interface specifications, have good compatibility and can support the access of different tested temporary speed limit servers; the portable device can be operated on portable devices such as a notebook computer, a tablet computer and the like, and has good portability; in addition, the system supports cross-platform use of compatible operating systems such as Windows and Linux.
It should be noted that the logic and/or steps shown in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Further, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, but are not intended to indicate or imply that the device or element so referred to must have a particular orientation, be constructed in a particular orientation, and be operated in a particular manner, and are not to be construed as limiting the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood according to specific situations by those of ordinary skill in the art.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. An automated testing system for testing a temporary speed limit server, the automated testing system comprising:
the system comprises a server, a test case control subsystem and a test case management subsystem, wherein the server comprises a WEB server subsystem and a case control subsystem, the WEB server subsystem is used for realizing human-computer interaction, and the case control subsystem is used for providing a corresponding test case when receiving a test instruction input by a tester through the WEB server subsystem;
the system comprises a client, a test case, a TCC (transmission control center) simulation subsystem and a test case simulation subsystem, wherein the client comprises the CTC simulation subsystem and the TCC simulation subsystem, the CTC simulation subsystem is used for generating a corresponding speed limit command according to the test case and sending the speed limit command to a tested temporary speed limit server, and the TCC simulation subsystem is used for receiving and processing first response data of the tested temporary speed limit server aiming at the speed limit command and sending the processed first response data to the CTC simulation subsystem;
the CTC simulation subsystem is further configured to send the processed first response data to the case control subsystem, and the case control subsystem is further configured to generate a first test report according to the first response data and the test case;
the TCC simulation subsystem is further used for updating the simulation state when receiving the simulation state information input by the tester through the WEB server subsystem, so that the tested temporary speed limiting server generates second response data according to the updated simulation state;
the CTC simulation subsystem is also used for receiving and processing the second response data and sending the processed second response data to the use case control subsystem;
the case control subsystem is further used for generating a second test report according to the second response data and the test case.
2. The automated test system of claim 1, wherein the client further comprises:
and the test case execution subsystem is used for reading the test case to be executed provided by the case control subsystem, sending the test case to be executed to the CTC simulation subsystem, and updating the execution condition of the test case to be executed in real time.
3. The automated test system of claim 1, wherein the CTC simulation subsystem and the TCC simulation subsystem each communicate using a railway safety communication protocol, the client further comprising:
and the safety communication subsystem is used for communication, interaction, packaging and analysis of the safety information packet.
4. The automated test system of claim 1, wherein the use case control subsystem is further to:
and converting the test case in the excel format imported by the tester into a test case in a preset standard format, converting the test case in the preset standard format provided by the WEB server subsystem into the test case in the excel format, and exporting the test case.
5. The automated test system of claim 1, wherein the automated test system further comprises:
and the user operating machine is used for checking the test report generated by the use case control subsystem and inputting an operating instruction.
6. The automated testing system of claim 1, wherein the WEB server subsystem is developed using a Django framework and Python language, the Django framework comprises a model layer, a view layer and a control layer, wherein,
the model layer is used for encapsulating the logic of the service, receiving the data requested by the view layer and returning the final processing result to the control layer;
the view layer is used for providing an interface for realizing interaction with a user and realizing data input and output;
and the control layer is used for controlling the whole service flow and realizing the cooperative work of the view layer and the model layer.
7. The automated test system of claim 2, wherein the execution of test cases, device status statistics, and interaction information of subsystems are stored using a Redis database, test cases and parameter information are stored using a MongoDB database, and fixed system configuration and enumeration parameters are stored using a Sqlite database.
8. The automated test system of claim 1, wherein the server and the client are each communicatively coupled to the temporary speed limit server under test via a wireless router.
9. The automated testing system of claim 2, wherein the speed limit command comprises one or more of a speed limit drawing-up command, a speed limit verification command, a speed limit execution command and a speed limit deletion command, and the execution condition of the test case to be executed comprises one or more of the execution progress of the test case to be executed, the type of the operation command corresponding to the test case to be executed and the test result of the test case to be executed.
CN202010084965.9A 2020-02-10 2020-02-10 Automatic test system Active CN111309533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010084965.9A CN111309533B (en) 2020-02-10 2020-02-10 Automatic test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010084965.9A CN111309533B (en) 2020-02-10 2020-02-10 Automatic test system

Publications (2)

Publication Number Publication Date
CN111309533A CN111309533A (en) 2020-06-19
CN111309533B true CN111309533B (en) 2023-04-07

Family

ID=71144968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010084965.9A Active CN111309533B (en) 2020-02-10 2020-02-10 Automatic test system

Country Status (1)

Country Link
CN (1) CN111309533B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858372A (en) * 2020-07-28 2020-10-30 南京铁道职业技术学院 Automatic testing system and method for TSRS system
CN112810668B (en) * 2021-04-19 2021-08-31 卡斯柯信号(北京)有限公司 Method and device for generating speed limit test data
CN113704096A (en) * 2021-08-11 2021-11-26 中国铁道科学研究院集团有限公司通信信号研究所 Automatic testing method and system for CTC train number tracking subsystem
CN113765751B (en) * 2021-09-08 2022-12-02 交控科技股份有限公司 Communication connection test method, device, equipment and storage medium
CN114938342A (en) * 2022-01-27 2022-08-23 浙江浩瀚能源科技有限公司 Automatic testing and monitoring method capable of remotely triggering local UI
CN114579378B (en) * 2022-02-25 2024-10-15 苏州浪潮智能科技有限公司 Test system of server
CN115118627B (en) * 2022-08-29 2022-12-09 卡斯柯信号(北京)有限公司 Temporary speed limiting server testing method and device
CN115967797A (en) * 2022-11-30 2023-04-14 海南视联通信技术有限公司 Product testing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228989A (en) * 2017-12-25 2018-06-29 中国铁道科学研究院通信信号研究所 Failure insertion system based on external real equipment
CN110516003A (en) * 2019-07-17 2019-11-29 北京交大微联科技有限公司 Column control data management system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8165272B2 (en) * 2007-10-22 2012-04-24 Bank Of America Corporation Automated dial tone verification and reporting
US20200017114A1 (en) * 2019-09-23 2020-01-16 Intel Corporation Independent safety monitoring of an automated driving system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228989A (en) * 2017-12-25 2018-06-29 中国铁道科学研究院通信信号研究所 Failure insertion system based on external real equipment
CN110516003A (en) * 2019-07-17 2019-11-29 北京交大微联科技有限公司 Column control data management system and method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
CTCS-3级列车控制系统仿真平台框架的构建;李俊娥;《铁道运输与经济》;20101215(第12期);第16-20页 *
临时限速服务器安全通信协议研究;何春明等;《铁道通信信号》;20111017(第10期);第50-52页 *
列控系统临时限速服务器仿真测试平台研究;岑博文等;《计算机工程与设计》;20120112;第372-376页 *
列控系统脚本录制工具的研究与实现;董建华等;《铁道通信信号》;20170117(第01期);第15-18页 *
基于RSSP-Ⅱ安全通信协议的TSRS-CTC测试接口设计与实现;乐超等;《机电一体化》;20161215(第12期);第48-54页 *

Also Published As

Publication number Publication date
CN111309533A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN111309533B (en) Automatic test system
CN101334662B (en) Automobile electric control unit calibration system and method based on ASAP standard
US20230198856A1 (en) Method and Apparatus for Updating Gateway Resource, and IOT Control Platform
CN103123484B (en) Transformer station's Condition Monitoring Data standardization connecting system and method
CN102298365B (en) Method for automatically identifying and managing spaceflight measurement and control earth station device change
CN109101381A (en) Configuration file update method, system, electronic equipment and storage medium
CN104793076A (en) Intelligent automatic test system and method
CN103916283A (en) Server pressure test system and method
CN114465937B (en) Network card testing method, device, server and medium
CN104483842A (en) Regulation and control integrated automatic master station comparison method
CN102843245A (en) Method and device for interacting configuration data
CN112306861A (en) Unittest and Jenkins tool-based interface automatic testing system and method
WO2017045345A1 (en) Resource management method and apparatus, and multi-mode soft base station unified network management
CN113419920B (en) Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform
CN113281594B (en) System and method for realizing remote intelligent automatic test for relay protection
CN110008104A (en) A kind of management method of log information, system, equipment and storage medium
CN106899452A (en) A kind of internet-of-things terminal adjustment method of the message loop treatment based on XM2M agreements
CN104899134A (en) Automatic domain name registration server testing system and method
CN113485881A (en) Testing method and device of temporary speed limiting server, electronic equipment and medium
WO2024140740A1 (en) Communication matrix protocol-based data testing method and device
CN100407667C (en) Network communication apparatus protocol testing system and method
CN102769532A (en) Network management server and method for exporting query result to Excel file
CN115617589A (en) Chip debugging method
CN113904928B (en) Remote signaling configuration rapid checking system and method for remote device
CN109040294A (en) A kind of heterogeneous system standardization cut-in method and device for three-dimensional artificial monitoring

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