CN109871309A - A kind of charge system test cases generation method and system - Google Patents

A kind of charge system test cases generation method and system Download PDF

Info

Publication number
CN109871309A
CN109871309A CN201711260313.0A CN201711260313A CN109871309A CN 109871309 A CN109871309 A CN 109871309A CN 201711260313 A CN201711260313 A CN 201711260313A CN 109871309 A CN109871309 A CN 109871309A
Authority
CN
China
Prior art keywords
ticket
charging
test cases
case
testing process
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.)
Granted
Application number
CN201711260313.0A
Other languages
Chinese (zh)
Other versions
CN109871309B (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Hunan Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Hunan 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 China Mobile Communications Group Co Ltd, China Mobile Group Hunan Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201711260313.0A priority Critical patent/CN109871309B/en
Publication of CN109871309A publication Critical patent/CN109871309A/en
Application granted granted Critical
Publication of CN109871309B publication Critical patent/CN109871309B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of charge system test cases generation method and system, comprising: S1, the charging flow according to business generate the testing process of test cases, include all execution steps of charging flow in the testing process;S2, corresponding charging scene is matched according to the charging flow, ticket is fished for from detailed single library of charge system according to charging scene, and obtain according to ticket the first metering data before wholesale price and the second metering data after wholesale price;S3, using the first metering data as the input of testing process, output of second metering data as testing process generates test cases.It is basic production test case with testing process, largely improve the efficiency of existing human configuration automation case, according to the corresponding scene of case, directly extract existing detailed list, and reversely generate decoded ticket, it is supplied to automated test tool use, ticket has very strong specific aim and applicability.

Description

A kind of charge system test cases generation method and system
Technical field
The present invention relates to fields of communication technology, more particularly, to a kind of charge system test cases generation method and are System.
Background technique
With the development of telecommunication technology, telecom operators provide the telecommunication service of various functions for user.Therefore, for Various telecommunication services carry out accurate charging, are not only the important leverage of enterprise operation, and improve the important of user satisfaction Means.Telecommunication charging system data configuration in the prior art is complicated, if test needs to cover all charging scenes, relates to And use-case will reach up to ten thousand or even hundreds of thousands.Therefore, it generallys use and is taken out based on typical scene in the prior art Take the test method of verifying.Due to dog-eat-dog between three big operators, each operator is the needs for meeting market competition, constantly New business is released to attract new client and keep frequent customer, therefore also drives BOSS (Business&Operation Support System, business operation support system) system constantly upgrades demand of the supporting business department to new business of newly arriving. BOSS refers to business operation support system.Usually said BOSS points are four parts: billing and clearing system, business and account Business system, customer service system and DSS.BOSS is exactly a frame from the point of view of service layer, comes bearer service system System, crm system, charge system.Realize the longitudinally, laterally management in Unified frame.Frequent updating operation will cause charging system The unstable factor of system increases, and BOSS system is in alignment with true property and the high system of stability requirement, this is just to each software Publication quality propose high requirement.
In terms of soft project angle, software issues the process that undergo demand analysis, design, exploitation, test, publication, and It is then to guarantee the key link of the quality of software publication to the full extent in software test.
The quality assurance of many province charge system demand publications remains on mechanical manual testing at present, also has Many provinces have selected automated test tool, by way of automatic Verification, to guarantee to issue quality.
Even if so-called manual testing is by specified tester, on the basis of it understands demand, carry out related The test job of connection.Tester will also guarantee this time to upgrade variation, transport to existing net on the basis of testing what's new Capable program does not influence.And smoothly completing of not settling at one go of test, it may be necessary to develop modification code repeatedly Can finally realize, thus just need tester to make identical test content repeatedly with verify every time modification after whether meet function Demand could be issued normally until test passes through.
Automated test tool is then to have done significant improvement on the basis of manual testing, may not need tester's repetition Mechanical test assignment, it is only necessary to after updating updated contents, run the automation case editted, so that it may by certainly Dynamicization testing tool completes entire testing engineering, as to whether being that function needs desired test result, it is only necessary to which analysis is automatic Change the test report after test is completed, even retest and program are executed in machinery in this way.And it standardizes Automation case, standardized case step can reduce error when manually performing.But for a stable operation Charge system for, need a large amount of complete automation scene cases just to can guarantee the integrality and entirely of Automation regression testing Face property.The case of automatic test needs to be usually to complete by human configuration at present.But telecommunication charging system business scenario Numerous, tariff package is also and its complicated, this just needs automatic test personnel depaly largely to automate case, automatic test Case configuration work amount just become and its huge.The automation regressive case library for creating the system of a charging, needs to throw Enter a large amount of human resources.And since the continuous renewal of charge system upgrades, some test cases can be with the upgrading of system And the case where failing, it needs to do the upgrading of case by hand or reconfigure work.
Summary of the invention
The present invention provides a kind of a kind of charge system survey for overcoming the above problem or at least being partially solved the above problem Case generation method and system are tried, test cases in the prior art is solved and needs human configuration, charge system, which constantly upgrades, to be led The problem of causing test cases failure.
According to an aspect of the present invention, a kind of charge system test cases generation method is provided, comprising:
S1, the charging flow according to business generate the testing process of test cases, include charging stream in the testing process All execution steps of journey;
S2, corresponding charging scene is matched according to the charging flow, according to charging scene from the detailed Dan Ku of charge system In fish for ticket, and obtain according to ticket the first metering data before wholesale price and the second metering data after wholesale price;
S3, using the first metering data as the input of testing process, output of second metering data as testing process is raw At test cases.
Preferably, the testing process includes start-stop operation flow, cleaning test catalogue, words in the step S1 Single input, CDR file comparison.
Preferably, before the step S1 further include:
Case template library is constructed, is each business configuration case template, includes the meter of corresponding business in the case template Take all execution steps of process;
The identical business of charging flow then configures same case template.
Preferably, the step S1 is specifically included:
According to the process name of the charging flow of business, corresponding case template is matched from case template library, by case mould Each execution step needs test cases parameter to be used to replace with variable in plate;
The test cases parameter includes process ID, the input and output of process and backup directory, the interim mesh of case acquisition Record, the record of standardization monocular, the regular expression for acquiring file.
Preferably, the step S2 is specifically included:
According to the corresponding charging scene of the testing process, the scene ID for needing to extract ticket is chosen, from charge system Ticket is extracted in list library in detail;
The field effective information in ticket is extracted, logic is generated according to ticket, reverse push exports decoded field value, and It is backfilled in decoded ticket template, generates offline decoded ticket.
Preferably, extracting ticket in the step S2 from detailed single library of charge system and specifically including:
By scene ID, Original CDR gateway mark, and in detail in single library for calculating three element composition words of product of expense It is single to extract key assignments, ticket extraction is carried out, and extract the identical ticket of key assignments and only extract one.
A kind of charge system test cases generation system, comprising:
Case generation module generates testing process, the survey for the charging flow according to business from case template library Try all execution steps in process including charging flow;
Ticket abstraction module, for matching corresponding charging scene according to the charging flow, according to charging scene from meter Ticket is fished in detailed single library of charge system, and obtains according to ticket the first metering data before wholesale price and the second charging after wholesale price Data;
Case generation module, for using the first metering data as the input of testing process, the second metering data to be as survey The output of process is tried, test cases is generated.
A kind of charge system test cases generating device, comprising:
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to Order is able to carry out such as above-mentioned charge system test cases generation method.
A kind of computer program product, the computer program product include being stored in non-transient computer readable storage medium Computer program in matter, the computer program include program instruction, when described program instruction is computer-executed, make institute It states computer and executes such as above-mentioned charge system test cases generation method.
A kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute such as above-mentioned charge system test cases generation method.
The present invention proposes a kind of charge system test cases generation method and system, is basic production test with testing process Case, and the relevant configuration of testing process is obtained and analyzes, according to the step product process configured in automation case template Corresponding entity case, and be automatically performed the corresponding substance parameter of each variable and calculate and replacement, ultimately generating can be used directly Automatic test case;The efficiency of original human configuration automation case is largely improved, and automates and extracts correlation The configuration information of process, the risk of parameter configuration entanglement when reducing human configuration case;According to the corresponding scene of case, directly Existing detailed list is extracted, and reversely generates decoded ticket, is supplied to automated test tool use, ticket has very strong needle To property and applicability.
Detailed description of the invention
Fig. 1 is the charge system test cases generation method flow diagram according to the embodiment of the present invention;
Fig. 2 is that schematic diagram is embodied according to the test cases generation method of the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below Example is not intended to limit the scope of the invention for illustrating the present invention.
As shown in Figure 1, showing a kind of charge system test cases generation method in figure, comprising:
S1, the charging flow according to business generate the testing process of test cases, include charging stream in the testing process All execution steps of journey;
S2, corresponding charging scene is matched according to the charging flow, according to charging scene from the detailed Dan Ku of charge system In fish for ticket, and obtain according to ticket the first metering data before wholesale price and the second metering data after wholesale price;
S3, using the first metering data as the input of testing process, output of second metering data as testing process is raw At test cases.
Charging flow refers to processing user's communication event in operator's charging BOSS system, and calculates the processing of generation expense Process.
Wholesale price, time/how many, identity of user and preferential strategy etc. of the business exactly used according to user Condition carries out the amount of money calculating of this consumption of user.For example, Xiao Zhang has dialed a phone, 5 minutes.He is that M-ZONE is used Family, 0.1 yuan per minute, current without privileges.That so-called " wholesale price " step exactly calculates 5 × 0.1=0.5 member.This is exactly Simplest wholesale price.
In the present embodiment, before the step S1 further include:
Case template library is constructed, is each business configuration case template, includes the meter of corresponding business in the case template Take all execution steps of process;
The identical business of charging flow then configures same case template.
In the present embodiment, it has been configured with automation given step and parameter in case template, a certain kind can be represented The representative case of specific characteristic case normalization step.The step of test cases corresponds to case template configuration can be copied, again Automation case is generated, corresponding test parameter is replaced, the generation of automation case can be completed.
Case template can also import test database with manual configuration by way of basic data.It is single with business Digit separator comes, one case template of a business configuration, different charge process (the test module phase for including of same business Together), using corresponding service template;If same business, the accounting module that charging flow is included is different, then needs to configure multiple Corresponding case template;Certainly, if different business, the module that charging flow includes is identical, then multiple business can share one Case template.
The case template of test cases is configured, all steps for the automatic test case matched in case template pass through finger The title of fixed operational trials process is matched to the corresponding business of the testing process, and finds corresponding case template generation stream The corresponding test cases of journey, automatic replacement test parameter manipulation reduce configuration error to realize automatically generating for case, and And case has been simplified, improve operational efficiency.
Specifically, in the present embodiment, generating testing process and specifically including:
A, case variable configures, and needs to use parameter for later period configuration test cases and is configuring preservation in the form of variable, Configuration variables title, variate-value are sky.Here all variables can be at project implementation initial stage, by way of basic data It imported into the database of project testing.
B, configuration automation case template, different business use different templates, if different business, test cases is held Capable step is unanimously, same template also to can be used.The Overall Steps of template configuration test cases, including start-stop Business Stream Journey, cleaning test catalogue, ticket input, final CDR file comparison.Each step needs test to be used in template Parameter is replaced using the variable configured in A.The template of test cases also can be completed to lead by way of basic data in early period Enter.
C, the process that setup test uses, and ensure the correctness of testing process, and process is normally disposed, it can be used.
D, automatic test case generates, according to specified operation flow name, the case template of determining corresponding business, and with The corresponding specific test cases of this product process.The test cases parameter wherein replaced in test cases by variable, passes through retrieval Process configuration, and re-assembly assembled mode and be replaced one by one.Including process ID, the input and output of process, Yi Jibei The relevant catalogue of part, case acquire temp directory, and standard ticket catalogue acquires a series of test cases such as regular expression of file The parameter that example is used will all be automatically performed replacement, generate the testing process for the test cases that completely can be used directly.
According to the scheme of above-mentioned process, design configurations case template.The specific steps of template are accustomed to according to test usually Setting, first arrheas journey, then clear up input and output catalogue, excludes the interference there are non-designated test file to test result, next Step then clears up account book data, and exclude the data such as the test already present free resource of user influences caused by test result, then After specified test CDR file is copied to the input directory of process, start testing process, and pending file exports, and finally adopts The file of collection output is compared with standard CDR file, and output compares report.What it is due to configuration is template, so above-mentioned all The parameter being related to, including directory information, process ID and CDR file etc. are unified to be replaced using variable.
By case Auto-Generation Tool, analysis process is configured, acquisition process ID, the input and output catalogue of process, The relevant configuration informations such as the corresponding business of process lock the case template that the process uses, and pass through selected template generation pair The process case answered, and by case using to variable carry out matching replacement one by one.
In the present embodiment, the step S2 is specifically included:
According to the corresponding charging scene of the testing process, the scene ID for needing to extract ticket is chosen, from charge system Ticket is extracted in list library in detail;
The field effective information extracted in ticket (encodes, the number information of both call sides makes comprising call location occurs With the operation code etc. of service), logic is generated according to ticket, reverse push exports decoded field value, and after being backfilled to decoding If in single mode plate, generate offline decoded ticket.
The naming rule of template is matched with charging flow, is saved in a manner of variable option, automatized script can be according to meter Take process name, the corresponding case template of Auto-matching.
Such as: 1) template name of normal speech business: rating_gsm;2) comprising the template of duplicate checking modular voice business Title: rating_gsm_dupcheck.
Extracting ticket is by way of sql, by the shape that qualified result passes through file in the detailed single database of charging Formula is stored in the catalogue of automation host configuration, uses for subsequent construction ticket.
In the intelligently script of construction ticket, the sql of receipt row configuration is extracted and is configured ticket field in sql, and is stored in It is local, then ticket before the file build charging by saving.
Specifically, the test scene of verifying can be corresponded to according to the testing process of generation, the field for wanting to extract ticket is chosen Scape ID, and detailed single data source is specified, start according to certain condition extraction ticket.It extracts ticket and does not consider the user number in detailed list Code, extraction tool is by scene ID, Original CDR gateway identification, and is used to calculate these three element groups of the product of expense in detail in list Key assignments is extracted at ticket, the identical ticket of key assignments only extracts one, and the ticket of extraction simplifies the field in single table in detail, only extraction group It at the necessary field of decoding ticket, is saved by way of file, and the Subscriber Number of recording call list file, if extracting Singly there are the correlated identities such as group call, opposite-terminal number records together.
Further, detailed single CDR file of preservation is read, and by the field effective information in ticket, is handled according to charging Logic, reverse push exports decoded field value, and is backfilled in decoded ticket template, thus scrabble up one it is completely new Offline decoded ticket, by bill services title, corresponding scene ID is identified newly-generated CDR file name, convenient Subsequent identification and use.
According to the Subscriber Number (including opposite-terminal number) of record, MDB (Message Driven in build environment is extracted Bean, message-driven) in associated user's data, user's Automation regression testing use.
Specifically, firstly, lock the corresponding business of case according to the case of generation, and show that the business configures complete at present Scene is measured, case scene to be treated is chosen, the detailed single database and corresponding detailed single table of charge system are specified, according to words Single gateway mark, ticket scene ID and calculation take the key assignments of product form, filter ticket, do not extract the identical repetition ticket of key assignments, Individual character section if needing to extract, arrangement are stored in automatization test system.Individual character segment information is if final extraction with file Form saves.
Design data structure is used to save the general information for extracting ticket, and Data Structure Design is as follows:
The call bill data file saved is traversed, as unit of ticket, the ticket information inside CDR file is carried out one by one Analysis processing.For some simple simon says individual character sections, it is similar to Subscriber Number, the information such as gateway identification are directly backfilled to template Ticket;For some complex fields, and in business procession, because the specific logical modification variation of business is automatic, It is then derived by the reverse logic of business processing, and the result of derivation is backfilled to corresponding field in template ticket, such as former Beginning expense field, original flow field etc..All fields to ticket, which backfill, to be completed, then by newly-generated ticket save to In new file, the name of new CDR file if it is more special scene, is then mixed with business number and scene ID mark Special mark, such as roaming.The ticket of same scene is stored in same file.
Single head forms if being laid down a regulation due to the ticket in charge system CDR file by one, includes in ticket head The block size of each ticket and ticket size in file, and session information when generation ticket, therefore in order to guarantee ticket Availability, need to generate the rules and methods of ticket according to charge system, reconstruct CDR file, calculate and assemble correct ticket Head.So far, the step of ticket produces automatically is fully completed.
In the present embodiment, using the detailed list of charge system as data source, by internal filter algorithm, given scenario is extracted Call bill data, then obtained call bill data is replaced to the field of template ticket corresponding position one by one, it is final raw referring to ticket At rule, calculate reasonable ticket head in CDR file, be spliced into effective ticket according to decoded format of billing.
Including the first metering data before wholesale price and the second metering data after wholesale price in CDR file;
Using the first metering data as the input of testing process, output of second metering data as testing process is generated Test cases.
As shown in Fig. 2, choosing the charging flow of voice service first, automation is automatically generated according to charging flow and returns step Suddenly, testing process is generated;And choose local national distance of dialing and commonly converse scene, call scene refers to the charging that user generates Event, including roaming, long-distance, online, cornet, short message etc.;According to the database table of specified speech call ticket storage, extraction refers to Determine the effective field in the effective ticket of scene, i.e. rejecting same scene repetition ticket retains the ticket used later, and extracts it The middle field for defining call event, comprising call location coding occurs, the number information of both call sides uses the business of service Coding etc.;The user information in ticket, phone number or fixed telephone number including user have been extracted in locking;Generate case Available CDR file, and automatically generate according to CDR file and testing process the test cases of voice.
Automatic test work order can be created according to test cases, operation test work order generates test work order report, counted The test of charge system.
Since the data source for having ticket to construct automatically is obtained from charge system, to guarantee that automatic test exports ticket With the consistency of charge system ticket, therefore the subscriber data that automatic test uses, the relevant test such as test product data Data keep consistent with charge system as far as possible, just can guarantee the validity of test output result in this way.
A kind of charge system test cases generation system is additionally provided in the present embodiment, comprising:
Case generation module generates testing process, the survey for the charging flow according to business from case template library Try all execution steps in process including charging flow;
Ticket abstraction module, for matching corresponding charging scene according to the charging flow, according to charging scene from meter Ticket is fished in detailed single library of charge system, and obtains according to ticket the first metering data before wholesale price and the second charging after wholesale price Data;
Case generation module, for using the first metering data as the input of testing process, the second metering data to be as survey The output of process is tried, test cases is generated.
A kind of charge system test cases generating device is additionally provided in the present embodiment, comprising: processor (processor), memory (memory), communication interface (Communications Interface) and bus;
Wherein,
The processor, memory, communication interface complete mutual communication by the bus;
The communication interface is for the information transmission between the test equipment and the communication equipment of display device;
The processor is used to call the program instruction in the memory, is provided with executing above-mentioned each method embodiment Charge system test cases generation method, for example,
S1, the charging flow according to business generate the testing process of test cases, include charging stream in the testing process All execution steps of journey;
S2, corresponding charging scene is matched according to the charging flow, according to charging scene from the detailed Dan Ku of charge system In fish for ticket, and obtain according to ticket the first metering data before wholesale price and the second metering data after wholesale price;
S3, using the first metering data as the input of testing process, output of second metering data as testing process is raw At test cases.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine executes, computer is able to carry out charge system test cases generation method provided by above-mentioned each method embodiment, such as Include:
S1, the charging flow according to business generate the testing process of test cases, include charging stream in the testing process All execution steps of journey;
S2, corresponding charging scene is matched according to the charging flow, according to charging scene from the detailed Dan Ku of charge system In fish for ticket, and obtain according to ticket the first metering data before wholesale price and the second metering data after wholesale price;
S3, using the first metering data as the input of testing process, output of second metering data as testing process is raw At test cases.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute charge system provided by above-mentioned each method embodiment Test cases generation method, for example,
S1, the charging flow according to business generate the testing process of test cases, include charging stream in the testing process All execution steps of journey;
S2, corresponding charging scene is matched according to the charging flow, according to charging scene from the detailed Dan Ku of charge system In fish for ticket, and obtain according to ticket the first metering data before wholesale price and the second metering data after wholesale price;
S3, using the first metering data as the input of testing process, output of second metering data as testing process is raw At test cases.
The present invention proposes a kind of charge system test cases generation method and system, is basic production test with testing process Case, and the relevant configuration of testing process is obtained and analyzes, according to the step product process configured in automation case template Corresponding entity case, and be automatically performed the corresponding substance parameter of each variable and calculate and replacement, ultimately generating can be used directly Automatic test case;The efficiency of original human configuration automation case is largely improved, and automates and extracts correlation The configuration information of process, the risk of parameter configuration entanglement when reducing human configuration case;According to the corresponding scene of case, directly Existing detailed list is extracted, and reversely generates decoded ticket, is supplied to automated test tool use, ticket has very strong needle To property and applicability.Compared to the method for original human configuration case, reduce the setup time of case, improves case and match The success rate settled at one go is set, the coverage area for configuring case is more comprehensive, improves automated test tool on the whole Working efficiency has saved the maintenance cost of the module province side BOSS.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The embodiments such as the test equipment of display device described above are only schematical, wherein described as separation The unit of part description may or may not be physically separated, component shown as a unit can be or It can not be physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to reality Border needs to select some or all of the modules therein to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art Without paying creative labor, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, method of the invention is only preferable embodiment, it is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of charge system test cases generation method characterized by comprising
S1, the charging flow according to business generate the testing process of test cases, include charging flow in the testing process All execution steps;
S2, corresponding charging scene is matched according to the charging flow, is mentioned from detailed single library of charge system according to charging scene Ticket is taken, and obtains according to ticket the first metering data before wholesale price and the second metering data after wholesale price;
S3, using the first metering data as the input of testing process, output of second metering data as testing process is generated and is surveyed Try case.
2. charge system test cases generation method according to claim 1, which is characterized in that in the step S1, institute Stating testing process includes start-stop operation flow, cleaning test catalogue, ticket input, CDR file comparison.
3. charge system test cases generation method according to claim 1, which is characterized in that also wrapped before the step S1 It includes:
Case template library is constructed, is each business configuration case template, includes the charging stream of corresponding business in the case template All execution steps of journey;
The identical business of charging flow then configures same case template.
4. charge system test cases generation method according to claim 3, which is characterized in that the step S1 is specifically wrapped It includes:
According to the process name of the charging flow of business, corresponding case template is matched from case template library, it will be in case template Each execution step needs test cases parameter to be used to replace with variable;
The test cases parameter include process ID, the input and output of process and backup directory, case acquisition temp directory, Standardize the regular expression of monocular record, acquisition file.
5. charge system test cases generation method according to claim 4, which is characterized in that the step S2 is specifically wrapped It includes:
According to the corresponding charging scene of the testing process, the scene ID for needing to extract ticket is chosen, from the detailed list of charge system Ticket is extracted in library;
The field effective information in ticket is extracted, logic is generated according to ticket, reverse push exports decoded field value, and backfills Extremely in decoded ticket template, offline decoded ticket is generated.
6. charge system test cases generation method according to claim 5, which is characterized in that in the step S2, from Ticket is extracted in detailed single library of charge system to specifically include:
It is taken out by scene ID, Original CDR gateway mark, and in detail in single library for calculating three element composition tickets of product of expense Key assignments is taken, ticket extraction is carried out, and extracts the identical ticket of key assignments and only extracts one.
7. a kind of charge system test cases generates system characterized by comprising
Case generation module generates testing process, the test stream for the charging flow according to business from case template library It include all execution steps of charging flow in journey;
Ticket abstraction module, for matching corresponding charging scene according to the charging flow, according to charging scene from charging system Ticket is fished in detailed single library of system, and obtains according to ticket the first metering data before wholesale price and the second charging number after wholesale price According to;
Case generation module, for using the first metering data as the input of testing process, the second metering data to be as test stream The output of journey generates test cases.
8. a kind of charge system test cases generating device characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy Enough methods executed as described in claim 1 to 6 is any.
9. a kind of computer program product, which is characterized in that the computer program product includes being stored in non-transient computer Computer program on readable storage medium storing program for executing, the computer program include program instruction, when described program is instructed by computer When execution, the computer is made to execute the method as described in claim 1 to 6 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 6 is any.
CN201711260313.0A 2017-12-04 2017-12-04 Method and system for generating test case of charging system Active CN109871309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711260313.0A CN109871309B (en) 2017-12-04 2017-12-04 Method and system for generating test case of charging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711260313.0A CN109871309B (en) 2017-12-04 2017-12-04 Method and system for generating test case of charging system

