CN105262644B - A kind of universal test system and test method based on protocol configuration - Google Patents

A kind of universal test system and test method based on protocol configuration Download PDF

Info

Publication number
CN105262644B
CN105262644B CN201510735688.2A CN201510735688A CN105262644B CN 105262644 B CN105262644 B CN 105262644B CN 201510735688 A CN201510735688 A CN 201510735688A CN 105262644 B CN105262644 B CN 105262644B
Authority
CN
China
Prior art keywords
data
protocol
transmission data
universal
test
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
CN201510735688.2A
Other languages
Chinese (zh)
Other versions
CN105262644A (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.)
Zhuzhou CRRC Times Electric Co Ltd
Original Assignee
Zhuzhou CSR Times Electric 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 Zhuzhou CSR Times Electric Co Ltd filed Critical Zhuzhou CSR Times Electric Co Ltd
Priority to CN201510735688.2A priority Critical patent/CN105262644B/en
Publication of CN105262644A publication Critical patent/CN105262644A/en
Application granted granted Critical
Publication of CN105262644B publication Critical patent/CN105262644B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of universal test system and test method based on protocol configuration, the test system include:Include that the test case universal test environments of all test products and test product into the transmission data agreement of row data communication and are received by data protocol and defines the signal mapping table of environmental parameter and data name correspondence between this;The test method includes configuring transmission data agreement according to test product, receiving data protocol and signal mapping table process;Universal test environment generates set form transmission data packet according to transmission data agreement and signal mapping table, is sent to the process of test product;And universal test environment reads the process of received data packet according to data protocol and signal mapping table is received.The present invention, which passes through, to be changed transmission data agreement, receives data protocol and signal mapping table, you can realize test function of the universal test environment to different test products, it is adaptable wide, flexible and convenient to use, at low cost, efficient the advantages that.

Description

