CN100403701C - Goal device service realization testing method and system - Google Patents

Goal device service realization testing method and system Download PDF

Info

Publication number
CN100403701C
CN100403701C CNB2004100551744A CN200410055174A CN100403701C CN 100403701 C CN100403701 C CN 100403701C CN B2004100551744 A CNB2004100551744 A CN B2004100551744A CN 200410055174 A CN200410055174 A CN 200410055174A CN 100403701 C CN100403701 C CN 100403701C
Authority
CN
China
Prior art keywords
target device
business
message
function
service
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
CNB2004100551744A
Other languages
Chinese (zh)
Other versions
CN1735046A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100551744A priority Critical patent/CN100403701C/en
Publication of CN1735046A publication Critical patent/CN1735046A/en
Application granted granted Critical
Publication of CN100403701C publication Critical patent/CN100403701C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The present invention discloses a target device business realization measuring method and a system. The method comprises the steps that a script language is used for building the business process of a target device, the business information of the target device is obtained, the business information is treated according to the business process, and the target device is controlled to complete the test of business realization according to the treating result of the business information. The system comprises the target device, an auxiliary device and an analog business control device, wherein the analog business control device is used for controlling the target device and the auxiliary device so as to complete the business test of the target device. Because the present invention is used, the business process can be simply and rapidly simulated, the accuracy of function realization of the target device is reliably verified, and the testing cost is reduced.

Description

