CN110278099A - Message test method, device and computer equipment - Google Patents
Message test method, device and computer equipment Download PDFInfo
- Publication number
- CN110278099A CN110278099A CN201810209280.5A CN201810209280A CN110278099A CN 110278099 A CN110278099 A CN 110278099A CN 201810209280 A CN201810209280 A CN 201810209280A CN 110278099 A CN110278099 A CN 110278099A
- Authority
- CN
- China
- Prior art keywords
- failure message
- message data
- database
- data
- script packet
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/06—Generation of reports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application proposes a kind of message test method, system and computer equipment, wherein above-mentioned message test method includes: the pre-generated script packet of operation;Database is sent to after failure message data in the associated table of script packet is handled by data center server, the data center server and database, which are in, receives data mode;The failure message data that failure message data and the database in the associated table of script packet receive is compared, determines the correctness for the failure message data that the database receives.The application may be implemented whether the test of failure message is not powered on the failure message data for being influenced, and can simulating various abnormal conditions by equipment in kind on gateway and vehicle, and covering surface is complete, analyzes precisely positioning problems, saves the time of debugging.
Description
Technical field
This application involves rail communication technical field more particularly to a kind of message test methods, device and computer equipment.
Background technique
It is existing that the equipment message data on vehicle are transferred to server gateway by car-ground radio mode in the related technology,
Then related data is sent to data processing centre again by gateway, then using message queue (Message Queue;Below
The storage of database is carried out after referred to as: MQ) parsing.
But above scheme can not acquire data if material object equipment does not power on vehicle dependent on equipment in kind on vehicle;
Whether the fault data that equipment in kind reports is limited, verify correct less than the database purchase in the case of limit abnormal failure;Such as
Fruit gateway does not receive data, database yet no data, at this moment can not verify data storage it is whether correct.Therefore, existing survey
The disadvantages of that there are covering surfaces is low for method for testing, is affected by gateway and equipment in kind.
Summary of the invention
The application is intended to solve at least some of the technical problems in related technologies.
For this purpose, first purpose of the application is to propose a kind of message test method, to realize the test of failure message not
The failure message data for being influenced, and various abnormal conditions being simulated whether is powered on by equipment in kind on gateway and vehicle, is covered
Face is complete, analyzes precisely positioning problems, saves the time of debugging.
Second purpose of the application is to propose a kind of message test device.
The third purpose of the application is to propose a kind of computer equipment.
The 4th purpose of the application is to propose a kind of non-transitorycomputer readable storage medium.
In order to achieve the above object, the application first aspect embodiment proposes a kind of message test method, comprising: operation is preparatory
The script packet of generation;It is sent out after failure message data in the associated table of script packet is handled by data center server
Database is given, the data center server and database, which are in, receives data mode;Compare the associated table of script packet
The failure message data that failure message data and the database in lattice receive, determines the failure that the database receives
The correctness of message data.
In the message test method of the embodiment of the present application, after running pre-generated script packet, above-mentioned script packet is closed
Failure message data in the table of connection is sent to database after handling by data center server, then compares above-mentioned script
The failure message data that failure message data and above-mentioned database in associated table receive is wrapped, determines that above-mentioned database connects
The correctness of the failure message data received, so as to realize the test of failure message not by equipment in kind on gateway and vehicle whether
The influence powered on, and the failure message data of various abnormal conditions can be simulated, covering surface is complete, positioning problems analyzed precisely,
Save the time of debugging.
In order to achieve the above object, the application second aspect embodiment proposes a kind of message test device, comprising: operation mould
Block, for running pre-generated script packet;Sending module, for by the failure message number in the associated table of script packet
According to database is sent to after handling by data center server, the data center server and database, which are in, receives data
State;Contrast module is received for comparing the failure message data in the associated table of script packet with the database
Failure message data, determine the correctness for the failure message data that the database receives.
In the message test device of the embodiment of the present application, after the pre-generated script packet of operation module operation, mould is sent
Block is sent to database after handling the failure message data in the above-mentioned associated table of script packet by data center server,
Then contrast module compares the failure that the failure message data in the above-mentioned associated table of script packet is received with above-mentioned database
Message data determines the correctness for the failure message data that above-mentioned database receives, so as to realize that failure message is tested
The failure message data for being influenced, and various abnormal conditions being simulated whether is not powered on by equipment in kind on gateway and vehicle, covered
Capping is complete, analyzes precisely positioning problems, saves the time of debugging.
In order to achieve the above object, the application third aspect embodiment proposes a kind of computer equipment, including memory, processing
Device and it is stored in the computer program that can be run on the memory and on the processor, the processor executes the meter
When calculation machine program, method as described above is realized.
To achieve the goals above, the application fourth aspect embodiment proposes a kind of computer-readable storage of non-transitory
Medium, is stored thereon with computer program, and the computer program realizes method as described above when being executed by processor.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description
It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart of the application message test method one embodiment;
Fig. 2 is that the Run Script packet executed in cmd window in the application message test method instructs screenshot;
Fig. 3 is the schematic diagram of R & D Database design documentation one embodiment in the application message test method;
Fig. 4 is the flow chart of another embodiment of the application message test method;
Fig. 5 is the schematic diagram of script packet and associated table in the application message test method;
Fig. 6 is the failure message data with various marks being written in excel table in the application message test method
Schematic diagram;
Fig. 7 is the flow chart of the application message test method further embodiment;
Fig. 8 is database in the application message test method to the schematic diagram of the reception condition of failure message data;
Fig. 9 is the structural schematic diagram of the application message test device one embodiment;
Figure 10 is the structural schematic diagram of another embodiment of the application message test device;
Figure 11 is the structural schematic diagram of the application computer equipment one embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
Fig. 1 is the flow chart of the application message test method one embodiment, as shown in Figure 1, above-mentioned message test method
May include:
Step 101, pre-generated script packet is run.
Specifically, in local area network personal computer (Personal Computer;Hereinafter referred to as: the PC) order held
(command;Hereinafter referred to as: cmd) in window, ordered by input " java-jar mq-demo.jar " to run above-mentioned script
Packet, as shown in Fig. 2, Fig. 2 is that the Run Script packet executed in cmd window in the application message test method instructs screenshot.
It can check whether the order of Run Script packet occurs success by window shown in Fig. 2.In case of success,
Have " success (success) " printed words.
Step 102, the failure message data in the above-mentioned associated table of script packet is handled by data center server
After be sent to database, above-mentioned data center server and database are in and receive data mode.
In the present embodiment, above-mentioned script packet is the table and data center server being associated under the specified directory of the local end PC
Bridge, therefore after operationally stating script packet, the failure message data in the above-mentioned associated table of script packet can be passed through
Database is sent to after data center server processing.
Step 103, compare what failure message data and above-mentioned database in the above-mentioned associated table of script packet received
Failure message data determines the correctness for the failure message data that above-mentioned database receives.
Specifically, the event that failure message data and above-mentioned database in the above-mentioned associated table of script packet receive is compared
Hinder message data, determines that the correctness for the failure message data that above-mentioned database receives can be with are as follows: set according to R & D Database
File design message rule is counted, the failure message data compared in the above-mentioned associated table of script packet is received with above-mentioned database
Failure message data;If the event in the failure message data that above-mentioned database receives and the above-mentioned associated table of script packet
Hinder the matching of message data logic, it is determined that the failure message data that above-mentioned database receives is accurate.
It is the signal of R & D Database design documentation one embodiment in the application message test method referring to Fig. 3, Fig. 3
Figure can design message rule according to R & D Database design documentation in specific implementation, compare above-mentioned script packet association one by one
Table in failure message data and the failure message data that receives of above-mentioned database can if the two logic matches
It is accurate with the failure message data that the above-mentioned database of determination receives.
It, will be in the above-mentioned associated table of script packet after running pre-generated script packet in above-mentioned message test method
Failure message data by data center server handle after be sent to database, then compare the above-mentioned associated table of script packet
The failure message data that failure message data and above-mentioned database in lattice receive, determines the failure that above-mentioned database receives
The correctness of message data, so as to realize the test of failure message not by the shadow that whether material object equipment powers on gateway and vehicle
It rings, and the failure message data of various abnormal conditions can be simulated, covering surface is complete, analyzes precisely positioning problems, the row of saving
Except the time of failure.
Fig. 4 is the flow chart of another embodiment of the application message test method, as shown in figure 4, real shown in the application Fig. 1
It applies example, before step 101, can also include:
Step 401, it writes script and generates script packet.
Step 402, according to the filename specified in above-mentioned script packet, the above-mentioned associated table of script packet is established, will be had
The failure message data of various marks is filled up in the above-mentioned associated table of script packet.
For example, the above-mentioned associated table of script packet can be excel table, can then refer to according to script packet the inside
Fixed excel filename (canTestCase.xlsx) creates an excel table, as shown in figure 5, Fig. 5 is the application message
The schematic diagram of script packet and associated table in test method in the present embodiment, is needed associated excel table and script
Packet is placed under the same path without Chinese.It, can be by the failure message number with various marks after establishing excel table
According to being filled up in above-mentioned excel table, as shown in fig. 6, Fig. 6 is to be written in excel table in the application message test method
The schematic diagram of failure message data with various marks.
Fig. 7 is the flow chart of the application message test method further embodiment, as shown in fig. 7, real shown in the application Fig. 1
It applies in example, after step 102, can also include:
Step 701, above-mentioned database is obtained to the reception condition of above-mentioned failure message data.
Specifically, as shown in figure 8, directly above-mentioned database can be checked to above-mentioned failure report using database graphical tool
The reception condition of literary data, to obtain, whether there is or not the situations such as packet loss and/or wrong packet, Fig. 8 during receiving failure message data
It is database in the application message test method to the schematic diagram of the reception condition of failure message data.
Above-mentioned message test method does not check that can gateway receive data, only checks that rear end MQ receives parsing and storing data
Whether library is correct, and no matter whether material object equipment powers on vehicle, can check rear end packet parsing and database purchase is
It is no normal, can simulate the message in various situations, failure and non-faulting can covering surface it is complete.
Fig. 9 is the structural schematic diagram of the application message test device one embodiment, and the message in the present embodiment tests dress
It sets and can be used as the message that a part realization the application embodiment illustrated in fig. 1 of computer equipment or computer equipment provides
Test method.
Wherein, above-mentioned computer equipment can be terminal device, or server, wherein above-mentioned terminal device can be with
For intelligent terminals such as PC or laptops, the present embodiment is not construed as limiting the form of above-mentioned computer equipment.
As shown in figure 9, above-mentioned message test device may include: operation module 91, sending module 92 and contrast module 93;
Wherein, module 91 is run, for running pre-generated script packet.
Specifically, it in the cmd window at the end local area network PC, is ordered by input " java-jar mq-demo.jar "
Run above-mentioned script packet, as shown in Figure 2.
It can check whether the order of Run Script packet occurs success by window shown in Fig. 2.In case of success,
Have " success " printed words.
Sending module 92, for the failure message data in the above-mentioned associated table of script packet to be passed through data center services
Database is sent to after device processing, above-mentioned data center server and database, which are in, receives data mode.
In the present embodiment, above-mentioned script packet is the table and data center server being associated under the specified directory of the local end PC
Bridge, therefore after operation module 91 runs above-mentioned script packet, sending module 92 can be by the above-mentioned associated table of script packet
In failure message data by data center server handle after be sent to database.
Contrast module 93 connects for comparing the failure message data in the above-mentioned associated table of script packet with above-mentioned database
The failure message data received determines the correctness for the failure message data that above-mentioned database receives.
In the present embodiment, contrast module 93 is specifically used for designing message rule, comparison according to R & D Database design documentation
The failure message data that failure message data and above-mentioned database in the above-mentioned associated table of script packet receive;If above-mentioned
The failure message data that database receives is matched with the failure message data logic in the above-mentioned associated table of script packet, then really
The failure message data that fixed above-mentioned database receives is accurate.
Referring to Fig. 3, in specific implementation, contrast module 93 can design message rule according to R & D Database design documentation
Then, the failure message number that failure message data and above-mentioned database in the above-mentioned associated table of script packet receive is compared one by one
According to if the two logic matches, the failure message data that can determine that above-mentioned database receives is accurate.
In above-mentioned message test device, after the pre-generated script packet of the operation operation of module 91, sending module 92 will be upper
It states after the failure message data in the associated table of script packet is handled by data center server and is sent to database, it is then right
The failure message that failure message data in the associated table of above-mentioned script packet and above-mentioned database receive is compared than module 93
Data determine the correctness for the failure message data that above-mentioned database receives, so as to realize failure message test not by
The influence that whether material object equipment powers on gateway and vehicle, and the failure message data of various abnormal conditions, covering surface can be simulated
Entirely, positioning problems are analyzed precisely, saves the time of debugging.
Figure 10 is the structural schematic diagram of another embodiment of the application message test device, is tested with message shown in Fig. 9
Device is compared, the difference is that, message test device shown in Fig. 10 can also include: generation module 94 and establish module
95;
Wherein, generation module 94, for writing script generation before the pre-generated script packet of the operation operation of module 91
Script packet.
Module 95 is established, for establishing the above-mentioned associated table of script packet according to the filename specified in above-mentioned script packet,
Failure message data with various marks is filled up in the above-mentioned associated table of script packet.
For example, the above-mentioned associated table of script packet can be excel table, and then establishing module 95 can be according to foot
Specified excel filename (canTestCase.xlsx) inside this packet, creates an excel table, as shown in figure 5, this reality
It applies in example, needs for associated excel table and script packet to be placed under the same path without Chinese.It is established establishing module 95
After excel table, the failure message data with various marks can be filled up in above-mentioned excel table, such as Fig. 6 institute
Show.
Further, above-mentioned message test device can also include: to obtain module 96;
Module 96 is obtained, for passing through the failure message data in the above-mentioned associated table of script packet in sending module 92
It is sent to after database after data center server processing, obtains above-mentioned database to the reception feelings of above-mentioned failure message data
Condition.
Specifically, as shown in figure 8, obtaining module 96 directly can check above-mentioned database pair using database graphical tool
The reception condition of above-mentioned failure message data, to obtain, whether there is or not packet loss and/or wrong packets during receiving failure message data
Etc. situations.
Above-mentioned message test device does not check that can gateway receive data, only checks that rear end MQ receives parsing and storing data
Whether library is correct, and no matter whether material object equipment powers on vehicle, can check rear end packet parsing and database purchase is
It is no normal, can simulate the message in various situations, failure and non-faulting can covering surface it is complete.
Figure 11 is the structural schematic diagram of the application computer equipment one embodiment, and above-mentioned computer equipment may include depositing
Reservoir, processor and it is stored in the computer program that can be run on above-mentioned memory and on above-mentioned processor, above-mentioned processor
When executing above-mentioned computer program, the message test method of the application embodiment illustrated in fig. 1 offer may be implemented.
Wherein, above-mentioned computer equipment can be terminal device, or server, wherein above-mentioned terminal device can be with
For intelligent terminals such as PC or laptops, the present embodiment is not construed as limiting the form of above-mentioned computer equipment.
Figure 11 shows the block diagram for being suitable for the exemplary computer device 12 for being used to realize the application embodiment.Figure 11 is aobvious
The computer equipment 12 shown is only an example, should not function to the embodiment of the present application and use scope bring any limit
System.
As shown in figure 11, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can
To include but is not limited to: one or more processor or processing unit 16, system storage 28 connect different system components
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (Industry Standard
Architecture;Hereinafter referred to as: ISA) bus, microchannel architecture (Micro Channel Architecture;Below
Referred to as: MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards
Association;Hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component
Interconnection;Hereinafter referred to as: PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by
The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (Random Access Memory;Hereinafter referred to as: RAM) 30 and/or cache memory 32.Computer equipment 12
It may further include other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only conduct
Citing, storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Figure 11 do not show, commonly referred to as " hard disk
Driver ").Although being not shown in Figure 11, can provide for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ")
Disc driver, and to removable anonvolatile optical disk (such as: compact disc read-only memory (Compact Disc Read
Only Memory;Hereinafter referred to as: CD-ROM), digital multi CD-ROM (Digital Video Disc Read Only
Memory;Hereinafter referred to as: DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces
Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28
In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs
It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould
Block 42 usually executes function and/or method in embodiments described herein.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make
The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipment
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also
To pass through network adapter 20 and one or more network (such as local area network (Local Area Network;Hereinafter referred to as:
LAN), wide area network (Wide Area Network;Hereinafter referred to as: WAN) and/or public network, for example, internet) communication.Such as figure
Shown in 11, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.Although should be understood that in Figure 11
It is not shown, other hardware and/or software module can be used in conjunction with computer equipment 12, including but not limited to: microcode, equipment
Driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system
Deng.
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as the message test method that the application embodiment illustrated in fig. 1 provides is realized in manner described above.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey
Message test method provided by the embodiments of the present application may be implemented in sequence, above-mentioned computer program when being executed by processor.
Above-mentioned non-transitorycomputer readable storage medium can appointing using one or more computer-readable media
Meaning combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer can
Reading storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device
Or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:
Electrical connection, portable computer diskette, hard disk, random access memory (RAM), read-only storage with one or more conducting wires
Device (Read Only Memory;Hereinafter referred to as: ROM), erasable programmable read only memory (Erasable
Programmable Read Only Memory;Hereinafter referred to as: EPROM) or flash memory, optical fiber, portable compact disc are read-only deposits
Reservoir (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer
Readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded execution system, device
Either device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (Local
Area Network;Hereinafter referred to as: LAN) or wide area network (Wide Area Network;Hereinafter referred to as: WAN) it is connected to user
Computer, or, it may be connected to outer computer (such as being connected using ISP by internet).
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (Random Access
Memory;Hereinafter referred to as: RAM), read-only memory (Read Only Memory;Hereinafter referred to as: ROM), erasable editable
Read memory (Erasable Programmable Read Only Memory;Hereinafter referred to as: EPROM) or flash memory,
Fiber device and portable optic disk read-only storage (Compact Disc Read Only Memory;Hereinafter referred to as: CD-
ROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other suitable media, because
Can then to be edited for example by carrying out optical scanner to paper or other media, be interpreted or suitable with other when necessary
Mode is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used
Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from
Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (Programmable
Gate Array;Hereinafter referred to as: PGA), field programmable gate array (Field Programmable Gate Array;Below
Referred to as: FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application
Type.
Claims (10)
1. a kind of message test method characterized by comprising
The pre-generated script packet of operation;
Data are sent to after failure message data in the associated table of script packet is handled by data center server
Library, the data center server and database, which are in, receives data mode;
The failure message data that failure message data and the database in the associated table of script packet receive is compared,
Determine the correctness for the failure message data that the database receives.
2. the method according to claim 1, wherein the failure in the comparison associated table of script packet
The failure message data that message data and the database receive, determines the failure message data that the database receives
Correctness includes:
Message rule is designed according to R & D Database design documentation, compares the failure message number in the associated table of script packet
According to the failure message data received with the database;
If the failure message data in the failure message data that the database receives and the associated table of script packet
Logic matching, it is determined that the failure message data that the database receives is accurate.
3. the method according to claim 1, wherein before the script packet that the operation pre-generates, further includes:
It writes script and generates script packet;
According to the filename specified in the script packet, the associated table of script packet is established, by the event with various marks
Barrier message data is filled up in the associated table of script packet.
4. method according to claim 1 to 3, which is characterized in that described by the associated table of script packet
In failure message data by data center server handle after be sent to after database, further includes:
The database is obtained to the reception condition of the failure message data.
5. a kind of message test device characterized by comprising
Module is run, for running pre-generated script packet;
Sending module, for handling the failure message data in the associated table of script packet by data center server
After be sent to database, the data center server and database are in and receive data mode;
Contrast module, for comparing the failure message data in the associated table of script packet and the database receives
Failure message data determines the correctness for the failure message data that the database receives.
6. device according to claim 5, which is characterized in that
The contrast module is specifically used for designing message rule according to R & D Database design documentation, compares the script packet and closes
The failure message data that failure message data and the database in the table of connection receive, if the database receives
Failure message data matched with the failure message data logic in the associated table of script packet, it is determined that the database
The failure message data received is accurate.
7. device according to claim 5, which is characterized in that further include:
Generation module, for writing script and generating script packet before the pre-generated script packet of the operation module operation;
Module is established, for the associated table of script packet being established, will had according to the filename specified in the script packet
The failure message data of various marks is filled up in the associated table of script packet.
8. according to device described in claim 5-7 any one, which is characterized in that further include:
Module is obtained, for the failure message data in the associated table of script packet to be passed through data in the sending module
It is sent to after database after central server processing, obtains the database to the reception condition of the failure message data.
9. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, when the processor executes the computer program, is realized as in claim 1-4
Any method.
10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the meter
The method as described in any in claim 1-4 is realized when calculation machine program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810209280.5A CN110278099A (en) | 2018-03-14 | 2018-03-14 | Message test method, device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810209280.5A CN110278099A (en) | 2018-03-14 | 2018-03-14 | Message test method, device and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110278099A true CN110278099A (en) | 2019-09-24 |
Family
ID=67958356
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810209280.5A Pending CN110278099A (en) | 2018-03-14 | 2018-03-14 | Message test method, device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110278099A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112235376A (en) * | 2020-01-09 | 2021-01-15 | 吴金凤 | Electric vehicle information monitoring method and device and electric vehicle management system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1433553A (en) * | 2000-01-29 | 2003-07-30 | Abb研究有限公司 | Method for automated detection of failure events |
CN1785723A (en) * | 2005-09-09 | 2006-06-14 | 中国科学院自动化研究所 | Vehicle imbedding type system |
US20090049338A1 (en) * | 2007-08-16 | 2009-02-19 | Gm Global Technology Operations, Inc. | Root cause diagnostics using temporal data mining |
US20120047406A1 (en) * | 2010-08-19 | 2012-02-23 | Kabushiki Kaisha Toshiba | Redundancy control system and method of transmitting computational data thereof |
CN103001811A (en) * | 2012-12-31 | 2013-03-27 | 北京启明星辰信息技术股份有限公司 | Method and device for fault locating |
CN103500378A (en) * | 2013-09-30 | 2014-01-08 | 中国南方电网有限责任公司调峰调频发电公司 | Method and system for managing equipment defects by fault codes |
CN103499968A (en) * | 2013-09-28 | 2014-01-08 | 苏州贝赛特信息科技有限公司 | Smart phone-based automobile fault diagnosis device |
CN104021080A (en) * | 2014-06-13 | 2014-09-03 | 中国民航信息网络股份有限公司 | Automatic testing system based on custom scripts |
-
2018
- 2018-03-14 CN CN201810209280.5A patent/CN110278099A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1433553A (en) * | 2000-01-29 | 2003-07-30 | Abb研究有限公司 | Method for automated detection of failure events |
CN1785723A (en) * | 2005-09-09 | 2006-06-14 | 中国科学院自动化研究所 | Vehicle imbedding type system |
US20090049338A1 (en) * | 2007-08-16 | 2009-02-19 | Gm Global Technology Operations, Inc. | Root cause diagnostics using temporal data mining |
US20120047406A1 (en) * | 2010-08-19 | 2012-02-23 | Kabushiki Kaisha Toshiba | Redundancy control system and method of transmitting computational data thereof |
CN103001811A (en) * | 2012-12-31 | 2013-03-27 | 北京启明星辰信息技术股份有限公司 | Method and device for fault locating |
CN103499968A (en) * | 2013-09-28 | 2014-01-08 | 苏州贝赛特信息科技有限公司 | Smart phone-based automobile fault diagnosis device |
CN103500378A (en) * | 2013-09-30 | 2014-01-08 | 中国南方电网有限责任公司调峰调频发电公司 | Method and system for managing equipment defects by fault codes |
CN104021080A (en) * | 2014-06-13 | 2014-09-03 | 中国民航信息网络股份有限公司 | Automatic testing system based on custom scripts |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112235376A (en) * | 2020-01-09 | 2021-01-15 | 吴金凤 | Electric vehicle information monitoring method and device and electric vehicle management system |
CN112235376B (en) * | 2020-01-09 | 2022-05-06 | 人民出行(南宁)科技有限公司 | Electric vehicle information monitoring method and device and electric vehicle management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109726136A (en) | Test method, device, equipment and the storage medium of database | |
US10289779B2 (en) | Universal verification methodology (UVM) register abstraction layer (RAL) traffic predictor | |
CN108768730B (en) | Method and device for operating intelligent network card | |
CN114880977B (en) | Software and hardware joint simulation system, method, device, equipment and storage medium | |
CN109960932A (en) | File test method, device and terminal device | |
CN113704043A (en) | Chip function verification method and device, readable storage medium and electronic equipment | |
WO2023024251A1 (en) | Device verification method, uvm verification platform, electronic apparatus and storage medium | |
CN109599095A (en) | A kind of mask method of voice data, device, equipment and computer storage medium | |
CN110049118A (en) | Information push method, device, equipment and storage medium | |
CN109815147A (en) | Test cases generation method, device, server and medium | |
CN107423894A (en) | The task measures and procedures for the examination and approval, device and computer equipment | |
CN107423055A (en) | Method, apparatus, equipment and the storage medium of adaptive terminal device resolution | |
CN109271358A (en) | Data summarization method, querying method, device, equipment and storage medium | |
US10313222B2 (en) | Diagnosis of a network adapter during network operation | |
CN108449321A (en) | Login method, server and client side | |
CN107403089A (en) | Resource tamper Detection method and apparatus based on application program | |
US11743133B2 (en) | Automatic anomaly detection | |
CN110009488A (en) | Order processing method, apparatus, equipment and storage medium | |
CN109284974A (en) | A kind of checking method based on block chain, device, audit equipment and storage medium | |
US20080120603A1 (en) | Automation of keyboard accessibility testing | |
US11222143B2 (en) | Certified information verification services | |
US8516311B2 (en) | System and method for testing peripheral component interconnect express switch | |
CN110278099A (en) | Message test method, device and computer equipment | |
CN109165372A (en) | A kind of webpage loading method, device, equipment and storage medium | |
US10346265B2 (en) | Protocol aware testing engine for high speed link integrity testing |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190924 |