CN101534221B - Method and device for testing communication protocol in test equipment - Google Patents

Method and device for testing communication protocol in test equipment Download PDF

Info

Publication number
CN101534221B
CN101534221B CN2008100861221A CN200810086122A CN101534221B CN 101534221 B CN101534221 B CN 101534221B CN 2008100861221 A CN2008100861221 A CN 2008100861221A CN 200810086122 A CN200810086122 A CN 200810086122A CN 101534221 B CN101534221 B CN 101534221B
Authority
CN
China
Prior art keywords
test post
information
test
user
testing
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
Application number
CN2008100861221A
Other languages
Chinese (zh)
Other versions
CN101534221A (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.)
Nokia of America Corp
Original Assignee
Lucent Technologies Inc
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 Lucent Technologies Inc filed Critical Lucent Technologies Inc
Priority to CN2008100861221A priority Critical patent/CN101534221B/en
Publication of CN101534221A publication Critical patent/CN101534221A/en
Application granted granted Critical
Publication of CN101534221B publication Critical patent/CN101534221B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a method for testing a communication protocol in test equipment. The method comprises the steps that firstly, based on a test request of a specified test message, a content template of the test message is generated according to pre-stored relevant information of the test message and is provided for a user; then receiving part or all of selection information fed back by a user to the header information of the test message and the information metadata of the test message; and finally, generating a test message based on the selection information fed back by the user, and sending the test message to the tested equipment. The testing method can effectively improve the efficiency of testing increasingly complex communication protocols and reduce the research and development and testing costs of communication products.

Description

