CN105373473A - Original signalling decoding-based CDR accuracy test method and system - Google Patents

Original signalling decoding-based CDR accuracy test method and system Download PDF

Info

Publication number
CN105373473A
CN105373473A CN201510654107.2A CN201510654107A CN105373473A CN 105373473 A CN105373473 A CN 105373473A CN 201510654107 A CN201510654107 A CN 201510654107A CN 105373473 A CN105373473 A CN 105373473A
Authority
CN
China
Prior art keywords
cdr
test
value
accuracy
original
Prior art date
Application number
CN201510654107.2A
Other languages
Chinese (zh)
Other versions
CN105373473B (en
Inventor
杨晓灿
Original Assignee
北京中创信测信息技术有限公司
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 北京中创信测信息技术有限公司 filed Critical 北京中创信测信息技术有限公司
Priority to CN201510654107.2A priority Critical patent/CN105373473B/en
Publication of CN105373473A publication Critical patent/CN105373473A/en
Application granted granted Critical
Publication of CN105373473B publication Critical patent/CN105373473B/en

Links

Abstract

The invention relates to the field of databases, and discloses an original signalling decoding-based CDR accuracy test method. The method comprises the following steps: S1, storing a CDR record and corresponding protocol decoding information into text files; S2, establishing an original signalling decoding-based CDR accuracy automatic test model; S3, obtaining field values from the text file of the protocol decoding information and generating a field value file; S4, obtaining a protocol field and a value thereof from the field value file; S5, comparing the value of the protocol field with the text file of the CDR record; and S6, summarizing the CDR accuracy test result. The invention furthermore discloses an original signalling decoding-based CDR accuracy test system. According to the original signalling decoding-based CDR accuracy test method, the human cost and time cost are saved, the test efficiency is improved, the test period is shortened, the human errors in the test process are completely eradicated and the test reliability is improved.

Description

基于原始信令解码的CDR准确性测试方法及测试系统 Based on the accuracy of the test method and test CDR original signaling decoding system

技术领域 FIELD

[0001] 本发明涉及数据库领域,尤其涉及一种基于原始信令解码的CDR准确性测试方法及测试系统。 [0001] The present invention relates to databases, and more particularly, to a method and accuracy of the test CDR test system based on the original signaling decoding.

背景技术 Background technique

[0002] 基于原始信令解码解释的⑶R准确性测试,主要是验证各⑶R协议字段的填值,是否符合产品需求中根据协议规范要求定义的取值规则,通常是根据产品需求定义的取值规贝1J,从原始信令或协议解码详细信息中找到CDR各协议字段的值,与CDR合成记录进行对比,并判断二者数据是否一致。 [0002] Based on the accuracy of the original test ⑶R signaling decoding explained, is to verify the value of each filling ⑶R protocol field, the product meets the requirements defined according to the protocol specifications rule values, typically according to product requirements defined values Regulation 1J shell, or from the original signaling protocol decoding details CDR values ​​found for each protocol field, compared with synthetic CDR record, and judges whether the two data match. 由于其测试过程繁杂,主要采用手工测试。 Because of the test process complicated, mainly manual testing.

[0003] 在现有的测试方法中,测试执行时,首先找到一条某种业务场景的CDR记录,打开原始信令流程及协议解码详细信息,根据产品需求定义的取值规则,从原始信令或协议解码详细信息中找到CDR各协议字段的值,与CDR记录进行对比,并判断二者数据是否一致。 [0003] In the conventional test method, test execution, first find a CDR record some business scenarios, and open the original signaling protocol decoding process details, based on the value product requirements defined rules, from the original signaling or found in protocol decoding details CDR value for each protocol field, compared with the CDR record, and judges whether the two data match.

[0004] 由于实际的业务场景众多,对一个CDR的准确性测试,往往要收集数十条甚至上百条典型场景数据来进行验证,才能达到较高的测试覆盖率。 [0004] As many actual business scenarios, to test the accuracy of a CDR, often to collect dozens or even hundreds of typical scene data to be verified in order to achieve high test coverage. 整个测试过程,就是对不同CDR的不同业务场景数据下各协议字段取值规则的若干次重复验证。 The entire testing process is repeated several times to verify field value for each of the rules of the protocol data of different traffic scenarios of different CDR. 而最终的测试结果,也需要人工判断测试结果的准确性。 The final test results, but also the need to manually determine the accuracy of test results. 由于大量的重复性验证只能依靠人工测试和分析,测试效率极低。 Because a lot of repetitive verification can only rely on manual testing and analysis, test efficiency is very low.

发明内容 SUMMARY

[0005] 为克服现有技术的不足,本发明的目的是:提供一种基于原始信令解码的CDR准确性测试方法,通过建立基于原始信令解码的CDR准确性测试模型,采用自动化程序识别测试需求,从协议解码信息中获取协议字段取值,并与CDR记录的文本文件进行对比,并且汇总CDR准确性测试结果,极大地降低了人力成本和时间成本,缩短了CDR准确性的测试周期。 [0005] To overcome the deficiencies of the prior art, an object of the present invention are: to provide a method of testing the accuracy of the original CDR-based signaling decoding, by establishing the accuracy of the test pattern based on the original CDR signaling decoding, automated program identification testing requirements, protocol decoding information obtained from the protocol field value, and record the CDR text file comparison and summary CDR accuracy of test results, greatly reducing labor costs and time costs, shorten cycle test the accuracy of CDR .

[0006] 为了解决背景技术中的技术问题,本发明提供了一种基于原始信令解码的CDR准确性测试方法,包括以下步骤: [0006] In order to solve the technical problems in the background art, the present invention provides a method of testing the accuracy of CDR signaling decoding based on the original, comprising the steps of:

[0007] S1、将⑶R记录和对应的协议解码信息保存为文本文件; [0007] S1, restores the protocol decoding information corresponding to the recording and ⑶R as a text file;

[0008] S2、自动化测试模型从协议解码信息的文本文件中获取字段取值,并生成字段取值文件; [0008] S2, automatic test pattern field value acquired from the text file protocol decoding information, and generates field values ​​file;

[0009] S3、从字段取值文件中获取协议字段及其取值; [0009] S3, acquiring from the field value of the protocol field value and file;

[0010] S4、将所述协议字段的取值与⑶R记录的文本文件进行对比; [0010] S4, the value of the protocol field with ⑶R recorded text files are compared;

[0011] S5、汇总⑶R准确性的测试结果。 [0011] S5, the summary of the test results ⑶R accuracy.

[0012] 具体地,所述步骤S1进一步包括原始信令文件经过合成处理,形成所述⑶R记录;将所述原始信令文件按CDR为单位进行切片,形成以cdr_id为唯一标识的原始信令分片文件,并根据原始信令分片文件按CDR为单位展现得到所述对应的协议解码信息。 [0012] Specifically, the step S1 further comprises the original signaling through synthesis processing document, forming the recording ⑶R; signaling the original file in units of CDRs of slicing, formed cdr_id uniquely identifies the original signaling segment file, and the file according to the original signaling fragment obtained by CDR presentation units of the decoding information corresponding to the protocol.

[0013] 具体地,所述步骤S2之前还包括根据⑶R准确性测试需求模板,定义出测试需求,所述测试需求包括测试对象及其属性参数,以及验证CDR协议字段的取值类型和取值规则;所述自动化测试模型为能够识别所述测试需求的自动化程序系统。 [0013] Specifically, before the step S2 accuracy further comprising the test requirements ⑶R templates, define the testing requirements, the testing requirements parameter comprising the test object and its attributes, and CDR verification protocol field values ​​and value types rule; the automatic test pattern is able to identify the test automation system program requirements.

[0014] 具体地,所述步骤S2和S3进一步包括所述自动化测试模型根据所述测试需求中的验证CDR协议字段的取值类型和取值规则,进而获取协议字段取值,所述协议字段取值为⑶R字段取值。 [0014] In particular, the steps S2 and S3 further comprising the automatic test pattern according to the type and value rules argument CDR verification protocol field in the test requirements, thereby obtaining the protocol field value of the protocol field ⑶R field value is the value.

[0015] 具体地,所述步骤S5中的CDR准确性的测试结果包括每个协议字段的取值与CDR记录文本文件的对比结果,并标识出有差异的对比结果。 [0015] In particular, the accuracy of the test results of the CDR in step S5 includes comparing the results with a CDR value for each text file recorded in the protocol field, and identifies the differences of comparative results.

[0016] 本发明还提供了一种基于原始信令解码的⑶R准确性测试系统,包括以下单元: [0016] The present invention further provides a test system based on the accuracy ⑶R original signaling decoding, comprising the following units:

[0017] 文本单元,用于将CDR记录和对应的协议解码信息保存为文本文件; [0017] The text unit, for saving and recording CDR protocol decoding information corresponding to a text file;

[0018] 取值单元,用于从协议解码信息的文本文件中获取协议字段及其取值; [0018] The value unit, configured to obtain a text file from a protocol field in the information and protocol decoding value;

[0019] 对比单元,用于将所述协议字段的取值与⑶R记录的文本文件进行对比; [0019] The matching unit, and for the value of the protocol field ⑶R recorded text files are compared;

[0020] 汇总单元,用于汇总⑶R准确性的测试结果。 [0020] The summary unit, to summarize the test results ⑶R accuracy.

[0021] 具体地,所述文本单元进一步用于将原始信令文件合成处理,形成所述⑶R记录;将所述原始信令文件按CDR为单位进行切片,形成以cdr_id为唯一标识的原始信令分片文件,并根据原始信令分片文件按CDR为单位展现得到所述对应的协议解码信息。 [0021] In particular, the text unit is further for signaling the original file synthesis process, forming the recording ⑶R; signaling the original document by CDR slicing units, formed in the original signal that uniquely identifies the cdr_id order segment file, and demonstrated according to the original signaling CDR segment file by decoding information units to obtain the corresponding protocol.

[0022] 本发明提供的基于原始信令解码的CDR准确性测试系统还包括建模单元,用于根据CDR准确性测试需求模板,定义出测试需求,所述测试需求包括测试对象及其属性参数,以及验证CDR协议字段的取值类型和取值规则,进而建立能够识别所述测试需求的自动化测试模型。 [0022] based on the original CDR signaling decoding accuracy of the test system of the invention further comprises a modeling unit is provided, according to the accuracy of the test requirements CDR templates, define the testing requirements, the testing requirements parameter comprising the test object and its attributes , CDR and verification protocol field value and value type rule, thereby establishing automatic test pattern capable of identifying the test requirements.

[0023] 具体地,所述取值单元进一步用于根据所述测试需求中的验证CDR协议字段的取值类型和取值规则,进而获取协议字段取值,所述协议字段取值为CDR字段取值。 [0023] In particular, the unit value is further based on the value for the type and value CDR rule validation protocol field in the test requirements, and further acquisition protocol field value, the field value of the protocol field CDR value.

[0024] 具体地,所述汇总单元中的CDR准确性的测试结果包括每个协议字段的取值与CDR记录文本文件的对比结果,并标识出有差异的对比结果。 [0024] In particular, the test results are summarized CDR accuracy unit includes comparative results with a CDR value for each text file recorded in the protocol field, and identifies the differences of comparative results.

[0025] 采用上述技术方案,本发明的基于原始信令解码的CDR准确性测试方法通过建立基于原始信令解码的CDR准确性测试模型,采用自动化程序识别测试需求,从协议解码信息中获取协议字段取值,并与CDR记录的文本文件进行对比,并且汇总CDR准确性测试结果,极大地降低了人力成本和时间成本,缩短了CDR准确性的测试周期。 [0025] With the above technical solution, the accuracy of the test method based on the original CDR signaling decoder of the present invention by establishing the accuracy of the test pattern based on the original CDR signaling decoding, automated testing procedures to identify requirements acquired protocol information from protocol decoders field values, and compared with text files CDR records, and summary CDR accuracy of test results, greatly reducing labor costs and time costs, shorten the test cycle CDR accuracy.

附图说明 BRIEF DESCRIPTION

[0026] 为了更清楚地说明本发明的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。 [0026] In order to more clearly illustrate the embodiments are introduced briefly in the accompanying drawings or described in the prior art required the use of technical solutions of the present invention, the following embodiments will be apparent in the following description of the accompanying drawings are merely present invention Some embodiments of the present art ordinary skill, without creative efforts, can obtain other drawings based on these drawings.

[0027]图1是本发明实施例提供的基于原始信令解码的CDR准确性测试方法的流程图; [0027] FIG. 1 is a flowchart of a method based on the accuracy of the test CDR original signaling decoding according to an embodiment of the present invention;

[0028] 图2是本发明实施例提供的CDR合成、解码及展现逻辑关系图; [0028] FIG. 2 is a CDR according to an embodiment of the present invention is the synthesis, the decoding and presentation logic diagram;

[0029]图3是本发明实施例提供的基于原始信令解码的CDR准确性测试方法与CDR合成、解码及展现的逻辑关系图; [0029] FIG. 3 is a logic diagram of the original test method based on the accuracy of the CDR and CDR signaling decoding provided by Synthesis Example, the decoding and presentation of the embodiment of the present invention;

[0030]图4是本发明实施例提供的基于原始信令解码的CDR准确性执行测试流程图; [0030] FIG. 4 is a flowchart showing a test is performed based on the accuracy of the original CDR signaling decoding according to an embodiment of the present invention;

[0031]图5是本发明实施例提供的基于原始信令解码的CDR准确性比较字段流程图; [0031] Figure 5 is provided in the accuracy of CDR signaling decoding based on the original field of comparative flowchart of the present invention;

[0032]图6是本发明实施例提供的基于原始信令解码的CDR准确性测试系统的框图。 [0032] FIG. 6 is a block CDR accuracy of the test system based on the original signaling decoder according to an embodiment of the present invention.

具体实施方式 Detailed ways

[0033] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0033] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments to those of ordinary skill in the premise without making creative efforts shall fall within the scope of the present invention.