The method of testing of target device business realizing and system
Technical field
The present invention relates to network communications technology field, be specifically related to a kind of method of testing and system of target device business realizing.
Background technology
Whether well network interconnects by the network equipment and forms, and the service quality that provides He provided of the whole network business has been provided factors such as the performance of the network equipment itself and function, and whether the network equipment satisfies standard, also determined intercommunication between net.Along with the network equipment function of various carry voice traffic is constantly perfect, also progressively enter in the daily life such as new business models such as Multi-Party Conference, information inquiries.Develop energetically or realize that some such business models are problems that each equipment vendors is carrying out always.So-called professional, be meant certain function that target device provides, for example, the directory function in the telephone system is realized a kind of business, realizes this function exactly.Yet business realizing itself is very difficult work, often needs long development and testing, and, a lot of business all can relate to the various network equipment, need relevant device can both support this business, and like this all devices being developed cycle of test can be longer.In a lot of business realizing processes; a certain equipment usually can occur and take the lead in having realized a kind of new business; and its relevant device is not also realized the situation of this business, that is to say that its relevant device do not support this new business, and this moment, the development and testing to this equipment will run into a lot of difficulties.Because under the cooperation that does not have its relevant device, just can't verify probably at all, just can't guarantee that also this business function realization is normal to this new business.
For example, Fig. 1 is the professional networking diagram of a kind of simple voip phone, wherein comprises four kinds of equipment: MGC (media gateway controlling) equipment, MRS (Media Resource Server), IAD (integrated access equipment), plain old telephone.Wherein, MGC has played the effect of Call Agent.IAD here is a kind of media gateway, is the access device of each terminal (plain old telephone).MRS provides convention business, playback is professional or other professional Resource Server.Adopt MGCP protocol interconnection information between them.
After the user picked up the telephone Outgoing Number, IAD can at first receive user's request, and the number of transfering to, and number is sent to MGC with the MGCP message format.After MGC obtained the IAD request, the number according to the user transfers to called the miscellaneous service code in the MGC equipment, judged what kind of business the user needs.After MGC determines class of business, can be according to this professional realization flow, send various command for respectively IAD and MRS, assist both to consult and between is set up a direct service channel.And then according to form of service, order MRS carries out playback or other operation.The result of playback or other operation will be sent on the IAD from MRS by the service channel of setting up between MRS and the IAD, and sends to the end user by IAD.
In the implementation procedure of whole service, by MGC Equipment Control MRS and IAD, MGC equipment is the nucleus equipment of realizing miscellaneous service.Target device, just MRS needing when certain is professional to realize corresponding program code.Under normal conditions, support this business, then can give an order to MRS according to the operation flow that is kept in self software that MRS operates according to the business realizing code of these command calls self by MGC if cooperate to realize professional MGC equipment; If MGC does not support this business, these business realizing codes on the MRS just have no idea to be called to, and just have no idea also to verify whether these codes are correct.
This shows, if the at first realization on the target device of desiring development and testing of certain business, and under also unconsummated situation on other auxiliary equipment that cooperate this business of realization, this professional development and testing process will be subjected to great influence.At this moment, the method that just need seek other is carried out professional development and testing.Following two kinds of methods are arranged usually:
(1) giving the piling of target device program is the method a kind of commonly used that solves this class problem.To program piling, promptly in target program, add the code of some stubs, to solve the invoked problem of these codes.Concrete operations are: add some functions in the code of target device, the function of these addings is mainly finished two-part function, and as shown in Figure 2, a part is the function that generates some invocation target appliance services codes; Another part is to provide an external interface to target device, for example certain message is carried out the interface of analyzing and processing.Code and original code of stubs are compiled together, and be loaded on the veneer.Then, in the target device outside,, and send to interface according to the interface format structure message that provides.Receive after the message interface section, resolves the operation that will carry out, according to the operation requirement, calls the business realizing code function in the stubs, thereby reached the purpose of calling these business realizing codes, just can verify also whether service code is correct.
This method can produce certain influence to original code undoubtedly owing to will add the code of stubs in the target device system code.And in the realization of this method, the stubs code directly calls professional code, and in real system, service code generally can relate to a plurality of different modules, perhaps different related hardwares.Directly invoke code generally can only carry out at a certain concrete module, is easy to ignore the interface of intermodule.Therefore, the correctness that realizes for service code can't rigorously be verified.Simultaneously, the piling process need is understood the basic structure of target device source code, and will skillfully use the employed language of source code, and therefore, the processing of docking port is complicated and make mistakes easily, to exploitation tester's requirement than higher.Simultaneously, exploitation stubs and external interface need the more time.
(2) nucleus equipment realized in the language of being carried out by compiling fully, to cooperate the development and testing of target device, the soft phone Hearme Softphone that for example adopts SIP (session initiation protocol) agreement is exactly the equipment of typically simulating SIP phone fully, as shown in Figure 3.The basic ideas of this method are to finish a background program, it can send the message that this moment, real equipment should send to target device at the appropriate time, perhaps when receiving the message that target device sends, carry out and the identical processing of real equipment, respond corresponding message.
The advantage of this method is that the function of analog machine is almost completely the same with real equipment, is commonly used to realize fairly simple terminal equipment, for example SIP phone etc.This method can only test target equipment some simple business realizing, and because this method is to realize a real equipment with software fully, when the equipment or the business of simulation very complicated, in the time of for example will simulating MGC equipment and corresponding business, program can be very complicated, the code of a lot of equipment all has millions of row, simulates it and can cause development time and difficulty to be strengthened greatly, even hardly may; And the difficulty of expansion miscellaneous service increases greatly.Simultaneously, trouble revised in the language of compiling type, and the code preparation request is higher, to high level data structure treatment also underaction, is unfavorable for the outer field excitation of equipment.
Summary of the invention
An object of the present invention is to provide a kind of method of testing of target device business realizing, can't realize correctness and realize complicated shortcoming by the strict guarantee service code to overcome in the prior art, so that the analog service flow process is verified the correctness that the target device function realizes reliably quickly and easily.
Another object of the present invention provides a kind of test macro of target device business realizing, finishes controlled function to target device with the control appliance that replaces not possessing the target device business function.
The objective of the invention is to be achieved through the following technical solutions:
A kind of method of testing of target device business realizing, described method comprises:
A, set up the operation flow of described target device with script;
B, obtain the business information of described target device;
C, according to the described business information of described business flow processing;
D, the result of described business information is sent to target device;
E, described target device are finished the test of business realizing according to the result of described business information.
Described step B comprises:
B1, the message capturing of setting up the target device agreement and transmission function;
B2, the message structure of setting up the target device agreement and analytical function;
B3, utilize described message capturing and send function and catch network message;
B4, utilize described message structure and analytical function to resolve described network message, obtain described business information.
Described step B2 is specially:
Set up the message structure and the analytical function of target device agreement with described script; Perhaps
Set up the message structure and the analytical function of target device agreement with compiling type language.
Described step B3 comprises:
The script order of B31, the usefulness compiling described message capturing of type language extension and transmission function;
B32, catch network message by the script order of described expansion.
Described step D comprises:
D1, according to the result of described business information and described message structure with resolve the back message using of construction of function target device agreement;
D2, described back message using is sent to described target device;
D3, described target device are resolved described back message using, obtain the result of described business information.
Described business information comprises: the business information that described target device and auxiliary equipment send.
Described method also comprises:
F, set up the service function flow process of target device with script;
G, obtain the information on services of described target device;
H, by the described information on services of described service function flow processing;
I, finish according to the result of described information on services the service outside the described target device business is controlled.
A kind of test macro of target device business realizing, described system comprises: target device, auxiliary equipment and analog service control appliance, wherein, described analog service control appliance is used for setting up with script the operation flow of described target device, obtain the business information of described target device, according to the described business information of described business flow processing, the result of described business information is sent to target device; Described target device, the result that is used for the business information that sends according to described analog service control appliance is finished the test of business realizing; Described auxiliary equipment is used to cooperate described target device to finish the test of business realizing.
Described analog service control appliance comprises:
The business interface communicator, be used to finish and described target device and described auxiliary equipment between service communication;
At least one operation flow implement device is coupled in described business interface communicator, is used to simulate the operation flow of described target device.
Described business interface communicator comprises:
Message capturing/dispensing device, the network message when being used to catch and send described target device business realizing;
Message structure/resolver is used to resolve described network message and obtains business information, and according to the analog result tectonic network message of described operation flow implement device to described target device operation flow.
Described analog service control appliance also comprises:
The service interface communicator, be used to finish and described target device between communication for service;
At least one service function implement device is coupled in described service interface communicator, is used to simulate the service controlled function outside the described target device business.
By above technical scheme provided by the invention as can be seen, the present invention realizes professional platform by set up cooperating target device, need not any code of modifying target device systems itself, to original system without any influence.Owing to be to carry out business control from the outside of target device, therefore can not ignore any interface of target device inside, can confirm scrupulously whether the target device business realizing is correct.When setting up the platform that cooperates target device to realize business, do not need to understand the code of target device itself, only need to determine that the agreement with the target device interface can realize that development requires is lower, development rate is fast.Since separate to the simulation of miscellaneous service flow process, and each operation flow adopts identical interface with target device, therefore, can simulate arbitrarily and realize the needed form of service of target device, favorable expandability, expansion rate is fast.And, owing to adopt the simulation of script realization, therefore, realize easily the reliability height to operation flow.The present invention is not only cooperating target device to realize that simulation is to the service control function of target device in the professional platform, if desired, service controlled function that can also analog control equipment provides for target device in this platform, therefore can substitute control appliance fully develops test, provides cost savings.
Description of drawings
Fig. 1 is the professional networking diagram of a kind of simple voip phone;
Fig. 2 is the interior stubs functional schematic of target device in the prior art;
Fig. 3 is by the networking diagram of soft phone to the target device business realizing in the prior art;
Fig. 4 is the flow chart of the inventive method;
Fig. 5 is a schematic diagram of using compiling type language extension script command in the inventive method;
Fig. 6 is a kind of simple playback business process map;
Fig. 7 is a playback business shown in Figure 7 realization flow in the methods of the invention;
Fig. 8 is the register flow path behind the MRS device start;
Fig. 9 is the first embodiment networking schematic diagram of system of the present invention;
Figure 10 is the second embodiment networking schematic diagram of system of the present invention;
Figure 11 is the 3rd an embodiment networking schematic diagram of system of the present invention;
Figure 12 is the application schematic diagram of system of the present invention in the test of MRS appliance services.
Embodiment
Core of the present invention is to set up and cooperates target device to realize professional platform, in this platform, realize the miscellaneous service flow process of target device, realize professional and verify the correctness of its business realizing by these operation flow controlled target equipment with script simulation.
In order to make those skilled in the art person understand the present invention program better, the present invention is described in further detail below in conjunction with drawings and embodiments.
With reference to Fig. 4, Fig. 4 is the flow chart of the inventive method, may further comprise the steps:
Step 401: the operation flow of setting up target device with script.
The present technique field personnel know, some compiling type language (as C, C++) provide the bottom visit to computer resource, can be used to create complicated large program, but trouble are revised in compiling type language, code preparation request height, relatively poor to the flexibility of high level data structure treatment; Different than the complicated program language with other, script is to explain to carry out, and directive statement is carried out by interlude (being command interpreter) order.Because script need not compile and can explain execution easily, revise to carry out being very easy to, and much script has all encapsulated high-rise data structure, for example the character string processing section, very easy to use, therefore use script to set up the operation flow of target device.
Script has a variety of, such as: TCL language, Python, Java Script etc., as required, can choose any one kind of them.Consider that the MGCP agreement is a text protocol, and a kind of script-TCL language commonly used there is very large advantage for the processing of character string, and the order expansion interface of C language is provided, therefore can preferentially select for use the TCL language to realize.
For the different business of target device, different realization flows is all arranged, therefore can test needs according to reality, set up the multiple business flow process, need which kind of business of test, finish control with regard to the flow process of calling which kind of business to target device.
Step 402: set up the message capturing of target device agreement and send function.In the process of target device being controlled by operation flow, be bound to relate to mutual with target device information.Therefore need set up the message capturing of target device agreement and send function, for the unification of operation flow, utilize script to set up this function equally.
Step 403: message structure and the analytical function of setting up the target device agreement.For different target devices, the agreement of using when carrying out message transmission may be different, finish operational trials in order to cooperate target device, adopt identical agreement when just the operation flow of the above-mentioned foundation of needs is mutual with target device, just the message format that target device adopts agreement can be discerned and construct to operation flow.Equally, can adopt identical script to set up the message structure and the analytical function of target device agreement; In order to improve processing speed, also can adopt compiling type language to set up this function.
Step 404: utilize message capturing and send function and catch network message.The interpretation process of considering script can reduce execution efficient, therefore, with compiling type language compilation message capturing and transmission function, is in operation, by these functions of script command calls of expansion, to improve execution speed.
At present, the Windows system provides the API (API) of network programming, can directly use these API to carry out the programming of message capturing and sending function, but because these API compare bottom, realize that more function just needs a large amount of codings, causes the development time elongated.Therefore preferred way is to utilize existing message capturing and sending function software kit to realize.For example, WinPcap software kit.WinPcap is free message capturing and the sending function software kit that adopts the C language compilation, has advantages such as simple and practical, multiple functional, excellent performance, good stability.
If adopt the TCL language to set up the message capturing and the transmission function of target device agreement,, therefore WinPcap can be integrated in the TCL program by the mode of TCL order because the TCL language provides the interface with the order of C language extension.Concrete performing step will be described later.
Step 405: utilize message structure and analytical function to resolve network message, obtain the business information of target device.The business information of described target device comprises: the business information of target device and auxiliary equipment.
When target device is carried out operational trials, not only can relate to the control information of control appliance to target device, also can relate to some other auxiliary equipment, these auxiliary equipment do not need the business realizing of target device is controlled, and it is professional just to cooperate target device to realize under the control of control appliance.Such as, IAD (integrated access equipment) and plain old telephone in the professional networking diagram of simple voip phone shown in Figure 1.These equipment also need to carry out that is to say alternately with the business processing flow of setting up, and utilize message structure and analytical function to resolve the business information that not only comprises target device that network message obtains, and also comprise the business information of some auxiliary equipment.
Step 406: according to the described business information of business flow processing.
Step 407: according to the result of business information and message structure with resolve the back message using of construction of function target device agreement.
Step 408: back message using is sent to target device.
Step 409: target device is finished the test of business realizing according to back message using.
Mention in the top step 404,, can utilize the order in compiling type language extension message capturing and the transmission function in order to improve catching and transmission speed of network message.Because the TCL language provides the interface with the order of C language extension, therefore WinPcap can be integrated among the TCL by the mode of TCL order.Concrete performing step is as shown in Figure 5:
A) handle function: CapturePacket, SendPacket, ConstructUdpPacket, ReserveNDIS etc. with some messages of C language compilation, these functions comprise the network interface card that takies and discharge computer, catch message, and the structure message sends message etc.These function calls the various API that provide among the WinPcap, finish above-mentioned functions.
B) with some TCL message processing commands of C language extension: TCL_CapturePacket, TCL_SendPacket, TCL_ConstructUdpPacket, TCL_ReserverNDIS etc., these orders will be called the message of having finished writing in the steps A and be handled function.Thereby integrated WinPcap has realized message capturing and sending function in TCL.
C) structure and the analytical function of usefulness TCL language compilation MGCP message: ConstructCreateConnectionPacket, ConstructDeleteConnectionPacket, ConstructAuditEndpointPacket, GetInformationFromMgcpPacket etc., these functions can produce required MGCP message or the MGCP message that captures is resolved, and obtain needed information etc.
D) with the transmission function of the various command in the MGCP message constructed fuction realization MGCP agreement that provides among the TCL of the transmission message that provides among step B order and the step C: CL_SendCreateConnectionPacket, TCL_SendDeleteConnectionPacket, TCL_SendAuditEndpointPacket.
E) catch processing function: TCL_GetInformationFromMgcpPacket with what the MGCP packet parsing function that provides among TCL order of catching message that provides among the step B and the step C was realized various MGCP messages, be used for catching effective MGCP message and obtain important information.
Wherein, MGCP message structure and analytical function also can be ordered by C language extension TCL and be realized.
Fig. 6 shows a kind of simple playback business process map, and the present invention is further illustrated below in conjunction with business shown in this figure.
With reference to Fig. 6, when IAD after the request of MGC report of user off-hook, MGC can be to the order of IAD Sending dialled number, subscriber dialing and report MGC then, what business what judge that the user asks actually according to number by MGC is.Because this part is the operation between user, IAD and the MGC purely, to the not influence of use of target device MRS, therefore this part is saved fully in the above-mentioned flow process, make development process more quick.Equally for other business, also may have some such and the irrelevant operations of target device, can save.
In addition, according to the MGCP agreement, all orders or request message all will have response, can be OK usually.For the emphasis of outstanding flow process, these response processes have also omitted in flow chart, send to the request command of MGC in the analogue system of reality, and the MGC of simulation is as long as reply OK.
Generally speaking, if the external interface that target device provides can be directly and certain interface of computer carry out communication, just can realize professional platform for target device provide by computer generation for core control equipment.The miscellaneous service flow process of simulated target equipment easily in computer is when cooperating target device to carry out the test of business realizing, by the operation of these operation flow controlled target appliance services.
For example, target device MRS (Media Resource Server) can pass through MGCP (MGCP) message and MGC (Media Gateway Controller) communication.If the MGCP message is encapsulated in UDP (user datagram protocol) message, then computer just can receive and send the UDP message by network interface card.Like this, the message capturing of the operation flow of the target device set up with script in the inventive method, target device agreement and the message structure and the analytical function that send function and target device agreement are embedded in the common computer, just can replace MGC to finish test by computer generation to playback business shown in Figure 6.
This professional realization flow is as shown in Figure 7:
Each function definition among this figure is as follows:
(1) TCL_GetInformationFromMgcpPacket function: network message is caught the processing function, is used to obtain the target device business information;
(2) TCL_SendCreateConnectionPacket function: network message send to be handled function, is used for according to the operation flow of target device the result of target device business information being sent the command message that connects to IAD and MRS;
(3) TCL_SendModifyConnectionPacket function: network message sends handles function, is used for according to the operation flow of target device the result of target device business information being revised the bind command message to the IAD transmission;
(4) TCL_SendNotificationRequestPacket function: network message send to be handled function, is used for according to the operation flow of target device the result of target device business information being sent the reproduction command message to target device MRS;
(5) TCL_SendDeleteConnectionPacket function: network message send to be handled function, is used for according to the operation flow of target device the result of target device business information being sent deletion bind command message respectively to IAD and MRS.
After announcement process begins,
At first, send the request of user's off-hook by IAD to computer, obtain the network message that IAD sends by the TCL_GetInformationFromMgcpPacket function, detect whether the MGCP message of receiving is user's off-hook request message that IAD reports, obtain information such as port numbers after detecting.
Then, send the command message that connects by the TCL_SendCreateConnectionPacket function to IAD.
Obtain the network message that IAD sends by the TCL_GetInformationFromMgcpPacket function again, detect the MGCP message received and whether be the back message using that connection that LAD reports is set up, obtain link information after detecting.
Then, send the command message that connects to MRS, wherein comprise the link information that IAD replys by the TCL_SendCreateConnectionPacket function.
Obtain the network message that MRS sends by the TCL_GetInformationFromMgcpPacket function, detect the MGCP message received and whether be the back message using that connection that MRS reports is set up.Obtain link information after detecting.
Then,, send modification bind command message to IAD, wherein comprise the link information that MRS replys by the TCL_SendModifyConnectionPacket function according to the link information of obtaining.
Simultaneously, send the reproduction command message by the TCL_SendNotificationRequestPacket function to MRS.After receiving, MRS begins playback to IAD.This playback signal is not the MGCP message, does not therefore need it is handled.
Wait for, and obtain the network message that MRS sends, detect whether the MGCP message of receiving is the playback ending request that MRS reports by the TCL_GetInformationFromMgcpPacket function.
Detect the back and send deletion bind command message respectively to IAD and MRS, and send busy tone to IAD by the TCL_SendDeleteConnectionPacket function.
After IAD receives busy tone, send user's on-hook request to business control device (computer), obtain the network message that IAD sends by the TCL_GetInformationFromMgcpPacket function, detect whether the MGCP message of receiving is user's on-hook request message that IAD reports, detect the back and reply.
So far, announcement process finishes.
Similar to the above for other professional test processs of target device, do not repeat them here.
In the business realizing of target device, some auxiliary equipment are arranged, such as, core control equipment for this operation flow realization of MGC, except controlled target equipment realization business, also needing provides some other service controlled function outside the business to target device, otherwise target device might be able to not normally move.For this situation, following two kinds of solutions can be arranged:
A kind of method is to finish every other service controlled function except that business with a real core control equipment, and the operation flow that realizes with script realizes professional control.The subject matter of this solution is to be finished by two kinds of hardware respectively with a kind of two kinds of functions of equipment, is easy to exist in message is handled conflict; And the auxiliary equipment of a reality of needs, increased cost.
Another method continues to realize some service controlled function like this with script exactly.Specifically may further comprise the steps:
(1) sets up the service function flow process of target device with script;
(2) obtain the information on services of target device;
(3) by service function flow processing information on services;
(4) finish according to the result of information on services the service outside the target device business is controlled.
The implementation of above-mentioned implementation and target device operation flow is similar, is not described in detail.It should be noted that different with business realizing is that the processing to information on services no longer is by flow process, and is the equal of the backstage service routine here.With the registration process after the MRS startup is example, can send the startup logon message to MGC after MRS starts, and in a single day MGC receives this message, just needs to reply the OK message, issues the order of audit endpoint then.After MRS replys, show that MRS normally starts, the flow process of realization as shown in Figure 8:
Wherein, the implication of each function is as follows:
The TCL_GetInformationFromMgcpPacket function: network message is caught the processing function, is used to obtain the target device business information;
The TCL_SendOkPacket function: network message sends handles function, is used for sending the OK message to MRS;
The TCL_SendAuditEndpointPacket function: network message sends handles function, is used for sending the audit endpoint message to MRS.
After the system start-up, at first obtain the network message that MRS sends, detect whether the MGCP message of receiving is the startup logon message that MRS reports by the TCL_GetInformationFromMgcpPacket function.
If not, then ignore this message, continue to obtain the network message that MRS sends by the TCL_GetInformationFromMgcpPacket function, detect whether the MGCP message of receiving is the startup logon message that MRS reports.
If then send the OK message to MRS by the TCL_SendOkPacket function.
Then, again by the TCL_SendAuditEndpointPacket function: send the audit endpoint message to MRS.
After MRS receives this message, reply (auxiliary equipment need not to answer or catch), so far, registration is finished.
Obviously, this implementation method is more superior, and cost is saved in not conflict.
Generally speaking, if the external interface that target device provides can be directly and certain interface of computer carry out communication, just can realize professional platform for target device provide by computer generation for core control equipment.The miscellaneous service flow process of simulated target equipment easily in computer is when cooperating target device to carry out the test of business realizing, by the operation of these operation flow controlled target appliance services.
For example, target device MRS (Media Resource Server) can pass through MGCP (MGCP) message and MGC (Media Gateway Controller) communication.If the MGCP message is encapsulated in UDP (user datagram protocol) message, then computer just can receive and send the UDP message by network interface card, and the whole test system just only needs a computer and target device to get final product like this.Consider that MRS also needs to relate to the problem of voice quality, therefore also may need plain old telephone and IAD (integrated access equipment).
With reference to Fig. 9, Fig. 9 is the networking schematic diagram of system of the present invention:
Comprise: analog service control appliance 90, target device 91 and auxiliary equipment 92.Wherein,
The analog service control appliance is used for replacing the core control equipment of real system, and controlled target equipment and auxiliary equipment are finished the operational trials of target device.
The analog service control appliance comprises: the business interface communicator 901 that communicates with the actual interface and the auxiliary equipment of target device; The operation flow implement device 902 that is used for simulated target appliance services flow process.
Because necessarily have a kind of communication interface between the core control equipment in target device and the real system, be used for transmitting mutually information, for the actual operation flow of correct simulation, in apparatus of the present invention, finish this function by business interface communicator 901.Therefore core control equipment in target device and the real system normally adopts variety of protocol to carry out information interaction, also needs this interface to adopt the agreement identical with target device, promptly can correctly discern, the message of the transmission of processing target equipment.
Business interface communicator 901 comprises: message capturing/dispensing device 903 and message structure/resolver 904, wherein,
Network message when message capturing/dispensing device 903 is used to catch and send the target device business realizing; Message structure/resolver 904 is used to resolve network message and obtains business information, and according to the analog result tectonic network message of operation flow implement device to the target device operation flow.
Mention in the description to the inventive method in front, in the business realizing of target device, some auxiliary equipment are arranged, such as, the core control equipment that this operation flow of MGC is realized, except controlled target equipment realization business, also needing provides some other service controlled function outside the business to target device, otherwise target device might be able to not normally move.For this situation, two kinds of solutions have also been mentioned in the description of front.
Equally, at this situation, system of the present invention is by increasing the service function implement device, by the service controlled function of this device control realization to target device.With reference to the second embodiment of the present invention shown in Figure 10, wherein, service interface communicator 101 be used to finish and target device between communication for service; Service function implement device 102 is used to simulate the service controlled function outside the target device business that need be provided by core control equipment.
In the operational trials of target device, may relate to a plurality of different business, at these different business, system of the present invention also provides good expanded function.The 3rd embodiment with reference to system of the present invention shown in Figure 11:
In this embodiment, the analog service control appliance comprises two kinds of operation flow implement devices: directory enquiry service flow process implement device 111 and playback operation flow implement device 112, these two kinds of operation flow implement devices are independent separately, but shared identical business interface communicator 901.Therefore, if when target device has multiple business to test, only needing increases corresponding business flow process implement device, and does not need to change the communication interface with target device.
Equally,, also can adopt in the same way, provide by expansion service function implement device the target device more service is controlled for other service controlled function except that professional control of core control equipment.
With reference to Figure 12, Figure 12 is the application schematic diagram of system of the present invention in the test of MRS appliance services:
Compare with the professional networking diagram of actual voip phone shown in Figure 1, replaced core auxiliary equipment (control appliance) MGC in the real system with the analog service control appliance.Though and IAD and plain old telephone also are auxiliary equipment, neither need to realize business, and cost is not high, therefore, finishes and can use actual product.
In MRS and MGC equipment are mutual, normally adopt variety of protocol to carry out alternately, the MGCP agreement is one of the most frequently used control protocol, this is the text protocol that a kind of UDP of employing message encapsulates.Equipment room for example, connects, revises operations such as orders such as connection, deletion connection, audit endpoint are finished mutual control and replied, information reports by this protocol definition various command.Therefore, between MRS and analog service control appliance, adopt the MGCP agreement to carry out information interaction.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (11)

