CN101610319B - Information recording and statistical method, information recording and statistical device - Google Patents

Information recording and statistical method, information recording and statistical device Download PDF

Info

Publication number
CN101610319B
CN101610319B CN2008101151249A CN200810115124A CN101610319B CN 101610319 B CN101610319 B CN 101610319B CN 2008101151249 A CN2008101151249 A CN 2008101151249A CN 200810115124 A CN200810115124 A CN 200810115124A CN 101610319 B CN101610319 B CN 101610319B
Authority
CN
China
Prior art keywords
information
statistics
register
register system
recorded
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.)
Active
Application number
CN2008101151249A
Other languages
Chinese (zh)
Other versions
CN101610319A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN2008101151249A priority Critical patent/CN101610319B/en
Publication of CN101610319A publication Critical patent/CN101610319A/en
Application granted granted Critical
Publication of CN101610319B publication Critical patent/CN101610319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides an information recording and statistical method and an information recording and statistical device, and belongs to the technical field of communication and information processing. The information recording method comprises the following steps: setting at least two recording systems which comprise a first recording system provided with a reserved storage space used for storing statistical results of information recorded in other recording systems; setting a corresponding relation of the at least two recording systems and a type of sub information in the information to be recorded; and receiving the formation to be recorded, and recording the sub information in the information to be recorded to the corresponding at least two recording systems respectively according to the type of the sub information in the information to be recorded and the corresponding relation. By storing the statistical results of the information which is in other recording systems in at least one recording system, the repeated statistics for the information can be avoided so as to improve the efficiency of information statistical work.

Description