A kind of universal test system and test method based on protocol configuration
Technical field
The present invention relates to virtual simulation test field more particularly to a kind of universal test systems and survey based on protocol configuration Method for testing.
Background technology
In the life cycle of research and development, the production of a product, before product design sizing and before product input city, It is required for carrying out product a large amount of, comprehensive test, to determine that the function of product, performance meet the requirements.In traditional feelings Under condition, current design personnel place it under actual product use condition and test after developing certain product, judge Whether the control logic and function of development meet the needs of client, because the test period of conventional test methodologies it is long, it is of high cost, Efficiency is low, the demand of product test, also, traditional test method is much cannot be satisfied, for the control object of complex and expensive Work debugging test is carried out, risk is also very big.Currently, often product is tested by building virtual simulation test environment, And it is higher and higher with the complexity of modern product, for the product of same type different model, communication protocol is often different, Therefore, the customized development of test environment must be still carried out to the new product of same type different model, the environmental construction period is long, Simultaneously part universal model functional block also must in test environment newly developed otherwise designed.Virtual simulation test environment leads to It is low with property, cause product test execution efficiency low, much can not meet the testing requirement of product, seriously affect testing progress and production The product time of making the product.
Invention content
The technical problem to be solved in the present invention is that:For technical problem of the existing technology, the present invention provides one It kind can meet the testing requirement of same type different model product, test wide adaptation range, configuration be flexible and convenient, at low cost, The efficient universal test system and test method based on protocol configuration.
In order to solve the above technical problems, technical solution proposed by the present invention is:A kind of universal test based on protocol configuration System, including universal test environment, transmission data agreement, reception data protocol and signal mapping table;
The universal test environment includes the test case to all test products, and is defined for all tested productions Product carry out testing required whole environmental parameters, and the environmental parameter includes parameter name and parameter type;
The transmission data agreement is corresponding with the reception data protocol of test product, correct for realizing universal test environment To test product transmission data, including the definition of transmission data pack arrangement and the data of each data item in transmission data packet Title and data type;
The reception data protocol is corresponding with the transmission data agreement of test product, correct for realizing universal test environment Receive the data that test product is sent, including the definition of received data packet structure and the number of each data item in received data packet According to title and data type;
The signal mapping table is used to define in the data name and universal test environment defined in transmission data agreement Mapping relations between defined environmental parameter title, and receive the data name defined in data protocol and general survey The mapping relations between environmental parameter title defined in test ring border.
As a further improvement on the present invention, any one data name defined in the transmission data agreement is led to With there is only one environmental parameter title to be corresponding to it in test environment, and data type having the same;The reception number According to any one data name defined in agreement, there is only one environmental parameter title right therewith in universal test environment It answers, and data type having the same.
As a further improvement on the present invention, the parameter type of environmental parameter defined in the universal test environment, institute It states and receives the data type of data item and the data item defined in the transmission data agreement defined in data protocol Data type includes Value Types and Boolean type.
As a further improvement on the present invention, the transmission data packet of the transmission data protocol definition set form, it is described Transmission data packet is made of the field of multiple regular lengths, and each field includes a Value Types data item, or including having The several Boolean type data item of field bit;The received data packet for receiving data protocol and defining set form, it is described Received data packet is made of the field of multiple regular lengths, and each field includes a Value Types data item, or including having The several Boolean type data item of field bit;The universal test environment passes through the transmission data packet of set form and fixation The reception data of format and test product are into row data communication.
As a further improvement on the present invention, the signal mapping table record including environmental parameter title, protocol type, Data name and location information.
A kind of universal testing method based on protocol configuration, comprises the following processes:
S1. universal test environment configures the process of transport protocol and signal mapping table according to test product;
S2. environmental parameter is switched to transmission data by universal test environment according to transmission data needs according to signal mapping table Bag parameter generates the transmission data packet of set form, is sent to test product;
S3. universal test environment receives the received data packet that test product is sent, and will receive number according to signal mapping table The environmental parameter being correctly assigned to according to the data value in packet in universal test environment.
As a further improvement on the present invention, the step S1 transport protocols and signal mapping table configuration process include:
S1.1. data protocol configuration process is received:Universal test environment configures and tested production according to the model of test product The corresponding reception data protocol of product transmission data agreement, the format for receiving data protocol and defining received data packet, with And in received data packet each data item data name and data type;
S1.2. transmission data protocol configuration process:Universal test environment configures and tested production according to the model of test product Product receive data protocol corresponding transmission data agreement, the transmission data protocol definition format of transmission data packet, with And in transmission data packet each data item data name and data type;
S1.3. signal mapping table configuration process includes:It reads item by item in the reception data protocol and transmission data agreement The location information of the data name and data type and the data item of each data item in the packet, and from universal test Selection has mutually convertible environmental parameter title with the data item in environment, by the data name, data type, position The type of information, parameter name and agreement inserts signal mapping table.
As a further improvement on the present invention, the specific steps of the step 2 include:
S2.1. the universal test environment reads the parameter name and parameter for the environmental parameter for needing to be sent to test product Value;
S2.2. the universal test environment inquires signal mapping table, obtains the parameter name in transmission data agreement Location information in transmission data packet of data name and the data name;
S2.3. the universal test environment according to the positional information inserts the parameter value in transmission data packet;
S2.4. preset placeholder is inserted in remaining position of transmission data packet by the universal test environment, completes to send The generation of data packet;
S2.5. the data packet is sent to test product by the universal test environment.
As a further improvement on the present invention, the specific steps of the step S3 include:
S3.1. the universal test environment receives the received data packet that test product is sent;
S3.2. the universal test environment reads the data item in received data packet one by one according to data protocol is received, and Judge whether the value of the data item is preset placeholder, is to read next data item, continues to execute this step, Zhi Daojie The last one data item of data packet is received, otherwise go to step S3.3;
S3.3. the data name and location information of the data item are obtained according to reception data protocol, inquiry signal reflects Firing table obtains the corresponding environmental parameter title of the data name, and the value of the data item is assigned to the environmental parameter Title completes the reading of received data packet.
Compared with the prior art, the advantages of the present invention are as follows:The present invention is by transmission data agreement and receives data protocol, It realizes that the data between test environment and test product communicate, while by signal mapping table, realizing environment number in test environment According to corresponding between title and product data title in test product, by change transmission data agreement, receive data protocol and Signal mapping table, you can realize test function of the universal test environment to different test products, adaptable wide, using flexible The advantages that convenient, at low cost, efficient.
Description of the drawings
Fig. 1 is a kind of universal test system structural schematic diagram based on protocol configuration of the present invention.
Fig. 2 is the present invention a kind of universal test system environmental parameter, signal mapping table, transmission data based on protocol configuration Agreement and reception data protocol schematic diagram.
Fig. 3 is a kind of universal testing method flow chart based on protocol configuration of the present invention.
Specific implementation mode
Below in conjunction with Figure of description and specific preferred embodiment, the invention will be further described, but not therefore and It limits the scope of the invention.
As shown in Figure 1, a kind of universal test system based on protocol configuration of the present invention, including universal test environment, transmission Data protocol receives data protocol and signal mapping table;Universal test environment includes the test case to all test products, And define and carry out testing required whole environmental parameters for whole test products, environmental parameter includes parameter name and ginseng Several classes of types;Transmission data agreement is corresponding with the reception data protocol of test product, for realizing universal test environment correctly to Test product transmission data, including the definition of transmission data pack arrangement and the data name of each data item in transmission data packet And data type;It is corresponding with the transmission data agreement of test product to receive data protocol, it is correct for realizing universal test environment Receive the data that test product is sent, including the definition of received data packet structure and the number of each data item in received data packet According to title and data type;Signal mapping table is used to define data name and universal test ring defined in transmission data agreement The mapping relations between environmental parameter title defined in border, and receive the data name defined in data protocol and lead to With the mapping relations between the environmental parameter title defined in test environment.
In the present embodiment, universal test environment is a test wrapper being integrated with to all test product testing requirements Border can test different products.For different tested products, universal test environment has different reception numbers It is corresponding with the communication protocol of test product according to agreement and transmission data agreement, to realize universal test environment and test product it Between data communication.As shown in Fig. 2, being directed to test product 1 and test product 2, there is corresponding transmission data agreement, connects Receive data protocol and signal mapping table.Due to different test products, the data item with identical expression content is in different quilts Different data names may be had by surveying in product, i.e., transmission data agreement or receive data defined in data protocol with it is logical There is the environmental parameter defined in test environment different titles, signal mapping table to be then used to define transmission data agreement or connect Receive the data name defined in data protocol and the mapping relations between environmental parameter title.In the present embodiment, for tested Product 1, the entitled A of environmental parameter, the data name that data send protocol definition are A1, and the location information of A1 is the 1st row, is passed through Signal mapping table 1, that is, realize environmental parameter A and data name A1, and between the 1st row of position in transmission data packet Correspondence.And it is directed to test product 2, environmental parameter title is also A, but it is A2 that data, which send the data name of protocol definition, The location information of A2 is the 3rd row, by signal mapping table 2, realizes environmental parameter A and data name A2, and sending number According to the correspondence between the 3rd row of position in packet.Therefore, for different test products, universal test environment only needs to match It sets corresponding transmission data agreement, receive data protocol and signal mapping table, you can realize universal test environment to tested The adaptation of product.
In the present embodiment, any one data name defined in transmission data agreement, in universal test environment all There is only one environmental parameter title to be corresponding to it, and data type having the same;Receive appointing defined in data protocol It anticipates a data name, there is only one environmental parameter title to be corresponding to it in universal test environment, and number having the same According to type.Due to defined in universal test environment for the required whole environmental parameters of whole test products, for one kind The test product of specific type often only needs to use component environment parameter, therefore, with transmission data agreement or reception data The corresponding environmental parameter of agreement, the only a subset of the defined environmental parameter of universal test environment.
In the present embodiment, institute in the parameter type of environmental parameter defined in universal test environment, reception data protocol The data type of the data type and the data item defined in transmission data agreement that define data item includes Value Types and cloth That type.
The transmission data packet of transmission data protocol definition set form, transmission data packet by multiple regular lengths field groups At each field includes a Value Types data item, or including having the several Boolean type data item of field bit;Receive number According to the received data packet of protocol definition set form, received data packet is made of the field of multiple regular lengths, each field packet A Value Types data item is included, or including having the several Boolean type data item of field bit;Universal test environment passes through solid The transmission data packet for the formula that fixes and the reception data of set form and test product are into row data communication.In the present embodiment, word The length of section is set according to the actual conditions of test product, can be one and be included 8 bits, can also be 16 bits, Or with longer bit.The length of Value Types is consistent with the length of field, i.e., when the field is the field of Value Types, The field is a Value Types data.Boolean type only accounts for a bit, and one is formed by the data of multiple Boolean types Field, i.e., when the field is the field of Boolean type, which includes the Boolean type data of field bit position.Such as figure In 2, a field is 8 bits, the data of a Value Types defined in transmission data agreement and reception data protocol It is 1 bit for 8 bits, such as data of A1, B1, D1 and E1, Boolean type, is made of the data of 8 Boolean types One field.
As shown in Fig. 2, in the present embodiment, signal mapping table is recorded including environmental parameter title, protocol type, data Title and location information.Protocol type refers to transmission data agreement or receives data protocol, and location information exists for recording data Position in transmission data packet or received data packet, including line number or line number and row number.For Value Types data, it is only necessary to Position of the data in transmission data packet or received data packet can be determined by line number, i.e. the data are transmission data packet Or which field in received data packet;For Boolean type data, need to determine that the data exist by line number and row number Position in transmission data packet or received data packet, that is, determine the data be in transmission data packet or received data packet which A field, and which bit in the field.In Fig. 2, for test product 1, defined in transmission data agreement Value Types data A1, corresponding with environmental parameter A, A1 is located at the 1st field in transmission data packet, i.e. line number is 1;For connecing The Boolean type data Q1 defined in data protocol is received, corresponding with environmental parameter Q, Q1 is located at the 4th field in received data packet The 7th bit, i.e., line number be 4, row number 7, accordingly, signal mapping table, so that it may with know environmental parameter correspondence sending Data protocol or receive data name and the environmental parameter defined in data protocol data should in transmission data packet or Position in received data packet.
As shown in figure 3, a kind of universal testing method based on protocol configuration, comprises the following processes:S1. universal test environment The process of transport protocol and signal mapping table is configured according to test product;S2. universal test environment is according to transmission data needs, root It is believed that environmental parameter is switched to transmission data bag parameter by number mapping table, the transmission data packet of set form is generated, is sent to tested Product;S3. universal test environment receives the received data packet that test product is sent, and according to signal mapping table by received data packet In data value be correctly assigned to the environmental parameter in universal test environment.
In the present embodiment, transport protocol and signal mapping table configuration process include:S1.1. data protocol is received to configure Journey:Universal test environment configures reception data corresponding with test product transmission data agreement according to the model of test product and assists View receives the data name sum number that data protocol defines each data item in the format and received data packet of received data packet According to type;S1.2. transmission data protocol configuration process:Universal test environment is configured according to the model of test product and test product Data protocol corresponding transmission data agreement, the transmission data protocol definition format of transmission data packet are received, and is sent The data name and data type of each data item in data packet;S1.3. signal mapping table configuration process includes:Described in reading item by item The data name of each data item and data type and the data item are in data in reception data protocol and transmission data agreement Location information in packet, and selection has mutually convertible environmental parameter title with the data item from universal test environment, The type of the data name, data type, location information, parameter name and agreement is inserted into signal mapping table.
As shown in Fig. 2, in the present embodiment, transmission data agreement and the communication protocol for receiving data protocol and test product It is corresponding.In the generating process of signal mapping table, the data item that the data name defined in transmission data agreement is A1 is read, and The type of the data item is Value Types, the location information of data item, line number 1, and from the environmental parameter of universal test environment Selection has mutually convertible environmental parameter A with data item A1, and is recorded information above as one, filling signal mapping Table, accordingly, you can be referred to as with environmental parameter name with generating transmission data agreement and receiving data name defined in data protocol Between correspondence.
In the present embodiment, universal test environment generates the process of the transmission data packet of set form according to signal mapping table Including:S2.1. universal test environment reads the parameter name and parameter value for the environmental parameter for needing to be sent to test product; S2.2. universal test environment inquires signal mapping table, data name of the title that gets parms in transmission data agreement, and number According to location information of the title in transmission data packet;S2.3. parameter value is inserted according to location information and is sent by universal test environment In data packet;S2.4. preset placeholder is inserted in remaining position of transmission data packet by universal test environment, completes transmission data The generation of packet;S2.5. universal test environment sends data packets to test product.
As shown in Fig. 2, being directed to test product 1, in the present embodiment, universal test environment needs to send ring to test product Border parameter name is the data of A and O, then the transmission data packet of fixed structure is generated by transmission data agreement, is believed by inquiring Number mapping table, it is known that the corresponding data names of environmental parameter A are A1, and the position in transmission data packet is the Value Data of line number 1, Then the value of environmental parameter A is directly inserted the field location that transmission data packet rows number are 1 by universal test environment;Equally, by looking into Ask signal mapping table, it is known that the corresponding data names of environmental parameter O are O1, and the position line number in transmission data packet is 3, row number For 6 Boolean data, then it is 3 that the value of environmental parameter O is directly inserted transmission data packet rows number by universal test environment, row number 6 Position;To the other positions of transmission data packet, then preset placeholder is inserted, generates a complete transmission data packet, hair Test product is given, realizes that universal test environment is sent to the data between test product.
In the present embodiment, universal test environment includes according to the process of data in mapping table reading received data packet: S3.1. universal test environment receives the received data packet that test product is sent;S3.2. universal test environment is according to reception data Agreement reads the data item in received data packet one by one, and judges whether the value of the data item is preset placeholder, is to read A data item is removed, this step is continued to execute, until the last one data item of received data packet, is otherwise gone to step S3.3;S3.3. according to the data name and location information for receiving data protocol acquisition data item, signal mapping table is inquired, is obtained The corresponding environmental parameter title of data name is obtained, and the value of data item is assigned to environmental parameter title, completes received data packet Reading.
As shown in Fig. 2, being directed to test product 1, in the present embodiment, universal test environment receives test product and sends A data packet, universal test environment according to receive data protocol, read the value of the data item in the data packet item by item, and sentence Whether the value for the data item of breaking is preset placeholder, is to account for symbol then without processing, and read next data item, until reading It is taken as the data item E1 of non-placeholder, and obtains the location informations of data item E1 in the packet, i.e., line number is 1, is passed through Inquire signal mapping table, it is known that it is E1 to receive data name in data protocol, and the entitled E of environmental parameter that line number is 1 connects data The value of item E1 is assigned to environmental parameter E, that is, realizes by the data item to universal test environment defined in reception data protocol Conversion between the environmental parameter of definition, to complete the reading of received data packet.
Through the invention, for the product of same type different model, a test environment can be only developed, by flexible It configures transmission data agreement, receive data protocol and signal mapping table, you can to realize the demand to different model product test, The development cost for having saved test environment, improves work efficiency, and transmission data agreement, reception data protocol and signal reflect The configuration process of firing table is simple and convenient, has good versatility.
Above-mentioned only presently preferred embodiments of the present invention, is not intended to limit the present invention in any form.Although of the invention Disclosed above with preferred embodiment, however, it is not intended to limit the invention.Therefore, every without departing from technical solution of the present invention Content, technical spirit any simple modifications, equivalents, and modifications made to the above embodiment, should all fall according to the present invention In the range of technical solution of the present invention protection.