[0034] 实施例1:图1为本发明实施例提供的基于原始信令解码的CDR准确性测试方法的流程图,从图中可以清楚地看出,本实施例提供的基于原始信令解码的CDR准确性测试方法包括以下步骤: [0034] Example 1: Figure 1 embodiment of the present invention, the accuracy of the test method flowchart CDR signaling decoding based on the original, can be clearly seen from the figures provided, the original signaling decoding based on the present embodiment provided the accuracy of the test CDR comprising the steps of:

[0035] S1、将⑶R记录和对应的协议解码信息保存为文本文件; [0035] S1, restores the protocol decoding information corresponding to the recording and ⑶R as a text file;

[0036] S2、自动化测试模型从协议解码信息的文本文件中获取字段取值,并生成字段取值文件; [0036] S2, automatic test pattern field value acquired from the text file protocol decoding information, and generates field values ​​file;

[0037] S3、从字段取值文件中获取协议字段及其取值; [0037] S3, acquiring from the field value of the protocol field value and file;

[0038] S4、将所述协议字段的取值与⑶R记录的文本文件进行对比; [0038] S4, the value of the protocol field with ⑶R recorded text files are compared;

[0039] S5、汇总⑶R准确性的测试结果。 [0039] S5, the summary of the test results ⑶R accuracy.

