[go: up one dir, main page]

CN108845905B - Communication protocol rapid parallel testing method suitable for large system - Google Patents

Communication protocol rapid parallel testing method suitable for large system Download PDF

Info

Publication number
CN108845905B
CN108845905B CN201810678974.3A CN201810678974A CN108845905B CN 108845905 B CN108845905 B CN 108845905B CN 201810678974 A CN201810678974 A CN 201810678974A CN 108845905 B CN108845905 B CN 108845905B
Authority
CN
China
Prior art keywords
protocol
communication
description
basic
communication unit
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
CN201810678974.3A
Other languages
Chinese (zh)
Other versions
CN108845905A (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 Institute of Computer Technology and Applications
Original Assignee
Beijing Institute of Computer Technology and Applications
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 Institute of Computer Technology and Applications filed Critical Beijing Institute of Computer Technology and Applications
Priority to CN201810678974.3A priority Critical patent/CN108845905B/en
Publication of CN108845905A publication Critical patent/CN108845905A/en
Application granted granted Critical
Publication of CN108845905B publication Critical patent/CN108845905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to a communication protocol rapid parallel testing method suitable for a large system, which comprises the following steps: dividing a large system into a plurality of subsystems and equipment, and setting a single subsystem or single equipment as a basic communication unit; normalizing the communication protocol used by each basic communication unit; each command of each basic communication unit corresponds to one subfile; traversing the file, reading the name of the basic communication unit, and constructing a link diagram of a large system according to the equipment linked by the basic communication unit in the normalized protocol; comparing the protocol realized by the program with the protocol described by the document, and comparing the communication protocol standardized according to the program code realization with the communication protocol standardized according to the document description; and comparing the consistency of the communication protocol with the protocol linked with the basic communication unit based on the document description protocol, prompting if the protocol is inconsistent, and displaying auxiliary information on a linked graph of the system.

Description

Communication protocol rapid parallel testing method suitable for large system
Technical Field
The invention relates to a communication protocol testing method, in particular to a communication protocol rapid parallel testing method suitable for a large system.
Background
A plurality of subsystems and equipment are arranged in a complex large system, correct information exchange is carried out between each subsystem and equipment through an interface communication protocol, and if understanding and implementation of the same protocol between each subsystem and equipment are deviated or communication protocols of different versions are used, communication errors can occur, and the system cannot work normally. In the system testing process, the situation that each subsystem or single device passes the test often occurs, and the system can not work normally after each software is connected in the large system working environment.
By analysis, such problems are mostly caused by the incoordination of software interfaces. At present, communication protocols among a plurality of subsystems in a system and between equipment are inspected by adopting a manual repeated checking mode, the workload is large, the personnel fatigue easily causes incomplete testing, and especially after partial software interfaces in the large system are changed, the analysis of the influence domain of the whole system is possibly insufficient.
If the system involves a total of N devices, and each device is assumed to communicate with each other, the interface audit will need to audit 2X (N-1)!during system test! If the interface link of the tester is correct, each tester needs to communicate with N-1 testers, and if the problems of change of the testers and the like are considered, the workload is extremely high, the efficiency is low, and inevitable repeated work can be caused.
Disclosure of Invention
The present invention is directed to a method for fast and parallel testing of communication protocols in a large system, which is used to solve the above-mentioned problems in the prior art.
The invention relates to a communication protocol rapid parallel test method suitable for a large system, which comprises the following steps: dividing a large system into a plurality of subsystems and equipment, and setting a single subsystem or single equipment as a basic communication unit; normalizing the communication protocol used by each basic communication unit, and when the subsystem is taken as one basic communication unit, neglecting the communication protocol in the subsystem, and independently forming a file by the normalized protocol; each command of each basic communication unit corresponds to one subfile; copying a normalized communication protocol formed by using a subsystem or equipment as a basic communication unit to a specified directory, analyzing files, comparing protocols and determining the places where the protocols are inconsistent; traversing the file, reading the name of the basic communication unit, and constructing a link diagram of a large system according to the equipment linked by the basic communication unit in the normalized protocol; comparing the protocol realized by the program with the protocol described by the document, comparing the communication protocol standardized according to the program code and the communication protocol standardized according to the document description, if the inconsistent places exist, prompting, and displaying auxiliary information on a linked graph of the system; and comparing the consistency of the communication protocol with the protocol linked with the basic communication unit based on the document description protocol, prompting if the protocol is inconsistent, and displaying auxiliary information on a linked graph of the system.
According to an embodiment of the present invention, the method for testing a communication protocol of a large system in a fast and parallel manner includes: the name of the basic communication unit, the source of the communication protocol, the version of the communication protocol, the examiner of the communication protocol, the time of the examination of the communication protocol and the communication command.
According to an embodiment of the present invention, a method for testing a communication protocol of a large system in a fast and parallel manner includes:
the method comprises the following steps of functional text description and performance description of a communication command 1, attribute description of the communication command 1, link equipment of the communication command 1, sending and receiving attribute description of the communication command 1, field attribute description of the communication command 1, functional text description and performance description of the communication command 2, attribute description of the communication command 2, link equipment of the communication command 2, sending and receiving attribute description of the communication command 2, field attribute description of the communication command 2, functional text description and performance description of the communication command 3 and attribute description of the communication command 3.
According to an embodiment of the method for testing the communication protocol of the large system in the fast parallel mode, the method further comprises the step of marking the file name.
According to an embodiment of the present invention, a method for testing a communication protocol of a large system in a fast and parallel manner, wherein protocols of each basic communication unit are named according to a communication command, comprises: the source, the destination, the abbreviation of each software name in the filling item, the parameter description, the data type, the data range and the byte order adopt an enumeration form, and a status code and a status description appear in pairs and an empty bit instruction or a flag word.
According to an embodiment of the method for testing the communication protocol of the large system in the fast parallel mode, the normalized protocol forms a file independently, and the file name is the formal name of the basic communication unit.
According to an embodiment of the method for testing the communication protocol of the large system in the fast parallel mode, after interfaces of subsystems or equipment in the large system are changed, the changed communication protocol is normalized, a file is formed according to the specification, the file is copied into a file directory of an original normalized communication protocol of the large system and is compared with protocols of other basic communication units, if the communication protocol is inconsistent with the protocols of other basic communication units, prompting is carried out, and auxiliary information is displayed on a linked graph of the system.
According to an embodiment of the method for rapidly and parallelly testing the communication protocol applicable to the large system, after the auxiliary information is displayed on the link diagram of the system, the prompt information is confirmed, the normalized communication protocol is further confirmed, errors of manual input are eliminated, and protocol errors among all communication basic units are found out.
Aiming at the current testing difficulty, the invention provides a communication protocol rapid parallel testing method suitable for a large system, which not only improves the testing efficiency, avoids unnecessary workload, but also ensures the testing quality and solves the problem of incomplete testing after software upgrading iteration.
Drawings
Fig. 1 is a flowchart of a method for fast and parallel testing of communication protocols in a large system according to the present invention.
Detailed Description
In order to make the objects, contents, and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
Fig. 1 is a flow chart of a method for testing a communication protocol of a large system in a fast and parallel manner according to the present invention, as shown in fig. 1, a software responsible person of each basic communication unit in the large system only needs to form a related interface protocol description file according to an agreed rule, and through software, a large system interface relation diagram is generated, and the described protocols are compared to indicate the place where the protocols are inconsistent, and auxiliary information is displayed on a link diagram of the system.
The invention relates to a communication protocol rapid parallel test method suitable for a large system, which is realized in the following specific way: dividing a large system into a plurality of subsystems and equipment according to a system task book and a requirement specification, setting a single subsystem or single equipment as a basic communication unit, and distributing single or a plurality of examiners to each basic communication unit according to the complexity of a communication protocol.
Normalizing the communication protocol used by each basic communication unit, when the subsystem is taken as a basic communication unit, ignoring the communication protocol in the subsystem, and the normalized protocol independently forms a file with the name of the formal name of the basic communication unit, such as: xls, the file content contains:
the name of the basic communication unit (equipment name or formal name of subsystem);
communication protocol source (program implementation or communication protocol document)
Communication protocol version (program version or document version)
Communication protocol examiner (examiner name)
Communication protocol examination time (year, month and day)
Communication command 1 function text description and performance description
Attribute description of communication Command 1 (Point-to-Point or broadcast)
Communication Command 1 linking device (device name or collection of subsystem names)
Transmission/reception attribute description (transmission/reception) of communication command 1
Field attribute description (frame header) of communication command 1
Description of field Properties of communication Command 1 (valid word, valid word fixed or dynamically changing)
Field attribute description of communication Command 1 (Tail frame)
Communication command 2 function text description and performance description
Attribute description of communication Command 2 (Point-to-Point or broadcast)
Communication Command 2 linking devices (device name or collection of subsystem names)
Transmission/reception attribute description (transmission/reception) of communication command 2
Field attribute description (frame header) of communication command 2
Field attribute description of communication command 2 (valid word, valid word is fixed or dynamically changing)
Field attribute description (end of frame) of communication Command 2
Communication command 3 function text description and performance description
Attribute description of communication Command 3 (Point-to-Point or broadcast)
……
Remarking: if the examiner realizes the normalized communication protocol according to the program code, the file name needs to be marked, so that the communication protocol which is directly normalized through the document description can be distinguished conveniently.
The protocol of each basic communication unit is named according to the communication command, and each command of each basic communication unit corresponds to an xls subfile, which is exemplified as follows:
the XX equipment, xls has a communication command 31H, and a word file is established in the XX equipment, xls:
1) commands named data of execl subfiles, for example, "31 h.xls";
2) source, destination, short names of software names in the filling item (defined in advance);
3) description of parameters: may be a parameter name or symbol such as "projected estimate of angular velocity of gaze rotation about OY2 axis" or "WY";
4) data type: in enumerated form, the types currently included are: 8-bit signed integer, 8-bit unsigned integer, 16-bit signed integer, 16-bit unsigned integer, 32-bit signed integer, 32-bit unsigned integer, 64-bit signed integer, 64-bit unsigned integer, 32-bit TI floating point, 32-bit IEEE floating point, 64-bit TI floating point, 64-bit IEEE floating point, 128-bit TI floating point, 128-bit IEEE floating point, borol;
5) data range: if the upper and lower boundaries are included, the "[ ]" is used, and if the upper and lower boundaries are not included, the "()";
6) endianness takes the form of enumeration, including: the high byte precedes the low byte.
7) The state codes and the state descriptions appear in pairs and are arranged from small to large in sequence;
8) empty bit instructions or flag words, denoted "-";
9) no information is needed to be filled in.
Copying a normalized communication protocol formed by using a subsystem or equipment as a basic communication unit to a specified directory, analyzing a file by using communication protocol examination software, comparing the described protocols, and indicating the positions with inconsistent protocols, wherein the analysis process of the software on the communication protocol is as follows:
traversing the file, reading the name of the basic communication unit, and constructing a link diagram of a large system according to the equipment linked by the basic communication unit in the normalized protocol;
comparing the protocol realized by the program with the protocol described by the document, comparing the communication protocol standardized according to the program code and the communication protocol standardized according to the document description, if the inconsistent places exist, prompting, and displaying auxiliary information on a linked graph of the system;
preferably, the document description protocol is taken as a basis, the protocol linked with the basic communication unit is compared with the consistency of the communication protocol, if the protocol is inconsistent with the basic communication unit, prompt is carried out, and auxiliary information is displayed on a linked graph of the system;
the examiner confirms the prompt information and further confirms the normalized communication protocol, eliminates errors of manual input, and finds out protocol errors among the communication basic units.
After the interface of subsystem or equipment in the large system is changed, the changed communication protocol is normalized, and formed into file according to the specification, and copied into the original normalized communication protocol file directory of said large system, and compared with the protocol of other basic communication unit. If there is a place of inconsistency, a prompt is made and the link map of the system displays auxiliary information.
The invention discloses a communication protocol rapid parallel test method suitable for a large system, which can rapidly and effectively find out the problem of uncoordinated software interfaces under the working environment of the system and improve the software test quality and the test efficiency.
In the interface testing process, all software responsible persons in the large system can work in parallel, only related interface protocols need to be normalized according to appointed rules to form interface protocol description files, the rest testing work is completed by a communication protocol examination tool, and protocols are automatically examined and analyzed to indicate protocol errors among all communication basic units; and generating a large system interface relation graph and an interface data stream file, and displaying auxiliary information on a link graph of the system if a protocol error exists.
After the interface of the subsystem or the equipment in the large system is changed, the changed communication protocol is normalized, and the analysis of the influence domain of the software interface change on the large system is quickly and accurately completed through a communication protocol examination tool.
The invention changes the whole human brain work into the minimum human brain work and the majority of computer work, so that the interface test is more accurate and efficient. Software responsible persons of all basic communication units can work in parallel, and the testing efficiency is improved. The communication protocol is normalized, and computer software is used for replacing an interface to carry out manual examination, so that manual errors are avoided, and the test quality is improved. After the rapid interface parallel test method is used, software responsible persons of all basic communication units only need to form interface description files related to the software according to rules, and the rest of interface analysis and examination work is automatically completed by communication protocol examination tool software. Computer software is used to replace manual communication among testers, so that errors which are easily made by manual examination are avoided, and the test quality is ensured.
The invention can quickly and accurately complete the analysis of the influence domain after the interface is changed and reduce the regression testing cost. When part of software interfaces in the large system are changed, testers only need to change and maintain the interface description file, and then the domain analysis is quickly and accurately influenced through a communication protocol examination tool. The influence on the whole large system can be quickly and accurately judged through the large system interface relation graph and the data flow graph generated by the tool and whether the change is correct or complete can be judged. The problems of incomplete test, repeated test work and the like caused by manual test during project iteration are completely avoided.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A communication protocol rapid parallel test method suitable for a large system is characterized by comprising the following steps:
dividing a large system into a plurality of subsystems and equipment, and setting a single subsystem or single equipment as a basic communication unit;
normalizing the communication protocol used by each basic communication unit, and when the subsystem is taken as one basic communication unit, neglecting the communication protocol in the subsystem, and independently forming a file by the normalized protocol;
each command of each basic communication unit corresponds to one subfile;
copying a normalized communication protocol formed by using a subsystem or equipment as a basic communication unit to a specified directory, analyzing files, comparing protocols and determining the places where the protocols are inconsistent;
traversing the file, reading the name of the basic communication unit, and constructing a link diagram of a large system according to the equipment linked by the basic communication unit in the normalized protocol; comparing the protocol realized by the program with the protocol described by the document, comparing the communication protocol standardized according to the program code and the communication protocol standardized according to the document description, if the inconsistent places exist, prompting, and displaying auxiliary information on a linked graph of the system; and comparing the consistency of the communication protocol with the protocol linked with the basic communication unit based on the document description protocol, prompting if the protocol is inconsistent, and displaying auxiliary information on a linked graph of the system.
2. The method according to claim 1, wherein the content of the file comprises: the name of the basic communication unit, the source of the communication protocol, the version of the communication protocol, the examiner of the communication protocol, the time of the examination of the communication protocol and the communication command.
3. The method as claimed in claim 2, wherein the communication command comprises:
the method comprises the following steps of functional text description and performance description of a communication command 1, attribute description of the communication command 1, link equipment of the communication command 1, sending and receiving attribute description of the communication command 1, field attribute description of the communication command 1, functional text description and performance description of the communication command 2, attribute description of the communication command 2, link equipment of the communication command 2, sending and receiving attribute description of the communication command 2, field attribute description of the communication command 2, functional text description and performance description of the communication command 3 and attribute description of the communication command 3.
4. The method for rapid parallel testing of communication protocols for large systems according to claim 1, further comprising labeling file names.
5. The method as claimed in claim 1, wherein the protocol of each basic communication unit is named according to the communication command, and comprises: the source, the destination, the abbreviation of each software name in the filling item, the parameter description, the data type, the data range and the byte order adopt an enumeration form, and a status code and a status description appear in pairs and an empty bit instruction or a flag word.
6. The method as claimed in claim 1, wherein the normalized protocol forms a file with a formal name of the basic communication unit.
7. The method as claimed in claim 1, wherein after the interface of the subsystem or device in the large system is changed, the changed communication protocol is normalized, and is formed into a file according to the specification, and the file is copied to the original normalized communication protocol file directory of the large system, and is compared with the protocols of other basic communication units, if there is a place of inconsistency, a prompt is given, and auxiliary information is displayed on the link diagram of the system.
8. The method as claimed in claim 7, wherein the prompt message is confirmed after the auxiliary message is displayed on the link diagram of the system, and the normalized communication protocol is further confirmed, so as to eliminate the errors of manual input and find out the protocol errors between the basic communication units.
CN201810678974.3A 2018-06-27 2018-06-27 Communication protocol rapid parallel testing method suitable for large system Active CN108845905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810678974.3A CN108845905B (en) 2018-06-27 2018-06-27 Communication protocol rapid parallel testing method suitable for large system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810678974.3A CN108845905B (en) 2018-06-27 2018-06-27 Communication protocol rapid parallel testing method suitable for large system

Publications (2)

Publication Number Publication Date
CN108845905A CN108845905A (en) 2018-11-20
CN108845905B true CN108845905B (en) 2021-09-10

Family

ID=64202394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810678974.3A Active CN108845905B (en) 2018-06-27 2018-06-27 Communication protocol rapid parallel testing method suitable for large system

Country Status (1)

Country Link
CN (1) CN108845905B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831348A (en) * 2018-12-17 2019-05-31 北京航天晨信科技有限责任公司 Automatic jig test method, equipment and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9766603B2 (en) * 2013-03-08 2017-09-19 International Business Machines Corporation Wireless network of low power sensing and actuating motes
CN205176829U (en) * 2013-07-25 2016-04-20 中国航天科工集团第三研究院第八三五七研究所 Multiple communications protocol's of test configuration system on a chip's test system
CN103780457B (en) * 2014-01-02 2017-05-03 东南大学 Mobile intelligent terminal safety detection method based on boundary detection
GB2528630A (en) * 2014-04-28 2016-02-03 Univ Central Lancashire Computer based system and method of functionally testing aircraft subsystems
CN107766190B (en) * 2017-10-31 2020-06-12 平安科技(深圳)有限公司 Interface testing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108845905A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
US8209658B2 (en) Method of creating signatures for classifying program failures
US7210123B2 (en) Software evaluation system having source code and function unit identification information in stored administration information
JP3946057B2 (en) Consistency inspection support method and consistency inspection support system
CN106330593B (en) Protocol detection method and device
US20030074423A1 (en) Testing web services as components
US7080357B2 (en) Software package verification
CN111651347B (en) Jump verification method, device, equipment and storage medium of test system
CN115658452B (en) Buried point verification method, buried point verification device, readable storage medium, and electronic device
US9285870B2 (en) System locale name management
CN112378420A (en) Signal simulation method and system for automobile navigation test and electronic equipment
US20190094300A1 (en) Ensuring completeness of interface signal checking in functional verification
CN112540924A (en) Interface automation test method, device, equipment and storage medium
CN108845905B (en) Communication protocol rapid parallel testing method suitable for large system
US8479163B2 (en) Simplifying maintenance of large software systems
CN113591422A (en) System for generating test case flow information in chip verification and application
US7400997B2 (en) Integrated instrument driver network
CA2452077A1 (en) Verification of stream oriented locale files
CN111770004B (en) HTTP (hyper text transport protocol) (S) flow content automatic verification method and storage medium
CN110737642B (en) Database information analysis method, database information analysis device, computer device and storage medium
CN114637681A (en) AI-based H5 page debugging and evaluation method and related equipment
CN113282480A (en) Software development testing method and system
CN112527623B (en) Code scanning method, device, computing equipment and computer storage medium
CN113419739B (en) Node map difference detection method and device, electronic equipment and storage medium
CN114968763B (en) Executable file detection method, device, storage medium and computer equipment
CN104702446A (en) Data release method and data release device

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