Claims (9)

1. a kind of universal test system based on protocol configuration, it is characterised in that:It is assisted including universal test environment, transmission data View receives data protocol and signal mapping table;
The universal test environment includes the test case to all test products, and define for whole test products into The required whole environmental parameters of row test, the environmental parameter includes parameter name and parameter type;
The transmission data agreement is corresponding with the reception data protocol of test product, for realizing universal test environment correctly to Test product transmission data, including the definition of transmission data pack arrangement and the data name of each data item in transmission data packet And data type;
The reception data protocol is corresponding with the transmission data agreement of test product, is properly received for realizing universal test environment The data that test product is sent, including the definition of received data packet structure and the data name of each data item in received data packet Title and data type;
The signal mapping table is used to define to be determined in data name and the universal test environment defined in transmission data agreement Mapping relations between the environmental parameter title of justice, and receive data name and universal test ring defined in data protocol The mapping relations between environmental parameter title defined in border;
The universal test environment is used to configure transport protocol and signal mapping table according to test product;According to transmission data need It wants, environmental parameter is switched to by transmission data bag parameter according to signal mapping table, the transmission data packet of set form is generated, is sent to Test product;The received data packet that test product is sent is received, and according to signal mapping table by the data value in received data packet The correct environmental parameter being assigned in universal test environment.
2. the universal test system according to claim 1 based on protocol configuration, it is characterised in that:The transmission data association Any one data name defined in view has only one environmental parameter title to be corresponding to it in universal test environment, And data type having the same;Any one data name defined in the reception data protocol, universal test environment In there is only one environmental parameter title to be corresponding to it, and data type having the same.
3. the universal test system according to claim 2 based on protocol configuration, it is characterised in that:The universal test ring The data type of data item, Yi Jisuo defined in the parameter type of environmental parameter defined in border, the reception data protocol The data type for stating the data item defined in transmission data agreement includes Value Types and Boolean type.
4. the universal test system according to claim 3 based on protocol configuration, it is characterised in that:The transmission data association The transmission data packet of agreed justice set form, the transmission data packet are made of the field of multiple regular lengths, each field packet A Value Types data item is included, or including having the several Boolean type data item of the field bit;The reception data association The received data packet of agreed justice set form, the received data packet are made of the field of multiple regular lengths, each field packet A Value Types data item is included, or including having the several Boolean type data item of the field bit;The universal test ring Border is by the reception data of the transmission data packet of set form and set form and test product into row data communication.
5. the universal test system according to claim 4 based on protocol configuration, it is characterised in that:The signal mapping table It records including environmental parameter title, protocol type, data name and location information.
6. a kind of universal testing method based on protocol configuration, it is characterised in that comprise the following processes:
S1. universal test environment configures the process of transport protocol and signal mapping table according to test product;
S2. environmental parameter is switched to transmission data packet ginseng by universal test environment according to transmission data needs according to signal mapping table Number, generates the transmission data packet of set form, is sent to test product;
S3. universal test environment receives the received data packet that test product is sent, and according to signal mapping table by received data packet In data value be correctly assigned to the environmental parameter in universal test environment.
7. the universal testing method according to claim 6 based on protocol configuration, it is characterised in that:The step S1 transmission Agreement and signal mapping table configuration process include:
S1.1. data protocol configuration process is received:Universal test environment is sent out according to the configuration of the model of test product with test product Send data protocol corresponding reception data protocol, the format for receiving data protocol and defining received data packet, Yi Jijie Receive the data name and data type of each data item in data packet;
S1.2. transmission data protocol configuration process:Universal test environment is configured according to the model of test product and is connect with test product Receive data protocol corresponding transmission data agreement, the transmission data protocol definition format of transmission data packet, Yi Jifa Send the data name and data type of each data item in data packet;
S1.3. signal mapping table configuration process includes:Each number in the reception data protocol and transmission data agreement is read item by item According to data name and data type and the data item location information in the packet of item, and from universal test environment Middle selection has mutually convertible environmental parameter title with the data item, and the data name, data type, position are believed The type of breath, parameter name and agreement inserts signal mapping table.
8. the universal testing method according to claim 6 based on protocol configuration, it is characterised in that:The tool of the step 2 Body step includes:
S2.1. the universal test environment reads the parameter name and parameter value for the environmental parameter for needing to be sent to test product;
S2.2. the universal test environment inquires signal mapping table, obtains number of the parameter name in transmission data agreement According to the location information of title and the data name in transmission data packet;
S2.3. the universal test environment according to the positional information inserts the parameter value in transmission data packet;
S2.4. preset placeholder is inserted in remaining position of transmission data packet by the universal test environment, completes transmission data The generation of packet;
S2.5. the data packet is sent to test product by the universal test environment.
9. the universal testing method according to claim 6 based on protocol configuration, it is characterised in that:The tool of the step S3 Body step includes:
S3.1. the universal test environment receives the received data packet that test product is sent;
S3.2. the universal test environment reads the data item in received data packet one by one according to data protocol is received, and judges Whether the value of the data item is preset placeholder, is to read next data item, continues to execute this step, until receiving number According to the last one data item of packet, otherwise go to step S3.3;
S3.3. the data name and location information of the data item, inquiry signal mapping are obtained according to reception data protocol Table obtains the corresponding environmental parameter title of the data name, and the value of the data item is assigned to the environmental parameter name Claim, completes the reading of received data packet.
CN201510735688.2A 2015-11-03 2015-11-03 A kind of universal test system and test method based on protocol configuration Active CN105262644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510735688.2A CN105262644B (en) 2015-11-03 2015-11-03 A kind of universal test system and test method based on protocol configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510735688.2A CN105262644B (en) 2015-11-03 2015-11-03 A kind of universal test system and test method based on protocol configuration