[0040] 图2是本发明实施例提供的CDR合成、解码及展现逻辑关系图,图3是本发明实施例提供的基于原始信令解码的CDR准确性测试方法与CDR合成、解码及展现的逻辑关系图,由图可以看出:原始信令文件经合成处理,形成CDR记录;同时,原始数据按CDR为单位进行切片,形成以cdr_id为唯一标识的原始信令文件,以.dat格式存储;系统界面按CDR为单位展现信令流程图、协议解码详细信息及原始数据。 [0040] FIG. 2 is a synthetic CDR according to an embodiment of the present invention, a decoding and presentation logic diagram, FIG. 3 is a embodiment of the present invention provides a test method based on the accuracy of the original CDR signaling decoding and synthesis of CDR, the decoding and presentation of FIG logic, can be seen from FIG: synthesized original signaling processing document, CDR records is formed; the same time, the original data units by slicing CDR, to form the original file cdr_id signaling unique identifier, stored in format .dat ; CDR system interface units according to a flow chart to show the signaling protocol and decodes the original data details. 具体地,所述步骤S1进一步包括原始信令文件经过合成处理,形成所述CDR记录;将所述原始信令文件按CDR为单位进行切片,形成以cdr_id为唯一标识的原始信令分片文件,并根据原始信令分片文件按CDR为单位展现得到所述对应的协议解码信息,将CDR记录和对应的协议解码信息保存为.txt文件。 Specifically, the step S1 further comprises signaling the original file after synthesis process, forming the CDR records; signaling the original file is sliced ​​in units of CDR, formed cdr_id uniquely identifies the original signaling segment file and signaling in accordance with the original segment file obtained by CDR presentation units of the decoding information corresponding to the protocol, the protocol stored decoding information corresponding to the CDR record and .txt files.