1. the method for testing of a target device business realizing is characterized in that, described method comprises:
A, set up the operation flow of described target device with script;
B, obtain the business information of described target device;
C, according to the described business information of described business flow processing;
D, the result of described business information is sent to target device;
E, described target device are finished the test of business realizing according to the result of described business information.
2. method according to claim 1 is characterized in that, described step B specifically comprises:
B1, the message capturing of setting up the target device agreement and transmission function;
B2, the message structure of setting up the target device agreement and analytical function;
B3, utilize described message capturing and send function and catch network message;
B4, utilize described message structure and analytical function to resolve described network message, obtain described business information.
3. method according to claim 2 is characterized in that, described step B2 is specially:
Set up the message structure and the analytical function of target device agreement with described script; Perhaps
Set up the message structure and the analytical function of target device agreement with compiling type language.
4. method according to claim 2 is characterized in that, described step B3 comprises:
The script order of B31, the usefulness compiling described message capturing of type language extension and transmission function;
B32, catch network message by the script order of described expansion.
5. method according to claim 2 is characterized in that, described step D specifically comprises:
D1, according to the result of described business information and described message structure with resolve the back message using of construction of function target device agreement;
D2, described back message using is sent to described target device;
D3, described target device are resolved described back message using, obtain the result of described business information.
6. according to claim 1 or 2 or 5 described methods, it is characterized in that described business information comprises: the business information that described target device and auxiliary equipment send.
7. method according to claim 6 is characterized in that, described method also comprises:
F, set up the service function flow process of target device with script;
G, obtain the information on services of described target device;
H, by the described information on services of described service function flow processing;
I, finish according to the result of described information on services the service outside the described target device business is controlled.
8. the test macro of a target device business realizing, described system comprises: target device, auxiliary equipment, it is characterized in that, also comprise the analog service control appliance:
The analog service control appliance is used for setting up with script the operation flow of described target device; Obtain the business information of described target device; According to the described business information of described business flow processing; The result of described business information is sent to target device;
Target device, the result that is used for the business information that sends according to described analog service control appliance is finished the test of business realizing;
Auxiliary equipment is used to cooperate described target device to finish the test of business realizing.
9. system according to claim 8 is characterized in that, described analog service control appliance comprises:
The business interface communicator, be used to finish and described target device and described auxiliary equipment between service communication;
At least one operation flow implement device is coupled in described business interface communicator, is used to simulate the operation flow of described target device.
10. system according to claim 9 is characterized in that, described business interface communicator comprises:
Message capturing/dispensing device, the network message when being used to catch and send described target device business realizing;
Message structure/resolver is used to resolve described network message and obtains business information, and according to the analog result tectonic network message of described operation flow implement device to described target device operation flow.
11. system according to claim 8 is characterized in that, described analog service control appliance also comprises:
The service interface communicator, be used to finish and described target device between communication for service;
At least one service function implement device is coupled in described service interface communicator, is used to simulate the service controlled function outside the described target device business.
CNB2004100551744A 2004-08-09 2004-08-09 Goal device service realization testing method and system Expired - Fee Related CN100403701C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100551744A CN100403701C (en) 2004-08-09 2004-08-09 Goal device service realization testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100551744A CN100403701C (en) 2004-08-09 2004-08-09 Goal device service realization testing method and system

