CN116703382A - Verification method and device of charging program - Google Patents

Verification method and device of charging program Download PDF

Info

Publication number
CN116703382A
CN116703382A CN202210190575.9A CN202210190575A CN116703382A CN 116703382 A CN116703382 A CN 116703382A CN 202210190575 A CN202210190575 A CN 202210190575A CN 116703382 A CN116703382 A CN 116703382A
Authority
CN
China
Prior art keywords
charging
ticket
program
information
rating
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.)
Pending
Application number
CN202210190575.9A
Other languages
Chinese (zh)
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 Inner Mongolia Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Inner Mongolia 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 Inner Mongolia Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202210190575.9A priority Critical patent/CN116703382A/en
Publication of CN116703382A publication Critical patent/CN116703382A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/14Payment architectures specially adapted for billing systems
    • G06Q20/145Payments according to the detected use or quantity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Meter Arrangements (AREA)

Abstract

The invention provides a verification method and device of a charging program, and relates to the technical field of data processing. The method comprises the following steps: determining the charging type of the charging ticket according to the target information of the charging ticket; selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set; according to the charging program to be upgraded, each ticket sample in the ticket sample set is subjected to rating, and the rating result of each ticket sample in the ticket sample set is determined; comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating. The verification method and the verification device for the charging program provided by the invention realize the batch verification of the program to be updated by selecting the single ticket sample corresponding to each charging type from the charging ticket library and generating the ticket sample set only containing a small number of samples. Under the condition of guaranteeing the quality, the verification time of the price of the program to be upgraded is greatly reduced.

Description