Recording of information, statistical method and recording of information, statistic device
Technical field
The present invention relates to the command, control, communications, and information processing technology field, relate in particular to a kind of recording of information, statistical method and recording of information, statistic device.
Background technology
GSM is being carried out in the automatic test calls; Can produce a large amount of information of dialing; This is dialed information and not only comprises overall informations such as test case title, time of implementation, calling number and called number; Also comprise the average information that produces in dialing each time, for example signaling data and business datum.
The information that in communication system or dependence test system, needs record communication system inside and each interface; If but information such as test case title, time of implementation, calling number, called number, signaling data and business datum are all recorded in the register system; Then after accomplishing all recording of informations; Cause certain difficulty can for retrieval and follow-up statistics, and for the business of business datum much larger than signaling data, this recording mode also can cause the confusion of information organization; Increase the workload of register system, also can increase the workload of follow-up statistical information in addition.
Existing communication system and communication test system also generally separate record with various information according to certain rule; As overall information being recorded in the register system; And details are recorded in another register system; Also can signaling data be recorded in the register system, and business datum is recorded in the another one register system.But behind the unpack record; When Information Statistics, then need all add up, and possibly add up repeatedly the information in some register system to the information in each register system; The unavoidable like this phenomenon that can duplicate statistics has reduced the efficient of statistical work.
Summary of the invention
The purpose of embodiments of the invention provides a kind of recording of information method and device; Through the statistics of recorded information in other register systems of storage at least one register system; Can avoid the statistics that repeats, thereby improve the efficient of statistical work information.
Another purpose of embodiments of the invention provides a kind of statistical method and device of information, stores the register system of other register system statisticses through statistics, avoids the statistics that repeats to information, has improved the efficient of statistical work.
In order to achieve the above object, embodiments of the invention provide a kind of recording of information method, and said recording method comprises:
At least two register systems are set, and said at least two register systems comprise first register system that is provided with reserved storage space, and said reserved storage space is used for storing other register systems statistics of recorded information;
Said at least two register systems and the corresponding relation of treating recorded information neutron type of info are set;
Recorded information is treated in reception, and according to said recorded information neutron type of info and the said corresponding relation treated, treats that with said sub-information in the recorded information records respectively in corresponding said two register systems at least.
Preferably, said method also comprises: what said first register system was set is added up priority.
Preferably, be associated through identical said sub-information between institute's information recorded in said at least two register systems.
Preferably, saidly treat that the sub-type of info in the recorded information is divided into overall information and details, said at least two register systems comprise first register system and second register system, and the step of said method specifically comprises:
In said first register system, said reserved storage space is set, said reserved storage space is used for storing the said statistics of the said second register system information;
Set up first corresponding relation of said first register system and said overall information, and set up second corresponding relation of said second register system and said details;
According to said first corresponding relation, the said overall information that receives is recorded in said first register system, according to said second corresponding relation, the said details that receive are recorded in said second register system.
Preferably, said sub-information comprises procedure information, and said method also comprises: after in said second register system, having write down complete procedure information, finish sign End being provided with at last of said procedure information.
Embodiments of the invention also provide a kind of statistical method of information; Be used for obtaining the statistics of recorded information at least two register systems; Record the sub-information in the recorded information at least in said two register systems respectively; Said at least two register systems comprise first register system that is provided with reserved storage space, and said reserved storage space is used for storing other register systems statistics of recorded information; Said statistical method comprises:
Detect in said first register system in the reserved storage space whether said statistics is arranged, if do not have, then add up in other register systems recorded information, obtain statistics;
The said statistics that obtains is recorded in the reserved storage space in said first register system.
Preferably, the sub-information in the said recorded information comprises procedure information, and the step of said acquisition statistics specifically comprises:
Judge whether said procedure information is correct, if correct, said statistics is successful Success; Otherwise said statistics is failure Failed.
Preferably, the said step that the statistics that obtains is recorded in the reserved storage space in said first register system specifically comprises:
Judge whether the said procedure information in said other register systems comprises end sign End, if the statistics that obtains is recorded in the reserved storage space in said first register system.
Preferably, said statistical method also comprises:
Judging whether recorded information in said other register systems adds up finishes, if finish the statistics flow process; Otherwise, add up next bar recorded information in said other register systems.
Preferably, after the said end statistics flow process, said method also comprises:
The function of deriving the statistics form is packaged into the TCL order, exports said statistics form automatically.
Embodiments of the invention also provide a kind of recording of information device, and said tape deck comprises:
First is provided with module, is used at least one register system of said at least two register systems, reserved storage space being set, and said reserved storage space is used for storing the statistics of other register system information;
Set up module, be used to set up the corresponding relation of said at least two register systems and said information;
Logging modle is used for reception information, and according to the said said corresponding relation of setting up module foundation, the said information that receives is recorded in said two register systems at least.
Embodiments of the invention also provide a kind of statistic device of information; Be used at least two register system statistical informations; Said at least two register systems comprise first register system that is provided with reserved storage space; Said reserved storage space is used for storing other register systems statistics of recorded information, and said statistic device comprises:
Detection module is used for detecting in the said first register system reserved storage space whether said statistics is arranged, if do not have, then adds up in other register systems recorded information, obtains statistics;
Second logging modle is used for the said statistics that obtains is recorded in the reserved storage space of said first register system.
A technical scheme in the technique scheme has following beneficial effect: record respectively at least two register systems through treating recorded information; Because with the unpack record; Made things convenient for the organization work of information; And the statistics of at least one register system, storing other recording system informations, can avoid the statistics that repeats to information, improved the efficient of Information Statistics work.
Description of drawings
Fig. 1 is a recording of information method flow diagram in the embodiments of the invention;
Fig. 2 is a recording of information device block diagram in the embodiments of the invention;
Fig. 3 is the statistical method flow chart one of information in the embodiments of the invention;
Fig. 4 is the statistical method flowchart 2 of information in the embodiments of the invention;
Fig. 5 is the statistic device block diagram of information in the embodiments of the invention;
Fig. 6 is the method flow diagram of deriving form in the embodiments of the invention automatically.
Embodiment
In an embodiment of the present invention; Through treating that information recorded records respectively at least two register systems; And at least one register system reserved storage space is set therein, this reserved storage space is used for storing other register system statistics of recorded information.When needs when recorded information is added up, can be only the register system of the statistics that stores other register systems be added up, obtain the statistics of recorded information, avoided the statistics that repeats to information.And for the statistics that obtains is exported automatically, can in the service scenario of carrying out statistics, add the order of automatic report generation, can automatic report generation when business is finished.
The process of present embodiment can be broadly divided into the statistics stage of recording of information stage, information and the derivation stage of information.For the ease of understanding, below above-mentioned three phases is divided into three embodiment and specifies.
Embodiment one
Embodiments of the invention provide a kind of recording of information method; Through at least one register system at least two register systems a reserved storage space being set, this reserved storage space is used for storing other register system statistics of recorded information; And set up these at least two register systems and treat the corresponding relation of recorded information neutron information type; Then, according to this corresponding relation, the sub-information in the recorded information of treating is recorded respectively in these two register systems at least.
Need to prove; Sub-information above-mentioned can be regarded as a plurality of particular contents of treating in the recorded information; For example this treats recorded information for dialing information, and just this dials the one or more particular contents in Business Name, calling number, called number and the time of implementation etc. in the information to sub-information at this moment.Owing to adopt the sub-information of treating recorded information that will receive to record respectively in the different register systems according to type; Thereby after can being convenient to this information is organized; Reduce the risk of makeing mistakes; Simultaneously, also the statistics of recorded information in other register systems of storage at least one register system therein can be avoided the statistics that repeats to information.
In order to make those skilled in the art better understand technical scheme of the present invention, embodiments of the invention are further specified below in conjunction with accompanying drawing and execution mode.
As shown in Figure 1, be recording of information method flow diagram in the embodiments of the invention, by knowing that this recording method comprises the steps: among the figure
Step 101, at least two register systems of setting, these at least two register systems comprise first register system that is provided with reserved storage space, and this reserved storage space is used for storing other register systems statistics of recorded information, and execution in step 102 then;
At first need be provided with can recorded information a plurality of register systems, this register system can adopt the tables of data in the database, the concrete quantity of this register system can be provided with according to actual conditions.And at least one need be set in these a plurality of register systems can store in other register system the register system of the statistics of recorded information; One reserved storage space just is set at least one register system, and this reserved storage space is used for storing other register system statistics of recorded information.
After executing this step; Perhaps after executing the recording of information flow process; Can the priority of being added up of the register system that is provided with reserved storage space be turned up full blast; This is added up priority is exactly the statistics order of this register system when carrying out Information Statistics, should be turned up full blast by statistics priority, and just the recorded information in this register system is added up at first.Owing to will be provided with being turned up full blast of register system of reserved storage space by statistics priority, therefore can obtain the statistics of recorded information through only adding up this register system, avoided the statistics once more of recorded information in other register systems.
In the present embodiment, can register system be set to first register system and second register system, therefore, can in first register system, reserved storage space be set, this reserved storage space is used for storing second register system statistics of recorded information.In order to make the user obtain all statisticses of recorded information through only adding up first register system; At this moment; Can the priority of being added up of first register system be arranged to highest ranking, just first is added up this first register system when the statistical work of the information of carrying out.
In first time recording of information process; Possibly there is not statistics in this reserved storage space; This statistics can obtain in the process of statistics, and the statistics that obtains is recorded this reserved storage space, and the process of this storage is with introducing in the content below.
Step 102, these at least two register systems are set and treat the corresponding relation of recorded information neutron information type, execution in step 103 then;
In this step; The sub-information in the recorded information of treating is equivalent to treat the particular content in the recorded information; For example treat recorded information for dialing information, this moment, this treated that just this dials the particular contents such as calling number, called number, time of implementation and procedure information in the information for sub-information in the recorded information.Can be divided into overall information this moment with calling number, called number and time of implementation, and calling number, time of implementation and procedure information are divided into details, and wherein details contain much information with respect to overall information.Just should sub-type of info be divided into overall information and details.
Can know by above-mentioned two steps, when comprising first register system and second register system, the corresponding relation of the overall information and first register system can be set, the corresponding relation of the details and second register system is set as if register system.Equally, the corresponding relation of the overall information and second register system can be set also, the corresponding relation of the details and first register system is set.In general, in order to reduce the workload of statistics, overall information and the register system that is provided with reserved storage space are set up corresponding relation.
This treats that the sub-information type of recorded information is not limited to and is divided into overall information and details that can be divided into important information and general information certainly, present embodiment does not limit the concrete manifestation form of this sub-information type yet.
Recorded information is treated in step 103, reception, and according to treating recorded information neutron type of info and corresponding relation, the sub-information in the recorded information of treating is recorded respectively in two corresponding register systems at least.
For the ease of follow-up organization work, can the sub-information in the recorded information of treating be recorded in the different register systems problem that the information organization of having avoided all information all to record causing in the register system is chaotic respectively to information.
According to the corresponding relation that is provided with in the step 102; The sub-information in the recorded information of treating that receives is recorded respectively in the corresponding register system; For example can overall information (for example: calling number, called number and time of implementation) be recorded first register system, and details (for example: calling number, time of implementation and procedure information) are recorded second register system.
Information with record mobile phone dialing in automatic test calls is example below; Introduce recording of information method embodiment of the present invention; Same this recording method also is useful in other memory technologies and the information processing, in the example below, only introduces the situation that is provided with first register system and second register system; Certainly other are provided with the situation of a plurality of register systems, also can implement with reference to following embodiment.
Equally; First register system is set among the embodiment below is used to write down overall information; And in this first register system, reserved storage space is set; The sub-information that belongs to overall information comprises: statistics of recorded information etc. in Business Name, time of implementation, calling number, called number, use-case title and second register system; Just can be through the overall content of a mobile phone dialing of this overall information record, other guide can deleted or increase to this sub-information according to actual needs.
In automatic test calls to dialing in the professional record; Two use-cases (Use Case) are for example arranged; Wherein use-case 1 carries out twice MMC (move and dial mobile calling) business; This use-case title can be expressed as CASE1_MMC_2, and use-case 2 carries out twice Download (download) business, and this use-case title can be expressed as CASE2_download.At this moment, each the bar information that in first register system, writes down all comprises Business Name, time of implementation, calling number, called number, use-case title and statistics sub-information such as (being stored in the reserved storage space), and particular content is following:
Table one, first register system
Business Name Time of implementation (year-moon-Ri hour: minute) Calling number Called number The use-case title Statistics
MMC 2008-5-2110:42 ?13401000XXX ?13401003XXX CASE1_MMC_2 ?
MMC 2008-5-2110:47 ?13401000XXX ?13401003XXX CASE1_MMC_2 ?
Download 2008-5-2110:52 ?13401000XXX ? CASE2_download ?
Download 2008-5-2110:57 ?13401000XXX ? CASE2_download ?
Can know by last table; This first register system has write down four information; Wherein preceding two information have write down on 2008-5-2110:42 and two time points of 2008-5-2110:47, carry out the professional content of MMC that 13401000XXX (calling number) dials 13401003XXX (called number) respectively; Two overall informations in back have write down on 2008-5-2110:52 and two time points of 2008-5-2110:57, carry out the professional content of Download of 13401000XXX (calling number) respectively.
Above by the agency of first register system, introduce second register system below more in detail.Pass through identical sub-associating information between this first register system and second register system in order to make, the sub-information of information should comprise at least in second register system: the sub-information of one or more in Business Name, time of implementation and the calling number.
In the present embodiment; Second register system is set is used to write down details, the sub-information that belongs to details comprises: Business Name, time of implementation, calling number, flow process index (promptly which bar signaling process is sign be), procedure information (content of information, and end sign on after having write down a flow process, composing; Like " End ") and time migration (beginning with business is datum mark; Send or receive the time point of certain bar signaling, be mainly used in the record of time delay, the unit millisecond) etc.All corresponding signaling of each bar information in second register system is because the information of once dialing can corresponding many signalings, therefore each bar information in first system and many associating informations in the second register system.At this moment, each the bar information that in second register system, writes down all comprises: sub-information such as Business Name, time of implementation, calling number, flow process index and procedure information, in the second concrete register system recorded information the contents are as follows the table shown in:
Table two, second register system
Figure S2008101151249D00081
Figure S2008101151249D00091
With flow process index in the Download business 1~3 is example brief account table two; 13401000XXX on the 2008-5-2110:52 time point (calling number) has carried out the business of Download; And these professional details of this Download in table two, have been write down; These details are divided into three signalings, and article one signaling is " Start connect Server ", and the second signaling is " Connect Server Failed "; Article three, for finishing sign " End ", and three signalings in the above-mentioned table two and the last item Download associating information in the table one
Above-mentioned " End " is the end sign that in procedure information, is provided with in second register system, and it is to provide convenience for statistical work that this end sign is set.Mainly be to real-time statistics; Be example also with record mobile phone dialing information in the automatic test calls; For example once dialing business need carry out for 30 seconds; And if statistics is upgraded once per 1 second, will add up for the information (in fact being exactly the ongoing business of dialing) that does not finish sign always, so also just can reach real-time statistics effect.In statistical work; Have only and once to dial end; In second register system, add and finish sign, just statistics is write in first register system during statistics, thereby just can no longer add up later the details of dialing specifically (i.e. information recorded in second register system).
According to above-described first register system and second register system, in practical implementation, can this register system be arranged to master meter and sublist in the Database Systems respectively.Wherein, Field in the master meter can be set to: Business Name; For example: the circuit domain business title can comprise: MMC, MOC (calling that the mobile subscriber initiates), VP (visual telephone) etc.; And the packet switch domain service title can comprise: the sublist statistics of PDP (Packet Data Protocol, data pack protocol), time of implementation, calling number, called number (only effective to circuit domain business, packet switch domain service is empty), use-case title and reservation etc.
Field in the sublist comprises: Business Name, time of implementation, calling number, flow process index, procedure information (as article one signaling RRC CONNECTION REQUEST of the rrc layer of eating dishes without rice or wine; And finish sign on after having write down a flow process, composing; Like " End "), time migration etc.; And master meter and sublist can be passed through Business Name, time of implementation; In the contents such as calling number one or more carry out association, for example just can distinguish different service under the use-case through above-mentioned three kinds of relevances, the situation that perhaps distinct device is carried out at different time under business.If but when only carrying out association through Business Name; After in first register system, obtaining a certain Business Name; When inquiring about second register system according to this Business Name; With obtaining this professional all recorded information down, promptly possibly comprise distinct device the different times of implementation by information recorded (as long as Business Name is identical), this association of employing also is feasible between master meter and the sublist certainly.
In order to realize said method, other embodiment of the present invention also provide a kind of recording of information device, describe below in conjunction with Fig. 2.What need at first explanation in addition is; Because following embodiment is in order to realize the method for previous embodiment, so this module all is to establish for each step that realizes preceding method, but the present invention is not limited to following embodiment; Any device of said method of can realizing all should comprise in protection scope of the present invention; And in the following description, the content identical with preceding method omitted at this, to practice thrift length.
Referring to Fig. 2, be recording of information device in the embodiments of the invention, by knowing that this tape deck 20 comprises among the figure:
First is provided with module 21, is used at least two register systems are set, and these at least two register systems comprise first register system that is provided with reserved storage space, and this reserved storage space is used for storing other register systems statistics of recorded information; Only introduce below with the situation of above-mentioned at least two register systems being arranged to first register system and second register system.At this moment; First is provided with module 21 can be provided with reserved storage space in first register system; Certainly also can in second register system, reserved storage space be set, perhaps in two register systems, reserved storage space be set all, this memory space is used for storing other register systems statistics of recorded information; In the process of recorded information; Can be emptyly in the memory space of this reservation, and this statistics can write this reserved storage space in follow-up statistical work, and this process is with introducing in the content below.
Set up module 22, the corresponding relation that is used to set up at least two register systems Yu treats recorded information neutron information type;
In the present embodiment, can adopt this sub-type of info to comprise the situation of overall information and details, this moment, this corresponding relation can be set to, first register system correspondence and the overall information, and second register system is to corresponding to details.
First logging modle 23 is used for receiving and treats recorded information, and treats that according to this recorded information neutron type of info and this set up the corresponding relation that module is set up, and the sub-information in the recorded information of treating is recorded respectively at least two register systems.
At this moment, just, overall information is recorded in first register system, and details are recorded in second register system,, help tissue information through with the unpack record according to setting up the corresponding relation that module is set up.
In another embodiment of the present invention, this tape deck 20 also comprises:
Priority is provided with module 24, is used to be provided with the quilt statistics priority of first register system.
Through this priority the quilt statistics priority that module 24 is provided with register system is set; Thereby can make that the register system (first register system) that is provided with reserved storage space can preferentially be added up; Thereby can effectively avoid repeating statistics, improve the efficient of statistical work.
In another embodiment of the present invention, this tape deck 20 also comprises:
Second is provided with module 25, is used for according to treating recorded information neutron type of info the number of at least two register systems being set.
This treats that recorded information neutron type of info comprises overall information above-mentioned and details; Also can be divided into important information and general information; Because the quantity of register system is set through this sub-type of info; Can make one type sub-information record in the register system, for follow-up information organization work is provided convenience.
Can know by technique scheme,, can avoid the statistics that repeats, thereby improve the efficient of Information Statistics work information through the statistics of information in other register systems of storage at least one register system.
Embodiment two
What the foregoing description one was introduced is a kind of recording of information method; Introduce a kind of statistical method of information again and again below in conjunction with embodiment; This statistical method can be used in the register system among the embodiment one recorded information add up; Therefore, but the description in the identical content reference implementation example one, this just no longer deposited stating.
As shown in Figure 3; Statistical method flow chart one for information in the embodiments of the invention; This method is used for the statistics at least two register system acquired informations, records the sub-information in the recorded information at least in these two register systems respectively, and wherein first register system is provided with reserved storage space at least two register systems; This reserved storage space is used for storing other register system information result, and concrete steps are following:
Do you step 301, judge in the reserved storage space in first register system that statistics is arranged? If have, then execution in step 302; Otherwise, execution in step 305;
Step 302, with the output of this statistics, execution in step 303 then;
At this moment, can the function of deriving the statistics form be packaged into the TCL order, therefore, can export this statistics form automatically.
Do you step 303, judge that recorded information in other register systems is added up and finish? If then finish to add up flow process; Otherwise, execution in step 304;
Next bar in step 304, statistics first register system is recorded information, and is return then to step 301;
Step 305, add up in other register systems recorded information, obtain statistics, execution in step 306 then;
If the sub-information in the recorded information comprises procedure information, need judge also then whether this procedure information is correct, if correct, this statistics is successful Success, otherwise this statistics is Failed.
Step 306, the statistics that obtains is recorded in the reserved storage space in first register system, return step 301 then.
Equally, if this sub-information comprises procedure information, need to judge whether comprise end sign End in the procedure information, explain then that as if comprising this flow process finishes, can record this statistics in the reserved storage space in first register system this moment this moment.
For the ease of understanding; Only comprise that with this register system the situation of first register system and two register systems of second register system is elaborated below; And in this first register system, reserved storage space is set, this memory space is used for storing the statistics of the second register system information.
The statistical method of information comprises: at first first register system is added up, in the inspection reserved storage space whether statistics is arranged, if having, then statistics is exported, and proceed the statistics of next bar information; Otherwise; To in second register system recorded information add up, if having information record end sign in second register system this moment, then statistics is recorded in first register system; Also there is not end of message sign like second register system; Then with statistics output, but statistics does not write first register system, adds up in first register system next bar recorded information then.As shown in Figure 4, be the statistical method flowchart 2 of information in the embodiments of the invention, concrete steps are following:
Recorded information in step 401, statistics first register system;
In conjunction with the description among the embodiment one; Write down overall information in first register system; And write down details in second register system, when only needing statistics for entire group information, then, only need the appearance of the recorded information in first register system is added up; And when the more detailed information of needs statistics, that just must statistics second register system.Only introduction needs the method for the more detailed information of statistics in the present embodiment.Owing to be provided with reserved storage space in first register system, the quilt statistics priority of this first register system is for the highest.
Each the bar information that writes down in first register system writes down in a certain order, for example can adopt the order of time, therefore, when statistics, also can add up in a certain order, for example adopts the order that is write down to add up.
Step 402, judge whether the reserved storage space in first register system stores the statistics of second recording system information, if having, execution in step 403, otherwise, execution in step 405;
Just whether detection record in first register system every has comprised the statistics of second recording system information in the recorded information; If comprise statistics; Then can this statistics be exported, thereby need not again the recorded information in second register system to be added up; Otherwise, also must add up the recorded information in second register system.
For the ease of understanding, be example with record mobile phone dialing information in the automatic test calls, information once dialed in an information record in first register system; Comprise the time of dialing, calling number, statistics etc., and in second register system corresponding signaling of information; Owing to once dial corresponding many signalings; Therefore many associating informations of information in first system and second register system, for these many signalings, this statistics be exactly this signaling process whether successfully; Like circuit domain business; Success just be recorded as " SUCCESS ", failed and just be recorded as " FAILED ", and possibly also will write down signaling process and go to which step at last for the situation of failure; Like packet switch domain service success just note Mean Speed, flank speed and minimum speed limit etc., failed and just be recorded as " FAILED ", possibly yet to write down the reason of failure.Certainly, this statistics can be provided with according to the needs of actual count.
Step 403, with the output of the statistics of second register system that writes down in first register system, execution in step 404 then.
Step 404, judge whether recorded information in first register system all adds up and finish, if the statistics flow process of information finishes; Otherwise, returning step 401, next bar in continuation statistics first register system is recorded information;
After this statistics derivation, then can finish the flow process of this statistical information.Same for the situation that is provided with a plurality of register systems, also can carry out the statistics of a plurality of register systems with reference to said method.
Recorded information in step 405, statistics second register system obtains statistics, and execution in step 406 then;
Owing to do not store in second register system statistics of recorded information in first register system, therefore need add up to the recorded information in second register system;
Do you step 406, judge to have in the procedure information in second register system and finish sign " End "? If have, then execution in step 407, otherwise, execution in step 408;
Step 407, statistics is stored in the reserved storage space in first register system, execution in step 409 then;
Step 408, with statistics output, execution in step 49 then;
Owing to do not finish sign " End ",, and needn't store in the reserved storage space therefore directly with this statistics output.
Step 409, judge whether recorded information in first register system adds up and finish, if the statistics flow process of information finishes; Otherwise return step 401, next bar in continuation statistics first register system is recorded information;
Introduce the flow process of the statistical method of this information below in conjunction with the table one among the embodiment one (first register system) and table two (second register system)., and be example with the statistics of use-case title in the present embodiment, and for circuit domain business statistics success rate, Mean Speed, flank speed and the minimum speed limit then downloaded for the packet switch domain service statistics.This method flow is specific as follows:
Step 501, at first inquire about in first register system use-case title of recorded information;
Inquire about first register system and obtain two use-case titles, CASE1_MMC_2 and CASE2_download;
Step 502, inquire about the recorded information in first register system, obtain the information of 2 MMC according to CASE1_MMC_2;
Step 503, read the reserved storage space that Business Name is article one information of MMC; If do not have statistics in the memory space of this reservation; Then in second register system, inquire about, find 11 of relevant informations according to Business Name, time of implementation and the calling number of this information;
Step 504, search to be provided with in the field of the procedure information in these 11 information and finish sign " End ", and operation flow is correct, then this professional execution result is " SUCCESS ";
Step 505, " SUCCESS " recorded in the reserved storage space in first register system as statistics, and number of success is counted 1;
Step 506, next bar recorded information that continues in statistics first register system; Promptly reading Business Name is the second information of MMC; There is not statistics in this reserved storage space; Just field is empty in the reserved storage space, inquires about second register system according to Business Name, time of implementation and the calling number of second information in first register system, obtains professional 5 the relevant information of MMC;
Step 506, the procedure information field of searching these 5 information are provided with and finish sign " End ", but operation flow is wrong, judge that this professional execution result is " Failed ", and last procedure information are " RBSetup ";
Step 507, in the reserved storage space of the second information of first register system, write down statistics " Failed:RB Setup ", and the frequency of failure is counted 1;
The implication of this statistics is: operation flow failure after carrying out RB Setup.
After the execution of step 507, after 2 Information Statistics under the use-case title CASE1_MMC_2 in first register system are intact, at this moment, continue the information of use-case title CASE2_download is added up;
Step 508, inquire about the information in first register system, obtain 2 of the information of Business Name Download according to use-case title CASE2_download;
Step 509, read reserved storage space in the 3rd information of first register system; If the field in this reserved storage space is empty; Then inquire about second register system according to Business Name (Download), time of implementation and the calling number of information in first register system, obtain 4 with the professional relevant information of Download;
Step 510, the field of searching the procedure information in these 4 information; Finish sign " End " record if be provided with; And Workflow messages is correct; The execution result of judging this operation flow is " SUCCESS ", and opens Mean Speed (total download/download time), flank speed (getting the maximum of each second data volume) and the minimum speed limit (getting the minimum value of each second data volume) that this file (writing down the data volume in each second in the file) calculates download according to the file address of depositing the data download amount that provides after " Data Path: ";
Step 511, if after downloading service finishes; Statistics is set in the reserved storage space of the 3rd information of first register system is " SUCCESS: Mean Speed XX; flank speed XX; minimum speed limit XX ", this content can need different forms according to the statistics of test, and the number of success meter is set to 1; If downloading service does not finish, just do not finish sign " End ", then statistics does not write first register system yet; Situation about having finished for downloading service in this example;
Step 512, next the bar information in statistics first register system that continues; Promptly read the 4th information of first register system; The field of the statistics in this reserved storage space is empty; Business Name (Download), time of implementation and calling number according to information in first register system are inquired about second register system, obtain 3 information;
Step 513, search not to be provided with in the field of the procedure information in these 3 information and finish sign " End ", promptly the Download business also finishes, and judge that this professional execution result is " Failed ", and flow process is " Connect Server Failed ";
Step 514, " FAILED:Connect Server Failed " recorded as statistics in the reserved storage space of the 4th recorded information of first register system;
After the execution of step 514, the reserved storage space of 4 information all records the statistics of second register system in first register system, in the time of need adding up second register system more later on, only needs from first register system, this statistics to be read.First system of statistics that records second register system is as follows:
First register system after table three, the renewal
Business Name Time of implementation (year-moon-Ri hour: minute) Calling number Called number The use-case title The statistics of second register system
MMC 2008-5-2110:42 13401000XXX 13401003XXX CASE1_MMC_2 SUCCESS
MMC 2008-5-2110:47 13401000XXX 13401003XXX CASE1_MMC_2 Failed:RB Setup
Download 2008-5-2110:52 13401000XXX ? CASE2_download SUCCESS: Mean Speed XX, flank speed XX, minimum speed limit XX
Download 2008-5-2110:57 13401000XXX ? CASE2_download FAILED: Connect Server Failed
In order to realize said method, other embodiment of the present invention also provide a kind of recording of information device, describe below in conjunction with Fig. 5.Referring to Fig. 5, this statistic device 50 comprises:
Detection module 51 is used for detecting in the said first register system reserved storage space whether said statistics is arranged, if do not have, then adds up in other register systems recorded information, obtains statistics;
Second logging modle 52 is used for the said statistics that obtains is recorded in the reserved storage space of said first register system.
Sub-information in the above-mentioned recorded information can comprise procedure information, and in another embodiment of the present invention, this statistic device 50 also comprises:
First judge module is used to judge whether this procedure information is correct, if statistics is successful Success, otherwise this statistics is failure Failed.
In another embodiment of the present invention, logging modle 52 also comprises:
First judging unit is used for judging whether the said procedure information of said other register systems comprises end sign End, if the statistics that obtains is recorded in the reserved storage space in said first register system.
In another embodiment of the present invention, this statistic device 50 also comprises:
Second judging unit, whether the recorded information that is used for judging said other register systems is added up and is finished, if finish the statistics flow process; Otherwise, add up next bar recorded information in said other register systems.
There is technique scheme to know, stores the register system of other register system statisticses, obtain the statistics of all information, can avoid the statistics that repeats, improve the efficient of statistical work information through statistics.
Embodiment three
Embodiments of the invention also provide a kind of method of automatic derivation form, can the form of the statistics that obtain with form be derived automatically.This method comprises: the function that will derive form is packaged into script command; In service scenario, add this script command that generates form; After business is finished, according to this script command automatic report generation.
The function of above-mentioned derivation form can realize through C language or C Plus Plus, the function of this derivation form is packaged into TCL (Tool Command Language, command lanuage) order after; This order of last adding at service scenario; After business executes, can carry out this order form is derived automatically, perhaps also can be in any time of service ending; The order of deriving form through input to derive automatically form; And can be according to the different needs of test, the band different parameters derives different forms neatly in order, as derives the form of a certain test case title or derive the form of a certain period time of implementation.
The concrete grammar that the function that C language or C Plus Plus are realized is packaged into the TCL order is a prior art, here just repeats no more.
Above-mentioned service scenario is exactly to be used for accomplishing professional script; As in embodiment one, describing two test cases are arranged; One of them use-case is for carrying out the MMC business 2 times, and another use-case is for carrying out downloading service 2 times, and service scenario promptly is to be used for accomplishing automatically the execution of these two use-cases.Through carrying out a script, comprise in this script and carry out professional script in the present embodiment, add the script of deriving form simultaneously, thereby after business is finished, can derive form automatically.
When the realization business is finished the automatic derivation in back form; Need business execution and form derivation be carried out on a uniform platform; Adopted in the present embodiment and on the TCL interpreter, carried out all orders, also can use other platform certainly, for example BASIC, Perl interpreter etc.
Be describe in detail the embodiment of this method of example with automatic test calls below.Referring to Fig. 6, for deriving the method flow diagram of form in the embodiments of the invention automatically, concrete steps comprise:
Step 601, the connection of obtaining database;
This database is meant and records database of information, can be ACCESS, SQLSERVER or ORACLE specifically, also the database of other except that these.
Obtain the connection of database; If databases such as ACCESS, SQL SERVER or ORACLE; The function or API (the application programming interface that connect database can be provided; Application programming interfaces) supply the user to connect database and use, so connected as long as the function that uses these databases to provide just can obtain data.
Step 602, the use-case title in database in the data query table;
Can pass through the use-case title in standard SQL sentence (like the select statement) the data query table; When being example with automatic test calls, this use-case title can adopt CASE1_MMC or the CASE2_download that mentions among the embodiment one.
Step 603, add up all the professional contents under this use-case title;
When the use-case name is called CASE1_MMC or CASE2_download; Business under this use-case title can be one or more in the business such as MMC, MOC, VP, PDP, Download, Upload; In this step; Just add up the content of above-mentioned business, this content possibly be all the elements, also possibly be the content after the user screens.
Step 604, judge whether business has traveled through; If then execution in step 605; Otherwise, return step 603, continue next business is added up;
Judge just whether all business have all added up.The concrete process that realizes this judgement can adopt program language, for example uses a for Do statement; Perhaps also can use a counter total professional number of record earlier, when business of every statistics, counter subtracts 1 then; Be kept to 0 up to counter, mean that then all business have all added up.
The title bar of step 605, drafting form is also filled statistical content, and execution in step 606 then;
The title bar here is test name, tester, testing time, test description and gauge outfit such as test case name, the number of calls, connection number of times, connects time delay, uploads the download Mean Speed, uploads and download peak rate etc., and statistical content is the content that obtains in the step 603.
Step 606, generate and derive this form.
The form of this form can adopt forms such as WORD, EXCEL, execute this step after, this flow process that derives form automatically just is through with.
All among the embodiment, this flow process that derives form automatically is packaged into a TCL order in the present invention, like Report, gets final product after in carrying out professional script, adding this Report order.
Introducing the script that relates in the above-mentioned flow process below again, is example with automatic test calls still, and one of them use-case is for carrying out the MMC business 2 times, and another use-case is an example for carrying out 2 downloading services, and script format is:
# is provided with the use-case title of use-case 1
Set?casename?CASE1_MMC_2
# carries out the MMC business 10 times, caller 13401000XXX, and being called out the numbers is 13401003XXX, keeps 60 seconds
for{seti1}{$i<10}{incri}{
MMC?13401000XXX?13401000XXX?60}
# derives the form that use-case 1 is carried out
Report$casename
# is provided with the use-case title of use-case 2
Set?casename?CASE2_download
# carries out the Download business 2 times, and the execution terminal number is 13401000XXX, downloads to continue 600 seconds
for{seti1}{$i<2}{incri}{
Download?13401000XXX?600}
# derives the form that use-case 2 is carried out
Report$casename
After executing above-mentioned script, derive the form of this use-case title automatically, this form comprises CASE1_MMC_2 test report and CASE2_download test report, and the form concrete form is following:
1) CASE1_MMC_2 test report
Table four, MMC business information
Dial number of times Connect number of times Call completing rate Number of dropped calls Cutting off rate Average delay
2 1 50.0% 0 0.0% 11812ms
Table five, MMC failed configuration details
Last flow process during failure Number of times (adding up to: 1 time)
RRC?Con?Req 0
RRC?Con?Setup 0
RRC?Con?Setup?Complete 0
RB?Setup 1
RB?Setup?Complete 0
Connect 0
Connect?ACK 0
disconnect 0
release 0
Release?complete 0
2) CASE2_download test report
Table six, Download business information
Time started Termination number Execution result Retention time Mean Speed Flank speed Minimum speed limit
2008-5-21 10:52:10 13401000XXX SUCCESS 43s 28.6Kbps 41.0Kbps 16.4Kbps
2008-5-21 10:57:10 13401000XXX FAILED: Connect Server Failed _ _ _ ?_
The script of explanation is derived form one by one according to the use-case title above; Can certainly derive form on a time period; The time of promptly in script, noting professional beginning and finishing, behind form export (swf) command Report, wear last time started and concluding time, with the form of deriving this time period.This script principal mode is:
# obtains the current time in system and composes and give variable beginTime
Set?beginTime[NowTime]
# carries out the MMC business 10 times, caller 13401000790, and being called out the numbers is 13401003017, keeps 60 seconds
for{seti1}{$i<10}{incri}{
MMC?13401000XXX?13401003XXX?60}
# carries out the Download business 2 times, and the execution terminal number is 13401000XXX, downloads to continue 600 seconds
for{seti1}{$i<2}{incri}{
download?13401000XXX?600}
# obtains the current time in system and composes and give variable endTime
Set?endTime[NowTime]
# derives word form form on a time period, and leaves under the d packing catalogue, and called after test.docReport$beginTime$endTime " d:/test.doc "
After carrying out this script, will execute the back in all business and derive form automatically, its form is:
Test report (2008-5-2110:41:10~2008-5-2111:02:10)
Table seven, MMC business information
Dial number of times Connect number of times Call completing rate Number of dropped calls Cutting off rate Average delay
2 1 50.0% 0 0.0% 11812ms
Table eight, MMC service fail details
Last flow process during failure Number of times (adding up to: 1 time)
RRC?Con?Req 0
RRC?Con?Setup 0
RRC?Con?Setup?Complete 0
RB?Setup 1
RB?Setup?Complete 0
Connect 0
Connect?ACK 0
disconnect 0
release 0
Release?complete 0
Table nine, Download business information
Time started Termination number Execution result Retention time Mean Speed Flank speed Minimum speed limit
2008-5-21 10:52:10 13401000790 SUCCESS 43s 28.6Kbps 41.0Kbps 16.4Kbps
2008-5-21 10:57:10 13401000790 FAILED: Connect Server ?_ ?_ ?_ ?_
? ? Failed ? ? ? ?
To import all the professional implementation status in this time period in the report file this moment according to the time period.
Can know by above-mentioned technical scheme,, reduce the influence of manual operation, further improve the automaticity that generates form through in carrying out script, adding the order that generates form.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (11)

1. a recording of information method is characterized in that, said recording method comprises:
At least two register systems are set, and said at least two register systems comprise first register system that is provided with reserved storage space, and said reserved storage space is used for storing other register systems statistics of recorded information;
Said at least two register systems and the corresponding relation of treating recorded information neutron type of info are set, are associated through identical said sub-information between institute's information recorded in said at least two register systems;
Recorded information is treated in reception, and according to said recorded information neutron type of info and the said corresponding relation treated, treats that with said sub-information in the recorded information records respectively in corresponding said two register systems at least.
2. recording method according to claim 1 is characterized in that, said method also comprises:
What said first register system was set is added up priority.
3. recording method according to claim 1; It is characterized in that; Saidly treat that the sub-type of info in the recorded information is divided into overall information and details, said at least two register systems comprise first register system and second register system, and the step of said method specifically comprises:
In said first register system, said reserved storage space is set, said reserved storage space is used for storing the said statistics of the said second register system information;
Set up first corresponding relation of said first register system and said overall information, and set up second corresponding relation of said second register system and said details;
According to said first corresponding relation, the said overall information that receives is recorded in said first register system, according to said second corresponding relation, the said details that receive are recorded in said second register system.
4. recording method according to claim 3 is characterized in that, said sub-information comprises procedure information, and said method also comprises:
After in said second register system, having write down complete procedure information, finish sign End being provided with at last of said procedure information.
5. the statistical method of an information; Based on the described information recording method of one of claim 1~4; Be used for obtaining the statistics of recorded information, record the sub-information in the recorded information at least in said two register systems respectively, it is characterized in that at least two register systems; Said at least two register systems comprise first register system that is provided with reserved storage space, and said reserved storage space is used for storing other register systems statistics of recorded information; Said statistical method comprises:
Detect in said first register system in the reserved storage space whether said statistics is arranged, if do not have, then add up in other register systems recorded information, obtain statistics;
The said statistics that obtains is recorded in the reserved storage space in said first register system.
6. statistical method according to claim 5 is characterized in that, the sub-information in the said recorded information comprises procedure information, and the step of said acquisition statistics specifically comprises:
Judge whether said procedure information is correct, if correct, said statistics is successful Success; Otherwise said statistics is failure Failed.
7. statistical method according to claim 6 is characterized in that, the said step that the statistics that obtains is recorded in the reserved storage space in said first register system specifically comprises:
Judge whether the said procedure information in said other register systems comprises end sign End, if the statistics that obtains is recorded in the reserved storage space in said first register system.
8. statistical method according to claim 7 is characterized in that, said statistical method also comprises:
Judging whether recorded information in said other register systems adds up finishes, if finish the statistics flow process; Otherwise, add up next bar recorded information in said other register systems.
9. statistical method according to claim 8 is characterized in that, after the said end statistics flow process, said method also comprises:
The function of deriving the statistics form is packaged into the TCL order, exports said statistics form automatically.
10. a recording of information device is characterized in that, said tape deck comprises:
First is provided with module, is used at least one register system of at least two register systems, reserved storage space being set, and said reserved storage space is used for storing the statistics of other register system information;
Set up module, the corresponding relation that is used to set up said at least two register systems Yu treats recorded information neutron information institute information recorded between through identical said sub-information is associated in said two register systems at least;
Logging modle is used for receiving and treats recorded information, and sets up the said corresponding relation that module is set up according to said, saidly treats that the sub-information in the recorded information records respectively in corresponding said two register systems at least with what receive.
11. the statistic device of an information; Based on the described information recording method of one of claim 1~4; Be used for it is characterized in that at least two register system statistical informations said at least two register systems comprise first register system that is provided with reserved storage space; Said reserved storage space is used for storing other register systems statistics of recorded information, and said statistic device comprises:
Detection module is used for detecting in the said first register system reserved storage space whether said statistics is arranged, if do not have, then adds up in other register systems recorded information, obtains statistics;
Logging modle is used for the said statistics that obtains is recorded in the reserved storage space of said first register system.
CN2008101151249A 2008-06-17 2008-06-17 Information recording and statistical method, information recording and statistical device Active CN101610319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101151249A CN101610319B (en) 2008-06-17 2008-06-17 Information recording and statistical method, information recording and statistical device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101151249A CN101610319B (en) 2008-06-17 2008-06-17 Information recording and statistical method, information recording and statistical device

Publications (2)

Publication Number Publication Date
CN101610319A CN101610319A (en) 2009-12-23
CN101610319B true CN101610319B (en) 2012-08-01

Family

ID=41483892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101151249A Active CN101610319B (en) 2008-06-17 2008-06-17 Information recording and statistical method, information recording and statistical device

Country Status (1)

Country Link
CN (1) CN101610319B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113297138A (en) * 2019-06-11 2021-08-24 武汉深之度科技有限公司 Index establishing method, data query method and computing device
CN110503180B (en) * 2019-08-14 2021-09-14 Oppo广东移动通信有限公司 Model processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621728A (en) * 1994-09-12 1997-04-15 Bell Atlantic Network Services, Inc. Level 1 gateway controlling broadband communications for video dial tone networks
CN1741553A (en) * 2005-09-21 2006-03-01 中国移动通信集团公司 Method for obtaining mobile terminal business ability and using information via operation analytic system
CN1761277A (en) * 2004-10-11 2006-04-19 中兴通讯股份有限公司 Device for dynamic analyzing call ticket and dynamic analyzing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621728A (en) * 1994-09-12 1997-04-15 Bell Atlantic Network Services, Inc. Level 1 gateway controlling broadband communications for video dial tone networks
CN1761277A (en) * 2004-10-11 2006-04-19 中兴通讯股份有限公司 Device for dynamic analyzing call ticket and dynamic analyzing method
CN1741553A (en) * 2005-09-21 2006-03-01 中国移动通信集团公司 Method for obtaining mobile terminal business ability and using information via operation analytic system