A kind of method and apparatus of in testing equipment, communication protocol being tested
Technical field
The present invention relates to the test of communication protocol, particularly a kind of communication protocol method of testing and device thereof based on client/server architecture.
Background technology
In order to guarantee to be included in the correctness (correctness) of communication protocols such as relevant route in the communication products, signaling; Interoperability (interoperability); Scalability (scalability); Performance characteristics such as (performance) in research and development (R&D) process of communication products, is used relevant testing tool that communication protocol is tested and is necessary.
Existing (such as what using at present; Perhaps just on market, selling) be used for the instrument or the system of communication protocol test; Test process to protocol part is very complicated, often requires the tester that communication protocol to be tested itself is familiar with and understanding very much, otherwise according to existing method of testing; Be difficult to proper operation and use these equipment to accomplish test, reach test purpose.In addition; Development along with the communication technology and communication standard; The kind of communication protocol is more and more; The main body of formulating communication protocol standard is more and more, has such as the communication standard tissue that has extensive influence power at present: IETF (Internet Engineering Task Force), 3GPP (The 3rd GenerationPartnership Project), ITU-T etc.Along with the evolution of the communication technology, to a kind of communication protocol, same standard formulation main body tends to formulate the different evolution version of a plurality of contents at different times; And a plurality of different standard formulation main bodys, also can be based on different target requirements to doing the different expansion of content with a kind of communication protocol.Such as; To protocol suite RSVP (ResourcereSerVation Protocol); A plurality of normal structures such as IETF OIF, ITU-T and IETF have just been formulated the different expansion of content, like agreement [RFC2205], [RFC2961], [RFC3209], [RFC3473], [RFC3474], [RFC3946], [OIF2003.249.09], [OIF2003.179.08] and [ITUG.7713.2/Y.1704.2] etc.
Under such current conditions, even require certain tester to be familiar with the content of all versions of a kind of communication protocol of certain technical field, also often near harshness, all the elements of various protocols on top of a plurality of still more technical fields.
Therefore; It is found that; Use existing method of testing to accomplish the test job of the communication protocol of communication products based on existing testing equipment or test macro, the more and more difficult that become, on the one hand to the tester require increasingly high; Testing efficiency but constantly descends on the other hand, thereby causes the testing cost of communication products and R&D costs constantly to raise.
Generally; The tester tests communication products that include communication protocol through a tester or when verifying; At first on tester, customize a piece of news, then will customize the message of getting well and send to and be attached thereto the communication products to be tested that connect by tester according to test case.
Summary of the invention
The present invention seeks to solving above-mentioned technical problem of the prior art, and proposed a kind of method that communication protocol is tested of in testing equipment, being used for.
For the convenience of narrating, introduce following term here:
Equipment to be tested: the communication products that include communication protocol to be tested are referred to as " equipment to be tested ";
Test post: the message that sends to equipment to be tested by tester after the customization is called " test post ".
The content of test post: the letter header and each information word (IE, the Information Element) information that generally include this test post;
The content of customization test post: refer to according to different test cases, information header and each information word of test post are made concrete assignment, the numerical value of being composed possibly drop within the span of agreement regulation, also maybe be outside the span of agreement regulation.
According to a first aspect of the invention; A kind of method that communication protocol is tested of in testing equipment, being used for is provided; At first based on the test request of the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores, and offer the user, the content template of said test post comprises in the information word data of letter header and test post of test post partly or entirely at least; Receive then user feedback to part or all of selection information in the information word data of the letter header of said test post and test post; Selection information based on said user feedback generates test post at last, sends to equipment to be tested.
According to a second aspect of the invention, a kind of device that communication protocol is tested of in testing equipment, being used for is provided, has comprised template generating apparatus, receiving system, message creating apparatus.Template generating apparatus wherein; Be used for test request based on the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores; And offering the user, the content template of said test post comprises in the information word data of letter header and test post of test post partly or entirely at least; Receiving system is used for receiving the part or all of selection information of information word data to the letter header and the test post of said test post of user feedback; Message creating apparatus is used for generating test post based on the selection information of said user feedback, sends to equipment to be tested.
Compared with prior art, the present invention has the following advantages:
1. in test process, to the tester content template of test post is provided, the tester, just can accomplish the customization to test post, thereby a kind of brand-new method of testing is provided only through selection operation based on template.
2. if based on the selection information of tester based on template; Provide some such as user prompt information such as miscues; Then can better help the tester to grasp test process in real time, find the mistake introduced because of human factor in the test process faster, thereby improve testing efficiency.
3. if preserve and upgrade the relevant information of the content template that is used to generate test post through the mode of database; So can be in test process faster the content of up-to-date protocol version to be tested be imported in the test macro; And do not influence other parts of the test macro that adopts this method of testing; Effectively reduce the version updating of communication protocol and the coupling between the testing equipment; Thereby the research and development of the new product that follows up faster help the equipment supplier to shorten the Time To Market of new product effectively.
4. if adopt client/server architecture; Particularly browser clients/web server architecture is realized method of testing of the present invention; Then this method of testing has the characteristic of " supporting multi-user, equipment how to be tested "; Thereby effectively improve the testing efficiency of communication test set, reduce testing cost.
5. according to method of testing of the present invention; Some test posts that are different from the communication protocol regulation of customization are to testing equipment to be tested; But also source address and/or destination address that can arbitrarily nominative testing message, for the user provides the very large test degree of freedom.
Description of drawings
Fig. 1 is according to a method flow diagram that embodiment is tested communication protocol in testing equipment of the present invention;
The method flow diagram that Fig. 2 tests communication protocol in testing equipment for another embodiment according to the present invention;
Fig. 3 is according to a message sequence chart based on the embodiment of browser clients/web server architecture of the present invention;
Fig. 4 supplies the user to carry out the interface sketch map of customization operations for an embodiment based on browser clients/web server architecture according to the present invention presents test post on browser clients content template;
Fig. 5 supports the system's composition diagram under multi-user, the equipment how to be tested simultaneously for another embodiment according to the present invention;
The device block diagram that Fig. 6 tests communication protocol in testing equipment for an embodiment according to the present invention;
Template generates the block diagram of sub-device in the device that Fig. 7 tests communication protocol in testing equipment for an embodiment according to the present invention;
The device block diagram that Fig. 8 tests communication protocol in testing equipment for another embodiment according to the present invention.
Embodiment
Below through several specific embodiments the technical scheme that the present invention relates to is described in further detail.
Embodiment one
Fig. 1 is according to a method flow diagram that embodiment is tested communication protocol in testing equipment of the present invention.In the method for testing shown in this flow chart; For the communication protocol in the communication products is tested, at first, in step S11; Testing equipment is based on the test request of the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores, and offer the user, the content template of said test post comprises in the information word data of letter header and test post of test post partly or entirely at least.
Concrete, at first based on the test request of said test post, accessing database is to inquire about the relevant information of said test post for testing equipment; Then, generate the content template of said test post according to the relevant information of the inquire about test post that obtains, and offer the user.
Wherein, the test request of test post can comprise the information such as message name of communication protocol title under the test post, protocol version, test post; The relevant information of the test post that prestores is meant in the communication protocol version of this test post under it definition to it; The definition of each information word that the message structure that specifically can comprise this test post defines, comprised, and the information such as span of each information word.The content template of test post comprises can supplying the user to select so that accomplish the form that test post is customized, and can accomplish the customization to test post easily on this basis.Simultaneously; Allow the user that customization is selected by the full detail unit of a test post on the basis of content template; Also allow the user only wherein a part of information word of test post to be selected customization, and the out of Memory unit that the user does not customize selection is final when generating test post and get its default value.In concrete operations, except that each information word is carried out the assignment, the user can also not comprise some information word through this test post of forms such as radio box customization, and corresponding communication protocol possibly stipulate that this test post forces to comprise this information word; In addition, the user can also customize the number of repetition of the information word that in this test post, can repeat to comprise.
Then, in step S12, testing equipment receive user feedback to part or all of selection information in the information word data of the letter header of said test post and test post; At last, in step S13, testing equipment generates test post based on the selection information of said user feedback, sends to equipment to be tested.
As the modification of this embodiment, if adopt client/server architecture to realize said method, so; Server at first receive from said client computer be used to indicate the test request that test post is tested, then, based on the test request of the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores, and offer the user, subsequently; Server is carried out above-mentioned step S12 and S13, for for simplicity, does not give unnecessary details at this.
Wherein, above-mentioned message has specifically been specified the specifying information of the test request of test post among the step S11, can comprise: the information such as message name of the communication protocol title under the test post, protocol version, test post.
Above-mentioned client/server architecture, concrete, can realize through browser clients/web server architecture.
Embodiment two
The method flow diagram that Fig. 2 tests communication protocol in testing equipment for another embodiment according to the present invention.In the method for testing shown in this flow chart; For the communication protocol in the communication products is tested, at first, in step S21; Testing equipment is based on the test request of the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores, and offer the user, the content template of said test post comprises in the information word data of letter header and test post of test post partly or entirely at least.
Concrete, at first based on the test request of said test post, accessing database is to inquire about the relevant information of said test post for testing equipment; Then, generate the content template of said test post according to the relevant information of the inquire about test post that obtains, and offer the user.
Then, in step S22, testing equipment receive user feedback to part or all of selection information in the information word data of the letter header of said test post and test post.
Then, whether in step S23, the relevant information that testing equipment is utilized the test post that prestores again compares the selection information of said user feedback, correct with the selection information of confirming said user feedback.
Wherein, through to the comparison of the selection information of user feedback, can confirm whether the selection information of user feedback is correct, promptly whether meets the definition in the communication protocol of test post under it with the relevant information of the test post that prestores.
If the selection information errors of user feedback, then in step S24, testing equipment generates user prompt information to offer the user.
Wherein, Testing equipment can according to the comparative result of said comparison procedure (such as; The user has exceeded the legal span of this information word that defines in the communication protocol to the selection of certain information word) generation user prompt information; With the prompting user, and help the user further understand this test post (such as, can comprise the specific definition of certain information word in the user prompt information).We are appreciated that such user prompt information can comprise miscue information and/or correct data information and/or other help information for reference.
Concrete, this user prompt information can adopt one of following form to show according to the content of information, different application scenarios etc. at least: binary format, octal format, hexadecimal format, text formatting, type-length-value (TLV) form.
If the selection information of user feedback is correct, then in step S25, testing equipment generates test post based on the selection information of said user feedback, sends to equipment to be tested.
Therefore, when adopting above-mentioned method of testing that communication protocol is tested, can make things convenient for the tester that test post is customized; Again because through the selection information of the user feedback relevant information with the test post that prestores is compared, therefore can find the mistake introduced because of some human factors in the test process automatically, accelerate test process, improve testing efficiency.Simultaneously, this method of testing is returned the user user prompt information is provided, thereby in test process, helps the user to understand communication protocol itself more accurately in real time, effectively.
As the modification of this embodiment, if adopt client/server architecture to realize said method, so; Server at first receive from said client computer be used to indicate the test request that test post is tested, then, based on the test request of the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores, and offer the user, subsequently; Server is carried out above-mentioned step S22 to S25, for for simplicity, does not give unnecessary details at this.
Wherein, above-mentioned message has specifically been specified the specifying information of the test request of test post among the step S21, can comprise: the information such as message name of the communication protocol title under the test post, protocol version, test post.
Above-mentioned client/server architecture, concrete, can realize through browser clients/web server architecture.
Embodiment three
Fig. 3 shows according to an embodiment of the present invention, on the framework of browser clients/web server, realizes the method message flow diagram that communication protocol is tested.Browser clients 2 is at first initiated " HTTP nominative testing request " through step S31 to web server 3; Specify any the bar message in concrete which communication protocol will be used for follow-up test process through this request, can comprise the information such as message name of the affiliated communication protocol title of this test post, protocol version, this test post;
Then; Web server 3 is according to " the HTTP nominative testing request " of receiving; Send query requests through step S32 to the database server 4 of the relevant information of preserving test post; These relevant informations can obtain from the description document of the communication protocol under this test post, have described the message structure of test post, information such as the definition of each information word and span; Database server 4 returns the relevant information of relevant test post to web server 3 through step S33;
Then, web server 3 is based on the relevant information of the test post that obtains, and the content template through step S34 generates test post returns to browser clients 2 through " response of HTTP test template ";
Then; User 1 selects the content of customization test post through step S35 based on the content template of test post on browser clients 2, the content template of wherein said test post can comprise all information words of test post; The user need select customization to each information word; Also can include only the partial information unit of test post, 1 of user selects customization to partial information unit, and the information word of all the other non-selected customizations is got its default value; In concrete operations; Except that each information word is carried out the assignment, the user can also not comprise some information word through this test post of forms such as radio box customization, and corresponding communication protocol possibly stipulate that this test post forces to comprise this information word; In addition, the user can also customize the number of repetition of the information word that in this test post, can repeat to comprise;
Last browser clients 2 sends to web server 3 through step S36 with the selection information of user's 1 content-based template; Web server 3 is done validity checking based on the relevant information of the test post that obtains from database server 4 to the selection information of user feedback; According to check result; Generate user prompt information, and return to browser clients 2 through step 37 " response of HTTP test data "; If above-mentioned check result is correct, then generate test post, send to equipment 5 to be tested through network; Browser clients 2 shows the user prompt information of receiving and presents to user 1 with appropriate mode.
Wherein, The relevant information of the test post in the database server 4 derives from the definition of this test post in the communication protocol under it; Therefore when the version updating of communication protocol to be tested, can be through the mode of data in the storehouse 4 that Updates Information, the content of new communication protocol version is imported in the test macro; Like this, test macro just can be closelyed follow the renewal of communication protocol version in time.In the specific implementation, database server 4 can be same server with web server 3 physically.Optional, the database of preserving the relevant information of test post also can be a part of web server 4, promptly forms module for one of web server 4.The mode of accessing database can adopt general database access interface, also can be user-defined internal interface.
In addition; Browser clients 2 is after receiving " response of HTTP test data "; If find to include in this response user prompt information; Can show that these display formats comprise through multiple display format: binary format, octal format, hexadecimal format, text formatting, type-length-value (TLV) form.Take which kind of display format, depend on the content that is shown, user's use habit and different application scenarios etc.
In the above-described embodiments, web server 3 generates after the test post, sends to equipment 5 to be tested through network.A modification as this embodiment; Web server 3 can be accomplished above-mentioned forwarding step through calling the another one application program, and this application program can be simulated the purpose IP address that test post is sent to another appointment from the source IP address of any appointment.Particularly, when web server 3 calls this application program, with source IP address, the test post of needs simulations, receive this test post purpose IP address (the IP address of equipment 5 normally to be tested) as call parameters.Send test post in this way, can the IP address of any appointment be modeled as the source IP address of this test post, and be not limited to web server its own IP address.
The above-mentioned application program of mentioning; More specifically; It can be a CGI (CommonGateway Interface) program; This program can the specific explanations user have specifically been specified the source address and/or the destination address of test post on graphical interfaces, the web server sends test post through web socket interface (Network Socket Interface) then.Technically; If the connection between testing equipment and the equipment to be tested is based on ICP/IP protocol; Source IP address and/or purpose IP address then in order to simulate a message; A feasible scheme is at first to open an initial IP socket (Raw IP Socket), the IP bag that will send the adding of the content of test post then; Customization IP packet header comprises the source IP address and/or the purpose IP address of revising this IP bag, and inserts protocol information field (for example corresponding this field of RSVP is 0x2e) etc.; Afterwards, send this IP and wrap in the verification of calculating this message and (this verification with do not contain the IP head).If the connection between web server and the equipment to be tested is based on other agreement (such as the User Defined agreement); Then also can realize sending test post with the source address and/or the destination address of appointment through similar mode, this it will be apparent to those skilled in the art that.Above-mentioned application program can use Programming with Pascal Language such as C/C++, Perl, PHP, Bshell, Cshell, VB Script, Java Script to realize.
In addition, Fig. 4 also shows the possible concrete interface that user 1 customizes based on the content template of test post on browser clients 2.Through Fig. 4, we are appreciated that based on method of testing of the present invention; User 1 can just can customize complicated test post through some shirtsleeve operations; Such as only accomplishing the customization to the test post of being given an example through operation combobox (PULL_DOWN BOX), check box (CHECKBOX), radio box simple operationss such as (OPTION BUTTON), process is simple, and understands easily; Reduce the risk of introducing mistake because of tester's human factor, thereby improved testing efficiency.And in adopting existing method of testing and testing equipment, the tester often requires a great deal of time and energy customizes test post, and customization procedure is complicated, and introduces mistake easily.
In addition, as a modification of the foregoing description, browser clients 2 can require to carry validated user information after being connected to web server 3, such as requiring to import validated user name and user password etc.Web server 3 just receives the HTTP request message that this browser clients is sent, otherwise refuses after the above-mentioned user profile of checking is legal.
Embodiment four
Fig. 5 shows system's composition diagram of the method for testing of embodiment of the present invention under the situation of supporting multi-user, a plurality of equipment to be tested at the same time.This system representation n user on n browser clients simultaneously through the situation of web server to m testing equipment to be tested.Browser clients 2i (i=1; 2 .. is n) with after web server 3 is connected; The web server distributes corresponding session i for this browser clients; Subsequently, the reciprocal process between browser clients 2i and the web server 3 is carried out through session i, and web server 3 is also discerned the test request that receives specifically from which browser clients through session i.
User 1i (i=1; 2; .., n), " HTTP nominative testing request " sent to web server 3 through browser clients 2i and session i; Specify the message in concrete which communication protocol will be used for follow-up test process through this request, can comprise the information such as message name of the affiliated communication protocol title of test post, protocol version, test post; Then web server 3 is according to " the HTTP nominative testing request " of receiving; Database server to the relevant information of preserving test post sends query requests; These relevant informations can obtain from the description document of the communication protocol under this test post; The message structure of test post has been described, information such as the definition of each information word and span; Database server 4 returns the relevant information of relevant test post to web server 3 then; Web server 3 generates the content template of test post based on the relevant information of the test post that obtains, and the form through " response of HTTP test template " returns to browser clients 2i; Subsequently, user 1i passes through browser clients 2i customizes test post on the content template of test post content, said content template here; All information words that can comprise test post, the user need select customization to each information word, also can include only the partial information unit of test post; The user only selects customization to partial information unit; And the information word of all the other non-selected customizations is got its default value, and the selection packets of information of the content-based template of user is contained in " request of HTTP test data " that browser clients 2i sends to web server 3, and user 1i need specify also which equipment to be tested is this customized test message be sent to simultaneously; It is target equipment mark to be tested; Concrete, this sign can be the device numbering to be tested of web server 3 unified managements, perhaps the IP address of equipment to be tested; Then; Web server 3 is done validity checking based on the relevant information of the test post that obtains from database server 4 to the selection information of user feedback; According to check result, generate user prompt information, return to browser clients 2i through " response of HTTP test data "; Generate message to be tested simultaneously, web server 3 sends to target equipment to be tested to the message of customization through the CGI application program.
More specifically, session management can be realized through multi-process (MultipleProcesses) or multithreading (Multiple Threads) service routine on web server 3.Like this, web server 3 just can receive and handle the HTTP test request from a plurality of browser clients simultaneously, generates test post, and is sent out to the equipment to be tested of target separately.
Embodiment five
Fig. 6 shows a specific embodiment according to the present invention and in testing equipment, is used for testing apparatus block diagram that communication protocol is tested.This testing apparatus 10 comprises template generating apparatus 101, first receiving device 102, message creating apparatus 103.
Template generating apparatus 101 is used for the test request based on the test post of appointment; Generate the content template of this test post according to the relevant information of the test post that prestores; And offering the user, this content template comprises in the information word data of letter header and test post of test post partly or entirely at least.
Wherein, the test request of test post can comprise the information such as message name of communication protocol title under the test post, protocol version, test post; The relevant information of the test post that prestores is meant in the communication protocol version of this test post under it definition to it; The definition of each information word that the message structure that specifically can comprise this test post defines, comprised, and the information such as span of each information word.The content template of test post comprises can supplying the user to select so that accomplish the form that test post is customized, and can accomplish the customization to test post easily on this basis.Simultaneously; Allow the user that customization is selected by the full detail unit of a test post on the basis of content template; Also allow the user only wherein a part of information word of test post to be selected customization, and the out of Memory unit that the user does not customize selection is final when generating test post and get its default value.In concrete operations, except that each information word is carried out the assignment, the user can also not comprise some information word through this test post of forms such as radio box customization, and corresponding communication protocol possibly stipulate that this test post forces to comprise this information word; In addition, the user can also customize the number of repetition of the information word that in this test post, can repeat to comprise.
First receiving device 102 is used for receiving the part or all of selection information of information word data to the letter header and the test post of this test post of user feedback.Message creating apparatus 103 is used for generating test post based on the selection information of user feedback, sends to equipment to be tested.
As the modification of this embodiment, as shown in Figure 7, template generating apparatus 101 further comprises relevant information inquiry unit 1011 and template data generating apparatus 1012.
Relevant information inquiry unit 1011 is used for the test request based on the test post of appointment; Obtain the relevant information of test post through query manipulation; Submit to template data generating apparatus 1012 then; And generate the content template of corresponding test post by the latter, and offering the user, this content template comprises in the information word data of letter header and test post of test post part or all of at least.
Another modification as this embodiment; Testing apparatus 10 also comprises second receiving system; Be used to receive from one or more client computer be used to indicate the test request that test post is tested, and the test request that receives is sent to template generating apparatus 101.
Wherein, above-mentioned message has specifically been specified the specifying information of the test request of template generating apparatus 101 employed test posts, can comprise: the information such as message name of the communication protocol title under the test post, protocol version, test post.
In addition, as another modification of this embodiment, message creating apparatus 103 also comprises address designating device, when being used for that test post sent to equipment to be tested, specifies its source address and/or destination address.
Embodiment six
Fig. 8 shows a specific embodiment according to the present invention and in testing equipment, is used for testing apparatus block diagram that communication protocol is tested.This testing apparatus 20 comprises template generating apparatus 201, first receiving device 202, message creating apparatus 203, comparison means 204, information generating apparatus 205, prompt signal display device 206.
Template generating apparatus 201 is used for the test request based on the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores; And offering the user, this content template comprises in the information word data of letter header and test post of test post partly or entirely at least.First receiving device 202 is used for receiving the part or all of selection information of information word data to the letter header and the test post of this test post of user feedback.Message creating apparatus 203 is used for generating test post based on the selection information of user feedback, sends to equipment to be tested.Whether the relevant information that comparison means 204 is used to utilize the test post that prestores compares the selection information of above-mentioned user feedback, correct with the selection information of confirming user feedback; If the selection information errors of user feedback; Then information generating apparatus 205 is responsible for generating user prompt information to offer the user; Wherein, these informations comprise miscue information and/or correct data information and/or other help information for reference.206 of prompt signal display devices are used for using at least following a kind of form explicit user information: binary format, octal format, hexadecimal format, text formatting, type-length-value (TLV) form.
Wherein, the test request of test post can comprise the information such as message name of communication protocol title under the test post, protocol version, test post; The relevant information of the test post that prestores is meant in the communication protocol version of this test post under it definition to it; The definition of each information word that the message structure that specifically can comprise this test post defines, comprised, and the information such as span of each information word.The content template of test post comprises can supplying the user to select so that accomplish the form that test post is customized, and can accomplish the customization to test post easily on this basis.Simultaneously; Allow the user that customization is selected by the full detail unit of a test post on the basis of content template; Also allow the user only wherein a part of information word of test post to be selected customization, and the out of Memory unit that the user does not customize selection is final when generating test post and get its default value.In concrete operations, except that each information word is carried out the assignment, the user can also not comprise some information word through this test post of forms such as radio box customization, and corresponding communication protocol possibly stipulate that this test post forces to comprise this information word; In addition, the user can also customize the number of repetition of the information word that in this test post, can repeat to comprise.
As the modification of this embodiment, template generating apparatus 201 further comprises relevant information inquiry unit and template data generating apparatus.The relevant information inquiry unit is used for the test request based on the test post of appointment; Obtain the relevant information of test post through query manipulation; Then it is submitted to the template data generating apparatus; And generate the content template of corresponding test post by the latter, and offering the user, this content template comprises in the information word data of letter header and test post of test post part or all of at least.
Another modification as this embodiment; Testing apparatus 20 also comprises second receiving system; Be used to receive from one or more client computer be used to indicate the test request that test post is tested, and the test request that receives is sent to template generating apparatus 201.
Wherein, above-mentioned message has specifically been specified the specifying information of the test request of template generating apparatus 201 employed test posts, can comprise: the information such as message name of the communication protocol title under the test post, protocol version, test post.
In addition, as another modification of this embodiment, message creating apparatus 203 also comprises address designating device, when being used for that test post sent to equipment to be tested, specifies its source address and/or destination address.This device is at first revised the source address and/or the destination address of test post, and then through the interface between testing apparatus and the equipment to be tested, test post is sent to equipment to be tested.Technically; If the connection between testing equipment and the equipment to be tested is based on ICP/IP protocol; Source IP address and/or purpose IP address then in order to simulate a message; A feasible scheme is that testing apparatus is at first opened an initial IP socket (Raw IP Socket), adds the IP bag that will send to the content of test post then; Customization IP packet header comprises the source IP address and/or the purpose IP address of revising this IP bag, and inserts protocol information field (for example corresponding this field of RSVP is 0x2e) etc.; Afterwards, send this IP and wrap in the verification of calculating this message and (this verification with do not contain the IP head).If the connection between testing apparatus and the equipment to be tested is based on other agreement (such as the User Defined agreement); Then also can realize sending test post with the source address and/or the destination address of appointment through similar mode, this it will be apparent to those skilled in the art that.
In addition, it will be appreciated by persons skilled in the art that embodiment five and the testing apparatus described in the embodiment six, can be that test under client/server architecture is with a part of server.More specifically, above-mentioned client/server can be browser clients/web server, corresponding, above-mentioned testing apparatus is a part of web server.
More than specific embodiment of the present invention is described.It will be appreciated that the present invention is not limited to above-mentioned specific implementations, those skilled in the art can make various modification or modification within the scope of the appended claims.