Publications (2)

Publication Number Publication Date
CN1735046A CN1735046A (en) 2006-02-15
CN100403701C true CN100403701C (en) 2008-07-16

Family

ID=36077254

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100551744A Expired - Fee Related CN100403701C (en) 2004-08-09 2004-08-09 Goal device service realization testing method and system

Country Status (1)

Country Link
CN (1) CN100403701C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946395B (en) * 2012-11-23 2015-12-02 华为技术有限公司 The method and apparatus of analogue network element

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000075783A1 (en) * 1999-06-04 2000-12-14 Bsquare Corporation Protocol acknowledgment between homogeneous systems
CN1290101A (en) * 1999-12-22 2001-04-04 深圳市中兴通讯股份有限公司 Automatic protocol test system and its test method
WO2001031451A1 (en) * 1999-10-25 2001-05-03 Nokia Corporation Analyzation of test results
CN1359492A (en) * 1999-01-21 2002-07-17 毕事快公司 System and method for testing and validating devices having an embedded operating system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1359492A (en) * 1999-01-21 2002-07-17 毕事快公司 System and method for testing and validating devices having an embedded operating system
WO2000075783A1 (en) * 1999-06-04 2000-12-14 Bsquare Corporation Protocol acknowledgment between homogeneous systems
WO2001031451A1 (en) * 1999-10-25 2001-05-03 Nokia Corporation Analyzation of test results
CN1290101A (en) * 1999-12-22 2001-04-04 深圳市中兴通讯股份有限公司 Automatic protocol test system and its test method