Verification method and device of charging program
Technical Field
The invention relates to the technical field of data processing, in particular to a verification method and device of a charging program.
Background
In the large-version upgrade test of the existing charging system, in order to ensure the correctness of the charging rating program, a mode of checking the original ticket in a large-scale manner in multiple rounds is adopted. For example, selecting a full-quantity original ticket for multiple days as a ticket source, applying the same user data as a data source, decoding, sorting, analyzing business, rating and warehousing the full-flow processing are carried out on the ticket respectively by using an old program and a new program, and processing results are input into a database for comparison piece by piece according to users. And analyzing and classifying the difference, manually checking the difference reason, correcting the bug, and repeating the process by using the same ticket source data source again until all the problems are solved.
In the existing method, in order to ensure coverage of the rating scene, a full quantity bill at the beginning of month, in month and at the end of month is selected, the quantity of the bill is in the order of billions, the data quantity is too large, and the scene repetition rate is high. The comparison of large batches of tickets is only repeated to verify a scenario. The checking period is long, the input resource is large, the average time of one round is needed for one week, and the influence on the whole progress of the engineering project is large.
Disclosure of Invention
The invention provides a verification method and a verification device for a charging program, which are used for solving the technical problem that the verification sample data volume is too large during the batch verification of the charging program in the prior art.
In a first aspect, the present invention provides a method for verifying a charging procedure, including:
determining the charging type of the charging ticket according to the target information of the charging ticket;
selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set;
according to the charging program to be upgraded, each ticket sample in the ticket sample set is subjected to rating, and the rating result of each ticket sample in the ticket sample set is determined;
comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
In one embodiment, the determining the charging type of the charging ticket according to the target information of the charging ticket includes:
under the condition that the charging ticket does not contain special call product information, determining a first charging type according to call scene information, call product rule information and rate curve information;
and determining a second charging type according to the call scene information, the call product rule information, the rate curve information and the special call product information under the condition that the charging ticket contains the special call product information.
In one embodiment, the selecting a single ticket sample corresponding to each charging type in the charging ticket library to obtain a ticket sample set includes:
selecting single ticket samples corresponding to each first charging type from a charging ticket library according to the first charging type to obtain a first sample set;
selecting single ticket samples corresponding to each second charging type from the charging ticket library according to the second charging type to obtain a second sample set;
and adding the first sample set and the first sample set to obtain a ticket sample set.
In one embodiment, the call scenario information is determined by combining the call scenario features according to a cartesian product;
the call scene features include: call type, roaming type, long-term type, access type, and opposite number type.
In one embodiment, the rating of each ticket sample in the ticket sample set according to the charging procedure to be upgraded, and determining the rating result of each ticket sample in the ticket sample set includes:
according to a preset conversion format, converting the data format of each ticket sample in the ticket sample set into a charging file format to obtain a charging file corresponding to each ticket sample;
and according to the charging program to be upgraded, rating each charging file, and determining the rating result of the charging file corresponding to each ticket sample.
In one embodiment, after determining whether the charging procedure to be upgraded is accurate, the method further includes:
and under the condition that the rating of the charging program to be upgraded is inaccurate, revising the rating rule of the program to be upgraded according to the rating rule of the ticket sample set.
In a second aspect, the present invention also provides a verification device for a charging procedure, including:
the charging type determining module is used for determining the charging type of the charging ticket according to the target information of the charging ticket;
the ticket sample set determining module is used for selecting a single ticket sample corresponding to each charging type from the charging ticket library to obtain a ticket sample set;
the charging program rating module to be upgraded is used for rating each ticket sample in the ticket sample set according to the charging program to be upgraded and determining the rating result of each ticket sample in the ticket sample set;
the charging program verification module to be upgraded is used for comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
In a third aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing a method for verifying a billing program of any of the above when executing the computer program.
In a fourth aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of verifying a billing program of any of the above.
In a fifth aspect, the invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of verifying a charging program of any of the above.
The verification method, the verification device, the electronic equipment and the storage medium of the charging program provided by the invention are used for generating a ticket sample set only comprising a small number of samples by determining the charging types in the charging ticket and selecting single ticket samples corresponding to each charging type from a charging ticket library. And realizing the price verification of the program to be updated according to the ticket set of a small number of samples, greatly reducing the price verification time of the program to be updated and improving the verification efficiency of the charging program to be updated under the condition of guaranteeing the quality.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a verification method of a charging procedure provided by the present invention;
fig. 2 is a flow chart of a verification method of a charging procedure provided by the invention;
fig. 3 is a schematic structural diagram of a verification device for a charging procedure according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flow chart of a verification method of a charging procedure provided by the present invention. Referring to fig. 1, the verification method of the charging procedure provided by the present invention may include:
110. determining the charging type of the charging ticket according to the target information of the charging ticket;
120. selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set;
130. according to the charging program to be upgraded, each ticket sample in the ticket sample set is subjected to rating, and the rating result of each ticket sample in the ticket sample set is determined;
140. comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
The execution subject of the verification method of the charging program provided by the invention can be an electronic device, a component in the electronic device, an integrated circuit or a chip. The electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet, notebook, palmtop, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS) or personal computer (personal computer, PC), etc., the invention is not particularly limited.
The technical scheme of the present invention will be described in detail below by taking a verification method for executing the charging program provided by the present invention by a computer as an example.
In step 110, a charging type of the charging ticket is determined according to the target information of the charging ticket.
The charging ticket is generated by the telecom operator user in the process of handling the charging set meal and using the charging set meal. For different billing packages, the billing rules are different in the unused usage scenarios. The existing charging ticket can be classified according to the target information in the existing charging ticket, and the charging type of the charging ticket is obtained and used for checking the charging program to be updated subsequently. The target information of the billing ticket may include: call scene information, call product rule information, rate curve information, special call product information, and the like.
In step 120, in the billing ticket library of the telecom operator, a unique ticket sample corresponding to the billing type is selected according to the billing type determined in step 110. And selecting a corresponding ticket sample according to each charging type to obtain a ticket sample set.
It will be appreciated that the charging ticket for the same charging type is the same in charging rules. In a massive billing ticket library, selecting a corresponding single ticket sample according to a billing type, wherein the single ticket sample is only selected corresponding to different billing types. And selecting one sample of each charging type, simplifying a mass charging bill library according to the charging types, analyzing and verifying the charging Cheng Xushi to be upgraded later, and reducing the verification calculation amount by reducing the samples.
In step 130, according to the rating calculation rule of the charging program to be upgraded, each ticket sample in the ticket sample set is rated, and the rating result of each ticket sample in the ticket sample set is determined, i.e. the ticket cost of each ticket sample is determined.
It will be appreciated that each ticket sample in the ticket sample set contains all of the billing types in the billing ticket library. And according to the rating calculation rule of the charging program to be upgraded, rating each ticket sample in the ticket sample set. The comprehensive verification of all charging types in the charging ticket library can be realized.
In step 140, according to the rating result determined by the charging procedure to be upgraded in step 130, the rating result is compared with the original rating result of each ticket sample in the ticket sample set, and according to the comparison result, it is determined whether the charging procedure to be upgraded is accurate.
The original rating result of the ticket sample is calculated and determined by the original rating program, and the calculation of the rating result is completed when the ticket sample is generated. Comparing the rating results of the ticket samples determined by the charging program to be upgraded with the original rating results of the corresponding ticket samples, and determining whether the charging program to be upgraded is accurate in rating and reliable.
It can be understood that if the rating result determined by the charging procedure to be upgraded is consistent with the original rating result of each ticket sample in the ticket sample set, the charging procedure to be upgraded is accurate in rating. If the charging program is inconsistent, the charging program to be upgraded is different from the original rating program generating the original rating result of the ticket sample in rating logic, and the charging program to be upgraded needs to be corrected.
The target information of the charging ticket includes: call scenario information, call product rule information, rate curve information, and special call product information.
And classifying the charging ticket according to the call scene information, the call product rule information, the rate curve information and the special call product information in the charging ticket, and determining the charging rule of the charging ticket.
The call scene information refers to charging information determined according to charging elements of a telecom operator, and comprises a call type, a roaming type, a long-term type, an access type, a peer number type and the like.
The call product rule information refers to a specific call product charging rule set by a telecom operator.
The rate curve information is sub-information of the conversation product rule information, and is the rate rule for a specific product in the conversation product rule. If a user dials an international long distance, the used call product rule information is a general international product. For this product, the call target was 1 yuan per minute in the united states direction and 2 yuan per minute in the uk direction. Therefore, the user accords with domestic calling, non-roaming, international long distance, live broadcast and the opposite terminal number is an international operator. If the user dials the united states and the united kingdom in the detail list respectively, the types in the united kingdom and the united kingdom directions cannot be selected completely only by the call scene information and the call product rule information, so that the types can be selected completely only by referring to the rate curve information (united kingdom and the united kingdom).
The special call product information refers to information that some products have special attributes and are defined according to product condition rules. For example, when the customer roams in beijing, the communication fee is free of special call product, and additional special call product information is provided.
The verification method of the charging program provided by the invention selects single ticket samples corresponding to each charging type from a charging ticket library by determining the charging type in the charging ticket, and generates a ticket sample data set only containing a small number of samples. And realizing the price verification of the program to be updated according to the ticket set of a small number of samples, greatly reducing the verification time of the price of the charging program to be updated and improving the verification efficiency of the charging program to be updated under the condition of guaranteeing the quality.
In one embodiment, determining a charging type of the charging ticket according to target information of the charging ticket includes: under the condition that the charging ticket does not contain special call product information, determining a first charging type according to call scene information, call product rule information and rate curve information; and determining a second charging type according to the call scene information, the call product rule information, the rate curve information and the special call product information under the condition that the charging ticket contains the special call product information.
In the case that the charging ticket does not include special call product information, the first charging type of the charging ticket can be determined according to call scene information, call product rule information and rate curve information. For example, the call scene information can be determined as a calling party, the provincial roaming visit, the domestic long distance, the live broadcast, and the opposite terminal number is the same telecom operator; the conversation product rule information is domestic conversation, and the money is divided by 5 per minute; and the rate curve information is non-international long distance, and the charging type of the current target information is determined.
And determining a second charging type of the charging ticket according to the call scene information, the call product rule information, the rate curve information and the special call product information under the condition that the charging ticket contains the special call product information. Therefore, in the case that the charging ticket is determined to contain special call product information, a special product condition rule is added, and a second charging type of the charging ticket is determined.
The verification method of the charging program provided by the invention further subdivides the charging type of the charging ticket according to determining whether the charging ticket contains special call product information. And a foundation is provided for the follow-up verification of the charging ticket comprehensively realized according to the charging program to be upgraded.
In one embodiment, selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set, including: selecting single ticket samples corresponding to each first charging type from a charging ticket library according to the first charging type to obtain a first sample set; selecting single ticket samples corresponding to each second charging type from the charging ticket library according to the second charging type to obtain a second sample set; and adding the first sample set and the first sample set to obtain a ticket sample set.
The charging types include a first charging type and a second charging type. The first charging type and the second charging type comprise all charging types in a charging ticket library. After the first charging types are determined, single ticket samples corresponding to the first charging types are selected from the charging ticket library, and a first sample set corresponding to the first charging types is obtained. After the second charging type is determined, a single ticket sample corresponding to each second charging type is selected from the charging ticket library, and a second sample set corresponding to the second charging type is obtained. The ticket sample set is obtained by adding the first sample set and the second sample set.
After the first charging type and the second charging type are determined, a single ticket sample corresponding to each first charging type and each second charging type is selected from a charging ticket library, so as to obtain a ticket sample set only containing a small number of samples. Subsequently, the verification of the price of the program to be updated is realized according to the ticket set of a small number of samples, so that the verification time of the price of the charging program to be updated is greatly reduced under the condition of guaranteeing the quality, and the verification efficiency of the charging program to be updated is improved
In one embodiment, the call context information is determined by combining the call context features according to a Cartesian product; the call scene features include: call type, roaming type, long-term type, access type, and opposite number type.
Optionally, the call types in the call scenario may include caller, callee, conditional call forwarding, unconditional call forwarding, etc. Roaming types may include home, interprovince roaming, international roaming, and so on. The long-distance type may include no long distance, domestic long distance, harbor australia distance, etc. The access type may include direct dial-up, IP access card, etc. The opposite number type may include a foreign network, the same telecommunications carrier, etc. According to the Cartesian product, five call scene characteristics of call type, roaming type, long-distance call type, access type and opposite terminal number type are combined, and the charging type is determined.
The verification method of the charging program provided by the invention combines all the call scene characteristics to determine the call scene information through Cartesian products, thereby realizing the determination of the charging type in the charging bill library and providing a basis for selecting the bill sample in the charging bill library subsequently.
In one embodiment, according to a charging procedure to be upgraded, each ticket sample in the ticket sample set is priced, and the determining the priced result of each ticket sample in the ticket sample set includes: according to a preset conversion format, converting the data format of each ticket sample in the ticket sample set into a charging file format to obtain a charging file corresponding to each ticket sample; and according to the charging program to be upgraded, rating each charging file, and determining the rating result of the charging file corresponding to each ticket sample.
Note that the ticket sample data is often stored in a database in the form of a table. The table data is converted according to a preset conversion format, and is converted into a file format which can be processed by the charging program to be upgraded, so that the charging program to be upgraded can carry out business analysis, rating and other processes, and key fields are refilled. And the ticket sample is subjected to rating, namely a charging file corresponding to the ticket sample is executed by the program to be updated, and a corresponding rating result is obtained.
After each ticket sample in the ticket sample set is determined, the data format of each ticket sample is converted into a charging file format according to a preset conversion format. And executing the charging files corresponding to the ticket samples by the program to be updated to obtain the rating results of the charging files corresponding to the ticket samples. And obtaining the rating result of each ticket sample in the ticket sample set.
According to the verification method of the charging program, the data format of each ticket sample in the ticket sample set is converted into the charging file format according to the preset conversion format, so that the charging file corresponding to each ticket sample is obtained, the charging program to be upgraded can carry out rating processing on the charging file, and a foundation is provided for realizing verification of the charging program to be upgraded.
In one embodiment, after determining whether the charging procedure to be upgraded is accurate in rating, the method further includes: and under the condition that the rating of the charging program to be upgraded is inaccurate, revising the rating rule of the charging program to be upgraded according to the rating rule of the ticket sample set.
And determining the rating result of the ticket samples in the ticket sample set one by one according to the charging program to be upgraded. And under the condition that the calculated rating result is different from the original rating result of the ticket sample, analyzing the difference between the rating result of the charging program to be upgraded and the original rating result, and modifying the bug of the charging program to be upgraded.
It can be understood that, the charging program to be upgraded determines the rating result of the ticket sample, and if the rating result of the ticket sample is different from the original rating result of the corresponding ticket sample, the rating of the charging program to be upgraded is wrong.
According to the verification method of the charging program, under the condition that the charging program to be upgraded is inaccurate in price, the price rule of the charging program to be upgraded is revised according to the price rule of the ticket sample set. And correcting the problems in the charging program to be upgraded while verifying the charging program to be upgraded.
The following describes the technical scheme provided by the present invention by taking a flowchart of a verification method of a charging program provided by the present invention as an example in fig. 2:
the call scene information (expr_id) is composed of call scene features. The call scene features are mathematical abstraction of user communication behavior, and take voice communication as an example, the call scene features comprise call type, roaming type, long-term type, access type and opposite terminal number type. The CALL scene features respectively correspond to different fields in the charging ticket, such as a CALL_TYPE field in the charging ticket corresponding to the CALL TYPE; the roaming TYPE corresponds to the ROAM_TYPE field in the charging ticket; the long-term TYPE corresponds to a TOLL_TYPE field in the charging ticket; the ACCESS TYPE corresponds to an OPP_ACCESS_TYPE field in the charging ticket; the opposite terminal NUMBER TYPE corresponds to an OPP NUMBER TYPE field in the billing ticket.
Each call scenario feature enumeration may be defined as:
call type (0 caller; 1 callee; 2 conditional call forwarding; 3 unconditional call forwarding);
roaming type (0 local; 2 interprovincial roaming; 3 international roaming; 4 interprovincial roaming; 5 international roaming);
long-distance type (0 no long distance; 10 domestic long distance; 14 harbor australia station, etc.);
the access type (0 direct dialing; 1IP access card);
opposite end number type (1 foreign network; 12 chinese mobile GSM, etc.).
The 5 call scene features are combined into a plurality of cases according to Cartesian products, all call scene information of the telecom operator service is taken as the possible combination cases, and the filter generates corresponding call scene information ID by analyzing the combination of charging elements in the charging ticket library. For the same combination, the ID is unique. For example, the session scene information is: calling party, provincial roaming visit, domestic long distance, live broadcast, the opposite terminal number is mobile, then unify and sum up to 0.sub.4.sub.10.sub.0.sub.12 expression, set up the correspondent conversation scene information as ID10000000, all accord with this kind of conversation and is correspondent to this ID, for example conversation scene information is: called party, provincial roaming visit, domestic long distance, live broadcast, the opposite terminal number is mobile, then unify the expression of 1.sub.4.sub.10.sub.0.sub.12, set up corresponding ID 10000001. Defined in the system may be the expr_id as the screening dimension K.
Further, determining conversation product rule information: if the M user orders the product as prod_id (a), the user communicates in China, and the first 3 minutes of 2 hair money and the second 3 minutes of one hair money per minute later. The user accords with calling party, provincial roaming visit, domestic long distance, live broadcast, mobile opposite terminal number, such as the conversation scene with the expr_id of 10000000, 2 hair money in 3 minutes is matched with conversation product rule information, and rate curve information of one hair money per minute after 3 minutes is defined as a current_id (c). The cure_id is sub-information of the prod_id. The storage form is as follows: expr_id:10000000, prod_id: a, cut_id: c.
if the conversation product rule information of the ordered product of the N users is prod_id (b) domestic conversation, 5 money is divided per minute; this user corresponds to the domestic call scenario, e.g. the call scenario summarized as exp_id 10000000 in the example, matching at the user product level the rate curve information for 5 money per minute, which is defined as cut_id. The cure_id is sub-information of the prod_id. The storage form is as follows: expr_id:10000000prod_id: b cure_id: d.
if G user dials international long distance, using universal international product prod_id (c), U.S. direction is 1 yuan per minute, and British direction is 2 yuan per minute, the user accords with domestic calling, non-roaming, international long distance, live broadcast, and opposite terminal number is international operator. If the user dials the united states and the united kingdom in the billing ticket, the scenes in the united kingdom and the united kingdom cannot be selected completely only by the expr_id and the prod_id, so that the scenes can be selected completely only by referring to the curve_id (united kingdom n). The storage form is as follows:
expr_id 10000211prod_id:c curve_id:m (U.S. Direction)
Expr_id 10000211prod_id:c curve_id:n (British direction)
For the rating process of the billing ticket, the same call scene information, call product rule information and the same rate curve information can be regarded as the same billing type case to be reserved. So based on dimension K, the detail library is further screened for the use of the same product (same prod_id), and the use of the same tariff curve (same cut_id) is used as result set a.
When special product condition rules are included: the special product condition rule refers to a product with special properties, for example, when a customer roams in Beijing, the communication fee is free, and the special product condition rule is realized by judging whether a roaming place field of the customer is = 'Beijing' or not according to the condition hung on the product, and the scene cannot be screened directly through the mode, and the screening rule of the special product condition rule needs to be carried out: products with expressions are searched in the product configuration table, so that the number of special products is small, and the result set is less than thousand. The special product condition rule is defined as specific_id.
Based on the result set A, the conversation product rule information ID is directly screened by taking the expr_id, the cure_id and the prod_id as main keys without special conditions, and the same type is defaulted to 1 according to the preset number of reserved strips, so that a first sample set is obtained.
On the basis of the result set A, matching the conversation product rule information ID with special conditions on the conversation product rule information ID to obtain a conversation product rule information ID of three types, namely, cut_id+expr_id+prod_id+special_id
Screening the primary keys, and defaulting the primary keys to 1 according to the preset number of reserved bars, so as to obtain a second sample set.
The first sample set + the second sample set is the final resulting ticket sample set.
Aiming at engineering scale and transformation content, a ticket sample set can be formed by screening in a billing ticket library, and the ticket sample size after screening is reduced from 10 hundred million to hundred thousand. The overall period of checking can be shortened to one hour.
The invention also provides a verification device of the charging program, which can be correspondingly referred to the verification method of the charging program.
Fig. 3 is a schematic structural diagram of a verification device of a charging procedure provided in the present invention, as shown in fig. 3, the device includes:
a charging type determining module 310, configured to determine a charging type of a charging ticket according to target information of the charging ticket;
the ticket sample set determining module 320 is configured to select a single ticket sample corresponding to each charging type from the charging ticket library, so as to obtain a ticket sample set;
a billing program to be upgraded rating module 330, configured to rate each ticket sample in the ticket sample set according to the billing program to be upgraded, and determine a rating result of each ticket sample in the ticket sample set;
the charging procedure to be upgraded verifying module 340 is configured to compare the rating result with an original rating result of each ticket sample in the ticket sample set, and determine whether the charging procedure to be upgraded is accurate;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
The verification device of the charging program provided by the invention selects single ticket samples corresponding to each charging type from a charging ticket library by determining the charging type in the charging ticket, and generates a ticket sample set only containing a small number of samples. And realizing the price verification of the program to be updated according to the ticket set of a small number of samples, greatly reducing the price verification time of the program to be updated and improving the verification efficiency of the charging program to be updated under the condition of guaranteeing the quality.
In one embodiment, the charging type determination module 310 is specifically configured to:
determining the charging type of the charging ticket according to the target information of the charging ticket, comprising:
under the condition that the charging ticket does not contain special call product information, determining a first charging type according to call scene information, call product rule information and rate curve information;
and determining a second charging type according to the call scene information, the call product rule information, the rate curve information and the special call product information under the condition that the charging ticket contains the special call product information.
In one embodiment, the ticket sample set determination module 320 is specifically configured to:
selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set, wherein the method comprises the following steps:
selecting single ticket samples corresponding to each first charging type from a charging ticket library according to the first charging type to obtain a first sample set;
selecting single ticket samples corresponding to each second charging type from the charging ticket library according to the second charging type to obtain a second sample set;
and adding the first sample set and the first sample set to obtain a ticket sample set.
In one embodiment, the charging type determination module 310 is further specifically configured to:
the communication scene information is determined by combining the communication scene characteristics according to the Cartesian product;
the call scene features include: call type, roaming type, long-term type, access type, and opposite number type.
In one embodiment, the billing program pricing module 330 to be upgraded is specifically configured to:
according to the charging program to be upgraded, each ticket sample in the ticket sample set is priced, and the priced result of each ticket sample in the ticket sample set is determined, which comprises the following steps:
according to a preset conversion format, converting the data format of each ticket sample in the ticket sample set into a charging file format to obtain a charging file corresponding to each ticket sample;
and according to the charging program to be upgraded, rating each charging file, and determining the rating result of the charging file corresponding to each ticket sample.
In one embodiment, the billing program verification module to be upgraded 340 is specifically configured to:
after determining whether the charging program to be upgraded is accurate in rating, the method further comprises the following steps:
and under the condition that the rating of the charging program to be upgraded is inaccurate, revising the rating rule of the program to be upgraded according to the rating rule of the ticket sample set.
The present invention also provides an electronic device, as shown in fig. 4, which may include: a processor (processor) 410, a communication interface (Communication Interface) 420, a memory (memory) 430 and a communication bus (bus) 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other via the communication bus 440. Processor 410 may invoke logic instructions in memory 430 to perform a method of verification of a billing program, including, for example:
determining the charging type of the charging ticket according to the target information of the charging ticket;
selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set;
according to the charging program to be upgraded, each ticket sample in the ticket sample set is subjected to rating, and the rating result of each ticket sample in the ticket sample set is determined;
comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
Further, the logic instructions in the memory 430 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method of verifying a billing program provided by the above method embodiments, for example comprising:
determining the charging type of the charging ticket according to the target information of the charging ticket;
selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set;
according to the charging program to be upgraded, each ticket sample in the ticket sample set is subjected to rating, and the rating result of each ticket sample in the ticket sample set is determined;
comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements a method for verifying a charging program provided by the above method embodiments, for example, including:
determining the charging type of the charging ticket according to the target information of the charging ticket;
selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set;
according to the charging program to be upgraded, each ticket sample in the ticket sample set is subjected to rating, and the rating result of each ticket sample in the ticket sample set is determined;
comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for verifying a billing procedure, comprising:
determining the charging type of the charging ticket according to the target information of the charging ticket;
selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set;
according to the charging program to be upgraded, each ticket sample in the ticket sample set is subjected to rating, and the rating result of each ticket sample in the ticket sample set is determined;
comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
2. The method for verifying a billing program of claim 1 wherein determining a billing type for a billing ticket based on target information for the billing ticket comprises:
under the condition that the charging ticket does not contain special call product information, determining a first charging type according to call scene information, call product rule information and rate curve information;
and determining a second charging type according to the call scene information, the call product rule information, the rate curve information and the special call product information under the condition that the charging ticket contains the special call product information.
3. The method for verifying a charging procedure according to claim 2, wherein selecting a single ticket sample corresponding to each charging type from a charging ticket library to obtain a ticket sample set comprises:
selecting single ticket samples corresponding to each first charging type from a charging ticket library according to the first charging type to obtain a first sample set;
selecting single ticket samples corresponding to each second charging type from the charging ticket library according to the second charging type to obtain a second sample set;
and adding the first sample set and the first sample set to obtain a ticket sample set.
4. The method according to claim 1, wherein the call scenario information is determined by combining call scenario features according to a cartesian product;
the call scene features include: call type, roaming type, long-term type, access type, and opposite number type.
5. The method for verifying a billing program of claim 1 wherein the rating each ticket sample in the ticket sample set according to the billing program to be upgraded, determining the rating result of each ticket sample in the ticket sample set comprises:
according to a preset conversion format, converting the data format of each ticket sample in the ticket sample set into a charging file format to obtain a charging file corresponding to each ticket sample;
and according to the charging program to be upgraded, rating each charging file, and determining the rating result of the charging file corresponding to each ticket sample.
6. The method for verifying a charging procedure according to claim 1, wherein after determining whether the charging procedure to be upgraded is accurate in rating, further comprising:
and under the condition that the rating of the charging program to be upgraded is inaccurate, revising the rating rule of the program to be upgraded according to the rating rule of the ticket sample set.
7. A verification apparatus of a charging program, characterized by comprising:
the charging type determining module is used for determining the charging type of the charging ticket according to the target information of the charging ticket;
the ticket sample set determining module is used for selecting a single ticket sample corresponding to each charging type from the charging ticket library to obtain a ticket sample set;
the charging program rating module to be upgraded is used for rating each ticket sample in the ticket sample set according to the charging program to be upgraded and determining the rating result of each ticket sample in the ticket sample set;
the charging program verification module to be upgraded is used for comparing the rating result with the original rating result of each ticket sample in the ticket sample set to determine whether the charging program to be upgraded is accurate in rating;
the target information of the charging ticket comprises: call scenario information, call product rule information, rate curve information, and special call product information.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a method for verifying a charging program according to any one of claims 1 to 6 when executing the computer program.
9. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements a method of verifying a charging program according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements a method of verifying a charging program according to any one of claims 1 to 6.
CN202210190575.9A 2022-02-28 2022-02-28 Verification method and device of charging program Pending CN116703382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210190575.9A CN116703382A (en) 2022-02-28 2022-02-28 Verification method and device of charging program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210190575.9A CN116703382A (en) 2022-02-28 2022-02-28 Verification method and device of charging program

Publications (1)

Publication Number Publication Date
CN116703382A true CN116703382A (en) 2023-09-05

Family

ID=87834456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210190575.9A Pending CN116703382A (en) 2022-02-28 2022-02-28 Verification method and device of charging program

Country Status (1)

Country Link
CN (1) CN116703382A (en)

Similar Documents

Publication Publication Date Title
US9118779B2 (en) System and method for inbound call billing
CN110493477B (en) Fraud number identification method, device, equipment and storage medium
US8781090B2 (en) System and method for identifying billing errors
US20090006229A1 (en) System and method for telephony billing codes
CN109871309B (en) Method and system for generating test case of charging system
CN111240983A (en) Method and device for realizing automatic test of telecommunication charging service
CN108632047B (en) Method and device for determining tariff data
US20220256340A1 (en) Method for providing roaming service by using blockchain and apparatus therefor
CN102685709A (en) Method and device for auditing charging
EP2413279A1 (en) Account reconciliation server
CN116703382A (en) Verification method and device of charging program
WO2003090438A1 (en) User-friendly itemised call record generation method
CN103441889B (en) Statistical information generating method and system
CN114793325A (en) Short message charging method and device for VoLTE terminal user and electronic equipment
EP2919504B1 (en) Method and device for judging user repeatedly accessing network
CN1322706C (en) Method of realizing real time segmental charging
CN110677446A (en) Method and device for identifying family group users
US8625758B2 (en) Method, a telecommunication system and a network node for sponsoring a communication service
KR20120076557A (en) Method and system for processing automatic payment used cellular phone charge
CN108932283B (en) Customer information screening method, system, computer device and storage medium
CN113011869A (en) Test data generation method and device and computer readable storage medium
WO2013057712A2 (en) A method of creating a customised bill for telephony services and a system therefor
CN108235268B (en) Method and device for acquiring use times of IMEI (international mobile equipment identity) of call terminal
KR100662394B1 (en) System and method for limit use of supplementary services in mobile terminal
CN114845257B (en) Multi-level charging method, device and storage medium based on embedded script

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