Claims (14)

1. one kind is used for method of testing that communication protocol is tested in testing equipment, it is characterized in that, comprises step:
B. based on the test request of the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores; And offering the user, the content template of said test post comprises in the information word data of letter header and test post of test post partly or entirely at least;
C. receive user feedback to part or all of selection information in the information word data of the letter header of said test post and test post;
D. the selection information based on said user feedback generates test post, sends to equipment to be tested.
2. method of testing as claimed in claim 1 is characterized in that, after said step c, also comprises step before with steps d:
Whether the relevant information of the test post that-utilization prestores compares the selection information of said user feedback, correct with the selection information of confirming said user feedback;
If the selection information errors of user feedback then generates user prompt information to offer the user, wherein, said user prompt information comprises miscue information, and/or correct data information for reference, and/or other help information;
If the selection information of user feedback is correct, then execution in step d.
3. according to claim 1 or claim 2 method of testing is characterized in that said step b comprises:
B1. based on the test request of said test post, accessing database is to inquire about the relevant information of said test post;
B2. the relevant information according to the inquire about test post that obtains generates the content template of said test post, and offers the user.
4. method of testing as claimed in claim 2 is characterized in that, shows described user prompt information with following a kind of form at least: binary format, octal format, hexadecimal format, text formatting, type-length-value (TLV) form.
5. like each described method of testing of claim 1-2, it is characterized in that said testing equipment is the webserver that links to each other with one or more client computer, wherein before said step b, also comprise step:
A. receive and be used to indicate the test request that test post is tested from said client computer.
6. method of testing as claimed in claim 5 is characterized in that, the described client computer and the described webserver adopt browser clients/web server architecture to realize.
7. like each described method of testing of claim 1-2, it is characterized in that the described step that sends to equipment to be tested also comprises source address and/or the destination address that said test post is changed to appointment.
8. one kind is used for testing apparatus that communication protocol is tested in testing equipment, it is characterized in that, comprising:
-template generating apparatus; Be used for test request based on the test post of appointment; Generate the content template of said test post according to the relevant information of the test post that prestores; And offering the user, the content template of said test post comprises in the information word data of letter header and test post of test post partly or entirely at least;
-first receiving device is used for receiving the part or all of selection information of information word data to the letter header and the test post of said test post of user feedback;
-message creating apparatus is used for generating test post based on the selection information of said user feedback, sends to equipment to be tested.
9. device as claimed in claim 8 is characterized in that, also comprises:
-comparison means, whether the relevant information that is used to utilize the test post that prestores compares the selection information of said user feedback, correct with the selection information of confirming said user feedback;
-information generating apparatus if be used for the selection information errors of user feedback, then generates user prompt information to offer the user; Wherein, Said user prompt information comprises miscue information, and/or correct data information for reference, and/or other help information.
10. like claim 8 or 9 described devices, it is characterized in that said template generating apparatus comprises:
-relevant information inquiry unit is used for the test request based on said test post, and accessing database is to inquire about the relevant information of said test post;
-template data generating apparatus is used for generating the content template of said test post according to the relevant information of the inquire about test post that obtains, and offers the user.
11. device as claimed in claim 9 is characterized in that, also comprises:
Prompt signal display device is used for showing described user prompt information with following a kind of form at least: binary format, octal format, hexadecimal format, text formatting, type-length-value (TLV) form.
12., it is characterized in that said testing equipment is the webserver that links to each other with one or more client computer, wherein also comprises like each described device of claim 8-9:
-the second receiving system is used to receive and is used to indicate the test request that test post is tested from said client computer.
13. device as claimed in claim 12 is characterized in that, the described client computer and the described webserver are respectively browser clients and web server.
14., it is characterized in that said message creating apparatus also is used for the said test post that sends to equipment to be tested is changed to the source address and/or the destination address of appointment like each described device of claim 8-9.
CN2008100861221A 2008-03-11 2008-03-11 Method and device for testing communication protocol in test equipment Expired - Fee Related CN101534221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100861221A CN101534221B (en) 2008-03-11 2008-03-11 Method and device for testing communication protocol in test equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100861221A CN101534221B (en) 2008-03-11 2008-03-11 Method and device for testing communication protocol in test equipment

Publications (2)

Publication Number Publication Date
CN101534221A CN101534221A (en) 2009-09-16
CN101534221B true CN101534221B (en) 2012-01-04

Family

ID=41104624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100861221A Expired - Fee Related CN101534221B (en) 2008-03-11 2008-03-11 Method and device for testing communication protocol in test equipment

Country Status (1)

Country Link
CN (1) CN101534221B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025705A (en) * 2009-09-18 2011-04-20 中国移动通信集团公司 Vulnerability mining method and system for IMS system
CN102118283B (en) * 2011-03-30 2013-03-13 大唐移动通信设备有限公司 Method and device for testing communication equipment
CN105577463B (en) * 2014-10-13 2019-10-11 阿里巴巴集团控股有限公司 A kind of test method and its device based on communication protocol
CN105071990B (en) * 2015-08-11 2018-11-06 中国电子科技集团公司电子科学研究院 A kind of general information system interface test method and device
CN105790801B (en) * 2016-03-11 2019-08-09 青岛海信电器股份有限公司 The pairing test method and test device of a kind of electronic equipment and bluetooth equipment
CN107888451B (en) * 2017-11-17 2020-09-08 杭州迪普科技股份有限公司 Method and device for testing Web server
CN109413115B (en) * 2018-12-29 2021-08-20 中国银行股份有限公司 Protocol text analysis method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501634A (en) * 2002-11-17 2004-06-02 华为技术有限公司 A method for testing intelligent service performance
CN1581816A (en) * 2003-08-05 2005-02-16 华为技术有限公司 Device and method for dynamically measuring VLAN users
CN1756200A (en) * 2004-09-28 2006-04-05 中兴通讯股份有限公司 Integrated tester and integrated testing method for media server
CN1780237A (en) * 2004-11-22 2006-05-31 华为技术有限公司 Logic topological network for protocol test and method for realizing protocol test
CN1972222A (en) * 2006-12-06 2007-05-30 中国科学院计算技术研究所 Configuration method of tested system in conformance test of network protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501634A (en) * 2002-11-17 2004-06-02 华为技术有限公司 A method for testing intelligent service performance
CN1581816A (en) * 2003-08-05 2005-02-16 华为技术有限公司 Device and method for dynamically measuring VLAN users
CN1756200A (en) * 2004-09-28 2006-04-05 中兴通讯股份有限公司 Integrated tester and integrated testing method for media server
CN1780237A (en) * 2004-11-22 2006-05-31 华为技术有限公司 Logic topological network for protocol test and method for realizing protocol test
CN1972222A (en) * 2006-12-06 2007-05-30 中国科学院计算技术研究所 Configuration method of tested system in conformance test of network protocol