Also Published As

Publication number Publication date
CN1735046A (en) 2006-02-15

Similar Documents

Publication Publication Date Title
US6141724A (en) Remote application design
US7957401B2 (en) System and method for using multiple communication protocols in memory limited processors
US20070041525A1 (en) Generating call control and dialog elements for telephony service applications using a graphical user interface
EP1657634A2 (en) Test agent architecture
CN102420891B (en) Mobile terminal and test method, equipment and system thereof
CN108989583B (en) Pressure testing method and system for call center, electronic equipment and storage medium
CN108933871B (en) Call center incoming call traffic routing method, device and system
CN1855960B (en) Automatic testing tool and method for MGCP mass traffic analog calling
CN100461926C (en) System and method for testing speech service
US20060039538A1 (en) "Software only" tool for testing networks under high-capacity, real-world conditions
CN100464538C (en) Method and apparatus for automatic testing media gateway
US20090073960A1 (en) Bridging phone networks using voip to preserve in-network calling advantages
CN103237050A (en) Method and system for intelligent voice interaction
CN101902455A (en) Open multimedia conference service system and implementing method thereof
CN100403701C (en) Goal device service realization testing method and system
CN101227342A (en) Method and apparatus for implementing large traffic automatic calling
CN110012175B (en) Device and system for debugging IVR service and application method thereof
US20060210048A1 (en) Method and system for generating a generic test plan for network based telephony systems
CN100356737C (en) System and method for detecting large volume of medium service
US8199745B2 (en) Method and apparatus for generalized third-party call control in session initiation protocol networks
KR100443916B1 (en) method for testing H.323 gatekeeper using open phones
CN100426762C (en) Exchange data testing system and method
CN100593922C (en) Switching technique of next generation of network, and experimental apparatus for communication security
CN102130898B (en) Simulation method, device and system
CN105554319A (en) Call module test method

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

Granted publication date: 20080716

Termination date: 20160809

CF01 Termination of patent right due to non-payment of annual fee