Publications (2)

Publication Number Publication Date
CN109871309A true CN109871309A (en) 2019-06-11
CN109871309B CN109871309B (en) 2020-12-04

Family

ID=66915481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711260313.0A Active CN109871309B (en) 2017-12-04 2017-12-04 Method and system for generating test case of charging system

Country Status (1)

Country Link
CN (1) CN109871309B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240983A (en) * 2020-01-14 2020-06-05 北京思特奇信息技术股份有限公司 Method and device for realizing automatic test of telecommunication charging service
CN111489178A (en) * 2020-04-16 2020-08-04 北京思特奇信息技术股份有限公司 Method and system for marketing support through event detection
CN112637793A (en) * 2020-11-30 2021-04-09 北京思特奇信息技术股份有限公司 Scene charging method, system, electronic equipment and storage medium based on 5G
CN112783758A (en) * 2019-11-11 2021-05-11 阿里巴巴集团控股有限公司 Test case library and feature library generation method, device and storage medium
CN112799951A (en) * 2021-02-04 2021-05-14 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN112995934A (en) * 2019-12-16 2021-06-18 中国移动通信集团湖南有限公司 Call bill generating method and device and call bill charging result verifying method and device
CN113011869A (en) * 2019-12-19 2021-06-22 中国电信股份有限公司 Test data generation method and device and computer readable storage medium
CN113452533A (en) * 2020-03-24 2021-09-28 中国移动通信集团山东有限公司 Charging self-inspection and self-healing method and device, computer equipment and storage medium
CN115150764A (en) * 2022-06-29 2022-10-04 中国联合网络通信集团有限公司 Charge configuration method, device, equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014061A (en) * 2007-01-26 2007-08-08 华为技术有限公司 Method and apparatus for generating testing script and testing method and apparatus and system
CN101730043A (en) * 2008-10-29 2010-06-09 中国移动通信集团吉林有限公司 Pricing test method and system
CN101827346A (en) * 2009-03-04 2010-09-08 中国移动通信集团上海有限公司 Automatic test method and device for charge system
US8019049B2 (en) * 2007-03-27 2011-09-13 Avaya Inc. Method for generating reliability tests based on orthogonal arrays and field data
CN103198009A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Universal testing method, system and corresponding device
CN104468259A (en) * 2014-11-11 2015-03-25 上海新炬网络信息技术有限公司 Method for automatically testing communication service expense
CN104572449A (en) * 2014-12-23 2015-04-29 中国移动通信集团广东有限公司 Automatic test method based on case library
US20150212932A1 (en) * 2010-10-06 2015-07-30 International Business Machines Corporation Asynchronous code testing
CN105245396A (en) * 2014-07-11 2016-01-13 华为软件技术有限公司 Fee verification method and fee verification system
US20170332240A1 (en) * 2009-01-28 2017-11-16 Headwater Research Llc Wirless Network Buffered Message System
CN107357735A (en) * 2017-07-20 2017-11-17 万帮充电设备有限公司 Discount method of testing and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014061A (en) * 2007-01-26 2007-08-08 华为技术有限公司 Method and apparatus for generating testing script and testing method and apparatus and system
US8019049B2 (en) * 2007-03-27 2011-09-13 Avaya Inc. Method for generating reliability tests based on orthogonal arrays and field data
CN101730043A (en) * 2008-10-29 2010-06-09 中国移动通信集团吉林有限公司 Pricing test method and system
US20170332240A1 (en) * 2009-01-28 2017-11-16 Headwater Research Llc Wirless Network Buffered Message System
CN101827346A (en) * 2009-03-04 2010-09-08 中国移动通信集团上海有限公司 Automatic test method and device for charge system
US20150212932A1 (en) * 2010-10-06 2015-07-30 International Business Machines Corporation Asynchronous code testing
CN103198009A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Universal testing method, system and corresponding device
CN105245396A (en) * 2014-07-11 2016-01-13 华为软件技术有限公司 Fee verification method and fee verification system
CN104468259A (en) * 2014-11-11 2015-03-25 上海新炬网络信息技术有限公司 Method for automatically testing communication service expense
CN104572449A (en) * 2014-12-23 2015-04-29 中国移动通信集团广东有限公司 Automatic test method based on case library
CN107357735A (en) * 2017-07-20 2017-11-17 万帮充电设备有限公司 Discount method of testing and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783758A (en) * 2019-11-11 2021-05-11 阿里巴巴集团控股有限公司 Test case library and feature library generation method, device and storage medium
CN112783758B (en) * 2019-11-11 2024-02-27 阿里云计算有限公司 Test case library and feature library generation method, device and storage medium
CN112995934A (en) * 2019-12-16 2021-06-18 中国移动通信集团湖南有限公司 Call bill generating method and device and call bill charging result verifying method and device
CN113011869A (en) * 2019-12-19 2021-06-22 中国电信股份有限公司 Test data generation method and device and computer readable storage medium
CN111240983A (en) * 2020-01-14 2020-06-05 北京思特奇信息技术股份有限公司 Method and device for realizing automatic test of telecommunication charging service
CN113452533A (en) * 2020-03-24 2021-09-28 中国移动通信集团山东有限公司 Charging self-inspection and self-healing method and device, computer equipment and storage medium
CN111489178A (en) * 2020-04-16 2020-08-04 北京思特奇信息技术股份有限公司 Method and system for marketing support through event detection
CN112637793A (en) * 2020-11-30 2021-04-09 北京思特奇信息技术股份有限公司 Scene charging method, system, electronic equipment and storage medium based on 5G
CN112637793B (en) * 2020-11-30 2022-06-03 北京思特奇信息技术股份有限公司 Scene charging method, system, electronic equipment and storage medium based on 5G
CN112799951A (en) * 2021-02-04 2021-05-14 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN112799951B (en) * 2021-02-04 2023-03-31 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN115150764A (en) * 2022-06-29 2022-10-04 中国联合网络通信集团有限公司 Charge configuration method, device, equipment and medium
CN115150764B (en) * 2022-06-29 2024-02-23 中国联合网络通信集团有限公司 Tariff configuration method, tariff configuration device, tariff configuration equipment and tariff configuration medium