Publications (2)

Publication Number Publication Date
CN105262644A CN105262644A (en) 2016-01-20
CN105262644B true CN105262644B (en) 2018-08-21

Family

ID=55102161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510735688.2A Active CN105262644B (en) 2015-11-03 2015-11-03 A kind of universal test system and test method based on protocol configuration

Country Status (1)

Country Link
CN (1) CN105262644B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681921B (en) * 2016-12-27 2020-11-10 腾讯科技(深圳)有限公司 Method and device for realizing data parameterization
CN107222363B (en) * 2017-05-26 2021-01-08 苏州浪潮智能科技有限公司 Storage protocol consistency test method and system
CN107222505A (en) * 2017-07-12 2017-09-29 杭州时趣信息技术有限公司 A kind of method and device for being adapted to external protocol
CN109327354B (en) * 2018-09-30 2020-09-25 北京新能源汽车股份有限公司 Method, device and test system for generating signal forwarding test case
CN111190802B (en) * 2019-12-22 2022-09-30 卡斯柯信号有限公司 Method for automatically generating performance test configuration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509016A (en) * 2002-12-19 2004-06-30 ��ʽ����Ntt����Ħ Agreement test system and method thereof
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN102694701A (en) * 2012-06-13 2012-09-26 青岛海信传媒网络技术有限公司 Testing method and system based on message
CN103309783A (en) * 2013-07-08 2013-09-18 北京经纬恒润科技有限公司 Test method and device based on bus communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917895B2 (en) * 2001-07-27 2011-03-29 Smartesoft, Inc. Automated software testing and validation system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509016A (en) * 2002-12-19 2004-06-30 ��ʽ����Ntt����Ħ Agreement test system and method thereof
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN102694701A (en) * 2012-06-13 2012-09-26 青岛海信传媒网络技术有限公司 Testing method and system based on message
CN103309783A (en) * 2013-07-08 2013-09-18 北京经纬恒润科技有限公司 Test method and device based on bus communication