[0041] 具体地,所述步骤S2之前还包括根据⑶R准确性测试需求模板,定义出测试需求,所述测试需求包括测试对象及其属性参数,以及验证CDR协议字段的取值类型和取值规则;所述自动化测试模型为能够识别所述测试需求的自动化程序系统。 [0041] Specifically, before the step S2 accuracy further comprising the test requirements ⑶R templates, define the testing requirements, the testing requirements parameter comprising the test object and its attributes, and CDR verification protocol field values ​​and value types rule; the automatic test pattern is able to identify the test automation system program requirements.

[0042] 具体地,所述步骤S2和S3进一步包括所述自动化测试模型根据所述测试需求中的验证CDR协议字段的取值类型和取值规则,进而获取协议字段取值,所述协议字段取值为⑶R字段取值。 [0042] In particular, the steps S2 and S3 further comprising the automatic test pattern according to the type and value rules argument CDR verification protocol field in the test requirements, thereby obtaining the protocol field value of the protocol field ⑶R field value is the value.

[0043]图4是本发明实施例提供的基于原始信令解码的CDR准确性执行测试流程图,由图中可以看出,CDR准确性自动化测试由一系列相互依赖的测试活动组成,从分析产品需求开始,直至最终输出测试结果。 [0043] FIG. 4 is a flowchart showing the accuracy of the test CDR performed based on the original signaling decoder according to an embodiment of the present invention, can be seen from the figure, the accuracy of automated test CDR testing activities by a series of interdependent composition, from the analysis start demand until the final output of the test results. 每个测试活动都会输出该活动的测试文档或文件,作为下一个活动的输入,为使程序能够自动化完成测试过程,测试需求必须满足一定的规则,使程序可以按照既定的规则获取信息并执行测试,为达到这一目标而设计的CDR准确性测试需求模板,正是CDR准确性自动化测试模型的产物。 Each test activities will output a test document or file that activity, as the input to the next event, the program is able to automate the testing process is completed, test requirements must meet certain rules so that you can obtain information in accordance with established rules and performing tests , the product is designed to achieve this goal CDR accuracy of the test requirements template, it is CDR accuracy of automated test model.

[0044] 具体地,所述步骤S5中的CDR准确性的测试结果包括每个协议字段的取值与CDR记录文本文件的对比结果,并标识出有差异的对比结果。 [0044] In particular, the accuracy of the test results of the CDR in step S5 includes comparing the results with a CDR value for each text file recorded in the protocol field, and identifies the differences of comparative results.

[0045] 综上,本发明实现原理是①根据产品需求编写CDR字段取值规则,形成测试需求;②收集各协议的典型业务场景测试数据;③保存CDR记录程序自动从测试数据中获取⑶R字段取值并与⑶R记录进行比较。 [0045] In summary, to achieve the principles of the present invention is prepared by CDR ① rule field value according to demand, the formation testing requirements; typical business scenario testing protocols were collected data ②; ③ CDR records stored automatically acquired from the test data field ⑶R value and compared with ⑶R record. 在⑶R准确性自动化测试之前,需要通过人工分析,将产品需求定义为程序可以自动识别的测试需求。 Before ⑶R accuracy of automated testing is required by manual analysis, the defining product requirements for the program can automatically identify test requirements. 测试需求的定义,必须适用于CDR准确性的自动化测试模型,其内容必须包含测试对象及其属性,并使之贯穿于整个测试过程。 Definition of test requirements, must be applied to the accuracy of automated test model CDR, it must contain a test object and its properties, and make it through the whole testing process.

