CN112988591A - Charging logic verification method, device, equipment and storage medium - Google Patents

Charging logic verification method, device, equipment and storage medium Download PDF

Info

Publication number
CN112988591A
CN112988591A CN202110360872.9A CN202110360872A CN112988591A CN 112988591 A CN112988591 A CN 112988591A CN 202110360872 A CN202110360872 A CN 202110360872A CN 112988591 A CN112988591 A CN 112988591A
Authority
CN
China
Prior art keywords
charging
result
target
parameter information
logic
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.)
Withdrawn
Application number
CN202110360872.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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software Technology 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN202110360872.9A priority Critical patent/CN112988591A/en
Publication of CN112988591A publication Critical patent/CN112988591A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Computer Hardware Design (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a charging logic verification method, a charging logic verification device, charging logic verification equipment and a storage medium. Wherein, the method comprises the following steps: acquiring charging parameter information of a target account and a first charging result determined by an initial charging logic according to the charging parameter information; transmitting the charging parameter information and the first charging result to a target charging engine, and determining a second charging result of a target account through a target charging logic in the target charging engine; and obtaining a verification result of the target charging logic according to the first charging result and the second charging result. The technical scheme provided by the embodiment of the invention can verify the charging logic and is beneficial to improving the accuracy of the charging logic.

Description

Charging logic verification method, device, equipment and storage medium
Technical Field
The present invention relates to computer technologies, and in particular, to a charging logic verification method, apparatus, device, and storage medium.
Background
At present, in the flows of internet financial service, voice service, data flow service and the like, a plurality of charging places such as user bill charging, fund side clearing charging and the like are involved, so when the charging logic changes, the accuracy of the charging logic needs to be verified.
In the prior art, the accuracy of the charging logic needs to be ensured through an artificial regression test, the whole process has high requirements on the professional of testers, the test cost is high, meanwhile, the artificial regression test has a certain missing test risk, the test coverage completeness cannot be ensured, the period of the whole test process is long, and the time cost is relatively high.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for verifying charging logic, which can verify the charging logic and are beneficial to improving the accuracy of the charging logic.
In a first aspect, an embodiment of the present invention provides a charging logic verification method, where the method includes:
acquiring charging parameter information of a target account and a first charging result determined by an initial charging logic according to the charging parameter information;
transmitting the charging parameter information and the first charging result to a target charging engine, and determining a second charging result of the target account through a target charging logic in the target charging engine;
and obtaining a verification result of the target charging logic according to the first charging result and the second charging result.
In a second aspect, an embodiment of the present invention provides a charging logic verification apparatus, where the apparatus includes:
the first result determining module is used for acquiring the charging parameter information of the target account and determining a first charging result through an initial charging logic according to the charging parameter information;
the second result determining module is used for transmitting the charging parameter information and the first charging result to a target charging engine and determining a second charging result of the target account through a target charging logic in the target charging engine;
and the verification result determining module is used for obtaining the verification result of the target charging logic according to the first charging result and the second charging result.
In a third aspect, an embodiment of the present invention provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the billing logic verification method of any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a charging logic verification method according to any embodiment of the present invention.
The embodiment of the invention provides a charging logic verification method, a device, equipment and a storage medium, which comprises the steps of firstly obtaining charging parameter information of a target account and a first charging result determined by an initial charging logic according to the charging parameter information, then transmitting the charging parameter information and the first charging result to a target charging engine, determining a second charging result of the target account through the target charging logic in the target charging engine, and finally obtaining a verification result of the target charging logic according to the first charging result and the second charging result.
Drawings
Fig. 1 is a flowchart of a charging logic verification method according to an embodiment of the present invention;
fig. 2 is a flowchart of a charging logic verification method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a charging logic verifying apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a charging logic verification method according to an embodiment of the present invention, which is applicable to verifying charging logic. The charging logic verification method provided in this embodiment may be executed by the charging logic verification apparatus provided in this embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner and integrated in a computer device executing the method.
Referring to fig. 1, the method of the present embodiment includes, but is not limited to, the following steps:
s110, obtaining the charging parameter information of the target account and a first charging result determined by the initial charging logic according to the charging parameter information.
The target account may be understood as an account that needs to be charged, for example, a debit account that needs to be charged. The charging parameter information may be understood as related parameter information required in the charging process through the charging logic, and may also be referred to as a parameter, for example, when the target account is a debit account that needs to be charged, the parameter may be related parameters such as a debit amount, a debit date, and an interest rate. The initial charging logic may be understood as an initial (pre-update) charging logic, and the initial charging logic may be a pre-written program file and a charging logic loaded in the server, and the initial charging process can be performed by running the program file. The first billing result may also be called a participation, and accordingly, when the target account is a debit account that needs to be billed, the participation may be a payment plan, such as how much money is saved per month and how much interest is saved per month.
At present, in the flows of internet financial service, voice service, data flow service and the like, a plurality of charging places such as user bill charging, fund side clearing charging and the like are involved, so when the charging logic changes, the accuracy of the charging logic needs to be verified. In order to verify the accuracy of the charging logic, it is necessary to obtain charging parameter information of the target account, and operate the initial charging logic according to the charging parameter information to perform the initial charging process to obtain a first charging result, after obtaining the first charging result, obtain the first charging result and use the first charging result as a reference, so that after determining a second charging result of the target account, a verification result of the target charging logic is obtained according to the first charging result and the second charging result.
And S120, transmitting the charging parameter information and the first charging result to a target charging engine, and determining a second charging result of the target account through a target charging logic in the target charging engine.
The target charging engine may be understood as a tool capable of inputting the received charging parameter information into a target charging logic corresponding to the charging parameter information to perform a charging process, and the target charging engine stores the relevant charging logic therein. The target charging logic may be understood as an updated charging logic corresponding to the charging parameter information.
After the charging parameter information and the first charging result of the target account are obtained, the charging parameter information and the first charging result are transmitted to the target charging engine, so that a target charging logic in the target charging engine executes a corresponding charging process according to the charging parameter information of the target account, and a second charging result of the target account can be obtained after the charging process is executed.
S130, according to the first charging result and the second charging result, a verification result of the target charging logic is obtained.
After the first charging result and the second charging result are obtained, a verification result of the target charging logic can be determined according to a relationship, such as a magnitude relationship, between the first charging result and the second charging result.
According to the technical scheme provided by the embodiment, firstly, the charging parameter information of the target account and the first charging result determined by the initial charging logic according to the charging parameter information are obtained, then the charging parameter information and the first charging result are transmitted to the target charging engine, the second charging result of the target account is determined by the target charging logic in the target charging engine, and finally, the verification result of the target charging logic is obtained according to the first charging result and the second charging result, so that the charging logic can be verified, and the accuracy of the charging logic is improved.
In some embodiments, the target billing engine includes a traffic flow repository; correspondingly, the obtaining of the charging parameter information of the target account may specifically include: receiving the operation of a user on the charging parameter information of a selected target account of the service flow library; and determining the charging parameter information of the target account according to the operation.
The service flow database may be a database storing charging parameter information of a large number of accounts.
Specifically, since the target billing engine includes the service traffic library, the user (which may be understood as a relevant worker) can select the billing parameter information of the target account by manually triggering the service traffic library. After receiving the operation of selecting the charging parameter information of the target account, which is acted on by the service flow library by the user, the charging parameter information of the target account can be determined according to the operation.
In the embodiment of the invention, the charging parameter information of the target account is acquired in a manual triggering mode, so that a user can quickly select the charging parameter information in the service flow library to carry out subsequent charging logic verification.
In some embodiments, the service traffic library is updated at certain time intervals, for example, the service traffic library is updated at a preset frequency, so that completeness of data in the service traffic library can be ensured, and a user can conveniently select charging parameter information of a corresponding target account from the service traffic library to perform charging logic verification.
Example two
Fig. 2 is a flowchart of a charging logic verification method according to a second embodiment of the present invention. The embodiment of the invention is optimized on the basis of the embodiment. Optionally, this embodiment explains in detail the process after obtaining the first charging result and the process of obtaining the verification result of the target charging logic.
Referring to fig. 2, the method of the present embodiment includes, but is not limited to, the following steps:
s210, obtaining the charging parameter information of the target account and a first charging result determined by the initial charging logic according to the charging parameter information.
And S220, carrying out charging scene marking on the charging parameter information and the first charging result through a preset flow collecting tool, and storing the marked charging parameter information and the first charging result into corresponding target charging log files.
The preset flow acquisition tool can be understood as a charging scene marking tool, and charging scene marking can be performed on the charging parameter information and the first charging result through the tool. The target charging log file may be understood as a log file for storing the corresponding marked charging parameter information and the first charging result.
After the charging parameter information and the first charging result of the target account are obtained, as the same charging parameter information may have different charging scenes corresponding to different target charging logics, in order to ensure that the subsequent determination of the second charging result of the target account by the target charging logic in the target charging engine is successful, the charging scene marking is performed on the charging parameter information and the first charging result by a preset flow acquisition tool, and after the marking, the marked charging parameter information and the first charging result are stored in corresponding target charging log files, so that the corresponding marked charging parameter information and the first charging result can be obtained from the target charging log files conveniently.
In the embodiment of the invention, the charging scene is marked by the preset flow collecting tool, so that the marked charging parameter information and the first charging result can be conveniently collected and reported to the target charging engine for execution in real time.
And S230, transmitting the charging parameter information and the first charging result to a target charging engine, and determining a second charging result of the target account through a target charging logic in the target charging engine.
Optionally, the transmitting the charging parameter information and the first charging result to the target charging engine may specifically include: and collecting the marked charging parameter information and the first charging result from the target charging log file through a preset data collecting tool, and transmitting the marked charging parameter information and the first charging result to a target charging engine through a message system.
The message system may be understood as a system capable of receiving a large amount of messages and transmitting the received message queue to the target billing engine.
Specifically, the marked charging parameter information and the first charging result can be collected from the target charging log file by a preset data collection tool, such as flash, and after the marked charging parameter information and the first charging result are collected, the marked charging parameter information and the first charging result can be transmitted to the target charging engine by a message system, such as Kafka.
In the embodiment of the invention, the marked charging parameter information and the first charging result are transmitted by the message system, so that the rapidity and the high efficiency of the transmission process can be ensured, and the loss and the omission of the related information in the transmission process are avoided.
Further, the preset data collecting tool may specifically include: at least one of Flume, fluent, Logstash, Chukwa, Scribe, and Splunk Forwarder.
Particularly, the flash is a distributed and reliable tool for collecting, aggregating and transmitting massive logs, can support various data sending parties customized in a log system for collecting data, and has the capability of simply processing the data and writing the data to various data receiving parties; the fluent is an open-source data collection tool, is developed by using C/Ruby, unifies log data by using JSON files, can support data sources and data output of various types and formats, and has high reliability and good expansibility; logstash is developed using JRuby for collecting data; chukwa is an open-source data collection tool, can be realized by Java, has expansibility and reliability, and can display, analyze and monitor data; scribe is a data collection tool; the Splunk Forwarder has the capability of providing complete data acquisition, data storage, data analysis and processing and data presentation.
Further, the determining, by the target charging logic in the target charging engine, the second charging result of the target account may specifically include: determining a target charging logic corresponding to the charging scene mark according to the marked charging parameter information and the charging scene mark carried in the first charging result; and determining a second charging result of the target account through the target charging logic.
Specifically, because the target charging engine receives the marked charging parameter information and the first charging result, the charging scene mark corresponding to the charging parameter information can be obtained according to the marked charging parameter information and the charging scene mark carried in the first charging result, after the charging scene mark is obtained, the target charging logic corresponding to the charging scene mark can be determined, and then the second charging result of the target account can be determined through the target charging logic.
In the embodiment of the invention, the target charging logic can be quickly determined through the charging scene mark so as to determine the second charging result of the target account, so that the time is saved, and the charging logic verification process is favorably shortened.
S240, determining a difference between the first charging result and the second charging result.
After the first charging result and the second charging result are obtained, the first charging result is subtracted from the second charging result, so that the difference value between the first charging result and the second charging result can be determined, and whether the verification result of the target charging logic passes or not can be determined according to the difference value.
And S250, if the difference value is within the preset range, determining that the verification result of the target charging logic is passed.
The preset range may be a preset range, or may be determined according to a specific situation, and the embodiment is not particularly limited.
If the difference value is within the preset range, the second charging result determined by the target charging logic is reasonable, and the verification result of the target charging logic is determined to be passed; if the difference value is not in the preset range, the second charging result determined by the target charging logic is unreasonable, the target charging logic may be wrong, and the verification result of the target charging logic is determined to be failed.
In the embodiment of the invention, the aim of quick and automatic comparison is achieved by comparing the consistency of the first charging result and the second charging result, the time of the charging logic verification process is saved, and the verification period of the charging logic verification process is shortened.
The technical scheme provided by this embodiment includes first obtaining charging parameter information of a target account and a first charging result determined by an initial charging logic according to the charging parameter information, then performing charging scene marking on the charging parameter information and the first charging result through a preset flow acquisition tool, storing the marked charging parameter information and the first charging result into a corresponding target charging log file, then transmitting the charging parameter information and the first charging result to a target charging engine, determining a second charging result of the target account through a target charging logic in the target charging engine, and finally determining a difference value between the first charging result and the second charging result, if the difference value is within a preset range, determining that a verification result of the target charging logic is passed, saving a large amount of time through the charging scene marking, and facilitating subsequent rapid determination of the target charging engine, and obtaining a second charging result, and simultaneously achieving the purpose of quick and automatic comparison by comparing the consistency of the first charging result and the second charging result, saving the time of the charging logic verification process, being capable of verifying the charging logic and being beneficial to improving the accuracy of the charging logic.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a charging logic verifying apparatus according to a third embodiment of the present invention, and as shown in fig. 3, the apparatus may include:
a first result determining module 310, configured to obtain charging parameter information of a target account and a first charging result determined by an initial charging logic according to the charging parameter information;
a second result determining module 320, configured to transmit the charging parameter information and the first charging result to a target charging engine, and determine a second charging result of the target account through a target charging logic in the target charging engine;
and the verification result determining module 330 is configured to obtain a verification result of the target charging logic according to the first charging result and the second charging result.
According to the technical scheme provided by the embodiment of the invention, the charging parameter information of the target account and the first charging result determined by the initial charging logic according to the charging parameter information are firstly obtained, then the charging parameter information and the first charging result are transmitted to the target charging engine, the second charging result of the target account is determined by the target charging logic in the target charging engine, and finally the verification result of the target charging logic is obtained according to the first charging result and the second charging result.
Further, the charging logic verifying apparatus may further include: and the storage module is used for marking the charging scene of the charging parameter information and the first charging result through a preset flow acquisition tool and storing the marked charging parameter information and the first charging result into a corresponding target charging log file.
Further, the second result determining module 320 may be specifically configured to: and collecting the marked charging parameter information and the first charging result from the target charging log file through a preset data collecting tool, and transmitting the marked charging parameter information and the first charging result to a target charging engine through a message system.
Further, the second result determining module 320 may be specifically configured to: determining a target charging logic corresponding to the charging scene mark according to the marked charging parameter information and the charging scene mark carried in the first charging result; and determining a second charging result of the target account through the target charging logic.
Further, the target charging engine comprises a service flow database; accordingly, the first result determining module 310 may be specifically configured to: receiving the operation of a user on the charging parameter information of a selected target account of the service flow library; and determining the charging parameter information of the target account according to the operation.
Further, the preset data collecting tool comprises: at least one of Flume, fluent, Logstash, Chukwa, Scribe, and Splunk Forwarder.
Further, the verification result determining module 330 may be specifically configured to: determining a difference value between the first charging result and the second charging result; and if the difference value is within a preset range, determining that the verification result of the target charging logic is passed.
The charging logic verification device provided by the embodiment can be applied to the charging logic verification method provided by any embodiment, and has corresponding functions and beneficial effects.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention, as shown in fig. 4, the computer device includes a processor 410, a storage device 420, and a communication device 430; the number of the processors 410 in the computer device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the storage 420 and the communication means 430 in the computer device may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The storage device 420, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as the modules corresponding to the billing logic verification method in the embodiment of the present invention (e.g., the first result determination module 310, the second result determination module 320, and the verification result determination module 330 used in the billing logic verification device). The processor 410 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the storage 420, that is, implements the above-described billing logic verification method.
The storage device 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 420 may further include memory located remotely from the processor 410, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And a communication device 430 for implementing a network connection or a mobile data connection between the servers.
The computer device provided by this embodiment can be used to execute the charging logic verification method provided by any of the above embodiments, and has corresponding functions and advantages.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for verifying charging logic in any embodiment of the present invention is implemented, where the method specifically includes:
acquiring charging parameter information of a target account and a first charging result determined by an initial charging logic according to the charging parameter information;
transmitting the charging parameter information and the first charging result to a target charging engine, and determining a second charging result of the target account through a target charging logic in the target charging engine;
and obtaining a verification result of the target charging logic according to the first charging result and the second charging result.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the charging logic verification method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the charging logic verifying apparatus, each included unit and module are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A charging logic verification method is characterized by comprising the following steps:
acquiring charging parameter information of a target account and a first charging result determined by an initial charging logic according to the charging parameter information;
transmitting the charging parameter information and the first charging result to a target charging engine, and determining a second charging result of the target account through a target charging logic in the target charging engine;
and obtaining a verification result of the target charging logic according to the first charging result and the second charging result.
2. The method of claim 1, further comprising, after the obtaining of the charging parameter information of the target account and the first charging result determined by the initial charging logic according to the charging parameter information:
and marking the charging scene of the charging parameter information and the first charging result through a preset flow acquisition tool, and storing the marked charging parameter information and the first charging result into corresponding target charging log files.
3. The method of claim 2, wherein transmitting the billing parameter information and the first billing result to a target billing engine comprises:
and collecting the marked charging parameter information and the first charging result from the target charging log file through a preset data collecting tool, and transmitting the marked charging parameter information and the first charging result to a target charging engine through a message system.
4. The method of claim 2, wherein determining, by target billing logic in a target billing engine, a second billing result for the target account comprises:
determining a target charging logic corresponding to the charging scene mark according to the marked charging parameter information and the charging scene mark carried in the first charging result;
and determining a second charging result of the target account through the target charging logic.
5. The method of claim 1, wherein the target billing engine comprises a traffic flow base;
correspondingly, the obtaining of the charging parameter information of the target account includes:
receiving the operation of a user on the charging parameter information of a selected target account of the service flow library;
and determining the charging parameter information of the target account according to the operation.
6. The method of claim 3, wherein the pre-set data acquisition tool comprises: at least one of Flume, fluent, Logstash, Chukwa, Scribe, and Splunk Forwarder.
7. The method of claim 1, wherein obtaining the verification result of the target charging logic according to the first charging result and the second charging result comprises:
determining a difference value between the first charging result and the second charging result;
and if the difference value is within a preset range, determining that the verification result of the target charging logic is passed.
8. A charging logic verification apparatus, comprising:
the first result determining module is used for acquiring the charging parameter information of the target account and determining a first charging result through an initial charging logic according to the charging parameter information;
the second result determining module is used for transmitting the charging parameter information and the first charging result to a target charging engine and determining a second charging result of the target account through a target charging logic in the target charging engine;
and the verification result determining module is used for obtaining the verification result of the target charging logic according to the first charging result and the second charging result.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the billing logic verification method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out a charging logic verification method according to any one of claims 1 to 7.
CN202110360872.9A 2021-04-02 2021-04-02 Charging logic verification method, device, equipment and storage medium Withdrawn CN112988591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110360872.9A CN112988591A (en) 2021-04-02 2021-04-02 Charging logic verification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110360872.9A CN112988591A (en) 2021-04-02 2021-04-02 Charging logic verification method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112988591A true CN112988591A (en) 2021-06-18

Family

ID=76338958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110360872.9A Withdrawn CN112988591A (en) 2021-04-02 2021-04-02 Charging logic verification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112988591A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113823005A (en) * 2021-09-16 2021-12-21 北京北大千方科技有限公司 Roadside parking charging system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113823005A (en) * 2021-09-16 2021-12-21 北京北大千方科技有限公司 Roadside parking charging system and method

Similar Documents

Publication Publication Date Title
CN109885496B (en) Test log management method and system
CN111752850B (en) Method and related equipment for testing block chain system
CN112817843B (en) Project management method and system
CN112202647B (en) Test method, device and test equipment in block chain network
CN107203464B (en) Method and device for positioning service problem
CN110659870A (en) Business audit test method, device, equipment and storage medium
CN113448854A (en) Regression testing method and device
CN115964272A (en) Transaction data automatic testing method, device, equipment and readable storage medium
CN112988591A (en) Charging logic verification method, device, equipment and storage medium
CN114564387A (en) Scene type automatic testing method and system for OpenStack cloud platform
CN112948262A (en) System test method, device, computer equipment and storage medium
CN116719750B (en) Software testing method and device, server equipment and storage medium
EP3433820A1 (en) Virtual marketplace for distributed tools in an enterprise environment
CN116610967A (en) Bank system abnormality detection method, device and equipment based on clustering
CN116955148A (en) Service system testing method, device, equipment, storage medium and product
CN112729319B (en) Automatic data acquisition and analysis system and method
CN113495750B (en) Upgrade detection method and device for equipment and server
CN114118440A (en) Model iteration method, model iteration device, electronic equipment and computer readable storage medium
CN112801688A (en) Method and device for positioning reason of estimation failure
CN109743203B (en) Distributed service security combination system and method based on quantitative information flow
CN114819981A (en) Customer service problem processing method, device, equipment and storage medium
CN112148621A (en) Test method and device and electronic equipment
CN113570333B (en) Process design method suitable for integration
CN111159988A (en) Model processing method and device, computer equipment and storage medium
CN112737804B (en) Network performance testing method, device and server

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210618