Also Published As

Publication number Publication date
CN101534221A (en) 2009-09-16

Similar Documents

Publication Publication Date Title
CN101534221B (en) Method and device for testing communication protocol in test equipment
JP5462905B2 (en) Protocol emulator
CN109739604A (en) Page rendering method, apparatus, server and storage medium
CN103729189B (en) Broadcasting method for converting protocol based on LUA, system, terminal
US7370236B2 (en) Method for remotely diagnosing devices
US20060262729A1 (en) Method and system for testing communication protocols in network communication
US20090077477A1 (en) REST Application Exploration
CN108664385A (en) A kind of test method and device of application programming interface
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
WO2001057661A2 (en) Method and system for reusing internet-based applications
KR20210038971A (en) Curriculum package development method and device, system, device and storage medium
Begg et al. Survey of simulators of next generation networks for studying service availability and resilience
CN109656831A (en) Test packet centralization generation method, device, equipment and storage medium
CN104063227B (en) A kind of instruction learning method based on Internet of Things
CN100487757C (en) Experimental device for IPv6 network protocol simulation teaching
Saha et al. A web-based integrated environment for simulation and analysis with NS-2
Hardison et al. The microelectronics WebLab 6.0–an implementation using Web services and the iLab shared architecture
Casella et al. A SCORM thin client architecture for e-learning systems based on web services
KR20180038385A (en) Apparatus and method for testing machine to machine application
JP5081888B2 (en) Method port apparatus and configuration method for robot software components
CN115454878A (en) Interface calling test method applied to micro service and related device
CN114896487A (en) Method, system and medium for implementing a blockchain browser with front end interacting with blockchain
US20030195879A1 (en) Data collection technology useful for form manipulation
CN110324280A (en) Protocol configuration systems, devices and methods in industrial cloud
CN107102882A (en) The method for processing business and device of iOS system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
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: 20120104

Termination date: 20170311