[0046] 本发明的关键技术在于CDR字段取值,CDR准确性测试,就是根据产品需求定义的取值规则,从原始信令或协议解码详细信息中找到CDR各协议字段的值,与CDR合成记录进行对比,并判断二者数据是否一致。 [0046] The key technology of the present invention is CDR field value, the accuracy of the test CDR, the value is based on the rules defined by the product requirements, or from the original signaling protocol decoding details CDR values ​​found for each protocol field, and synthetic CDR comparing records, and determines whether the two data match. 分析不同CDR协议字段的取值规则,发现其取值规则遵循几种规律: Analysis of the value of different rules CDR protocol field and found that the value of rules follow a few rules:

[0047] (a) Message A — Message B —------ Context — Value ; [0047] (a) Message A - Message B ------- Context - Value;

[0048] (b)出现Message A,则取值为A ;出现Message B,则取值为B ; [0048] (b) occurs Message A, the value of A; appear Message B, the value of B;

[0049] (c)统计Message A出现的次数; [0049] (c) Message A statistical frequency of occurrence;

[0050] (d)同时包含规律(a)、(b)。 [0050] (d) contains law (a), (b).

[0051] 其中,绝大多数的协议字段取值遵循第1个规律,但取值顺序会略有不同;也有的协议字段可能会有多种取值规则,但在同一个业务场景数据中只会出现一种取值规则。 [0051] where the vast majority of the first protocol field values ​​follow a law, but the value of the order will be slightly different; and some may have a variety of protocol field value rules, but only within the same business scenario data one kind of value rule appears. 根据CDR取值规则的这些规律,可以将各种不同规律的取值规则定义为不同的取值类型,并设计出适用于CDR准确性自动化测试的需求模板,用来描述各CDR协议字段的取值类型和取值规则,取值规则按照级联方式、映射关系和独立关键字进行描述。 The values ​​of these laws CDR rules, the rules may be different values ​​for different laws defined value types, and design requirements CDR templates for automated testing accuracy, taking each CDR is used to describe the protocol field value type and value of rules to be defined in accordance with the rules described in cascade, the mapping relationships and independent keywords. 根据取值类型的不同,对应不同的取值流程,从而实现从协议解码的详细信息中自动取值的功能,其取值结果也可以自动与⑶R合成记录进行比较。 Depending on the type of the value, corresponding to different values ​​of flow, so that the value of the automatic protocol details from the decoded function, which can also result value is compared automatically with ⑶R synthetics.

[0052] 因取值类型、取值顺序的不同,取值流程有很多种情况,其实现的原理就是按照取值规则的规律,在协议解码详细信息的文本文件中查找取值规则中定义的关键字,并取出关键字对应的值。 [0052] because the value of different types, the value of the order, the value of the process there are many cases, the principle of its implementation is in accordance with the rules of the law of value, find the value of the rules defined in the protocol decode detailed information in a text file keywords and values ​​corresponding to the keyword extracted.

[0053] 正是由于CDR各协议字段的取值总是遵循这些规律,即具有相同取值规律的协议字段,其取值流程相同。 Protocol Field [0053] Because of CDR values ​​for each protocol field always follows these rules, i.e., having the same value of the law, which is the same as the flow value. 因此,只要在测试需求中定义各协议字段的取值类型和取值规则,就可以按照对应的取值流程自动获取CDR协议字段的取值,测试需求模板就是为定义这些取值规则而形成的。 Thus, as long as the values ​​defined for each protocol type and value fields in the rules demand tests, CDR can automatically obtain the value of the protocol field value of the corresponding process according to the test requirements is to define these values ​​template rules formed .

[0054] 本发明是根据CDR准确性的测试需求来实现的,该测试需求使用Excel文件格式存储,而Excel本身有VBA开放接口,因此,采用VBA开发了所有处理过程的自动化程序。 [0054] The present invention is based on the needs of the test CDR to achieve accuracy, the test requirements stored Excel file, the Excel VBA open interface itself, Therefore, the development of automated procedures for all VBA processing procedure. 从程序实现的角度,只要能支持读取和存储Excel文件的开发工具,都可以完成本发明的所有程序的开发。 From the perspective of program implementation, as long as it supports reading and memory development tools Excel file, you can complete all the development programs of the present invention. 但其开发仍然需要基于CDR准确性自动化测试模型的建立,并基于适用于CDR准确性自动化测试模型的测试需求定义。 But its development is still needed to establish CDR-based automated test the accuracy of the model, and based testing CDR definitions apply to the accuracy of automated test model.

[0055] 本发明提供的基于原始信令解码的CDR准确性测试方法并不针对特定的业务功能,而是从通用的角度,用通用的测试方法和固定的逻辑覆盖去满足各种特定业务的CDR准确性测试需求。 [0055] CDR accuracy of the test based on the original method of the present invention provides the decoded signaling is not for a specific business function, but from a general point of view, and by a general test method covers the fixed logic to meet specific service CDR accuracy of the test requirements. 这些需求是来自信令监测系统,是从监测系统的CDR需求中提炼出来的,所以能覆盖监测系统已有的⑶R需求。 These requirements are signaling monitoring system from, is extracted from the CDR demand monitoring system, it is possible to overwrite the existing monitoring system ⑶R demand.

[0056] 实施例2:图6为本发明实施例提供的基于原始信令解码的CDR准确性测试系统的框图,从图中可以清楚地看出,本实施例提供的基于原始信令解码的CDR准确性测试系统包括以下单元: [0056] Example 2: a block diagram of FIG. 6 embodiment of the present invention, the accuracy of the original signaling decoding CDR-based test system, can be clearly seen from the figures provided, the present embodiment provides the decoded signaling based on the original CDR accuracy of the test system includes the following units:

[0057] 文本单元,用于将CDR记录和对应的协议解码信息保存为文本文件; [0057] The text unit, for saving and recording CDR protocol decoding information corresponding to a text file;

[0058] 取值单元,用于从协议解码信息的文本文件中获取协议字段及其取值; [0058] The value unit, configured to obtain a text file from a protocol field in the information and protocol decoding value;

[0059] 对比单元,用于将所述协议字段的取值与⑶R记录的文本文件进行对比; [0059] The matching unit, and for the value of the protocol field ⑶R recorded text files are compared;

[0060] 汇总单元,用于汇总⑶R准确性的测试结果。 [0060] The summary unit, to summarize the test results ⑶R accuracy.

[0061] 具体地,所述文本单元进一步用于将原始信令文件合成处理,形成所述⑶R记录;将所述原始信令文件按CDR为单位进行切片,形成以cdr_id为唯一标识的原始信令分片文件,并根据原始信令分片文件按CDR为单位展现得到所述对应的协议解码信息。 [0061] In particular, the text unit is further for signaling the original file synthesis process, forming the recording ⑶R; signaling the original document by CDR slicing units, formed in the original signal that uniquely identifies the cdr_id order segment file, and demonstrated according to the original signaling CDR segment file by decoding information units to obtain the corresponding protocol.

[0062] 本发明提供的基于原始信令解码的CDR准确性测试系统还包括建模单元,用于根据CDR准确性测试需求模板,定义出测试需求,所述测试需求包括测试对象及其属性参数,以及验证CDR协议字段的取值类型和取值规则,进而建立能够识别所述测试需求的自动化测试模型。 [0062] based on the original CDR signaling decoding accuracy of the test system of the invention further comprises a modeling unit is provided, according to the accuracy of the test requirements CDR templates, define the testing requirements, the testing requirements parameter comprising the test object and its attributes , CDR and verification protocol field value and value type rule, thereby establishing automatic test pattern capable of identifying the test requirements.

[0063] 具体地,所述取值单元进一步用于根据所述测试需求中的验证CDR协议字段的取值类型和取值规则,进而获取协议字段取值,所述协议字段取值为CDR字段取值。 [0063] In particular, the unit value is further based on the value for the type and value CDR rule validation protocol field in the test requirements, and further acquisition protocol field value, the field value of the protocol field CDR value.

[0064] 具体地,所述汇总单元中的CDR准确性的测试结果包括每个协议字段的取值与CDR记录文本文件的对比结果,并标识出有差异的对比结果。 [0064] In particular, the test results are summarized CDR accuracy unit includes comparative results with a CDR value for each text file recorded in the protocol field, and identifies the differences of comparative results.

[0065] 本发明的基于原始信令解码的CDR准确性测试方法通过建立基于原始信令解码的CDR准确性测试模型,采用自动化程序识别测试需求,从协议解码信息中获取协议字段取值,并与CDR记录的文本文件进行对比,并且汇总CDR准确性测试结果,极大地降低了人力成本和时间成本,缩短了CDR准确性的测试周期。 [0065] The present invention is based on the original test method CDR signaling decoding accuracy by establishing the accuracy of the test pattern based on the original CDR signaling decoding, automated testing program identification requirements, acquisition protocol from the protocol field value of the decoded information, and CDR records and text files are compared and aggregated CDR accuracy of test results, greatly reducing labor costs and time costs, shorten the test cycle CDR accuracy.

[0066] 以上所揭露的仅为本发明的几种较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 [0066] The above descriptions are merely some preferred embodiments of the present invention, it, of course, not intended to limit the scope of the invention, therefore equivalent changes made under this invention as claimed in claim still encompassed by the present invention range.

Claims (10)

1.基于原始信令解码的CDR准确性测试方法,其特征在于,包括以下步骤: 51、将CDR记录和对应的协议解码信息保存为文本文件; 52、自动化测试模型从协议解码信息的文本文件中获取字段取值,并生成字段取值文件; 53、从字段取值文件中获取协议字段及其取值; 54、将所述协议字段的取值与CDR记录的文本文件进行对比; 55、汇总⑶R准确性的测试结果。 1. The accuracy of the test method based on the original CDR signaling decoding, characterized by comprising the steps of: 51 to save the protocol decoding information corresponding to the CDR record and text files; 52, automatic test pattern from a text file protocol decoding information obtaining field value, and generates field value file; 53, acquisition protocol fields from the field values ​​and their values ​​in the file; 54, the protocol field value of the text file with the CDR records are compared; 55, the test results are summarized ⑶R accuracy.
2.如权利要求1所述的基于原始信令解码的CDR准确性测试方法,其特征在于,所述步骤S1进一步包括原始信令文件经过合成处理,形成所述CDR记录;将所述原始信令文件按CDR为单位进行切片,形成以cdr_id为唯一标识的原始信令分片文件,并根据原始信令分片文件按CDR为单位展现得到所述对应的协议解码信息。 2. The accuracy of the test CDR signaling decoding method based on the original claim 1, wherein said step S1 further comprises the original file after synthesis processing signaling, forming the CDR records; the original signal order file by CDR slice units, formed cdr_id uniquely identifies the original signaling segment files, and to show based on the original CDR signaling segment file by decoding information units to obtain the corresponding protocol.
3.如权利要求1所述的基于原始信令解码的CDR准确性测试方法,其特征在于,所述步骤S2之前还包括根据CDR准确性测试需求模板,定义出测试需求,所述测试需求包括测试对象及其属性参数,以及验证CDR协议字段的取值类型和取值规则;所述自动化测试模型为能够识别所述测试需求的自动化程序系统。 3. The test method based on the accuracy of the original CDR signaling decoding, characterized in that said 1, further comprising before the step S2 in accordance with the accuracy of the test requirements CDR templates, define the testing requirements, the testing requirements, including the claims test object and property parameters, and a verification protocol field values ​​CDR type and value rules; the automatic test pattern is able to identify the test automation system program requirements.
4.如权利要求1所述的基于原始信令解码的CDR准确性测试方法,其特征在于,所述步骤S2和S3进一步包括所述自动化测试模型根据所述测试需求中的验证CDR协议字段的取值类型和取值规则,进而获取协议字段取值,所述协议字段取值为CDR字段取值。 4. The accuracy of the test method based on the original CDR signaling decoder according to claim 1, wherein said further comprising the step S2 and S3 of the automatic test pattern according to the needs of the verification test protocol field CDR type and value rules argument, field value further acquisition protocol, the protocol field value of the value field is CDR.
5.如权利要求1-4中任意一项所述的基于原始信令解码的CDR准确性测试方法,其特征在于,所述步骤S5中的CDR准确性的测试结果包括每个协议字段的取值与CDR记录文本文件的对比结果,并标识出有差异的对比结果。 As claimed in claim 1 to 4 based on the accuracy of the testing method of the original CDR signaling decoding, characterized in that any one, the accuracy of the test result in step S5 CDR comprises taking each protocol field the CDR record and compare the result value of the text file, and identifies the comparison result of differences.
6.基于原始信令解码的CDR准确性测试系统,其特征在于,包括以下单元: 文本单元,用于将CDR记录和对应的协议解码信息保存为文本文件; 取值单元,用于从协议解码信息的文本文件中获取协议字段及其取值; 对比单元,用于将所述协议字段的取值与CDR记录的文本文件进行对比; 汇总单元,用于汇总⑶R准确性的测试结果。 6. The test system based on the accuracy of the original CDR signaling decoding, characterized by comprising the following units: text unit, for saving and recording CDR protocol decoding information corresponding to a text file; value means, for decoding the protocol text file information and obtains the protocol field value; matching unit, and a value of the protocol field CDR records text file for comparison; means summary, the test results are summarized ⑶R for accuracy.
7.如权利要求6所述的基于原始信令解码的CDR准确性测试系统,其特征在于,所述文本单元进一步用于将原始信令文件合成处理,形成所述CDR记录;将所述原始信令文件按CDR为单位进行切片,形成以cdr_id为唯一标识的原始信令分片文件,并根据原始信令分片文件按CDR为单位展现得到所述对应的协议解码信息。 7. The accuracy of the test system based on the original CDR signaling decoder according to claim 6, characterized in that the text unit is further for signaling the original file synthesis process, forming the CDR records; the original CDR signaling is performed in units of files by slicing, formed cdr_id uniquely identifies the original signaling segment files, and to show based on the original CDR signaling segment file by decoding information units to obtain the corresponding protocol.
8.如权利要求6所述的基于原始信令解码的CDR准确性测试系统,其特征在于,还包括建模单元,用于根据CDR准确性测试需求模板,定义出测试需求,所述测试需求包括测试对象及其属性参数,以及验证CDR协议字段的取值类型和取值规则,进而建立能够识别所述测试需求的自动化测试模型。 CDR as claimed in claim accuracy of the test system based on the original signaling decoding, wherein said 6, further comprising a modeling unit, the accuracy of test requirements according CDR templates, define the testing requirements, the testing requirements test objects and their attributes including parameters, as well as to verify the type and value rules argument CDR protocol field, thereby establishing automatic test pattern capable of identifying the test requirements.
9.如权利要求6所述的基于原始信令解码的CDR准确性测试系统,其特征在于,所述取值单元进一步用于根据所述测试需求中的验证CDR协议字段的取值类型和取值规则,进而获取协议字段取值,所述协议字段取值为CDR字段取值。 Based on the original CDR signaling decoding accuracy as the test system according to claim 6, characterized in that the value unit is further based on the value for the type of authentication protocol field of the CDR in the test requirements and take value rule field value further acquisition protocol, the protocol field value of the value field is CDR.
10.如权利要求6-9中任意一项所述的基于原始信令解码的CDR准确性测试系统,其特征在于,所述汇总单元中的CDR准确性的测试结果包括每个协议字段的取值与CDR记录文本文件的对比结果,并标识出有差异的对比结果。 CDR signaling decoding based on the original test system 10. The accuracy of any of claims 6-9, characterized in that the test results are summarized in the CDR unit accuracy of each protocol field comprises taking the CDR record and compare the result value of the text file, and identifies the comparison result of differences.
CN201510654107.2A 2015-10-10 2015-10-10 CDR accuracys method of testing and test system based on original signaling decoding CN105373473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510654107.2A CN105373473B (en) 2015-10-10 2015-10-10 CDR accuracys method of testing and test system based on original signaling decoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510654107.2A CN105373473B (en) 2015-10-10 2015-10-10 CDR accuracys method of testing and test system based on original signaling decoding

