CN105044508B - Product test method and apparatus and test system - Google Patents
Product test method and apparatus and test system Download PDFInfo
- Publication number
- CN105044508B CN105044508B CN201510405237.2A CN201510405237A CN105044508B CN 105044508 B CN105044508 B CN 105044508B CN 201510405237 A CN201510405237 A CN 201510405237A CN 105044508 B CN105044508 B CN 105044508B
- Authority
- CN
- China
- Prior art keywords
- protocol
- agreement
- product
- control data
- 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.)
- Expired - Fee Related
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of product test method and apparatus and test system.Product test method includes:Determine agreement used in product to be measured;The corresponding protocol convertor of invocation protocol, wherein, protocol convertor is used for the control data for obtaining agreement;Test is performed to product to be measured according to control data.By the present invention, the efficiency of product test is improved.
Description
Technical field
The present invention relates to testing field, in particular to a kind of product test method and apparatus and test system.
Background technology
In product test, it will usually be related to communication issue, because there is the communication protocol operating specification of oneself in each producer,
Test system and the communication protocol that product to be measured is used are often inconsistent, and then cause the incompatible situation hair of communication protocol
It is raw, in addition, for the consideration to Product Safety to be measured energy, producer requires that the communication protocol used to it maintains secrecy, nothing
Method is modified to it, so makes test system can not obtain consistent communication protocol directly to be communicated with product to be measured.
In order to ensure that test system normally tests product to be measured, at present, develop a kind of dedicated for the special logical of communication Protocol Conversion
Module is believed, that is, communication protocol interconnecting module.Fig. 1 is the schematic diagram of the test system in correlation technique, the test system
By test system 10 ', communication protocol interconnecting module 20 ' and product 30 ' to be measured are constituted.The test system is transferred by communication protocol
Module 20 ' is changed to the communication protocol between test system 10 ' and product 30 ' to be measured, and then is made test system 10 ' and treated
Survey product 30 ' to be communicated, test system 10 ' is completed the test assignment to product to be measured.Transferred using this communication protocol
Module can reach the purpose of efficient communication between test system and product to be measured.
Such a method is although feasible, still, however it remains certain weak point.Such as, this communication revolving die block needs special
Industry personnel carry out programming, resource-constrained, also, in order to adapt to product test, meet test request, are carrying out product test
When can be related to the renewal to communication protocol, in addition, it is also desirable to communication protocol interconnecting module carry out periodic maintenance, these
It is required for being programmed program, then to each communication module program that programming is finished one by one to realize renewal.As can be seen that
Entirely the renewal and maintenance process of communication protocol interconnecting module are cumbersome, efficiency is low and security is not high, and there is leakage renewal causes
The problem of upgrading failure, this is in the case of Products type is diversified, it is easier to asking for communication module management aspect occur
Topic.
For the problem of product test efficiency is low in correlation technique, effective solution is not yet proposed at present.
The content of the invention
It is a primary object of the present invention to provide a kind of product test method and apparatus and test system, at least to solve phase
The problem of product test efficiency is low in the technology of pass.
To achieve these goals, according to an aspect of the invention, there is provided a kind of product test method, this method bag
Include:Determine agreement used in product to be measured;The corresponding protocol convertor of invocation protocol, wherein, protocol convertor is used for
Obtain the control data of agreement;And test is performed to product to be measured according to control data.
Further, before the corresponding protocol convertor of invocation protocol, product test method also includes:Obtain test
The control data of system, test system is used to perform test to product to be measured;Obtain the protocol name of agreement;Invocation protocol correspondence
Protocol convertor include:Agreement corresponding with agreement is called according to the protocol name of the control data of test system and agreement
Conversion program, wherein, protocol convertor is used to obtain agreement according to the control data of test system and the protocol name of agreement
Control data.
Further, the corresponding protocol convertor of invocation protocol also includes:Obtain the value of the control data of test system;
Determine the protocol format of agreement;And according to the value and the protocol format of agreement of the control data of test system, to protocol data
Frame head, length, the control number of frame are calculated and assignment, obtain the control data of agreement.
Further, the corresponding protocol convertor of invocation protocol includes:Dynamic link library is called, wherein, in dynamic chain
Connect storehouse and be previously stored with protocol convertor corresponding with agreement;And it is corresponding with agreement by calling dynamic link library to call
Protocol convertor.
Further, protocol convertor corresponding with various protocols is previously stored with dynamic link library, product is surveyed
Method for testing also includes:Whether the protocol convertor in detection dynamic link library needs to update;And if detect dynamic chain
Connecing the protocol convertor in storehouse needs renewal, then the protocol convertor in dynamic link library is remotely updated.
To achieve these goals, there is provided a kind of product tester, the device bag according to another aspect of the present invention
Include:Including:Determining unit, for determining agreement used in product to be measured;Call unit, for the corresponding agreement of invocation protocol
Conversion program, wherein, protocol convertor is used for the control data for obtaining agreement;And test cell, for according to control number
Test is performed according to product to be measured.
Further, product tester also includes:First acquisition unit, the control data for obtaining test system,
Test system is used to perform test to product to be measured;And second acquisition unit, the protocol name for obtaining agreement, wherein,
Call unit is used to call protocol conversion journey corresponding with agreement according to the control data of test system and the protocol name of agreement
Sequence, wherein, protocol convertor is used for the control that agreement is obtained according to the control data of test system and the protocol name of agreement
Data.
Further, call unit includes:Acquisition module, the value of the control data for obtaining test system;Determine mould
Block, the protocol format for determining agreement;And computing module, value and agreement for control data according to test system
Protocol format, is calculated and assignment the frame head of protocol data frame, length, control number, obtains the control data of agreement.
Further, call unit includes:First calling module, for calling dynamic link library, wherein, in dynamic link
Storehouse is previously stored with protocol convertor corresponding with agreement;And second calling module, for by calling dynamic link library
Call protocol convertor corresponding with agreement.
Further, protocol convertor corresponding with various protocols is previously stored with dynamic link library, product is surveyed
Trial assembly, which is put, also to be included:Detection unit, for detecting whether the protocol convertor in dynamic link library needs renewal;And update
Unit, for when detecting that the protocol convertor in dynamic link library needs renewal, then to the agreement in dynamic link library
Conversion program is remotely updated.
According to another aspect of the present invention, a kind of test system is additionally provided, includes the product tester of the present invention.
By the present invention, agreement used in product to be measured, the corresponding protocol convertor of invocation protocol, the agreement are determined
Conversion program is used to obtain the control data of agreement, then performs test to product to be measured according to control data, it is to avoid communicate
The incompatible situation of agreement occurs, and solves the problem of product test efficiency is low in correlation technique, and then reached raising product
The effect of testing efficiency.
Brief description of the drawings
The accompanying drawing for constituting the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the test system in correlation technique;
Fig. 2 is the schematic diagram of product testing system according to embodiments of the present invention;
Fig. 3 is the flow chart of product test method according to a first embodiment of the present invention;
Fig. 4 is the flow chart of product test method according to a second embodiment of the present invention;
Fig. 5 is the schematic diagram of product tester according to a first embodiment of the present invention;
Fig. 6 is the schematic diagram of product tester according to a second embodiment of the present invention;
Fig. 7 is the schematic diagram of product tester according to a third embodiment of the present invention;
Fig. 8 is the schematic diagram of product tester according to a fourth embodiment of the present invention;And
Fig. 9 is the schematic diagram of product tester according to a fifth embodiment of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that covering is non-exclusive to be included, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiments of the invention provide a kind of product testing system, Fig. 2 is product test system according to embodiments of the present invention
The schematic diagram of system.
As shown in Fig. 2 the product testing system of the embodiment includes test system 10 and product to be measured 30.The test system
10 inside have dynamic link library, or, the test system 10 can also can set up the test communicated with dynamic link library
System.
Test system 10 is used to perform test to product to be measured, can obtain, assess the performance of product to be measured by testing
Deng, it is preferable that test system 10 is the test system with communication function, can not only set up and communicate with dynamic link library, also
Can remotely it be updated by communication function.Test system 10 is used for the protocol name for obtaining product 30 to be measured and provides control
Data, and after obtaining the protocol name of product 30 to be measured and control data is provided, by the protocol name of test product 30 and
Control data is sent to dynamic link library, wherein, dynamic link library can receive protocol name and control data, according to protocol name
Title and control data calculating, assignment etc., finally return that the control data array of product to be measured, and control data array is returned to
Test system 10.Dynamic link library can be arranged in test system 10, can also be arranged on test system 10 outer as independent
Protocol translation module.Control data array after dynamic link library is converted is sent to product to be measured by test system 10
30, so as to perform test to product 30 to be measured.
Test system 10 loads corresponding control data according to test logic after test is started from database, because
The control data frame format of product 30 to be measured is not known initially for test system 10, it is impossible to directly led to product 30 to be measured
Letter, now, test system 10 calls corresponding protocol convertor in dynamic link library, while test system 10 is by product to be measured
Used protocol name, control data are as in the incoming protocol translation program of parameter.The protocol translation journey of dynamic link library
Sequence is defined on corresponding protocol convertor according to incoming protocol name, control data, is specifically worth according to control data
And protocol format, the frame head of protocol data frame, length, control number etc. are calculated, assignment, finally return that complete basis
The control data array of protocol format tissue.Test system 10 is obtained after the control data array of return, directly by surveying
The communication interface of test system 10 is sent to product 30 to be measured, and communication interface can be controller LAN interface (Controller
Area Net, referred to as CAN) or intelligence instrument interface, such as RS485 (Recommend Standard 485).Class
The protocol conversion process of the above is similar to, test system 10 is in whole test process, and circulation performs transfer process above, until
Whole product test to be measured is finished.
The embodiment obtains the protocol name of product 30 to be measured by test system 10 and provides control data, and by agreement
Title and control data are sent to dynamic link library, and the control data array after dynamic link library is converted is sent to
Product 30 to be measured, product 30 to be measured receives the control data array after dynamic link library is converted that test system 10 is sent,
The order of control data is performed, the communication between test system and product to be measured is realized, product in correlation technique is solved and surveys
The problem of efficiency is low is tried, and then has reached the effect for improving product test efficiency.
The embodiment of the present invention additionally provides a kind of product test method.It should be noted that the product of the embodiment of the present invention
Method of testing can be realized by the test system of the embodiment of the present invention.
Fig. 3 is the flow chart of product test method according to a first embodiment of the present invention, as shown in figure 3, the product test
Method comprises the following steps:
Step S102, determines agreement used in product to be measured.
The communication protocol and the communication protocol of test system used due to product to be measured there is a situation where it is inconsistent, in order that
Proper communication can be carried out by obtaining product to be measured and test system, before test system is tested product to be measured, first really
Agreement used in fixed product to be measured.
Step S104, the corresponding protocol convertor of invocation protocol, wherein, protocol convertor is used for the control for obtaining agreement
Data processed.
It is determined that after agreement used in product to be measured, for the corresponding protocol convertor of invocation protocol, realizing association
View conversion, first obtains the control data of test system, wherein, test system is used to perform test to product to be measured.Test system
Start after test, test system loads corresponding control data according to test logic from lane database, is provided to product to be measured
Control data, makes product to be measured perform the corresponding control command of control data.It is determined that after agreement used in product to be measured,
Protocol name used in obtaining product to be measured by determining agreement used in product to be measured, realizes protocol conversion.
According to the protocol name of the control data of the test system obtained and agreement, agreement corresponding with agreement is called
Conversion program, wherein, protocol convertor is used to obtain agreement according to the control data of test system and the protocol name of agreement
Control data.The value of the control data of test system is obtained first.After the value of control data of test system is obtained, root
The protocol format of product to be measured is determined according to the protocol name of the product to be measured of acquisition.Finally, according to the test system obtained
Control data value and the protocol format of product agreement to be measured, to the frame head of protocol data frame, length, control number calculate
And assignment, the complete control data array according to protocol format tissue is finally returned that, the control data group after this conversion can
Directly to control product to be measured to realize corresponding test function.
Preferably, protocol convertor corresponding with agreement is called, is realized with dynamic link library is called.Wherein, dynamic
State chained library is previously stored with protocol convertor corresponding with agreement, corresponding with agreement by calling dynamic link library to call
Protocol convertor.The dynamic link library externally provides a data function for being available for calling.
Protocol convertor corresponding with various protocols, various protocols conversion program are previously stored with dynamic link library
It is stored in corresponding dynamic link library file.When carrying out product test, product test method also includes:Detect dynamic link
Whether the protocol convertor in storehouse needs to update, if detecting that the protocol convertor in dynamic link library needs to update,
Then the protocol convertor in dynamic link library is remotely updated.For same test system, different agreement
The test of like product, it is necessary to add the corresponding data conversion code of the agreement in software when often increasing a new agreement newly,
And compile and produce new dynamic link library file, that is, for the file of suffix, there is provided to test system, test system with " .dll "
System can be directly invoked, can be by long-range update mode simultaneously for the renewal of this document, and artificially need not be carried out one by one
Update.
When carrying out product test, before dynamic link library is called, the protocol name of product to be measured is first obtained, for example,
Protocol name is obtained by traveling through the corresponding protocol name of each dynamic link library file in dynamic link library, and according to obtaining
The protocol name for the product to be measured got judges the protocol name of product to be measured protocol name corresponding with dynamic link library file
Whether identical is had, if it is judged that the protocol name of product to be measured protocol name corresponding with dynamic link library file not phases
Together, then the dynamic link library file of product to be measured is created;If it is judged that the protocol name of product to be measured and dynamic link library text
The corresponding protocol name of part has identical, then test system calls dynamic link library file, obtains the protocol conversion of product to be measured
Program.
When creating the dynamic link library file of product to be measured, the protocol name for obtaining product to be measured is corresponding with protocol name
Data conversion code, transmission data conversion code to Software Development Platform, wherein, Software Development Platform is to data conversion code
It is compiled, alternatively, Software Development Platform is VS2010 softwares.Data conversion code is compiled in Software Development Platform
Afterwards, the dynamic link library file of addition Software Development Platform compiling is into dynamic link library, and dynamic link library file is externally carried
For calling data function, Getdata (par1, par2), wherein parameter par1 are product protocol name to be measured, and parameter par2 is survey
The control data that test system is provided, can also turn into an individually conversion mould in test system outside test system
Block, so as to create product to be measured and the protocol convertor of test system.
Step S106, test is performed according to control data to product to be measured.
Product is when being tested, test system Loading Control data, and obtain test system control data and
After the protocol name of product to be measured, the protocol convertor in dynamic link library is called, further obtains calling data function,
Wherein, calling the parameter of data function includes the control data of test system and the protocol name of product to be measured.Incoming test system
The protocol name of the control data of system and product to be measured is to data function is called, and protocol convertor is according to the test obtained
The protocol format of the value of the control data of system and product agreement to be measured, is carried out to the frame head of protocol data frame, length, control number
Calculate and assignment, finally return that the complete control data array according to protocol format tissue.
Return after control data array, in order that the control data after conversion can be convenient to use in follow-up test,
Paired domination number is preserved according to array, and test system sends control data array to product to be measured.Test system receives production to be measured
Feedback signal of the product after control data array is received, wherein, feedback signal includes product receive control data array to be measured
The second feedback signal that successful first feedback signal and test product to be measured are finished.If test system receives product to be measured
The second feedback signal, then test system to be measured stop Loading Control data, if being not received by the second feedback signal, treat
Survey test system and continue Loading Control data, wait the first feedback signal of product to be measured to be received.
The embodiment is using agreement used in determination product to be measured;The corresponding protocol convertor of invocation protocol, wherein,
Protocol convertor is used for the control data for obtaining agreement;And test is performed to product to be measured according to control data, by this
Invention, solves the problem of product test efficiency is low in correlation technique, and then reached the effect for improving product test efficiency.
Fig. 4 is the flow chart of product test method according to a second embodiment of the present invention, as shown in figure 4, the product test
Method comprises the following steps:
Step S201, calls dynamic link library.
Dynamic link libraries alternatively, is developed by Software Development Platform VS2010 and made as the core of Program transformation agreement
The dynamic link library changed for procedural agreement.The part externally provides a method for being available for calling, and is for same test
For system, the test of the like product of different agreement, when increasing an agreement newly, adds the data of the procedural agreement in software
Transcode, and the new dynamic link library file of generation is compiled, named with xxx.dll forms, be supplied directly to test system
Call, for example, can be realized by VS2010 development environments.
Step S202, judges that dynamic link library whether there is the corresponding protocol name of product to be measured.
The dynamic link library file in dynamic link library is traveled through, judges that dynamic link library is corresponding with the presence or absence of product to be measured
The dynamic link library file of protocol name, if it is present performing step S203, otherwise, terminates current test.
Step S203, jumps to the corresponding protocol convertor of name of product to be measured.
If it is judged that dynamic link library has the corresponding protocol name of product to be measured, name of product correspondence to be measured is jumped to
Protocol convertor.The value and the protocol format of product to be measured of the control data of test system are obtained, passes through dynamic link library
Protocol convertor on file is calculated the control data of test system, and obtaining test system can be direct with product to be measured
The control data array communicated.
Step S204, returns to the control data array exported according to protocol format.
After the control data array that test system can directly be communicated with product to be measured is obtained, return according to agreement lattice
The control data array that formula is exported is sent to product to be measured to test system, test system by communication interface, to product to be measured
Test is performed, product corresponding actions are controlled.
The embodiment judges that dynamic link library whether there is the corresponding protocol name of product to be measured using dynamic link library is called
Claim, if it is judged that dynamic link library has the corresponding protocol name of product to be measured, jump to the corresponding association of name of product to be measured
Conversion program is discussed, the control data array exported according to protocol format is returned, solves product test efficiency in correlation technique low
The problem of, and then reached the effect for improving product test efficiency.
It should be noted that can be in such as one group computer executable instructions the step of the flow of accompanying drawing is illustrated
Performed in computer system, and, although logical order is shown in flow charts, but in some cases, can be with not
The order being same as herein performs shown or described step.
The embodiment of the present invention additionally provides a kind of product tester, it is necessary to explanation, the product of the embodiment of the present invention
Test device can be used for the product test method for performing the embodiment of the present invention.
Fig. 5 is the schematic diagram of product tester according to a first embodiment of the present invention.As shown in figure 5, the product test
Device includes determining unit 40, call unit 50 and test cell 60.
Determining unit 40, for determining agreement used in product to be measured.The communication protocol used due to product to be measured with
The communication protocol of test system there is a situation where inconsistent, and this causes product to be measured and test system can not carry out proper communication.
Therefore, before test system is tested product to be measured, determining unit 40 determines agreement used in product to be measured.
Call unit 50, for the corresponding protocol convertor of invocation protocol, wherein, protocol convertor is used to be assisted
The control data of view.Test system starts after test, and test system loads corresponding control according to test logic from lane database
Data processed, control data is provided to product to be measured, product to be measured is performed the corresponding control command of control data.According to having obtained
The control data and the protocol name of agreement of the test system obtained, call unit 50 call protocol conversion journey corresponding with agreement
Sequence, wherein, protocol convertor is used for the control that agreement is obtained according to the control data of test system and the protocol name of agreement
Data.The value of the control data of test system is obtained first, obtains control data specific numerical value on each.Obtaining test
After the value of the control data of system, the protocol format of product to be measured is determined according to the protocol name of the product to be measured of acquisition.Most
Afterwards, according to the protocol format of the value of the control data of the test system obtained and product agreement to be measured, to protocol data frame
Frame head, length, control number calculated and assignment, finally return that the complete control data number according to protocol format tissue
Group, the control data group after this conversion can directly control product to be measured to realize corresponding test function.
Test cell 60, for performing test to product to be measured according to control data.Product is when being tested, test system
System Loading Control data, and after the control data and the protocol name of product to be measured for obtaining test system, call unit
50 call the protocol convertor in dynamic link library, further obtain calling data function, wherein, call the ginseng of data function
Number includes the control data of test system and the protocol name of product to be measured.The control data of incoming test system and product to be measured
Protocol name to calling data function, protocol convertor is according to the value of the control data of the test system obtained and treats
The protocol format of product agreement is surveyed, the frame head of protocol data frame, length, control number are calculated and assignment, finally returned that
The whole control data array according to protocol format tissue.
Fig. 6 is the schematic diagram of product tester according to a second embodiment of the present invention, as shown in fig. 6, the product test
Device includes determining unit 40, call unit 50, test cell 60, first acquisition unit 70 and second acquisition unit 80.
First acquisition unit 70, the control data for obtaining test system, test system is used to perform product to be measured
Test.
Second acquisition unit 80, the protocol name for obtaining agreement, wherein, call unit 50 is additionally operable to obtain according to first
The protocol name that the control data and second acquisition unit 80 of the test system of the acquisition of unit 70 are obtained is taken to call and agreement pair
The protocol convertor answered, wherein, protocol convertor is used for control data and the protocol name of agreement according to test system
Obtain the control data of agreement.
Fig. 7 is the schematic diagram of product tester according to a third embodiment of the present invention, as shown in fig. 7, the product test
Device includes determining unit 40, call unit 50, test cell 60, first acquisition unit 70 and second acquisition unit 80, wherein,
Call unit 50 also includes acquisition module 51, determining module 52 and computing module 53.
Acquisition module 51, the value of the control data for obtaining test system.
Determining module 52, the protocol format for determining agreement.The control data of test system is obtained in acquisition module 51
Value after, the protocol name of the product to be measured obtained according to second acquisition unit 80 determines the protocol format of product to be measured.
Computing module 53, for the value and the protocol format of agreement of the control data according to test system, to protocol data
Frame head, length, the control number of frame are calculated and assignment, obtain the control data of agreement.Obtained according to acquisition module 51
Test system control data value and determining module 52 determine product agreement to be measured protocol format, to protocol data frame
Frame head, length, control number calculated and assignment, finally return that the complete control data number according to protocol format tissue
Group, the control data group after this conversion can directly control product to be measured to realize corresponding test function.
Fig. 8 is the schematic diagram of product tester according to a fourth embodiment of the present invention, as shown in figure 8, the product test
Device includes determining unit 40, call unit 50 and test cell 60, wherein, call unit 50 also includes the first calling module
501 and second calling module 502.
First calling module 501, for calling dynamic link library, wherein, it is previously stored with and agreement in dynamic link library
Corresponding protocol convertor.The dynamic link library externally provides a data function for being available for calling, wherein, call data letter
Several parameters includes the control data of test system and the protocol name of product to be measured.
Second calling module 502, for by calling dynamic link library to call protocol convertor corresponding with agreement.
Fig. 9 is the schematic diagram of product tester according to a fifth embodiment of the present invention, as shown in figure 8, the product test
Device includes determining unit 40, call unit 50, test cell 60, detection unit 90 and updating block 100, wherein, call list
Member 50 also includes the first calling module 501 and the second calling module 502.
Detection unit 90, for detecting whether the protocol convertor in dynamic link library needs renewal.Work as dynamic link
When Ku Li does not have the protocol convertor of product to be measured, the protocol convertor in dynamic link library is updated.For same
For one test system, the test of the like product of different agreement, when often increasing a new agreement newly, addition should in software
The corresponding data conversion code of agreement, and the new dynamic link library file of generation is compiled, that is, with the text that " .dll " is suffix
Part is there is provided to test system, and test system can be directly invoked.
Alternatively, when carrying out product test, detection unit 90 obtains product to be measured before dynamic link library is called
Protocol name, meanwhile, the corresponding protocol name of each dynamic link library file in traversal dynamic link library, and according to treating for getting
The protocol name for surveying product judges whether the protocol name of product to be measured protocol name corresponding with dynamic link library file has phase
With, if it is judged that the protocol name of product to be measured protocol name corresponding with dynamic link library file is different from, then examine
Unit 90 is surveyed to determine to need to create the dynamic link library file of product to be measured;If it is judged that the protocol name of product to be measured is with moving
The corresponding protocol name of state link library file has identical, then the determination of detection unit 90 need not be to the agreement in dynamic link library
Conversion program is updated, and test system directly invokes dynamic link library file, obtains the protocol convertor of product to be measured.
Updating block 100, for when detecting that the protocol convertor in dynamic link library needs renewal, then to dynamic
Protocol convertor in chained library is remotely updated, and artificially need not be updated one by one.
Alternatively, updating block 100 obtains the agreement of product to be measured when creating the dynamic link library file of product to be measured
Title and the corresponding data conversion code of protocol name, transmit data conversion code to Software Development Platform, wherein, software development
Platform is compiled to data conversion code, alternatively, and Software Development Platform is VS2010 softwares.In Software Development Platform logarithm
After being compiled according to transcode, the dynamic link library file of addition Software Development Platform compiling is moved into dynamic link library
State link library file, which is externally provided, calls data function, and Getdata (par1, par2), wherein parameter par1 assist for product to be measured
Discuss title, the control data that parameter par2 provides for test system, can in test system, can also outside test system into
For a single conversion module, so that updating block 100 creates product to be measured and the protocol convertor of test system.
The present invention product tester embodiment by determining unit 40 determine product to be measured used in agreement, pass through
The corresponding protocol convertor of the invocation protocol of call unit 50, wherein, protocol convertor is used for the control data for obtaining agreement,
And test according to control data is performed to product to be measured by test cell 60, solve product test efficiency in correlation technique
Low the problem of, and then reached the effect for improving product test efficiency.
Present invention also offers a kind of test system, it is necessary to which explanation, the test system can be used for the production of the present invention
Product test device.
The present invention is by removing Hardware, the method that the protocol convertor of product to be measured is provided using dynamic base chained library,
Realize test system communication protocol without hardware supported conversion method, it is to avoid test system communicates with product to be measured by special
Communication protocol interconnecting module, solves that communication protocol interconnecting module is various, and maintenance work is cumbersome, the problem of management is difficult, from
And make test system easy to maintenance, invocation protocol modular converter is more direct, while operationally in sequence control much sooner, it is to avoid
It is delayed caused by the multiple forwarding of data, solves the problem of product test efficiency is low in correlation technique, and then has been reached and carry
The effect of high product testing efficiency.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
, can be by another way in several embodiments provided herein, it should be understood that disclosed device
Realize.For example, device embodiment described above is only schematical, such as the division of described unit is only one kind
Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to correlation technique or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (7)
1. a kind of product test method, it is characterised in that including:
Determine agreement used in product to be measured;
The corresponding protocol convertor of the agreement is called, wherein, the protocol convertor is used for the control for obtaining the agreement
Data processed;And
Test is performed to the product to be measured according to the control data,
Wherein, before the corresponding protocol convertor of the agreement is called, the product test method also includes:Obtain test
The control data of system, the test system is used to perform test to the product to be measured;The protocol name of the agreement is obtained,
The corresponding protocol convertor of the agreement is called to include:According to the control data of the test system and the agreement
Protocol name calls protocol convertor corresponding with the agreement, wherein, the protocol convertor is used to be surveyed according to described
The protocol name of the control data of test system and the agreement obtains the control data of the agreement,
Wherein, the corresponding protocol convertor of the agreement is called also to include:
Obtain the value of the control data of the test system;
Determine the protocol format of the agreement;And
According to the protocol format of the value of the control data of the test system and the agreement, frame head, length to protocol data frame
Degree, control number are calculated and assignment, obtain the control data of the agreement.
2. product test method according to claim 1, it is characterised in that call the corresponding protocol conversion journey of the agreement
Sequence includes:
Dynamic link library is called, wherein, it is previously stored with protocol conversion journey corresponding with the agreement in the dynamic link library
Sequence;And
By calling the dynamic link library to call protocol convertor corresponding with the agreement.
3. product test method according to claim 2, it is characterised in that be previously stored with the dynamic link library
Protocol convertor corresponding with various protocols, the product test method also includes:
Detect whether the protocol convertor in the dynamic link library needs renewal;And
If detecting that the protocol convertor in the dynamic link library needs renewal, to the association in the dynamic link library
View conversion program is remotely updated.
4. a kind of product tester, it is characterised in that including:
Determining unit, for determining agreement used in product to be measured;
Call unit, for calling the corresponding protocol convertor of the agreement, wherein, the protocol convertor is used to obtain
The control data of the agreement;And
Test cell, for performing test to the product to be measured according to the control data,
Wherein, the product tester also includes:
First acquisition unit, the control data for obtaining test system, the test system is used to hold the product to be measured
Row test;And
Second acquisition unit, the protocol name for obtaining the agreement,
Wherein, the call unit be used for according to the control data of the test system and the protocol name of the agreement call with
The corresponding protocol convertor of the agreement, wherein, the protocol convertor is used for the control number according to the test system
The control data of the agreement is obtained according to the protocol name with the agreement,
Wherein, the call unit includes:
Acquisition module, the value of the control data for obtaining the test system;
Determining module, the protocol format for determining the agreement;And
Computing module, for the value and the protocol format of the agreement of the control data according to the test system, to agreement number
Calculated and assignment according to the frame head of frame, length, control number, obtain the control data of the agreement.
5. product tester according to claim 4, it is characterised in that the call unit includes:
First calling module, for calling dynamic link library, wherein, it is previously stored with and the agreement in the dynamic link library
Corresponding protocol convertor;And
Second calling module, for by calling the dynamic link library to call protocol convertor corresponding with the agreement.
6. product tester according to claim 5, it is characterised in that be previously stored with the dynamic link library
Protocol convertor corresponding with various protocols, the product tester also includes:
Whether detection unit, the protocol convertor for detecting in the dynamic link library needs to update;And
Updating block, for when detecting that the protocol convertor in the dynamic link library needs renewal, then to described dynamic
Protocol convertor in state chained library is remotely updated.
7. a kind of test system, it is characterised in that including the product tester any one of claim 4 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510405237.2A CN105044508B (en) | 2015-07-10 | 2015-07-10 | Product test method and apparatus and test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510405237.2A CN105044508B (en) | 2015-07-10 | 2015-07-10 | Product test method and apparatus and test system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105044508A CN105044508A (en) | 2015-11-11 |
CN105044508B true CN105044508B (en) | 2017-10-27 |
Family
ID=54451195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510405237.2A Expired - Fee Related CN105044508B (en) | 2015-07-10 | 2015-07-10 | Product test method and apparatus and test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105044508B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110705991A (en) * | 2019-09-18 | 2020-01-17 | 深圳市科脉技术股份有限公司 | Face-brushing payment system and method based on two-way communication, electronic device and medium |
CN114710526B (en) * | 2022-03-25 | 2023-08-04 | 成都飞机工业(集团)有限责任公司 | Management system and method of airborne test system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103812724A (en) * | 2013-10-13 | 2014-05-21 | 国家电网公司 | Communication management device for transformer substation online monitoring system |
CN104111385A (en) * | 2013-04-19 | 2014-10-22 | 深圳伊欧陆微电子系统有限公司 | Hardware test method |
CN104280674A (en) * | 2013-07-08 | 2015-01-14 | 深圳伊欧陆微电子系统有限公司 | Universal hardware test system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2577466A2 (en) * | 2010-05-28 | 2013-04-10 | Advantest Corporation | Flexible storage interface tester with variable parallelism and firmware upgradeability |
US9959186B2 (en) * | 2012-11-19 | 2018-05-01 | Teradyne, Inc. | Debugging in a semiconductor device test environment |
-
2015
- 2015-07-10 CN CN201510405237.2A patent/CN105044508B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104111385A (en) * | 2013-04-19 | 2014-10-22 | 深圳伊欧陆微电子系统有限公司 | Hardware test method |
CN104280674A (en) * | 2013-07-08 | 2015-01-14 | 深圳伊欧陆微电子系统有限公司 | Universal hardware test system |
CN103812724A (en) * | 2013-10-13 | 2014-05-21 | 国家电网公司 | Communication management device for transformer substation online monitoring system |
Also Published As
Publication number | Publication date |
---|---|
CN105044508A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103793326B (en) | Assembly test method and device | |
CN110221968A (en) | Method for testing software and Related product | |
CN106452975B (en) | A kind of method and system of test router | |
CN103327080B (en) | Create the method and device of Internet of Things control system | |
CN105044508B (en) | Product test method and apparatus and test system | |
CN104852823B (en) | Monitoring method, the device and system of process | |
CN108563579A (en) | White-box testing method, apparatus, system and storage medium | |
CN106547520A (en) | A kind of code path analysis method and device | |
CN107257346A (en) | The Operational Visit processing method and its equipment of single-sign-on | |
GB2468024A (en) | Forming a system specific script from a system level script | |
CN106873952A (en) | The data handling system and method and application apparatus of mobile terminal webpage development | |
CN107908432A (en) | Collocation method and device, the terminal device and readable storage medium storing program for executing of application program | |
CN107305527A (en) | The treating method and apparatus of code file | |
CN104834591B (en) | Test the method for testing and system of AUTOSAR component softwares | |
CN108255585A (en) | SDK exception controls and application program operation method, device and its equipment | |
CN104010005A (en) | Method and system supporting access of sensors of different types | |
CN105511935B (en) | The acquisition methods and device of resource index value | |
CN106445514A (en) | Android platform Activity instance management method and equipment | |
CN110069278A (en) | A kind of automation distributed multi-task packaging method and system | |
CN101866314A (en) | Software testing method and software testing system | |
CN103176786A (en) | Security configuration checking framework based on plug-in unit and construction method thereof | |
CN106815037A (en) | The execution method and device of application function | |
CN108400906A (en) | A kind of automated testing method, device, storage medium and computer equipment | |
CN102523229B (en) | A kind of access method of information and equipment | |
CN117215661A (en) | Event processing method, device and storage medium |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171027 |