CN112737875B - Method and device for generating test message - Google Patents

Method and device for generating test message Download PDF

Info

Publication number
CN112737875B
CN112737875B CN202011546057.3A CN202011546057A CN112737875B CN 112737875 B CN112737875 B CN 112737875B CN 202011546057 A CN202011546057 A CN 202011546057A CN 112737875 B CN112737875 B CN 112737875B
Authority
CN
China
Prior art keywords
template
domain information
domain
test message
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011546057.3A
Other languages
Chinese (zh)
Other versions
CN112737875A (en
Inventor
胡涛
王荣海
欧鹏
翟威
沈涛
陆辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN202011546057.3A priority Critical patent/CN112737875B/en
Publication of CN112737875A publication Critical patent/CN112737875A/en
Application granted granted Critical
Publication of CN112737875B publication Critical patent/CN112737875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • H04L43/026Capturing of monitoring data using flow identification
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses a method and a device for generating a test message, which comprises the following steps: and determining a user template corresponding to the test message, wherein the first domain information in the transaction subclass to which the test message belongs is recorded in the user template. And determining a system template associated with the user template, wherein the system template records second domain information shared by all transaction subclasses in the class to which the test message belongs, and then generating the test message according to the second domain information and the first domain information. Therefore, after the user template is determined, the system template associated with the user template can be determined according to the determined user template, and then the test message is generated according to the second domain information of the system template and the first domain information of the user template. The test message is not required to be manually constructed according to the domain information, and can be automatically generated only according to the determined user template, so that the manpower is released, and the efficiency of generating the test message is increased.

Description

Method and device for generating test message
Technical Field
The present invention relates to the field of finance, and in particular, to a method and an apparatus for generating a test packet.
Background
The switching system is a core system of the financial institution, performs accurate processing and quick response to input information, is mainly used for accepting information exchange and transaction processing between the acceptance institution and the card issuer, and is particularly important for testing the switching system.
The format of the test message of the transit system is 8583 format, that is, the test message is 8583 message, wherein the test message of 8583 format totally includes 128 fields, each field has unified regulations, and field length, meaning and other information of the field are regulated. In the prior art, transaction types are various, there are thousands of transaction types, and domains used in constructing test messages are different for different types of transactions, so that a test message in 8583 format needs to be constructed artificially. In order to enable the test switching system to be compatible with all existing transactions, a large number of test messages of different transaction types need to be constructed by a tester to obtain a new test message, but the workload required for manually constructing a large number of test messages of different transaction types is huge, the consumed manpower is large, and the message construction efficiency is low.
Therefore, a method for generating a message is needed, which releases labor force and increases efficiency of constructing a test message.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a test message, which are used for releasing manpower and increasing the efficiency of constructing the test message.
In a first aspect, an embodiment of the present invention provides a method for generating a test packet, where the method includes:
determining a user template corresponding to the test message; first domain information in a transaction subclass to which the test message belongs is recorded in the user template;
determining a system template associated with the user template; the system template records second domain information shared by all transaction subclasses in the class to which the test message belongs;
and generating the test message according to the second domain information and the first domain information.
In the above technical solution, the user template records first domain information in the transaction subclasses to which the test message belongs, and the system template records second domain information common to the transaction subclasses in the class to which the test message belongs, so that, after the user template is determined, the system template associated with the user template can be determined according to the determined user template, and then the test message is generated according to the second domain information of the system template and the first domain information of the user template. The test message is not required to be manually constructed according to the domain information, and can be automatically generated only according to the determined user template, so that the manpower is released, and the efficiency of generating the test message is increased.
Optionally, the method further includes:
determining an expansion template corresponding to the test message; the expansion template records third domain information in a transaction subclass to which the test message belongs; the third domain information is the domain information which changes in the transaction subclass to which the test message belongs;
generating the test packet according to the second domain information and the first domain information, including:
and generating the test message according to the third domain information, the second domain information and the first domain information.
In the above technical solution, after the extended domain template is determined, the test packet is generated according to the third domain information, the second domain information and the first domain information of the extended domain template. Therefore, when the information of the domains in the transaction subclasses is changed, only the capacity expansion domain template needs to be determined according to the changed domains, then the test messages are automatically generated, the corresponding changed domains do not need to be modified manually according to each test message, manpower is released, and the efficiency of generating the test messages is increased.
Optionally, determining the capacity expansion template corresponding to the test packet includes:
and determining that the switch indication of the capacity expansion template corresponding to the test message is in an open state.
In the above technical solution, the test packet is determined according to the switch of the capacity expansion template according to the requirements of different mechanisms, so as to meet the requirements of the domains required by the test packet of each mechanism.
Optionally, the domain information includes a domain object and a domain value of the domain object;
generating the test packet according to the third domain information, the second domain information and the first domain information, including:
merging the third domain information, the second domain information and the first domain information; if at least two of the capacity expansion template, the system template and the user template have the same domain object, determining the domain value of the same domain object according to the priorities of the system template, the user template and the capacity expansion template.
In the above technical scheme, the domain values of the same domain object are determined according to the priority, so as to ensure the accuracy of the domain values of the same domain object and ensure the accuracy of the generated test message.
Optionally, the priority of the extension template is greater than the priority of the user template; the priority of the user template is greater than the priority of the system template.
Optionally, the method further includes:
receiving a template modification indication of a user;
and modifying the domain information in the template corresponding to the template modification indication.
Optionally, the method further includes:
and generating test messages in batches by adopting a Cartesian product method according to each system template, each user template and each expansion domain template.
In the technical scheme, when the domain values of the domain objects of the system templates, the user templates or the extended domain templates are modified, the system templates, the user templates and the extended domain templates after the domain values are modified are subjected to Cartesian product method to generate different types of test messages in batches, the domain values of the different types of test messages do not need to be modified manually, labor is saved, and the efficiency of generating the different types of test messages is improved.
In a second aspect, an embodiment of the present invention provides an apparatus for generating a test packet, including:
the acquisition module is used for determining a user template corresponding to the test message; first domain information in a transaction subclass to which the test message belongs is recorded in the user template;
the processing module is used for determining a system template related to the user template; the system template records second domain information shared by all transaction subclasses in the class to which the test message belongs;
and generating the test message according to the second domain information and the first domain information.
Optionally, the processing module is further configured to:
determining an expansion template corresponding to the test message; the expansion template records third domain information in a transaction subclass to which the test message belongs; the third domain information is the domain information which changes in the transaction subclass to which the test message belongs;
generating the test packet according to the second domain information and the first domain information, including:
and generating the test message according to the third domain information, the second domain information and the first domain information.
Optionally, the processing module is specifically configured to:
and determining that the switch indication of the capacity expansion template corresponding to the test message is in an open state.
Optionally, the domain information includes a domain object and a domain value of the domain object;
the processing module is specifically configured to:
merging the third domain information, the second domain information and the first domain information; if at least two of the capacity expansion template, the system template and the user template have the same domain object, determining the domain value of the same domain object according to the priorities of the system template, the user template and the capacity expansion template.
Optionally, the priority of the extension template is greater than the priority of the user template; the priority of the user template is greater than the priority of the system template.
Optionally, the processing module is further configured to:
receiving a template modification indication of a user;
and modifying the domain information in the template corresponding to the template modification indication.
Optionally, the processing module is further configured to:
and generating test messages in batches by adopting a Cartesian product method according to each system template, each user template and each expansion domain template.
In a third aspect, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the method for generating the test message according to the obtained program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, where the computer-executable instructions are configured to enable a computer to execute the method for generating a test packet.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system architecture diagram according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for generating a test packet according to an embodiment of the present invention;
fig. 3 is a schematic diagram of test packet generation according to an embodiment of the present invention;
fig. 4 is a schematic diagram of generating a test packet according to an embodiment of the present invention;
fig. 5 is a schematic diagram of batch generation of test packets according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a test packet according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device for generating a test packet according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The formats of the messages in the prior art include multiple formats, such as an XML format, a JSON format, and a 8583 format. The message in 8583 format used in the transit system in the amount institution includes 128 fields, each field has a uniform specification, for example, the 2 nd field is the primary account number, the 4 th field is the transaction amount, the 49 th field is the transaction currency code (such as RMB, USD, Euro, etc.), etc. In daily life, the transaction categories are various, for example, a consumption category, a pre-authorization category, a transfer category, a public payment category, a card-free category and other transaction categories, and under the transaction category, the transaction category also includes a plurality of sub-categories, for example, under the consumption category, the sub-categories include a consumption reversal sub-category, a consumption withdrawal sub-category and the like, and under the withdrawal category, the transaction category includes a withdrawal reversal sub-category and the like. Under each subclass, there are specified domain objects, for example, the consumption right subclass includes 1, 2, 3, 4, 5, 10, 11, 49 domains, and the consumption cancel subclass includes 1, 2, 3, 4, 7, 10, 49 domains, so that the test messages corresponding to each subclass are different, and when the value of a certain domain is modified or an a-extended domain is added to the whole consumption class, it is necessary to artificially modify the test messages of each subclass under the consumption class, and a lot of manpower is consumed.
Fig. 1 illustrates an exemplary system architecture to which embodiments of the present invention are applicable, which includes a server 100, where the server 100 may include a processor 110, a communication interface 120, and a memory 130.
The communication interface 120 is used for receiving a template modification instruction, a template determination instruction and the like input by a user.
The processor 110 is a control center of the server 100, connects various parts of the entire server 100 using various interfaces and routes, performs various functions of the server 100 and processes data by operating or executing software programs and/or modules stored in the memory 130 and calling data stored in the memory 130. Alternatively, processor 110 may include one or more processing units.
The memory 130 may be used to store software programs and modules, and the processor 110 executes various functional applications and data processing by operating the software programs and modules stored in the memory 130. The memory 130 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, and the like; the storage data area may store data created according to a business process, and the like. Further, the memory 130 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 volatile solid state storage device.
It should be noted that the structure shown in fig. 1 is only an example, and the embodiment of the present invention is not limited thereto.
Based on the above description, fig. 2 exemplarily illustrates a flowchart of a method for generating a test packet according to an embodiment of the present invention, where the flowchart may be executed by an apparatus for generating a test packet.
As shown in fig. 2, the process specifically includes:
step 210, determining a user template corresponding to the test message.
In the embodiment of the invention, first domain information in a transaction subclass to which a test message belongs is recorded in a user template, for example, the transaction subclass is a consumption reversal subclass and comprises a 1 st domain and a transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount; field 5, clearing the amount; field 6, cardholder withholds account amount; field 7, date or time of transaction; domain 10, exchange rate; field 11, system tracking number; field 49, transaction currency code. It should be noted that the user template is selected by the user and is used for generating the test message.
Step 220, determining the system template associated with the user template.
In the embodiment of the invention, second domain information which is shared by all transaction subclasses in a large class to which a test message belongs is recorded in a system template, for example, the transaction large class is a consumption class, and comprises a consumption reversal subclass and a consumption withdrawal subclass below the consumption reversal subclass, wherein the consumption reversal subclass comprises a 1 st domain and a transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount; field 5, clearing the amount; domain 10, exchange rate; field 11, system tracking number; field 49, transaction currency code. The consumer revocation subclass, including domain 1, transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount; field 7, date or time of transaction; domain 10, exchange rate; field 49, transaction currency code. Thus, the domains that are common in the consumption hedge subclass and the consumption revocation subclass include the 1 st domain, transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount; domain 10, exchange rate; field 49, transaction currency code. Thus, the system template may include domain 1, transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount; domain 10, exchange rate; field 49, transaction currency code.
It should be noted that, in order to reduce the duplication domains between the system template and the user template, the user template generally includes a personalized domain, that is, a domain that is not common to other subclasses under the same generic class, for example, the 5 th domain is included in the user template of the consumption positive subclass, and the amount is cleared; field 11, system tracking number; field 49, transaction currency code. The user template of the consumption revocation subclass comprises a 4 th field and transaction amount; field 11, system tracking number. However, the test packets finally generated by all subclasses under the consumption class must include the domain information in the system template of the consumption class.
Step 230, generating the test packet according to the second domain information and the first domain information.
In the embodiment of the present invention, a test packet may be generated according to second domain information of a system template and first domain information of a user template, and with reference to the technical solutions described in the above step 210 and step 220, fig. 3 exemplarily shows a schematic diagram of test packet generation, as shown in fig. 3, the system template is a consumption category, and the second domain information thereof is a domain 1, a transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount, field 10, exchange rate. The transaction subclass in the class belongs to, namely a user template is a consumption reversal subclass, and the first domain information of the transaction subclass comprises a 5 th domain and clearing amount; field 11, system tracking number; field 49, transaction currency code. Therefore, the test message generated according to the second domain information and the first domain information comprises the 1 st domain and the transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount; field 5, clearing the amount; field 6, cardholder withholds account amount; field 7, date or time of transaction; domain 10, exchange rate; field 11, system tracking number; field 49, transaction currency code.
Illustratively, when adding a domain to a test packet or modifying domain information, this may be achieved by determining an extended domain template.
Further, an expansion template corresponding to the test message is determined, wherein third domain information in a transaction subclass to which the test message belongs is recorded in the expansion template, the third domain information is domain information changed in the transaction subclass to which the test message belongs, and the test message is generated according to the third domain information, the second domain information and the first domain information.
In the embodiment of the present invention, the domain information of the expansion domain may also be displayed in the system template, or may also be displayed in the user template. The domain information comprises a domain object and a domain value of the domain object, and then the test message is determined according to the respective domain values of the third domain information, the second domain information and the first domain information.
And further, a union set is selected for the third domain information, the second domain information and the first domain information, wherein if at least two of the expansion template, the system template and the user template have the same domain object, the domain value of the same domain object is determined according to the priority of the system template, the user template and the expansion template.
It should be noted that the priority of the extension template is greater than that of the user template, and the priority of the user template is greater than that of the system template.
To better explain the above technical solution, fig. 4 exemplarily shows a schematic diagram of generating a test packet, as shown in fig. 4, a system template is a consumption class, and second domain information thereof is a 1 st domain, a transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount, field 10, exchange rate; field 49, transaction currency code. The user template is a consumption positive subclass, and the first domain information of the user template comprises a 5 th domain and a clearing amount; field 11, system tracking number; field 49, transaction currency code. The third domain information of the expanded domain template includes a 113 th domain and transaction information, and then the third domain information, the second domain information and the first domain information are merged, at this time, it is determined that the same domain object (namely, a 49 th domain) exists in the system template and the user template, because the priority of the user template is greater than that of the system template, the domain value of the 49 th domain is the domain value of the 49 th domain in the user template, and therefore, according to the third domain information, the second domain information and the first domain information, generating a test message includes: domain 1, transaction type; domain 2, primary account number; domain 3, processing code; field 4, transaction amount; field 5, clearing the amount; field 6, cardholder withholds account amount; field 7, date or time of transaction; domain 10, exchange rate; field 11, system tracking number; field 49, transaction currency code; field 113, transaction information. Wherein, the domain value of the 49 th domain is the domain value (i.e. 178) of the 49 th domain in the user template.
Illustratively, based on the above technical solution, test messages are generated in batch by using a cartesian product method according to the determined system templates, user templates and extended capacity domain templates. Fig. 5 exemplarily shows a schematic diagram of batch generation of test messages, as shown in fig. 5, a system template includes a consumption major class and a cash withdrawal major class, a user template includes a consumption reversal subclass under the consumption major class, a consumption revocation subclass, a cash withdrawal reversal subclass under the cash withdrawal major class, an extended domain template includes a 113 th domain and transaction information; and 115 th domain, reserving domain information. As can be seen from fig. 5, 6(3 × 2) test packets can be generated according to the system template, the user template, and the expansion domain template.
In the embodiment of the present invention, the switch of the capacity expansion template includes an on state and an off state, and is used to generate test messages for different user requirements. For example, the switching system transmits information to the acceptance organization and the card issuing organization respectively, processes the transaction when the switching system receives the transaction of the acceptance organization or the card issuing organization, and generates the test message of the acceptance organization and the card issuing organization so that the transaction of the acceptance organization and the card issuing organization can be processed on the switching system, wherein the transaction of the acceptance organization does not include the capacity expansion domain, that is, the switch state of the capacity expansion template is the closed state aiming at the test message of the acceptance organization. The transaction of the card issuing mechanism comprises an expansion domain, namely the on-off state of an expansion template is an on state aiming at the test message of the card issuing mechanism. Therefore, fig. 5 generates 12(6 × 2) test messages in total in a state of the switch of the expansion template for the test messages after the generation of the acceptance organization and the card issuing machine, and fig. 6 exemplarily shows a schematic diagram of one test message, and the specific content of each generated test message is as shown in fig. 6.
In the embodiment of the invention, aiming at any template in a system template, a user template and an extension domain template, after the template modification instruction of a user is received, the domain information in the template corresponding to the template modification instruction is modified, and according to the technical scheme, the test messages are generated in batches, so that the test messages of each subclass under the consumption class are not required to be modified manually any more, new test messages are generated in batches, the manpower is released, and the efficiency of generating the test messages is increased.
Based on the same technical concept, fig. 7 exemplarily shows a schematic structural diagram of test packet generation provided by an embodiment of the present invention, and the apparatus may execute a flow of a method for test packet generation.
As shown in fig. 7, the apparatus specifically includes:
an obtaining module 710, configured to determine a user template corresponding to the test packet; first domain information in a transaction subclass to which the test message belongs is recorded in the user template;
a processing module 720, configured to determine a system template associated with the user template; the system template records second domain information shared by all transaction subclasses in the class to which the test message belongs;
and generating the test message according to the second domain information and the first domain information.
Optionally, the processing module 720 is further configured to:
determining an expansion template corresponding to the test message; the expansion template records third domain information in a transaction subclass to which the test message belongs; the third domain information is the domain information which changes in the transaction subclass to which the test message belongs;
generating the test packet according to the second domain information and the first domain information, including:
and generating the test message according to the third domain information, the second domain information and the first domain information.
Optionally, the processing module 720 is specifically configured to:
and determining that the switch indication of the capacity expansion template corresponding to the test message is in an open state.
Optionally, the domain information includes a domain object and a domain value of the domain object;
the processing module 720 is specifically configured to:
merging the third domain information, the second domain information and the first domain information; if at least two of the capacity expansion template, the system template and the user template have the same domain object, determining the domain value of the same domain object according to the priorities of the system template, the user template and the capacity expansion template.
Optionally, the priority of the extension template is greater than the priority of the user template; the priority of the user template is greater than the priority of the system template.
Optionally, the processing module 720 is further configured to:
receiving a template modification indication of a user;
and modifying the domain information in the template corresponding to the template modification indication.
Optionally, the processing module 720 is further configured to:
and generating test messages in batches by adopting a Cartesian product method according to each system template, each user template and each expansion domain template.
Based on the same technical concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the method for generating the test message according to the obtained program.
Based on the same technical concept, the embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored, and the computer-executable instructions are used to enable a computer to execute the method for generating the test packet.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for generating a test message is characterized by comprising the following steps:
determining a user template corresponding to the test message; first domain information in a transaction subclass to which the test message belongs is recorded in the user template; the first domain information is personalized domain information;
determining a system template associated with the user template; the system template records second domain information shared by all transaction subclasses in the class to which the test message belongs; the second domain information is the intersection of the domain information in each transaction sub-class in the class to which the test message belongs;
and generating the test message according to the second domain information and the first domain information.
2. The method of claim 1, wherein the method further comprises:
determining an expansion template corresponding to the test message; the expansion template records third domain information in a transaction subclass to which the test message belongs; the third domain information is the domain information which changes in the transaction subclass to which the test message belongs;
generating the test packet according to the second domain information and the first domain information, including:
and generating the test message according to the third domain information, the second domain information and the first domain information.
3. The method of claim 2, wherein determining the capacity expansion template corresponding to the test packet comprises:
and determining that the switch indication of the capacity expansion template corresponding to the test message is in an open state.
4. The method of claim 2, wherein the domain information includes a domain object and a domain value of the domain object;
generating the test packet according to the third domain information, the second domain information and the first domain information, including:
merging the third domain information, the second domain information and the first domain information; if at least two of the capacity expansion template, the system template and the user template have the same domain object, determining the domain value of the same domain object according to the priorities of the system template, the user template and the capacity expansion template.
5. The method of claim 4, wherein the expanded template has a priority greater than the user template; the priority of the user template is greater than the priority of the system template.
6. The method of any of claims 1 to 5, further comprising:
receiving a template modification indication of a user;
and modifying the domain information in the template corresponding to the template modification indication.
7. The method of any of claims 1 to 5, further comprising:
and generating test messages in batches by adopting a Cartesian product method according to each system template, each user template and each expansion domain template.
8. An apparatus for generating a test packet, comprising:
the acquisition module is used for determining a user template corresponding to the test message; first domain information in a transaction subclass to which the test message belongs is recorded in the user template; the first domain information is personalized domain information;
the processing module is used for determining a system template related to the user template; the system template records second domain information shared by all transaction subclasses in the class to which the test message belongs; the second domain information is the intersection of the domain information in each transaction sub-class in the class to which the test message belongs;
and generating the test message according to the second domain information and the first domain information.
9. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to perform the method of any of claims 1 to 7 in accordance with the obtained program.
10. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202011546057.3A 2020-12-24 2020-12-24 Method and device for generating test message Active CN112737875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011546057.3A CN112737875B (en) 2020-12-24 2020-12-24 Method and device for generating test message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011546057.3A CN112737875B (en) 2020-12-24 2020-12-24 Method and device for generating test message

Publications (2)

Publication Number Publication Date
CN112737875A CN112737875A (en) 2021-04-30
CN112737875B true CN112737875B (en) 2022-03-18

Family

ID=75605389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011546057.3A Active CN112737875B (en) 2020-12-24 2020-12-24 Method and device for generating test message

Country Status (1)

Country Link
CN (1) CN112737875B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN101582815A (en) * 2009-06-17 2009-11-18 北京星网锐捷网络技术有限公司 Protocol security testing method and device
CN102184135A (en) * 2011-04-19 2011-09-14 中国工商银行股份有限公司 Instruction script based test method and system in bank system
CN105791178A (en) * 2014-12-26 2016-07-20 阿里巴巴集团控股有限公司 Message assembly method and device
CN109933534A (en) * 2019-03-26 2019-06-25 上海上湖信息技术有限公司 A kind of method and device of determining financial test object
CN110188030A (en) * 2019-04-08 2019-08-30 平安科技(深圳)有限公司 A kind of test data generating method, device and computer equipment, storage medium
CN111221739A (en) * 2020-01-10 2020-06-02 中国建设银行股份有限公司 Service testing method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217338B (en) * 2007-01-06 2012-04-25 华为技术有限公司 Detection message transmitting method, network element device
CN106815148A (en) * 2016-12-30 2017-06-09 中国银联股份有限公司 A kind of transaction test method and device
CN110138613B (en) * 2019-05-16 2022-06-14 广东电网有限责任公司 Network test template construction method, power network test method and related device
CN112055016B (en) * 2020-09-02 2023-02-28 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN101582815A (en) * 2009-06-17 2009-11-18 北京星网锐捷网络技术有限公司 Protocol security testing method and device
CN102184135A (en) * 2011-04-19 2011-09-14 中国工商银行股份有限公司 Instruction script based test method and system in bank system
CN105791178A (en) * 2014-12-26 2016-07-20 阿里巴巴集团控股有限公司 Message assembly method and device
CN109933534A (en) * 2019-03-26 2019-06-25 上海上湖信息技术有限公司 A kind of method and device of determining financial test object
CN110188030A (en) * 2019-04-08 2019-08-30 平安科技(深圳)有限公司 A kind of test data generating method, device and computer equipment, storage medium
CN111221739A (en) * 2020-01-10 2020-06-02 中国建设银行股份有限公司 Service testing method, device and system

Also Published As

Publication number Publication date
CN112737875A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN109863719B (en) Method and system for controlling transfer through block chain
CN101727712B (en) Transfer method for electronic cash
CN109840837B (en) Financial data processing method and device, computer readable medium and electronic equipment
CN108111368B (en) Function test method and device of transaction system
CN101145264A (en) Business affairs bank card processing system and method
CN110457336B (en) Transaction data processing method and device
CN112330181A (en) Enterprise credit evaluation method and device based on block chain
CN111383120A (en) Asset management method and device based on block chain and electronic equipment
CN110443612B (en) Block chain-based reimbursement expense segmentation method and device and electronic equipment
CN110717820A (en) Asset compensation method and device based on block chain and electronic equipment
CN112037067B (en) Processing system and method for settlement message service data
CN112737875B (en) Method and device for generating test message
CN111383118A (en) Asset management method and device based on block chain and electronic equipment
CN111796854B (en) Module hot upgrading method and device, electronic equipment and readable storage medium
CN114004606A (en) Bank card transaction activity processing method and related equipment
CN107357679A (en) A kind of backup method and device
CN113129021A (en) Block chain-based method and device for preventing malicious overdraft of credit card
CN113436018A (en) Asset hosting business processing method and device, storage medium and electronic equipment
CN115456772A (en) Intelligent contract creating method and device
CN107563888B (en) System and method for uniformly managing online bills
CN111640006A (en) Bank payment and receipt method, device, terminal and storage medium
CN110989984A (en) Data processing method, device and system
CN113419794B (en) Payment processing method and device
CN115311065A (en) Splitting and money returning method and device
CN108510382B (en) Transaction information processing method and device

Legal Events

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