Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of system that realizes function measurement of signalling service apparatus, and this system can realize the functional test of signal server.
Another object of the present invention is to provide a kind of method that realizes function measurement of signalling service apparatus, this method can be carried out functional test to signal server.
According to above-mentioned purpose, concrete technical scheme of the present invention is achieved in that
A kind of system that realizes function measurement of signalling service apparatus, this system also comprises: test macro, tested signal server and third party's test macro, wherein,
Test macro is used for to tested signal server transmission detecting information and receives from the information of tested signal server also storing to analyze;
Tested signal server after being used to receive and handling the detecting information of self-testing system, sends information to third party's test macro, receives the information of returning from third party's test macro; After perhaps receiving and handle detecting information, send information to test macro from third party's test macro;
Third party's test macro is used to cooperate test macro, sends detecting information to tested signal server, perhaps receive from after the information of tested signal server according to the needs of this signaling process to tested signal server return information.
Described test macro comprises process control ProcessCtrl module and Message Processing MsgHdl module, and ProcessCtrl module and MsgHdl module are undertaken alternately by sharing channel, wherein,
The ProcessCtrl module is used for sending the test pack that carries out functional test to the MsgHdl module, receives the information from the MsgHdl module, handles and stores;
The MsgHdl module, the test pack that is used for receiving from the ProcessCtrl module is converted to the detecting information that tested signal server can be discerned, and sends to tested signal server; And reception sends to the ProcessCtrl module from the information of tested signal server after the dissection process.
Described ProcessCtrl module also comprises Master script, Scenario script, sends message script and reception message script, wherein:
The Master script is used for calling relevant Scenario script according to the functional test item;
The Scenario script is used for a function of test function test item, the test sample book bag is sent to the MsgHdl module by sending the message script, or receive the message from the MsgHdl module;
Send the message script, be used for read test sample packages and the message after the MsgHdl module sends packing;
Receive the message script, be used to receive after the next message of MsgHdl module is also resolved and analyze comparison and stores processor.
Described sharing channel is famous pipeline FIFO.
Described third party's test macro is third party's tester or stake program, and wherein, third party's tester is the entity of K1297 or MGTS or other support related protocol test function.
A kind of method that realizes function measurement of signalling service apparatus, the pre-defined test sample book bag that is used for the test signaling server capability of ProcessCtrl module, this method comprises:
A, ProcessCtrl module are initiated the functional test to signal server, according to the classification of this functional test, obtain predefined corresponding test sample book bag, and this test sample book bag is sent to the MsgHdl module;
This test sample book bag that B, MsgHdl module will receive is packaged as the detecting information that signal server can be discerned, and sends to signal server;
C, signal server are handled the detecting information that receives, and carry out the mutual of information with third party's test macro;
The information that D, signal server are sent third party's tester sends to the MsgHdl module, and the MsgHdl module sends to the ProcessCtrl module after with message parse;
E, ProcessCtrl module receive the information after resolving, and to storing to carry out analyzing and diagnosing with the inconsistent information of expected results.
The described process that this test sample book bag is sent to the MsgHdl module of steps A is:
A1, ProcessCtrl module are selected sharing channel idle between MsgHdl module and the ProcessCtrl module, and this test sample book bag is write this sharing channel;
A2, MsgHdl module are from this sharing channel read test sample packages.
The process that this test sample book bag that the described MsgHdl module of step B will receive is packaged as the detecting information that signal server can discern is:
This test sample book bag is provided with protocol header and each parameter name and parameter value;
B1, MsgHdl module are determined according to the protocol header of this test sample book bag and are filled required protocol fields, as the detecting information that builds.
The process that sends to the ProcessCtrl module behind the information analysis that the described MsgHdl module of step D is sent third party's test macro is:
D1, MsgHdl module are determined the protocol type that this message is affiliated according to the message of sending, and according to the corresponding protocol type this message is resolved, and the information content after will resolving send to the ProcessCtrl module.
The information process that the described ProcessCtrl module of step e receives after resolving is:
E1, the MsgHdl module is selected sharing channel idle between MsgHdl module and the ProcessCtrl module, writes this sharing channel with resolving good information;
E2, ProcessCtrl module read the good information of resolving from this sharing channel.
From such scheme as can be seen, the present invention provides a kind of function test system and method for the various signal server entities that will be deployed in the network.This test macro and method are based on hierarchy, control test process by simple script, encapsulated concrete protocol signaling with independent processing module, the sample packages of variety of protocol signaling message is provided, make tester's energy that need not take much time again go to digest the specific implementation of the agreement of numerous and complicated, thus easy test process and improve testing efficiency.ProcessCtrl module towards the tester provided by the invention need not compile, and does not also change with tested signal server.MsgHdl module provided by the invention is with good expansibility.Therefore, system and method provided by the invention has been realized the functional test of signal server, and practical.Through actual emulation and test, effect is fine, has good maintainability and reusability.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, by the following examples and with reference to accompanying drawing, the present invention is further elaborated.
Fig. 2 realizes the system of function measurement of signalling service apparatus for the present invention, and this system comprises: tested SS200, test macro 201 and third party's tester or stake program 202.Wherein, test macro 201 also comprises process control (ProcessCtrl) module 203 and Message Processing (MsgHdl) module 204, adopts sharing channel to carry out alternately between ProcessCtrl module 203 and the MsgHdl module 204.
Test macro 201, have the concrete protocol signaling of encapsulation, the protocol signaling content is provided unified handle, the realization of test case and the function of the sample packages (PDU) of variety of protocol signaling message is provided, be used for sending detecting information, receive from the information of tested SS200 transmission and the back generation PDU that packs and analyze and the tracing trouble reason for the tester to tested SS200.
Tested SS200 is used for the detecting information that receives from test macro 201 is handled, and relevant information is sent to third party's tester or stake program 202; Perhaps be used for handling, and relevant information is sent to test macro 201 from third party's tester or the detecting information that receives of stake program 202;
Third party's tester or stake program 202 are used for monitoring in real time tested SS200 to the detecting information reception of test macro 201 transmissions and the situation after the processing, and can send information to tested SS200 according to the information of receiving; Perhaps be used for initiatively sending detecting information to tested SS200.It is that K1297 or MGTS etc. support the tester of related protocol function as third party's tester 202 that the present invention can select model, difference according to the tested SS200 function of test, third party's tester 202 be cooperated accordingly according to prior art and tested SS200, the present invention also can adopt the stake program 202 of writing in order to shielding and alternative tester.
ProcessCtrl module 203 in the test macro 201 adopts is convenient to the form of scripts editing and revise, controls the functional test flow process of whole tested SS200.
When this functional test is test macro 201 initiations, the function of ProcessCtrl module 203 in the test macro 201 and MsgHdl module 204 is narrated.
ProcessCtrl module 203 is converted into the information that MsgHdl module 204 can be discerned to the function control script that the tester writes, the test sample book bag (PDU) of the described information that can discern for providing at concrete agreement, send to MsgHdl module 204 by sharing channel, and can preserve that Gong tester that MsgHdl module 204 returns analyzes and the PDU packets of information of diagnosis.
In order to realize sending PDU to MsgHdl module 204, ProcessCtrl module 203 usefulness scripts are realized, adopt three layers of control structure, comprise a Master script, a plurality of Scenario scripts, and one sends message script and a reception message script.As shown in Figure 3.
A Master script correspondence is once tested, and comprises a plurality of functional tests that will be finished by this test, and it can be successively or repeatedly calls different Scenario scripts, and each test all is to be begun by the Master script.
The corresponding test scene of Scenario script, just finish a certain functional test of tested SS200, it can comprise certain PDU is sent or receives by receiving the message script by sending the message script that this Scenario script can be write according to the difference in functionality of the tested SS200 of test.
Sending the message script is that the PDU that will send is read from the Scenario script, sends to MsgHdl module 204 then.
Receiving the message script is to receive the PDU that returns from MsgHdl module 204, this PDU is stored, and this PDU content is shown on test screen.
Because tested SS200 as the entity that extensively distributes, has comprised the signaling message processing in interior function for 3G network provides in 3G network.Therefore, tested SS200 will provide a whole set of interface that can be called by upper-layer service.The Message Processing general module that MsgHdl module 204 among the present invention proposes for the high-level interface that connects tested SS200 and provide just.
MsgHdl module 204 is according to the protocol type difference that tested SS200 had, and MsgHdl module 204 can comprise the corresponding protocol processing parts, is used for providing unified Message Processing to the PDU that sends, and obtains the detecting information that tested SS200 can discern.
The major function of MsgHdl module 204 is to have encapsulated the high-level interface that is used to connect tested SS200, and unified message processing function is provided.ProcessCtrl module 203 just can be visited the variety of protocol that tested SS200 function realizes by MsgHdl module 204.MsgHdl module 204 receives the PDU that ProcessCtrl modules 203 are sent, and makes up the detecting information of tested SS200 identification then according to this PDU, and the high-level interface by tested SS200 sends to tested SS200; And the resolving information packing that receives from tested SS200 high-level interface is generated PDU send to ProcessCtrl module 203.
Same, when this functional test is when being initiated by third party's test macro 202, the function of ProcessCtrl module 203 and MsgHdl module 204 is same as described above, only must adapt to detecting information in third party's test macro 202 at the script that ProcessCtrl module 203 is write, third party's test macro 202 sends to detecting information after tested SS200 handles, after the information via MsgHdl module 204 that obtains received, being packaged into by ProcessCtrl module 203 can be for the PDU of tester's analysis and diagnosis.
ProcessCtrl module 203 in the test macro 201 of the present invention and MsgHdl module 204 adopt the mode of sharing channel to carry out alternately.The concrete form of sharing channel can be the communication mode between various processes.For example: can take this sharing channel form of famous pipeline (FIFO).
When this functional test is a test macro 201 when initiating, Fig. 4 realizes the method flow diagram of function measurement of signalling service apparatus for the present invention, and its concrete steps are:
Step 400, initiate tested SS200 is carried out the order of functional test to ProcessCtrl module 203;
Step 401, ProcessCtrl module 203 have write the PDU that tested SS200 is carried out functional test in advance, call the PDU of corresponding function test, send to MsgHdl module 204;
Step 402, MsgHdl module 204 are converted to the detecting information that tested SS200 can discern with the PDU that receives, and the high-level interface by tested SS200 sends to tested SS200;
Step 403, tested SS200 handle the detecting information that receives, and simultaneously, whether the signaling process that third party's tester or the tested SS200 of stake program 202 real-time judge handle behind this detecting information meets expected results, if, execution in step 404; Otherwise, process ends;
Step 404, third party's tester or stake program 202 send corresponding information for tested SS200, and tested SS200 is transmitted to MsgHdl module 204 with corresponding information after handling;
Step 405, MsgHdl module 204 are packaged as the PDU that the tester can discern with the corresponding information that receives and send to ProcessCtrl module 203;
Step 406, ProcessCtrl module 203 receive this PDU, on this PDU display screen, carry out reference, process ends for the tester.
The PDU that calls corresponding function test in the said process step 401, the process that sends to MsgHdl module 204 as shown in Figure 5, Fig. 5 sends to PDU for ProcessCtrl module 203 of the present invention the process flow diagram of MsgHdl module 204:
Step 500, ProcessCtrl module 203 are opened and are sent the message script;
The transmission message script of step 501, ProcessCtrl module 203 selects to send the idle sharing channel of PDU;
The transmission message script of step 502, ProcessCtrl module 203 reads the PDU that will send, and by the sharing channel of determining this PDU is sent to MsgHdl module 204;
When sharing channel was FIFO, the PDU that can send write among the FIFO, read this PDU by MsgHdl module 204 from this FIFO;
Step 503, ProcessCtrl module 203 are closed and are sent the message script.
Receive the flow chart of this PDU in the ProcessCtrl module 203 in the said process step 406, as shown in Figure 6, Fig. 6 receives the process flow diagram of PDU for ProcessCtrl module 203 of the present invention:
Step 600, ProcessCtrl module 203 are opened and are received the message script;
The reception message script of step 601, ProcessCtrl module 203 is selected sharing channel;
The reception message script of step 602, ProcessCtrl module 203 judges whether sharing channel has PDU, if, execution in step 603, otherwise, step 602 returned;
The reception message script of step 603, ProcessCtrl module 203 reads the PDU that MsgHdl module 204 is deposited in sharing channel, the content in ProcessCtrl module 203 among storage and the demonstration PDU is given the tester;
Step 604, ProcessCtrl module 203 are closed and are received the message script.
MsgHdl module 204 is converted to the detecting information that tested SS200 can discern with the PDU that receives in the said process step 402, the flow chart that high-level interface by tested SS200 sends to tested SS200 as shown in Figure 7, Fig. 7 is converted to PDU for the present invention the process flow diagram of detecting information:
Step 700, MsgHdl module 204 receive the PDU that sends from ProcessCtrl module 203;
Step 701, MsgHdl module 204 are filled the corresponding protocol message field according to PDU, make up detecting information;
Because each PDU has protocol header to judge which kind of agreement this PDU belongs to, so determine the protocol message field according to the protocol header of PDU, each parameter value among this PDU is filled in the corresponding protocol message field;
Step 702, the detecting information that builds is sent to tested SS200.
MsgHdl module 204 will resolve to the flow chart that PDU that the tester can discern sends to ProcessCtrl module 203 from the corresponding information that tested SS200 receives in the said process step 405, as shown in Figure 8, Fig. 8 is converted to corresponding information for the present invention the process flow diagram of PDU:
Step 800, MsgHdl module 204 are received the corresponding information that tested SS200 sends;
Step 801, MsgHdl module 204 are judged the protocol type of this information;
Step 802a~802n, MsgHdl module 204 are resolved packing according to this information corresponding protocol type to this message, generate the PDU that the tester is easy to discern;
Step 803, MsgHdl module 204 send the PDU that the tester is easy to discern to ProcessCtrl module 203;
When sharing channel was FIFO, the PDU that can send write among the FIFO, read this PDU by ProcessCtrl module 203 from this FIFO.
PDU of the present invention is the test sample book bag that provides at concrete agreement, its content that comprises is exactly needed message parameter and a reference value thereof in the test process, and the present invention can change or rebulid new PDU accordingly according to the variation of test case to the content among this PDU.Providing of sample packages can free the tester from the agreement specific implementation of a large amount of numerous and complicated, thereby easy test process improves the efficient of functional test greatly.
When this functional test was 202 initiations of third party's test macro, whole process was:
After third party's test macro 202 transmission detecting informations were handled to tested SS200, tested SS200 sent to MsgHdl module 204 with the information that obtains, and execution in step 405~406 then.
Below lift a specific embodiment explanation the present invention: the example procedure of a kind of tested SS200 being carried out the functional test of telephone subscriber's call signaling foundation.
The tested entity of this specific embodiment is: the tested SS200 that ISUP (ISUP) protocol stack is realized.
Third party's tester of this specific embodiment is: model is third party's tester of Tectronix K1297.
ProcessCtrl module 203 and MsgHdl module 204 communication modes are: famous pipeline (FIFO).
This specific embodiment implementation process is:
1) utilizes the ISUP high-level interface of tested SS200 to write MsgHdl module 204 modules, be responsible for the packing of initial address message (IAM), Address Complete Message (ACM), response message (ANM) in the isup message and unpack processing;
2) write the transmission message script in the ProcessCtrl module 203 and receive the message script, realize the function of correct read-write content among the FIFO;
3) write Master script in the ProcessCtrl module 203, represent the functional test use-case that will carry out.
For example: the test case name that telephone subscriber's signaling is set up is " CallSetup-ok-101 ".
4) write Scenario script in the ProcessCtrl module 203, represent the control sequence of Signalling exchange.
For example: test case " CallSetup-ok-101 " can be called " MscInit-Setup-1.snr " of Scenario script.
5) write the sample packages that ISUP is provided, as: the sample packages of writing IAM, ACM and ANM.
6) test: tested SS200 and test macro 201, third party's tester or stake program 202 etc. have been set up logic and physically related;
Startup is normally moved by side SS200;
Start ProcessCtrl module 203 and MsgHdl module 204, normal operation;
Test macro 201 implementations of test cases " CallSetup-ok-101 ";
In test macro 201 side monitor tests progress, if without any alarm, EOT this time then; If exist and the inconsistent information of expected results, then at test macro 201 with this information stores and generate the PDU bag, be convenient to the tester and analyze and diagnose reason.
From six above key steps as can be seen, adopt this method of testing that tested SS200 is carried out functional test and have apparent in view advantage, promptly the module stratification, communication interface is simple, flow process is clear and definite, ease for maintenance and versatility.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.