Also Published As

Publication number Publication date
CN101610319A (en) 2009-12-23

Similar Documents

Publication Publication Date Title
CN101426052A (en) Backup and importing method for address book and short message of mobile terminal
CN104317839B (en) The method and apparatus for generating report form template
CN107580151A (en) The distribution method and device of virtual-number
CN106959963A (en) A kind of data query method, apparatus and system
CN107908680A (en) Management method, electronic device and the computer-readable recording medium of wechat public platform
CN109327627A (en) Telephone number recognition methods, device and storage medium based on block chain
CN101296454A (en) Network registration method and apparatus for multi-module mobile terminal
CN102567402B (en) Electronic equipment and information processing method
CN106385710A (en) System information transmission method and transmission apparatus
CN111343590B (en) Short message sending system with high concurrency and high stability
CN109299157A (en) A kind of data export method and device of distributed big single table
CN109636306A (en) Node-flow shifting method, device, terminal and storage medium
CN105162977A (en) Excuse recommendation method and device
CN108694218A (en) A kind of method and apparatus data write-in and read
CN107547758A (en) The method of calling and device of virtual telephony
CN104636477A (en) Push list duplicate removal method before information push
CN102137205A (en) Account recharging method and device and charging method, device and system
CN106255082A (en) The recognition methods of a kind of refuse messages and system
CN109597574A (en) Distributed data storage method, server and readable storage medium storing program for executing
CN101610319B (en) Information recording and statistical method, information recording and statistical device
CN104765792B (en) A kind of method, apparatus and system of dimension data storage
CN103136315A (en) Storage processing method and storage processing device for call detail record (CDR) data
CN107682219B (en) Android system-based dial testing method and device for testing number
CN107370895A (en) Number concealing device, method and number hide system
EP2348676A1 (en) Method for accessing magnanimity data of intelligent network service database and system and device thereof

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