Also Published As

Publication number Publication date
CN109871309B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN109871309A (en) A kind of charge system test cases generation method and system
CN104468259B (en) A kind of communication traffic rate automated testing method
CN101827346B (en) Automatic test method and device for charge system
EP3025456A1 (en) Service provider network migration
CN108509392B (en) Multi-mechanism account checking method, system, computer equipment and storage medium
US20100063937A1 (en) Tariff management test automation
CN106648556A (en) Front end and back end integrated development testing method and device
CN108632047B (en) Method and device for determining tariff data
US7912191B2 (en) Method and system for monitoring traffic revenue flows for communications companies
US20100088248A1 (en) Tariff management configuration automation
CN110233741A (en) Service charging method, device, equipment and storage medium
CN112506771A (en) Message comparison method and device
CN108804241A (en) Cross-platform method for scheduling task, system, computer equipment and storage medium
CN102098699A (en) Method and device for verifying user data in telecommunication system
CN113721950A (en) Resource loss prevention and control processing method and device
CA2747111A1 (en) Account and asset loader tool
CN104137581B (en) A kind of determination methods and device of repeatedly networking user
CN112036836A (en) Service opening method, system and equipment
CN110166636A (en) Device, method and the storage medium of pressure test
CN112364058B (en) Auditing method and device for commodity price configuration
CN108762742A (en) Data flow and the analysis method of service route, device, equipment and medium
CN109194717A (en) A kind of set-off service implementation method and device based on OSS
US11461297B1 (en) Ensuring database integrity using a data flow in a graph, such as for use by a wireless telecommunications service provider
CN116777606B (en) Intelligent anti-fraud system and method for bank credit based on relation graph
Lonkar et al. Proposed Approaches to Implement Intelligent Automation In 5G Telecom Services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant