CN115550231A - Multi-protocol testing platform based on configuration file and testing method thereof - Google Patents

Multi-protocol testing platform based on configuration file and testing method thereof Download PDF

Info

Publication number
CN115550231A
CN115550231A CN202210328765.2A CN202210328765A CN115550231A CN 115550231 A CN115550231 A CN 115550231A CN 202210328765 A CN202210328765 A CN 202210328765A CN 115550231 A CN115550231 A CN 115550231A
Authority
CN
China
Prior art keywords
information
protocol
module
test
configuration
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
Application number
CN202210328765.2A
Other languages
Chinese (zh)
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.)
Xuchang Ketop Testing Research Institute Co ltd
Original Assignee
Xuchang Ketop Testing Research Institute 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 Xuchang Ketop Testing Research Institute Co ltd filed Critical Xuchang Ketop Testing Research Institute Co ltd
Priority to CN202210328765.2A priority Critical patent/CN115550231A/en
Publication of CN115550231A publication Critical patent/CN115550231A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/24Testing correct operation
    • H04L1/242Testing correct operation by comparing a transmitted test signal with a locally generated replica
    • H04L1/244Testing correct operation by comparing a transmitted test signal with a locally generated replica test sequence generators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • 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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • 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/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

A multi-protocol testing platform based on configuration files and a testing method thereof comprise a commission system, a protocol consistency testing platform and a test system, wherein the commission system is used for obtaining sample information at least containing protocol type identification of a sample to be tested and sending the sample information to the protocol consistency testing platform; the protocol consistency test platform identifies protocol type identification in the received sample information, analyzes the protocol type identification to obtain a configuration file analysis result, performs driving of a communication module, loading of a model file, screening of case plug-ins and construction of an information address table according to the configuration file analysis result to form a test environment, and transmits the test environment to a test device; the testing device tests the sample in a testing environment and returns a testing result to the protocol consistency testing platform, and the protocol consistency testing platform generates a report and a record and finally uploads the report and the record to the entrusted system. The invention simplifies the construction of the detection environment and reduces the difficulty of design and development of protocol consistency test services.

Description

Multi-protocol testing platform based on configuration file and testing method thereof
Technical Field
The invention relates to the technical field of protocol test platforms, in particular to a multi-protocol test platform based on configuration files and a test method thereof.
Background
The existing IEC61850 protocol consistency automatic test platform realizes the running-in test of UCA test case service according to MMS protocol and IEC61850 standard, can monitor, output and record the whole test process, has complete data, service management logic and complete intelligent test thought, and has higher automation degree.
However, at present, protocol inspectors still receive samples through the entrusting system platform, manually judge protocol types according to sample information, perform test tests through selection of different test tools, and upload generated reports and records to the entrusting system according to final test results to complete the tests.
In the existing testing method, the variety of protocol testing tools is various, the experimental environment is set up more complicated, and the development and maintenance cost is higher. The IEC61850 protocol consistency test platform has strong pertinence to the protocol, the platform test can only complete the test work of one type of protocol, the resource waste exists, the utilization is insufficient, and the test platform cannot be uniformly managed. In addition, the test platform and the entrusting system are mutually independent, and the problems of error transmission, missing transmission and the like of reports and records can be easily caused only by manually receiving samples and uploading report records at present.
Therefore, it is necessary to provide a multi-protocol testing platform based on configuration files and a testing method thereof to solve the deficiencies of the prior art.
Disclosure of Invention
It is an object of the present invention to provide a profile-based multi-protocol test platform that avoids the disadvantages of the prior art. The multi-protocol test platform based on the configuration files simplifies the construction of a detection environment and reduces the difficulty of design and development of protocol consistency test services.
The above object of the present invention is achieved by the following technical measures:
a multi-protocol testing platform based on configuration files is provided with a commission system and a protocol consistency testing platform.
And the entrusting system acquires the sample information at least containing the protocol type identification of the sample to be tested and sends the sample information to the protocol consistency testing platform.
The protocol consistency test platform identifies protocol type identification in the received sample information, analyzes the protocol type identification to obtain a configuration file analysis result, performs driving of a communication module, loading of a model file, screening of case plug-ins and construction of an information address table according to the configuration file analysis result to form a test environment, and transmits the test environment requirement to a test device.
The testing device tests the sample under the testing environment and returns the testing result to the protocol consistency testing platform, the protocol consistency testing platform generates reports and records, and finally the reports and the records are uploaded to the entrusting system.
Preferably, the protocol consistency testing platform comprises a sample receiving module, a sample management module, a configuration file analysis module, a model file loading module, a case library management module, an address information configuration module, a testing control module, a communication module, a report record generation module and a report record sending module.
Preferably, the sample receiving module receives sample information of a sample to be tested, which at least includes a protocol type identifier, from the commission system, and sends the sample information to the sample management module.
Preferably, the sample management module performs information modification and improvement operations on the sample information, and sends the modified sample information to the configuration file analysis module.
Preferably, the configuration file parsing module obtains a configuration file parsing result according to the protocol type identifier of the modified sample information, and then sends the configuration file parsing result to the communication module, the model loading module, and the address information configuration module, respectively.
Preferably, the model loading module analyzes the model file according to the configuration file analysis result to obtain a model loading analysis result, and sends the model loading analysis result to the case base management module.
Preferably, the address information configuration module calls a corresponding address information configuration file to perform analysis according to the analysis result of the configuration file to obtain an address information analysis result, and sends the address information analysis result to the case base management module.
Preferably, the case library management module loads the protocol static configuration table, the address information analysis result and the model loading analysis result, screens case plug-ins and matching registration and case parameters from the test case library according to the mapping relation between the protocol and the cases and the parameters to obtain a case screening result, and sends the case screening result to the test control module.
Preferably, the test control module sends the communication module according to a case screening result, the communication module judges a communication type and calls a corresponding serial port driver or an ethernet driver to complete information communication interaction with the test device according to an analysis module processing result of the configuration file analysis module, the communication module sends a case screening result to the test device, the test device completes a test according to the case screening result, the communication module sends a test result obtained by the test device to the test control module, and the test control module receives the obtained test result and sends the test result to the report record generation module.
Preferably, the report record generating module receives the test result sent by the test control module, selects a corresponding report and record template table and bookmark mapping table according to the mapping relationship between the protocol and the template, indexes the test result to the corresponding position of the template file through the bookmark for automatic filling, generates a report and record compatible with multiple protocols, and sends the report and record to the report record sending module.
Preferably, the report record sending module sends the report and the record of the report record generating module to the client system.
Preferably, the configuration file analysis module analyzes the configuration file according to the protocol type information identifier in the modified sample information sent by the sample management module, so as to obtain a configuration file analysis result, where the configuration file analysis result includes communication parameter configuration information, model configuration information, and address information configuration information; then the configuration file analysis module sends communication parameter configuration information to the communication module, sends model configuration information to the model loading module, and sends address information configuration information to the address information configuration module.
Preferably, the configuration file analysis module matches the protocol type identifier with the protocol type of the communication parameter in the configuration file, determines the network port or the serial port, and then obtains the communication parameter configuration information according to the network port or the serial port identifier.
When the communication parameter configuration information is serial port information, the communication parameter configuration information comprises a port number, a baud rate, a check bit or a stop bit; when the communication parameter configuration information is internet access information, the communication parameter configuration information contains IP and port information.
Preferably, the configuration file parsing module obtains the model configuration information by matching the protocol type identifier with the protocol type of the model loading parameter in the configuration file.
When the obtained model loading identifier ICDload _ Flg is TRUE, the configuration file analysis module loads the model file, obtains the path of the ICD model file in the configuration file, defines the path of the ICD model file in the configuration file as model configuration information, and then sends the model configuration information to the model loading module; and when the acquired model loading identifier ICDload _ Flg is FALSE, the configuration file analysis module does not load.
Preferably, the configuration file analysis module is differentiated by protocol type, and performs automatic matching through a protocol type identifier to obtain an address information configuration file path, and defines the address information configuration file path as the address information configuration information.
Preferably, the model loading module performs model file analysis according to the model configuration information to obtain a model loading analysis result, and sends the model loading analysis result to the case base management module.
Preferably, the address information configuration module performs resolution according to the address information configuration information to obtain an address information resolution result.
And in the address information analysis result, a DL/T645 protocol is used as an information identifier, a Modbus protocol is used as a coil and register address, a 101 protocol and a 104 protocol are used as information body addresses, and the address information configuration module sends the address information analysis result to the case base management module.
Preferably, the protocol STATIC configuration table is a SYSTEM _ TESTCASE _ MAP _ STATIC _ PARAMETER table.
Preferably, the Protocol static configuration list includes a Protocol list, a Case list, a CasePar list and a type description list, where the Protocol list is used to index a Protocol type corresponding to the sample, the Case list is used to search a test Case corresponding to the Protocol type, and the CasePar list is used to correspond to Case parameters.
Preferably, the BOOKMARK mapping table includes a RECORD BOOKMARK table and a REPORT BOOKMARK table, wherein the RECORD BOOKMARK table is SYSTEM _ TEST _ RECORD _ base _ BOOKMARK, and the REPORT BOOKMARK table is SYSTEM _ TEST _ REPORT _ base _ BOOKMARK.
Preferably, the report bookmark table includes a sampleInfo table, a testItem _ bookmark table, an internalcase _ bookmark table, and an addInfo _ bookmark table.
Preferably, the serial port driver is a 101 serial port driver, a Modbus serial port driver or a DL/T645 serial port driver.
Preferably, the ethernet driver is 61850 ethernet driver or 104 ethernet driver.
Preferably, the sample information further includes at least one of sample number information, model information, name information, specification information, type information, consignment information, manufacturer information, consignment address information, contact information, telephone information, mail information, and inspection destination information.
Preferably, the configuration file is a ProtocolInfo file.
Another object of the present invention is to provide a method for testing a multi-protocol testing platform based on configuration files, which avoids the disadvantages of the prior art. The test method of the multi-protocol test platform based on the configuration file simplifies the construction of a detection environment and reduces the difficulty of design and development of protocol consistency test services.
The test method of the multi-protocol test platform based on the configuration file is provided, and the multi-protocol test platform based on the configuration file is adopted for testing.
The invention relates to a multi-protocol testing platform based on configuration files and a testing method thereof, which comprises a commission system and a protocol consistency testing platform; the entrusting system is used for acquiring sample information at least containing protocol type identification of a sample to be tested and sending the sample information to the protocol consistency testing platform; the protocol consistency test platform identifies protocol type identification in the received sample information, analyzes the protocol type identification to obtain a configuration file analysis result, performs driving of a communication module, loading of a model file, screening of case plug-ins and construction of an information address table according to the configuration file analysis result to form a test environment, and transmits the test environment requirement to a test device; the testing device tests the sample under the testing environment and returns the testing result to the protocol consistency testing platform, the protocol consistency testing platform generates reports and records, and finally the reports and the records are uploaded to the entrusting system. The invention simplifies the construction of the detection environment, reduces the difficulty of protocol consistency test service design and development, and greatly improves the automation degree and the research and development efficiency of protocol test. Meanwhile, the invention can also improve the expandability and the service instantiation degree of the protocol test platform, reduce the manpower and the equipment cost and finally improve the working efficiency.
Drawings
The invention is further illustrated by means of the attached drawings, the content of which is not in any way limiting.
FIG. 1 is a schematic diagram of a multi-protocol test platform based on configuration files.
Fig. 2 is a schematic diagram of a multi-protocol test platform based on configuration files for multiple sample information.
Fig. 3 is a signal transmission diagram of a multi-protocol test platform based on configuration files.
Detailed Description
The technical solution of the present invention is further illustrated by the following examples.
Example 1.
A multi-protocol testing platform based on configuration files is shown in FIG. 1 and comprises a commission system and a protocol conformance testing platform.
The entrusting system acquires sample information at least containing protocol type identification of a sample to be tested, and sends the sample information to the protocol consistency testing platform.
The protocol consistency test platform identifies protocol type identification in the received sample information, analyzes the protocol type identification to obtain a configuration file analysis result, performs driving of the communication module, loading of the model file, screening of the case plug-in and construction of the information address table according to the configuration file analysis result to form a test environment, and transmits the test environment requirement to the test device.
The testing device tests the sample under the testing environment and returns the testing result to the protocol consistency testing platform, and the protocol consistency testing platform generates reports and records and finally uploads the reports and records to the entrusted system.
The sample information of the entrusted system of the present invention may be single sample information or a plurality of sample information.
When the sample information is multiple, the protocol consistency testing platform analyzes according to the protocol type identifier in each sample information to obtain multiple testing environments corresponding to each sample information, and each corresponding testing device tests the corresponding sample according to the testing environment requirements, as shown in fig. 2.
It should be noted that, when receiving the information of multiple samples, the protocol consistency testing platform may analyze and process sequentially according to the sequence of the received information of the samples and the protocol type identifier in each information of the samples, and may also process concurrently according to the protocol type identifiers in the information of multiple samples to obtain the testing environment corresponding to each sample.
The protocol consistency testing platform can input the testing environment requirements of the samples processed firstly into the testing device according to the processing sequence of the information of the samples, and after the testing of the testing device is finished; and inputting the test environment requirement of the next sample to be processed into the test device to test the sample, wherein the test is carried out for the sample, the test for the sample is carried out for the sample, and the test for the sample is carried out for the sample. The protocol consistency testing platform also simultaneously inputs the sample testing environment requirements corresponding to the information of the plurality of samples to the corresponding testing devices, so that each testing device respectively tests each sample according to the testing environment corresponding to the sample to be tested.
The protocol consistency test platform comprises a sample receiving module, a sample management module, a configuration file analysis module, a model file loading module, a case library management module, an address information configuration module, a test control module, a communication module, a report record generation module and a report record sending module, and is shown in fig. 3.
The sample receiving module receives sample information at least containing protocol type identification of a sample to be tested from the entrusted system and sends the sample information to the sample management module.
The sample management module is used for modifying and improving the information of the sample and sending the modified sample information to the configuration file analysis module.
It should be noted that the reason why the sample management module of the present invention modifies and improves the information of the sample information is that the sample information is brought by the commission system. And the customer service can not complete or have errors in filling the sample information, and the sample management module is used for carrying out a series of modification and perfection operations such as checking, adding, deleting or modifying the sample information, so that the correctness of the sample information in the report and record sent by the protocol consistency test platform is ensured.
The configuration file analysis module obtains a configuration file analysis result according to the protocol type identifier of the modified sample information, and then sends the configuration file analysis result to the communication module, the model loading module and the address information configuration module respectively.
The model loading module analyzes the model file according to the configuration file analysis result to obtain a model loading analysis result, and sends the model loading analysis result to the case base management module.
The address information configuration module calls a corresponding address information configuration file for analysis according to the analysis result of the configuration file to obtain an address information analysis result, and sends the address information analysis result to the case base management module.
The case library management module loads the protocol static configuration table, the address information analysis result and the model loading analysis result, screens case plug-ins and matching registration and case parameters from the test case library according to the mapping relation between the protocol and the cases and the parameters to obtain a case screening result, and sends the case screening result to the test control module.
The test control module sends a communication module according to the case screening result, the communication module judges the communication type and calls a corresponding serial port driver or an Ethernet driver to complete information communication interaction with the test device according to the analysis module processing result of the configuration file analysis module, the communication module sends the case screening result to the test device, the test device completes the test according to the case screening result, the communication module sends the test result obtained by the test device to the test control module, and the test control module receives the test result and sends the test result to the report record generating module.
The report record generating module receives the test result sent by the test control module, selects a corresponding report and record template table and bookmark mapping table according to the mapping relation between the protocol and the template, indexes the test result to the corresponding position of the template file through the bookmark for automatic filling, generates a report and record compatible with multiple protocols, and sends the report and record to the report record sending module.
The report record sending module sends the report and the record of the report record generating module to the entrusted system.
The configuration file analysis module analyzes the configuration file according to the protocol type information identifier in the modified sample information sent by the sample management module as a basis to obtain a configuration file analysis result, wherein the configuration file analysis result comprises communication parameter configuration information, model configuration information and address information configuration information; and then the configuration file analysis module sends the communication parameter configuration information to the communication module, sends the model configuration information to the model loading module and sends the address information configuration information to the address information configuration module.
The configuration file analysis module matches the protocol type of the communication parameter in the configuration file with the protocol type identifier, judges the network port or the serial port, and then obtains the communication parameter configuration information according to the network port or the serial port identifier.
When the communication parameter configuration information is serial port information, the communication parameter configuration information comprises a port number, a baud rate, a check bit or a stop bit; when the communication parameter configuration information is internet access information, the communication parameter configuration information contains IP and port information.
The configuration file analysis module obtains model configuration information by matching the protocol type identification with the protocol type of the model loading parameters in the configuration file.
When the obtained model loading identifier ICDload _ Flg is TRUE, the configuration file analysis module loads the model file, obtains the path of the ICD model file in the configuration file, defines the path of the ICD model file in the configuration file as model configuration information, and then sends the model configuration information to the model loading module; and when the acquired model loading identifier ICDload _ Flg is FALSE, the configuration file analysis module does not load.
The configuration file analysis module is distinguished by protocol types, automatic matching is carried out through protocol type identifiers to obtain address information configuration file paths, and the address information configuration file paths are defined as address information configuration information.
Specifically, the model loading module performs model file analysis through the model configuration information to obtain a model loading analysis result, and sends the model loading analysis result to the case library management module.
Specifically, the address information configuration module calls a corresponding address information configuration file to analyze according to the address information configuration information to obtain an address information analysis result, a DL/T645 protocol is used as an information identifier in the address information analysis result, a Modbus protocol is used as a coil and register address, a 101 protocol and a 104 protocol are used as information body addresses, and the address information configuration module sends the address information analysis result to the case base management module.
The protocol STATIC configuration table is a System _ TESTCASE _ MAP _ STATIC _ PARAMETER table.
The Protocol static configuration list comprises a Protocol list, a Case list, a CasePar list and a type description list, wherein the Protocol list is used for indexing a Protocol type corresponding to a sample, the Case list is used for searching a test Case corresponding to the Protocol type, and the CasePar list is used for corresponding Case parameters.
The BOOKMARK mapping table of the invention comprises a RECORD BOOKMARK table and a REPORT BOOKMARK table, wherein the RECORD BOOKMARK table is SYSTEM _ TEST _ RECORD _ BASECASE _ BOOKMARK, and the REPORT BOOKMARK table is SYSTEM _ TEST _ REPORT _ BASECASE _ BOOKMARK. The report bookmark table of the invention comprises a sampleInfo table, a testItem _ bookmark table, an internalcase _ bookmark table and an addInfo _ bookmark table.
It should be noted that the functions of the sampleInfo table, testItem _ bookmark table, internalcase _ bookmark table, and addlnfo _ bookmark table of the present invention respectively complete the indexing of the report cover page, summary table portion, detailed detection item and result portion, and additional information portion in the report and record.
The serial port drive of the invention is a 101 serial port drive, a Modbus serial port drive or a DL/T645 serial port drive; the ethernet driver is 61850 ethernet driver or 104 ethernet driver. The sample information further includes at least one of sample number information, model information, name information, specification information, type information, consignment unit information, manufacturer information, consignment unit address information, contact information, telephone information, mail box information, or inspection destination information. The configuration file is a protocol info file.
The multi-protocol test platform based on the configuration files simplifies the construction of a detection environment, reduces the difficulty of design and development of protocol consistency test services, and greatly improves the automation degree and the research and development efficiency of protocol tests. Meanwhile, the invention can also improve the expandability and the service instantiation degree of the protocol test platform, reduce the manpower and the equipment cost and finally improve the working efficiency. The multi-protocol test platform based on the configuration file has the characteristics of low development difficulty, strong maintainability, easy expansion and easy reuse, and can well meet the requirements of low coupling and high cohesion in large-scale software development.
Example 2.
A test method of a multi-protocol test platform based on configuration files adopts the multi-protocol test platform based on configuration files of embodiment 1 to carry out testing.
The test method of the multi-protocol test platform based on the configuration file simplifies the construction of a detection environment, reduces the design and development difficulty of protocol consistency test services, and greatly improves the automation degree and the research and development efficiency of protocol tests. Meanwhile, the invention can also improve the expandability and the service instantiation degree of the protocol test platform, reduce the manpower and the equipment cost and finally improve the working efficiency. The multi-protocol test platform based on the configuration file has the characteristics of low development difficulty, strong maintainability, easy expansion and easy reuse, and can well meet the requirements of low coupling and high cohesion in large-scale software development.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting the protection scope of the present invention, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A multi-protocol test platform based on configuration files, characterized by: a commission system and a protocol consistency test platform are arranged;
the entrusting system is used for acquiring sample information at least containing protocol type identification of a sample to be tested and sending the sample information to the protocol consistency testing platform;
the protocol consistency test platform identifies protocol type identification in the received sample information, analyzes the protocol type identification to obtain a configuration file analysis result, performs driving of a communication module, loading of a model file, screening of case plug-ins and construction of an information address table according to the configuration file analysis result to form a test environment, and transmits the test environment requirement to a test device;
the testing device tests the sample under the testing environment and returns the testing result to the protocol consistency testing platform, the protocol consistency testing platform generates reports and records, and finally the reports and the records are uploaded to the entrusting system.
2. The profile-based multi-protocol test platform of claim 1, wherein: the protocol consistency test platform comprises a sample receiving module, a sample management module, a configuration file analysis module, a model file loading module, a case library management module, an address information configuration module, a test control module, a communication module, a report record generation module and a report record sending module;
the sample receiving module receives sample information at least containing protocol type identification of a sample to be tested from the entrusted system and sends the sample information to the sample management module;
the sample management module carries out information modification and improvement operation on sample information and sends the modified sample information to the configuration file analysis module;
the configuration file analysis module obtains a configuration file analysis result according to the protocol type identifier of the modified sample information, and then sends the configuration file analysis result to the communication module, the model loading module and the address information configuration module respectively;
the model loading module analyzes the model file according to the configuration file analysis result to obtain a model loading analysis result, and sends the model loading analysis result to the case library management module;
the address information configuration module calls a corresponding address information configuration file for analysis according to the analysis result of the configuration file to obtain an address information analysis result and sends the address information analysis result to the case base management module;
the case library management module loads the protocol static configuration table, the address information analysis result and the model loading analysis result, screens case plug-ins and matching registration and case parameters from the test case library according to the mapping relation between the protocol and the cases and the parameters to obtain a case screening result, and sends the case screening result to the test control module;
the test control module sends the communication module according to a case screening result, the communication module judges the communication type and calls a corresponding serial port driver or an Ethernet driver to complete information communication interaction with the test device according to an analysis module processing result of the configuration file analysis module, the communication module sends the case screening result to the test device, the test device completes the test according to the case screening result, the communication module sends a test result obtained by the test device to the test control module, and the test control module receives the obtained test result and sends the test result to the report record generation module;
the report record generation module receives the test result sent by the test control module, selects a corresponding report and record template table and a bookmark mapping table according to the mapping relation between the protocol and the template, indexes the test result to the corresponding position of the template file through the bookmark to automatically fill the test result, generates a report and a record compatible with multiple protocols, and sends the report and the record to the report record sending module;
and the report record sending module sends the report and the record of the report record generating module to the entrusting system.
3. The profile-based multi-protocol test platform of claim 2, wherein: the configuration file analysis module analyzes the configuration file according to the protocol type information identifier in the modified sample information sent by the sample management module as a basis to obtain a configuration file analysis result, wherein the configuration file analysis result comprises communication parameter configuration information, model configuration information and address information configuration information; then the configuration file analysis module sends communication parameter configuration information to the communication module, sends model configuration information to the model loading module, and sends address information configuration information to the address information configuration module.
4. The profile-based multi-protocol test platform of claim 3, wherein: the configuration file analysis module is used for matching the protocol type identification with the protocol type of the communication parameter in the configuration file, judging the network port or the serial port and then obtaining communication parameter configuration information according to the network port or the serial port identification;
when the communication parameter configuration information is serial port information, the communication parameter configuration information comprises a port number, a baud rate, a check bit or a stop bit; when the communication parameter configuration information is network port information, IP and port information are contained;
the configuration file analysis module obtains model configuration information by matching the protocol type identification with the protocol type of the model loading parameters in the configuration file;
when the obtained model loading identifier ICDload _ Flg is TRUE, the configuration file analysis module loads the model file, obtains the path of the ICD model file in the configuration file, defines the path of the ICD model file in the configuration file as model configuration information, and then sends the model configuration information to the model loading module; when the acquired model loading identifier ICDload _ Flg is FALSE, the configuration file analysis module does not load;
the configuration file analysis module is distinguished by protocol types, automatic matching is carried out through protocol type identifiers to obtain address information configuration file paths, and the address information configuration file paths are defined as address information configuration information.
5. The profile-based multi-protocol test platform of claim 4, wherein: the model loading module analyzes the model file through the model configuration information to obtain a model loading analysis result, and sends the model loading analysis result to the case base management module.
6. The profile-based multi-protocol test platform of claim 5, wherein: the address information configuration module analyzes according to the address information configuration information to obtain an address information analysis result;
and in the address information analysis result, a DL/T645 protocol is used as an information identifier, a Modbus protocol is used as a coil and register address, a 101 protocol and a 104 protocol are used as information body addresses, and the address information configuration module sends the address information analysis result to the case base management module.
7. The profile-based multi-protocol test platform of claim 6, wherein: the protocol STATIC configuration table is a System _ TESTCASE _ MAP _ STATIC _ PARAMETER table;
the Protocol static configuration list comprises a Protocol list, a Case list, a CasePar list and a type description list, wherein the Protocol list is used for indexing the Protocol type corresponding to the sample, the Case list is used for searching the test Case corresponding to the Protocol type, and the CasePar list is used for corresponding Case parameters.
8. The profile-based multi-protocol test platform of claim 7, wherein: the BOOKMARK mapping table comprises a RECORD BOOKMARK table and a REPORT BOOKMARK table, wherein the RECORD BOOKMARK table is System _ TEST _ RECORD _ BASECASE _ BOOKMARK, and the REPORT BOOKMARK table is System _ TEST _ REPORT _ BASECASE _ BOOKMARK;
the report bookmark table includes a sampleInfo table, a testItem _ bookmark table, an internalcase _ bookmark table, and an addInfo _ bookmark table.
9. The profile-based multi-protocol test platform of claim 8, wherein: the serial port driver is a 101 serial port driver, a Modbus serial port driver or a DL/T645 serial port driver;
the Ethernet driver is 61850 Ethernet driver or 104 Ethernet driver;
the sample information also comprises at least one of sample number information, model information, name information, specification information, type information, entrusting unit information, manufacturer information, entrusting unit address information, contact information, telephone information, mailbox information or inspection target information;
the configuration file is a protocol info file.
10. A test method of a multi-protocol test platform based on a configuration file is characterized in that: a test is performed using the profile-based multi-protocol test platform according to any of claims 1 to 9.
CN202210328765.2A 2022-03-31 2022-03-31 Multi-protocol testing platform based on configuration file and testing method thereof Pending CN115550231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210328765.2A CN115550231A (en) 2022-03-31 2022-03-31 Multi-protocol testing platform based on configuration file and testing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210328765.2A CN115550231A (en) 2022-03-31 2022-03-31 Multi-protocol testing platform based on configuration file and testing method thereof

Publications (1)

Publication Number Publication Date
CN115550231A true CN115550231A (en) 2022-12-30

Family

ID=84723573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210328765.2A Pending CN115550231A (en) 2022-03-31 2022-03-31 Multi-protocol testing platform based on configuration file and testing method thereof

Country Status (1)

Country Link
CN (1) CN115550231A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100725853B1 (en) * 2005-12-10 2007-06-08 한국전자통신연구원 Device and method for testing multiple protocols
WO2007065321A1 (en) * 2005-12-08 2007-06-14 China Mobile Communications Corporation A protocol conformance test device and a test method thereof
CN103560932A (en) * 2013-11-05 2014-02-05 重庆邮电大学 Wireless sensor network remote protocol conformance testing system and method
CN103746879A (en) * 2013-12-28 2014-04-23 国家电网公司 Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
CN105915529A (en) * 2016-05-19 2016-08-31 微梦创科网络科技(中国)有限公司 Message generation method and device
WO2017000424A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Protocol detection method and apparatus
CN110601915A (en) * 2019-08-12 2019-12-20 深圳市同维通信技术有限公司 Method and device for testing gateway device
CN110855518A (en) * 2019-10-31 2020-02-28 苏州浪潮智能科技有限公司 Method and system for automatically adapting test host
CN111756714A (en) * 2020-06-15 2020-10-09 国家计算机网络与信息安全管理中心 Flow replay type test method and test engine for industrial control protocol
CN113591461A (en) * 2021-09-03 2021-11-02 国网江苏省电力有限公司电力科学研究院 Protocol consistency test method, system, storage medium and computing device
CN113971110A (en) * 2021-10-26 2022-01-25 招商银行股份有限公司 Interface testing method, device, equipment and computer readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007065321A1 (en) * 2005-12-08 2007-06-14 China Mobile Communications Corporation A protocol conformance test device and a test method thereof
KR100725853B1 (en) * 2005-12-10 2007-06-08 한국전자통신연구원 Device and method for testing multiple protocols
CN103560932A (en) * 2013-11-05 2014-02-05 重庆邮电大学 Wireless sensor network remote protocol conformance testing system and method
CN103746879A (en) * 2013-12-28 2014-04-23 国家电网公司 Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
WO2017000424A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Protocol detection method and apparatus
CN105915529A (en) * 2016-05-19 2016-08-31 微梦创科网络科技(中国)有限公司 Message generation method and device
CN110601915A (en) * 2019-08-12 2019-12-20 深圳市同维通信技术有限公司 Method and device for testing gateway device
CN110855518A (en) * 2019-10-31 2020-02-28 苏州浪潮智能科技有限公司 Method and system for automatically adapting test host
CN111756714A (en) * 2020-06-15 2020-10-09 国家计算机网络与信息安全管理中心 Flow replay type test method and test engine for industrial control protocol
CN113591461A (en) * 2021-09-03 2021-11-02 国网江苏省电力有限公司电力科学研究院 Protocol consistency test method, system, storage medium and computing device
CN113971110A (en) * 2021-10-26 2022-01-25 招商银行股份有限公司 Interface testing method, device, equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
聂晓旭;于凤芹;钦道理;: "可配置协议转换方法的设计与实现", 计算机技术与发展, no. 04, pages 86 - 90 *

Similar Documents

Publication Publication Date Title
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
CN110569298B (en) Data docking and visualization method and system
CN101867501B (en) Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model
CN110471831B (en) Automatic method and device for compatibility test
WO2017000424A1 (en) Protocol detection method and apparatus
JP2003091432A (en) Software evaluation system and software evaluation tool
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
CN106851513B (en) Method and system for testing electronic product
CN113419920B (en) Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform
CN105787364A (en) Automated testing method, device and system for task
CN112363953B (en) Interface test case generation method and system based on crawler technology and rule engine
CN111427321A (en) Multi-protocol-compatible MES data acquisition system and method thereof
CN108959065A (en) The verification method and system of software interface test parameter
CN113347060B (en) Method, device and system for detecting power network fault based on process automation
CN115550231A (en) Multi-protocol testing platform based on configuration file and testing method thereof
CN1937461B (en) Terminal test device based on terminal management business
CN1855855A (en) Device and method for emulated route analysis test
CN116719750A (en) Software testing method and device, server equipment and storage medium
CN115842861A (en) Edge connection device adaptation method, device and computer readable storage medium
CN116186147A (en) Intelligent classification experimental data collection and storage system
CN106998271B (en) Automatic adaptation processing system and method
CN112838938B (en) Test system of Internet of things platform
CN109814871B (en) Node management method and system based on DDS bus
CN112947115A (en) Generalized data monitoring method
CN111835590A (en) Automatic interface test architecture and test method for cloud host product

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