Summary of the invention
The object of the present invention is to provide a kind of method of testing of business intelligence, to solve existing IN service method of testing networking complexity, the technical problem strong to hardware-dependence.
For realizing goal of the invention, the method for testing of a kind of intelligent service performance of the present invention may further comprise the steps:
One, prepares call data and structure call flow;
Two, ready call data and the good call flow of structure are initiated a large amount of business intelligence callings by protocol conversion back message control module, automatically finish in the calling information interaction with message control module;
Three, the calls in the unit interval, finished of statistical service control module, obtain service feature, it is characterized in that the preparation call data in the described step 1 are by setting the call data generation rule in software, realizing by data generation rule generation call data; Described structure call flow is by using the mode of script describing to realize in software.
The call flow that described use script describing mode constructs is consistent with the acceptable agreement of message control module with the agreement of the call data that produce by the data generation rule, and call flow and ready call data that structure is good are not directly initiated a large amount of business intelligences to message control module and called out through protocol conversion.
Described data generation rule is the sequential loop incremental manner, namely defines minimum of a value, maximum, and call data are from minimum of a value, and order increases progressively, until after the maximum, again from minimum of a value, can circulate always.
Described data generation rule is interval interior random fashion, defines a minimum value and peaked interval, and call data are the random number in this interval.
Described data generation rule is the file reading manner, namely with the call data of a calling as a record row, the call data of all-calls are preserved hereof, during test from file order reading and recording row obtain call data.
After having adopted technique scheme, owing to adopt the pure software mode, simulation protocol conversion device and SSP part have been simplified networking mode of testing and the dependence that has reduced hardware; Use the script describing call flow, encapsulated TCAP layer, operation or layers of error message, thereby made the message constructing of calling become simple; Definition call data generation rule produces call data according to rule during calling automatically.
Embodiment
As shown in Figure 3, a kind of method of testing of intelligent service performance comprises step:
One, in software, sets the call data generation rule and also press call data generation rule generation call data, in software, use the mode of script describing to produce the call flow storehouse, the more corresponding call flow of the call data that in the call flow storehouse, find out and produce;
Two, ready call data are initiated a large amount of business intelligences with the call flow corresponding with call data to message control module and call out, automatically finish in the calling information interaction with message control module;
Three, the calls finished in the unit interval of statistical service control module can obtain service feature.
Wherein the generation rule of call data can be following three kinds of forms:
1) sequential loop incremental manner: definition minimum value, maximum, call data are from minimum value, and order increases progressively, and after maximum, again from minimum value, can circulate always.
2) interval interior random fashion: define a minimum value and peaked interval, call data are the random number in this interval.
3) file reading manner:, as a record row call data of all-calls are preserved hereof with the call data of a calling, during test from file order reading and recording row obtain call data.
Call flow script grammer is as follows:
1) definition type of call;
2) each step during definition is called out: the value of entity (SSP or SCP etc.), control time, dialogue primitive, composition primitive, operation or mistake and parameter thereof is initiated in definition respectively;
Call flow script grammer specific implementation method is:
BEGIN CALLTYPE INAP/CAP/MAP/CDMA} ∥ type of call:fixed network, G net, C net STEPBEGIN SSP|SCP} control time (number of seconds) ∥ SSP represent by SSP be dealt into the disappearing of SCP<!--SIPO<DP n=" 3 "〉--〉<dp n=" d3 "/breath, SCP represent by SCP be dealt into the message TCD dialogue primitive TCC composition primitive INAP operation of SSP or this step of mistake title ∥ be SSP when initiating can by following form to the parameter assignment of operation or mistake operation or mistake be several=value ... ... ∥ such as this step dialogue primitive can list respectively with a plurality of composition primitive that TCC composition primitive INAP operation or mistake title ∥ should go on foot when initiating into SSP can be by following form to operating or parameter assignment { operating or error parameter name=value ... } STEPEND STEPBEGIN { SSP|SCP} control time (number of seconds) ... STEPEND ... END of mistake
To test 200 service features as example, the call data rule is selected the circulation incremental manner during test, and rule definition is as follows:
1) definition call data generating mode is the circulation incremental manner
2) definition call data processing minimum value is " 1 "
3) definition call data processing maximum is " 999999 "
4) definition call data increment value is " 1 "
5) the definition service key is " 200 "
6) definition calling number create-rule is " 075589%06d "
7) the definition service access code is " 200 "
8) the definition voice choose literary composition to be " 1 "
9) definition card number create-rule is " 56501%06d "
10) the definition password adopts fixed value " 1234 "
11) definition called number create-rule is " 01088%06d "
The specific implementation method is:
DataMode=1 ∥ call data generating mode
Startnumber=1 ∥ call data are handled minimum value
Endnumber=999999 ∥ call data are handled maximum
IncreaseNumber=1 ∥ call data increment value
CallingNumber=075589%06d ∥ calling number
CalledNumber=200 ∥ service access code: 200
Pcinfo_1=1 ∥ voice selecting: choose literary composition
Pcinfo_2=56501%06d ∥ card number create-rule
Pcinfo_3=1234 ∥ password adopts fixed value: 1234
Pcinfo_4=01088%06d ∥ called number create-rule
The call flow script describing is as follows:
1) definition is called out and is the fixed network type of call
2) definition is called out and is started, this step is initiated by SSP, dialogue primitive is " tc_begin ", composition primitive is " tc_invoke ", be operating as " IDP ", three parameters are with in this operation: service key, calling number, service access code, their value are respectively by service key, calling number create-rule, service access code decision in the call data rule
3) define system playback prompting user selects speech category and collects the digits, and this step is initiated by SCP, and dialogue primitive is " tc_continue2 ", and composition primitive is " tc_invoke ", is operating as " PC "
4) the definition user selects speech category, and this step is initiated by SSP, and dialogue primitive is " tc_continue2 ", composition primitive is " tc_resulet_l ", be operating as " PC ", this operation band parameter " result collects the digits ", its value is by the voice definitional part decision of call data create-rule
5) define system playback prompting user imports card number and collects the digits, and this step is initiated by SCP, and dialogue primitive is " tc_continue2 ", and composition primitive is " tc_invoke ", is operating as " PC "
6) the definition user imports card number, and this step is initiated by SSP, and dialogue primitive is " tc_continue2 ", composition primitive is " tc_resulet_l ", be operating as " PC ", this operation band parameter " result collects the digits ", its value is partly determined by the card number create-rule of call data create-rule
7) the define system playback is pointed out user's input card password and is collected the digits, and this step is initiated by SCP, and dialogue primitive is " tc_continue2 ", and composition primitive is " tc_invoke ", is operating as " PC "
8) definition user input card password, this step is initiated by SSP, and dialogue primitive is " tc_continue2 ", composition primitive is " tc_resulet_l ", be operating as " PC ", this operation band parameter " result collects the digits ", its value is partly determined by the password create-rule of call data create-rule
9) define system playback prompting user imports called number and collects the digits, and this step is initiated by SCP, and dialogue primitive is " tc_continue2 ", and composition primitive is " tc_invoke ", is operating as " PC "
10) the definition user imports called number, and this step is initiated by SSP, and dialogue primitive is " tc_continue2 ", composition primitive is " tc_resulet_l ", be operating as " PC ", this operation band parameter " result collects the digits ", its value is partly determined by the called number create-rule of call data create-rule
11) define system is connected called, user and is begun conversation, and this step is initiated by SCP, and dialogue primitive is " tc_continue2 ", and composition primitive is " tc_invoke ", is operating as " CONNECT "
12) The Calling Party Hooks On finishes conversation in definition, and this step is initiated by SSP, and dialogue primitive is " tc_continue2 ", and composition primitive is " tc_invoke ", is operating as " ERB "
13) define system call release, this step is initiated by SCP, and dialogue primitive is " tc_continuc2 ", and composition primitive is " tc_invoke ", is operating as " RC "
The specific implementation method is:
BEGIN CALLTYPE INAP ∥ fixed network type of call STEPBEGIN SSP TCD tc_begin TCC tc_invoke INAP IDP { Servicekey=200 ∥ service key CallingNumber=075532870011 ∥ calling number CalledNumber=200 ∥ service access code } STEPEND STEPBEGIN SCP TCD tc_continue1 TCC tc_invoke<!--SIPO<DP n=" 6 "〉--〉<dp n=" d6 "/INAP RRBE STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP CTR STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP PC STEPEND STEPBEGIN SSP TCD tc_continue2 TCC tc_resulet_l INAP PC { Pcinfo=1 ∥ selects Chinese } STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP PC STEPEND STEPBEGIN SSP TCD tc_continue2 TCC tc_resulet_l INAP PC { Pcinfo=56501233456 ∥ enters card number } STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP PC STEPEND STEPBEGIN SSP<!--SIPO<DP n=" 7 "〉--〉<dp n=" d7 "/TCD tc_continue2 TCC tc_resulet_l INAP PC { Pcinfo=1234 ∥ input card password } STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP PC STEPEND STEPBEGIN SSP TCD tc_continue2 TCC tc_resulet_l INAP PC { Pcinfo=01088880001 ∥ input is called } STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP DFC STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP AC STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP RRBE STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP CONNECT ∥ conversation carries out<!--SIPO<DP n=" 8 "〉--〉<dp n=" d8 "/STEPEND STEPBEGIN SSP WTIME 120 TCD tc_continue2 TCC tc_invoke INAP ACR ∥ conversation charging STEPEND STEPBEGIN SSP TCD tc_continue2 TCC tc_invoke INAP ERB { The Calling Party Hooks On for DP=9/1 ∥ } STEPEND STEPBEGIN SCP TCD tc_continue2 TCC tc_invoke INAP RC ∥ call release STEPEND END after 120 seconds
Can generate the call data of the 1st calling according to the data create-rule in this example: calling number is that " 1234 ", called number be " 01088000001 " for " Chinese ", card number for " 56501000001 ", clip pin for " 200 ", speech category for " 075589000001 ", access code; The calling number of call data and access code will be replaced the value of calling number and access code in the call flow respectively, the speech category of call data, card number, clip pin and called number will be replaced the value of first to the 4th Pcinfo in the call flow in order respectively, by that analogy, the call data that produce other calling reach and combine with call flow, produce each concrete calling at last.
Can use networking diagram as shown in Figure 2 during specific implementation, test macro is divided into calls out trigger module and call processing module, call out trigger module and read in the data that the call data create-rule generates a calling automatically, and call data and call notification are sent to call processing module simultaneously, the corresponding call flow of namely auditing after call processing module has notice, make a call in conjunction with the message control module of call data to SCP, and according to the call flow of script describing automatically with SCP execution interacting message, until finish this calling.