Also Published As

Publication number Publication date
CN105262644A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN105262644B (en) A kind of universal test system and test method based on protocol configuration
JP4805163B2 (en) Apparatus and method for time sequencing events in a system having multiple time domain groups
CN106612141A (en) Optical fiber channel protocol general simulation testing card and data interaction method thereof
CN103530211B (en) A kind of method of the PCIE winding Autonomous tests based on UVM platforms
CN104954096B (en) A kind of high-speed synchronous serial communication data transmission method of one master and multiple slaves
CN107656126B (en) CAN-based automatic testing method and system for quiescent current of vehicle-mounted sound equipment
CN100372317C (en) Flow receiving taking and statistic circuit assembly for 10G network performance tester
CN109768970A (en) It is a kind of based on configurable puppy parc generation method
JP2013110753A (en) Communication management device and data communication method
CN102096410B (en) Dynamic function test method of high-speed train operation control system
CN105243044B (en) Management system and management method based on serial ports
CN101324363B (en) Air conditioner monitoring system
CN113238936B (en) Extensible universal embedded software communication interface testing method and device
CN106598019A (en) Satellite housekeeping simulator and simulation method for development and test of micro-nano satellite control module
Liu et al. EtherCAT based robot modular joint controller
CN115033444B (en) 8051 core-based online debugging circuit control device
CN100594707C (en) The digital communication method of the digital control system based on Ethernet technology
CN101763299B (en) Method and device for testing universal series bus equipment
CN107688682A (en) A kind of method that circuit topology is extracted using timing path
US7463653B2 (en) Apparatus and method for compression of the timing trace stream
CN109450763B (en) Bus expansion method, gateway and bus expansion system
CN106649186A (en) Communication method and device for application program and serial port peripheral
CN105117353B (en) FPGA with conventional data interactive module and the information processing system using the FPGA
CN102521189A (en) Method for realizing MDIO (Management Data Input/Output) interface signal transformation through CPLD (Complex Programmable Logic Device)
CN207115115U (en) A kind of microcontroller single line detail programming interface arrangement

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169

Patentee after: ZHUZHOU CRRC TIMES ELECTRIC Co.,Ltd.

Address before: The age of 412001 in Hunan Province, Zhuzhou Shifeng District Road No. 169

Patentee before: ZHUZH CSR TIMES ELECTRIC Co.,Ltd.