Publications (2)

Publication Number Publication Date
CN105373473A true CN105373473A (en) 2016-03-02
CN105373473B CN105373473B (en) 2018-03-06

Family

ID=55375691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510654107.2A CN105373473B (en) 2015-10-10 2015-10-10 CDR accuracys method of testing and test system based on original signaling decoding

Country Status (1)

Country Link
CN (1) CN105373473B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6628765B1 (en) * 2000-09-01 2003-09-30 Verizon Corporate Services Group Inc. Method and apparatus for providing subscribers with telecommunications intelligence
CN101394451A (en) * 2008-11-06 2009-03-25 北京中创信测科技股份有限公司 Storage method for call detailed recorded data, indication method and system
CN102438080A (en) * 2011-08-19 2012-05-02 北京沃泰丰通信技术有限公司 Call detail record synthesizing method and device
US20150280973A1 (en) * 2014-03-31 2015-10-01 International Business Machines Corporation Localizing faults in wireless communication networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6628765B1 (en) * 2000-09-01 2003-09-30 Verizon Corporate Services Group Inc. Method and apparatus for providing subscribers with telecommunications intelligence
CN101394451A (en) * 2008-11-06 2009-03-25 北京中创信测科技股份有限公司 Storage method for call detailed recorded data, indication method and system
CN102438080A (en) * 2011-08-19 2012-05-02 北京沃泰丰通信技术有限公司 Call detail record synthesizing method and device
US20150280973A1 (en) * 2014-03-31 2015-10-01 International Business Machines Corporation Localizing faults in wireless communication networks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚震宇: "移动通信网络信令监测数据预处理系统的研究及实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Also Published As

Publication number Publication date
CN105373473B (en) 2018-03-06

Similar Documents

Publication Publication Date Title
JP5607743B2 (en) Generate automated test execution plans
CN100561444C (en) Automatic test method based on key word drive and its test system
CN103365779A (en) Software test method and system
CN103336742A (en) Automation software black box testing system and method based on Android
CN102184138B (en) Method and system for automatically reproducing and positioning software error
CN101719149B (en) Method and apparatus for data synchronization
CN103186457A (en) Method and device for automatically generating test case
CN102222103B (en) Method and device for processing matching relationship of video content
CN101236554B (en) Database mass data comparison process
CN102521225B (en) Incremental data extraction device and incremental data extraction method
CN103176973B (en) A system and method for generating a test database workload
CN102968306B (en) An automated method and system for generating a model based on data-driven code
CN102135938B (en) Software product testing method and system
JP5251623B2 (en) Flow comparison processing method and apparatus
CN102495733A (en) Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script
CN102650996A (en) Method and device for determining data mapping relationship between database tables
CN100382075C (en) Hardware-level based test script automatic generating system and method
CN102523137B (en) A fault monitoring method, apparatus and system for
CN103092761B (en) Method and device of recognizing and checking modifying code blocks based on difference information file
CN102831052A (en) Automatic generating device and method for test case
CN103259679A (en) Method for identifying equipment and automatically reporting broken-down equipment for repair based on mobile terminal
CN102289460B (en) Method and system for performing report metadata synchronization on testing environments
CN1645402A (en) Road traffic flow data quality controlling method and apparatus
CN102331967B (en) Method for managing chip verification test cases
CN101014061A (en) Method and apparatus for generating testing script and testing method and apparatus and system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01
CP01