CN111627171A - Test message conversion method, device, equipment and medium of ATMP system - Google Patents

Test message conversion method, device, equipment and medium of ATMP system Download PDF

Info

Publication number
CN111627171A
CN111627171A CN202010349639.6A CN202010349639A CN111627171A CN 111627171 A CN111627171 A CN 111627171A CN 202010349639 A CN202010349639 A CN 202010349639A CN 111627171 A CN111627171 A CN 111627171A
Authority
CN
China
Prior art keywords
tested
target format
field
interface
message
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
CN202010349639.6A
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010349639.6A priority Critical patent/CN111627171A/en
Publication of CN111627171A publication Critical patent/CN111627171A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/206Software aspects at ATMs
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/209Monitoring, auditing or diagnose of functioning of ATMs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a test message conversion of an ATMP system, which comprises the following steps: acquiring a non-target format message for testing an ATMP system; analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system; generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof; and sending the target format message to the interface to be tested of the ATMP system so that the interface to be tested of the ATMP system can analyze and process according to the target format message. The invention solves the problems that the ATMP can be expanded and tested only under the condition of having ATMC, the testing efficiency is low and the automatic testing can not be carried out in the prior art.

Description

Test message conversion method, device, equipment and medium of ATMP system
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method, an apparatus, a device, and a medium for converting a test packet of an ATMP system.
Background
An Automatic Teller Machine (ATM) is a highly precise mechatronic device, and uses a magnetic code card or a smart card to realize self-service of financial transactions, instead of the work of bank counter personnel. An ATM terminal processing system (ATM for short) is a terminal device control system at the bottom layer of a terminal transaction channel, operates on a terminal device, is mainly used for providing various transaction and management interactive interfaces for a cardholder and an ATM device administrator, and interacts with an ATMP through a message to realize a specific function. An ATM pre-processing system (ATMP) is a communication pre-processing system, which is located between an application pre-processing system or a related service host and the ATMC, and is mainly used for implementing functions of terminal equipment management, communication mode normalization (access to an internal network), transaction message format conversion and forwarding, and the like.
Prior art testing of ATM is divided into front-end testing for ATMC and back-end testing for ATMP. When testing for ATMP, it is necessary to wait until ATMC is ready to perform the test. This is because the ATMP received 8583 messages. Unlike existing string messages (e.g., xml, json, url), the 8583 message is a 16-system numeric format message, and the 8583 message cannot be written by writing script codes. Therefore, the ATMP cannot be tested in advance before the ATMC is ready, and the ATMP can only be tested after the ATMC is ready, so that the efficiency is low, and the project development is not facilitated. Furthermore, the number of ATMC is very large, if one ATMC is prepared for each type, the occupation of office space resources is caused, and the equipment is very heavy and is not easy to move; meanwhile, due to the fact that ATMC is used, manual operation is needed for inserting cards, putting bills, taking bills and the like, and automatic testing of ATMP cannot be achieved.
Therefore, finding a method to solve the problems of the prior art that the test must be performed on ATMP under the condition of ATMC, the test efficiency is low, and the automated test cannot be performed becomes a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for converting a test message of an ATMP system, which aim to solve the problems that the ATMP can be subjected to an expansion test only under the condition of ATMC, the test efficiency is low and the automatic test cannot be carried out in the prior art.
A test message conversion method of an ATMP system comprises the following steps:
acquiring a non-target format message for testing an ATMP system;
analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system;
generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof;
and sending the target format message to the interface to be tested of the ATMP system so that the interface to be tested of the ATMP system can analyze and process according to the target format message.
Optionally, the analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system includes:
setting a mapping relation between an interface on the ATMP system and parameters;
analyzing the non-target format message to obtain an interface to be tested, inquiring the mapping relation between the interface and parameters according to the interface to be tested, and obtaining parameters corresponding to the interface to be tested as parameters to be tested;
and analyzing the message in the non-target format to obtain a parameter value corresponding to the parameter to be tested.
Optionally, the generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof includes:
setting a mapping relation between parameters and field domains on the ATMP system;
inquiring the mapping relation between the parameters and the field domains to obtain the field domains corresponding to the parameters to be tested;
converting the parameter value corresponding to the parameter to be tested into the field value of the field domain according to the data format of the field domain;
and transmitting the field value into a field domain of the target format message to generate the target format message.
Optionally, said passing said field value into a field domain of said target format packet comprises:
when the field domain is a variable-length domain, acquiring a predefined length threshold value, and comparing the length of the field value with the predefined length threshold value;
if the length of the field value is smaller than the predefined length threshold value, transmitting the field value into a field domain of the target format message, and supplementing 0 in front of the field value;
and if the length of the field value is greater than the predefined length threshold, generating an error message.
Optionally, said passing said field value into a field domain of said target format packet comprises:
when the field domain is a fixed-length domain, comparing the length of the field value with a fixed-length threshold of the field domain;
if the length of the field value is smaller than the fixed length threshold value, transmitting the field value into a field domain of the target format message, and filling a space behind the field value;
and if the length of the field value is greater than the fixed length threshold, generating an error message.
A test message conversion device of ATMP system includes:
the acquisition module is used for acquiring a non-target format message for testing the ATMP system;
the analysis module is used for analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system;
the conversion module is used for generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof;
and the sending module is used for sending the target format message to the to-be-tested interface of the ATMP system so as to analyze and process the to-be-tested interface of the ATMP system according to the target format message.
Optionally, the parsing module includes:
the first setting unit is used for setting the mapping relation between the interface on the ATMP system and the parameters;
the first analysis unit is used for analyzing the non-target format message to obtain an interface to be tested, inquiring the mapping relation between the interface and parameters according to the interface to be tested to obtain parameters corresponding to the interface to be tested, and using the parameters as parameters to be tested;
and the second analysis unit is used for analyzing the non-target format message to obtain a parameter value corresponding to the parameter to be tested.
Optionally, the conversion module comprises:
the first setting unit is used for setting the mapping relation between the parameters and the field domain on the ATMP system;
the query unit is used for querying the mapping relation between the parameters and the field domains to obtain the field domains corresponding to the parameters to be tested;
the conversion unit is used for converting the parameter value corresponding to the parameter to be tested into the field value of the field domain according to the data format of the field domain;
and the generating unit is used for transmitting the field value into a field domain of the target format message and generating the target format message.
A computer device comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the test message conversion method of the ATMP system when executing the computer program.
A computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the test message conversion method of the above-described ATMP system.
The embodiment of the invention acquires a non-target format message for testing an ATMP system based on an ATM simulator by constructing the ATM simulator; analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system; then generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof; sending the target format message to the interface to be tested of the ATMP system so that the interface to be tested of the ATMP system can analyze and process according to the target format message; therefore, the test message of the ATMP is generated under the condition of no ATMC entity equipment, the ATMP is developed and tested, the problems that the ATMP can be developed and tested only under the condition of having the ATMC, the test efficiency is low and the automatic test cannot be carried out in the prior art are effectively solved, the automatic test of the ATMP is realized, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention 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 that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of a method for converting test messages of an ATMP system according to an embodiment of the present invention;
fig. 2 is a flowchart of step S102 in the test message conversion method of the ATMP system according to an embodiment of the present invention;
fig. 3 is a flowchart of step S103 of the test message conversion method of the ATMP system according to an embodiment of the present invention;
fig. 4 is a flowchart of step S304 of the test message conversion method of the ATMP system according to an embodiment of the present invention;
fig. 5 is a flowchart of step S304 of the test message conversion method of the ATMP system according to another embodiment of the present invention;
fig. 6 is a schematic block diagram of a test packet conversion apparatus of the ATMP system according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 method for converting the test message of the ATMP system provided by the embodiment of the invention aims to overcome the problem that the ATMP must be sent by ATMC entity equipment when being tested in the prior art, so that the ATMP test message is generated under the condition that the ATMC entity equipment is not available, the ATMP is developed and tested, the ATMP is automatically tested, and the test efficiency is improved. The test message conversion method of the ATMP system is applied to the ATM simulator provided by the embodiment of the invention. The ATM simulator is used for simulating an ATMC system to send a test message to an ATMP system, converting the non-target format test message into a target format test message by receiving the non-target format test message transmitted by a user, and then sending the target format test message to the ATMP system.
The following describes in detail the test packet conversion method of the ATMP system provided in this embodiment. As shown in fig. 1, the method for converting test packets of the ATMP system includes:
in step S101, a message in a non-target format for testing the ATMP system is obtained.
Here, the non-target format message refers to a message in a character string format that is inconsistent with a target format applicable to the ATMP system. These messages in non-target format can be obtained by writing script code, such as XML message, json message, URL message. The non-target format message comprises a to-be-tested interface of the ATMP system, a to-be-tested parameter for testing the to-be-tested interface and a corresponding parameter value. The user can pre-write the non-target format message corresponding to the interface to be tested, and then the non-target format message is transmitted to the ATM simulator, and the ATM simulator obtains the non-target format message.
In step S102, the non-target format message is analyzed to obtain a to-be-tested interface, a to-be-tested parameter, and a corresponding parameter value of the ATMP system.
And analyzing the message in the non-target format according to the character string format of the message in the non-target format. For example, when the non-target format message is an XML message, the non-target format message is analyzed according to an analysis mode of the XML message; and when the message in the non-target format is a json message, analyzing the message in the non-target format according to the analysis mode of the json message. And obtaining an interface to be tested of the non-target format message, namely a to-be-tested interface of the ATMP system, and obtaining a to-be-tested parameter and a corresponding parameter value thereof through analysis.
Optionally, as shown in fig. 2, the step S102 of analyzing the non-target format message to obtain the interface to be tested, the parameter to be tested, and the corresponding parameter value of the ATMP system includes:
in step S201, an interface and parameter mapping relationship on the ATMP system is set.
Here, the interface-parameter mapping relationship records parameters required by an interface on the ATMP system, and usually one ATMP system interface corresponds to at least one parameter.
In step S202, the non-target format packet is analyzed to obtain an interface to be tested, and the mapping relationship between the interface and the parameter is queried according to the interface to be tested to obtain a parameter corresponding to the interface to be tested, which is used as a parameter to be tested.
After receiving the message in the non-target format, analyzing the message in the non-target format to obtain a corresponding interface to be tested, namely a system interface on the ATMP. And then inquiring a pre-configured interface and parameter mapping relation according to the interface to be tested to obtain a parameter corresponding to the interface to be tested, thereby obtaining the parameter type carried in the message to be tested.
In step S203, the message in the non-target format is analyzed to obtain a parameter value corresponding to the parameter to be tested.
Analyzing the non-target format message according to the to-be-tested parameter, assigning the content in the non-target format message to the to-be-tested parameter, and obtaining the parameter value corresponding to the to-be-tested parameter, thereby ensuring that the to-be-tested parameter and the parameter value thereof obtained by analysis are parameters required by the target format message, and improving the analysis efficiency.
In step S103, a target format message corresponding to the interface to be tested is generated according to the parameter to be tested and the corresponding parameter value.
Here, the target format message includes an 8583 message. The 8583 message is a communication protocol based on a packet format of an international standard of an ISO8583 message, and at most consists of 128 field fields. Each field domain corresponds to a fixed meaning, for example, the 2 nd field domain is an account number domain, and the 35 th field domain is a track information domain. The ATMP system comprises a plurality of interfaces to be tested, each interface to be tested is used in one or more of the 128 fields, such as the fields 1, 3, 5, 7 and 9 are used in an account information inquiry interface, and the fields 2, 4, 6, 8 and 10 are used in a transfer interface. Therefore, the field fields used by the target format messages corresponding to each interface to be tested are different. In view of this, the embodiment of the present invention implements conversion between the non-target format packet and the target format packet by constructing an interface-parameter mapping relationship and a parameter-field domain mapping relationship.
Optionally, as shown in fig. 3, the step S103 of generating the target format packet corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value includes:
in step S301, a parameter and field domain mapping relationship on the ATMP system is set.
The mapping relation between the parameters and the field fields records the corresponding relation between each parameter and the field fields on the target format message.
In step S302, the mapping relationship between the parameter and the field domain is queried to obtain the field domain corresponding to the parameter to be tested.
After the non-target format message is analyzed to obtain parameters to be tested, each parameter to be tested is traversed based on the mapping relation between the parameters and the field domains to obtain the field domain corresponding to the parameter to be tested, namely the position of the parameter to be tested on the target format message.
In step S303, according to the data format of the field domain, the parameter value corresponding to the parameter to be tested is converted into a field value of the field domain.
Here, each field is an 8-bit 16-ary number. Traversing each parameter to be tested, and converting the parameter value of the parameter to be tested into an 8-bit 16-ary number to obtain the field value of the field domain corresponding to the parameter to be tested.
In step S304, the field value is transmitted into a field of the target format packet, so as to generate the target format packet.
Optionally, in the 8583 message, each field has a uniform specification and is divided into a fixed-length field and a variable-length field according to whether the length is variable. As shown in fig. 4, after converting the parameter value corresponding to the parameter to be tested into the field value of the field domain, the step S304 of transmitting the field value into the field domain of the target format packet includes:
in step S401, when the field is a variable length field, a predefined length threshold is obtained, and the length of the field value is compared with the predefined length threshold.
Here, the predefined length threshold is a maximum length of the variable-length field specified by a user before using the variable-length field. The user can set the length threshold of the variable length field according to the requirement.
In step S402, if the length of the field value is smaller than the predefined length threshold, the field value is transmitted into the field of the packet in the target format, and 0 is added in front of the field value.
In step S403, if the length of the field value is greater than the predefined length threshold, an error message is generated.
Here, for the variable-length field, the user may specify a length threshold of the variable-length field, and if and only if the length of the field value is smaller than the length threshold, fill the field value into the field of the target format packet, and supplement 0 in front of the field value to fill the entire field; and if the length of the field value is greater than the length threshold value, indicating that the field value or the field domain has errors, generating an error report message.
Optionally, as shown in fig. 5, the step S304 of transferring the field value into a field of the target format packet includes:
in step S501, when the field is a fixed-length field, the length of the field value is compared with a fixed-length threshold of the field.
Here, the fixed length threshold is a maximum length of the fixed length field, and is not required to be specified by a user. The fixed length threshold of the fixed length field is only one.
In step S502, if the length of the field value is smaller than the fixed length threshold, the field value is transmitted into a field of the target format packet, and a space is filled after the field value.
In step S503, if the length of the field value is greater than the fixed length threshold, an error message is generated.
Here, for the fixed-length field, one fixed-length threshold value is corresponded, and the user cannot specify the length threshold value. If and only if the length of the field value is less than the fixed length threshold, filling the field value into a field domain of the target format message, and supplementing a space behind the field value to fill the whole field domain; and if the length of the field value is greater than the fixed length threshold value, indicating that the field value or the field domain has errors, generating an error report message.
Through the steps, each parameter to be tested is traversed, the parameter value corresponding to the parameter to be tested is converted into the corresponding field value, and the field value is written into the corresponding field domain to form a complete message, so that the message in the target format is obtained.
The interface and the parameters required by the target format message can be obtained by analyzing any type of non-target format message through the pre-configured interface and parameter mapping relation of the embodiment, and the interface and the parameters required by the non-target format message can be directly converted into the target format message through the parameter and field domain mapping relation, so that the conversion from the non-target format message to the target format message is effectively realized, and the message conversion reliability is improved.
In step S104, the target format packet is sent to the interface to be tested of the ATMP system, so that the interface to be tested of the ATMP system performs parsing and processing according to the target format packet.
And after traversing each parameter to be tested in the non-target format message, converting the parameter to be tested into a corresponding field value and filling the field value into a corresponding field domain, and taking the obtained message as a target format message. And sending the target format message to the ATMP system so that the to-be-tested interface of the ATMP system receives the target format message, and analyzing and processing the target format message to complete the test of the to-be-tested interface.
By the embodiment, a user can compile a non-target format message in a character string format, then convert the non-target format message into a target format message by a test message conversion method of the ATMP system, and send the target format message to the ATMP system, so that the ATMP can be tested under the scene without ATMC, and the compiling of the non-target format message in the character string format is easier to realize compared with the target format message. In practical application, for example, in a test for simulating various coins, in the prior art, when the ATMC system is ready, physical paper currency with face values of 100 yuan, 50 yuan, 20 yuan and the like is prepared, after the test message of the ATMP system provided by the present invention is used, it is not necessary to prepare the ATMC and the physical paper currency with face values, only a non-target format message for a multi-currency test needs to be transmitted to the ATM simulator, and the test can be completed by converting the non-target format message into a target format message and transmitting the target format message to the ATMP system through the test message conversion method of the ATMP system provided by the present invention, so that the test efficiency and the automation degree of the ATMP system are effectively improved. Besides simulating various currency tests, the test message conversion method of the ATMP system provided by the invention is also suitable for currency face value custom tests, overtime scenes, abnormal input scenes and the like.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a test packet conversion apparatus of an ATMP system is provided, where the test packet conversion apparatus of the ATMP system corresponds to the test packet conversion method of the ATMP system in the above embodiment one to one. As shown in fig. 6, the test packet conversion apparatus of the ATMP system includes an obtaining module 61, an analyzing module 62, a converting module 63, and a sending module 64. The functional modules are explained in detail as follows:
an obtaining module 61, configured to obtain a non-target format message for testing the ATMP system;
the analysis module 62 is configured to analyze the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter, and a corresponding parameter value of the ATMP system;
the conversion module 63 is configured to generate a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof;
a sending module 64, configured to send the target format packet to the to-be-tested interface of the ATMP system, so that the to-be-tested interface of the ATMP system performs analysis and processing according to the target format packet.
Optionally, the parsing module 62 includes:
the first setting unit is used for setting the mapping relation between the interface on the ATMP system and the parameters;
the first analysis unit is used for analyzing the non-target format message to obtain an interface to be tested, inquiring the mapping relation between the interface and parameters according to the interface to be tested to obtain parameters corresponding to the interface to be tested, and using the parameters as parameters to be tested;
and the second analysis unit is used for analyzing the non-target format message to obtain a parameter value corresponding to the parameter to be tested.
Optionally, the conversion module 63 includes:
the first setting unit is used for setting the mapping relation between the parameters and the field domain on the ATMP system;
the query unit is used for querying the mapping relation between the parameters and the field domains to obtain the field domains corresponding to the parameters to be tested;
the conversion unit is used for converting the parameter value corresponding to the parameter to be tested into the field value of the field domain according to the data format of the field domain;
and the generating unit is used for transmitting the field value into a field domain of the target format message and generating the target format message.
Optionally, the generating unit includes:
a first comparing unit, configured to, when the field domain is a variable-length domain, obtain a predefined length threshold, and compare the length of the field value with the predefined length threshold;
a first transmission unit, configured to transmit the field value into a field domain of the packet in the target format if the length of the field value is smaller than the predefined length threshold, and add 0 to the front of the field value;
a first error reporting unit, configured to generate an error reporting message if the length of the field value is greater than the predefined length threshold.
Optionally, the generating unit further includes:
the second comparison unit is used for comparing the length of the field value with a fixed length threshold value of the field domain when the field domain is a fixed length domain;
a second incoming unit, configured to, if the length of the field value is smaller than the fixed length threshold, enter the field value into a field domain of the packet in the target format, and fill a space behind the field value;
and the second error reporting unit is used for generating an error reporting message if the length of the field value is greater than the fixed length threshold.
For the specific limitation of the test packet converting apparatus of the ATMP system, reference may be made to the above limitation on the test packet converting method of the ATMP system, and details are not described here. All or part of each module in the test message conversion device of the ATMP system can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a test message conversion method of the ATMP system.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a non-target format message for testing an ATMP system;
analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system;
generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof;
and sending the target format message to the interface to be tested of the ATMP system so that the interface to be tested of the ATMP system can analyze and process according to the target format message.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for converting test messages of an ATMP system is characterized by comprising the following steps:
acquiring a non-target format message for testing an ATMP system;
analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system;
generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof;
and sending the target format message to the interface to be tested of the ATMP system so that the interface to be tested of the ATMP system can analyze and process according to the target format message.
2. The method for converting test packets of an ATMP system of claim 1, wherein said parsing said non-target format packet to obtain an interface to be tested, a parameter to be tested and a corresponding parameter value of the ATMP system comprises:
setting a mapping relation between an interface on the ATMP system and parameters;
analyzing the non-target format message to obtain an interface to be tested, inquiring the mapping relation between the interface and parameters according to the interface to be tested, and obtaining parameters corresponding to the interface to be tested as parameters to be tested;
and analyzing the message in the non-target format to obtain a parameter value corresponding to the parameter to be tested.
3. The method for converting test packets of an ATMP system of claim 2, wherein said generating the target format packet corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof comprises:
setting a mapping relation between parameters and field domains on the ATMP system;
inquiring the mapping relation between the parameters and the field domains to obtain the field domains corresponding to the parameters to be tested;
converting the parameter value corresponding to the parameter to be tested into the field value of the field domain according to the data format of the field domain;
and transmitting the field value into a field domain of the target format message to generate the target format message.
4. The method of claim 3, wherein said passing said field value into a field of said target format message comprises:
when the field domain is a variable-length domain, acquiring a predefined length threshold value, and comparing the length of the field value with the predefined length threshold value;
if the length of the field value is smaller than the predefined length threshold value, transmitting the field value into a field domain of the target format message, and supplementing 0 in front of the field value;
and if the length of the field value is greater than the predefined length threshold, generating an error message.
5. The method of claim 3 or 4, wherein said passing said field value into a field of said target format packet comprises:
when the field domain is a fixed-length domain, comparing the length of the field value with a fixed-length threshold of the field domain;
if the length of the field value is smaller than the fixed length threshold value, transmitting the field value into a field domain of the target format message, and filling a space behind the field value;
and if the length of the field value is greater than the fixed length threshold, generating an error message.
6. A test message conversion device of ATMP system is characterized in that the device includes:
the acquisition module is used for acquiring a non-target format message for testing the ATMP system;
the analysis module is used for analyzing the non-target format message to obtain a to-be-tested interface, a to-be-tested parameter and a corresponding parameter value of the ATMP system;
the conversion module is used for generating a target format message corresponding to the interface to be tested according to the parameter to be tested and the corresponding parameter value thereof;
and the sending module is used for sending the target format message to the to-be-tested interface of the ATMP system so as to analyze and process the to-be-tested interface of the ATMP system according to the target format message.
7. The test message converting apparatus of the ATMP system as claimed in claim 6, wherein said parsing module comprises:
the first setting unit is used for setting the mapping relation between the interface on the ATMP system and the parameters;
the first analysis unit is used for analyzing the non-target format message to obtain an interface to be tested, inquiring the mapping relation between the interface and parameters according to the interface to be tested to obtain parameters corresponding to the interface to be tested, and using the parameters as parameters to be tested;
and the second analysis unit is used for analyzing the non-target format message to obtain a parameter value corresponding to the parameter to be tested.
8. The test message converting apparatus of the ATMP system of claim 7, wherein said converting module comprises:
the first setting unit is used for setting the mapping relation between the parameters and the field domain on the ATMP system;
the query unit is used for querying the mapping relation between the parameters and the field domains to obtain the field domains corresponding to the parameters to be tested;
the conversion unit is used for converting the parameter value corresponding to the parameter to be tested into the field value of the field domain according to the data format of the field domain;
and the generating unit is used for transmitting the field value into a field domain of the target format message and generating the target format message.
9. Computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the test message conversion method of the ATMP system according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the test message conversion method of the ATMP system according to any one of claims 1 to 5.
CN202010349639.6A 2020-04-28 2020-04-28 Test message conversion method, device, equipment and medium of ATMP system Pending CN111627171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010349639.6A CN111627171A (en) 2020-04-28 2020-04-28 Test message conversion method, device, equipment and medium of ATMP system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010349639.6A CN111627171A (en) 2020-04-28 2020-04-28 Test message conversion method, device, equipment and medium of ATMP system

Publications (1)

Publication Number Publication Date
CN111627171A true CN111627171A (en) 2020-09-04

Family

ID=72270900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010349639.6A Pending CN111627171A (en) 2020-04-28 2020-04-28 Test message conversion method, device, equipment and medium of ATMP system

Country Status (1)

Country Link
CN (1) CN111627171A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06178363A (en) * 1992-12-03 1994-06-24 Mitsubishi Electric Corp Communication testing equipment
JPH1065762A (en) * 1996-08-14 1998-03-06 Hitachi Ltd Automatic testing simulator for communication software and automatic testing method therefor
CN1996374A (en) * 2006-12-30 2007-07-11 中国建设银行股份有限公司 Method, device, and system for testing advanced apparatus
CN107113196A (en) * 2017-04-12 2017-08-29 深圳怡化电脑股份有限公司 ATM business softwares exploitation adjustment method, system and a kind of simulation ATMP systems
CN107102947A (en) * 2017-05-12 2017-08-29 中国工商银行股份有限公司 ATM transaction flows test device and method
CN107404487A (en) * 2017-08-07 2017-11-28 浙江国利信安科技有限公司 A kind of industrial control system safety detection method and device
CN107688537A (en) * 2017-08-25 2018-02-13 泰康保险集团股份有限公司 Method of testing, device and front end processor
CN108055266A (en) * 2017-12-15 2018-05-18 南京邮电大学盐城大数据研究院有限公司 A kind of method and system of 8583 data message of parsing based on position offset
CN109062801A (en) * 2018-08-01 2018-12-21 四川长虹电器股份有限公司 Software interface automated conversion system
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109474488A (en) * 2018-10-31 2019-03-15 中国银行股份有限公司 Interface test method, device and computer equipment
CN110781082A (en) * 2019-10-14 2020-02-11 腾讯科技(深圳)有限公司 Method, device, medium and equipment for generating test case of interface
CN110830442A (en) * 2019-10-09 2020-02-21 贝壳技术有限公司 Message processing method, device and gateway
CN110941563A (en) * 2019-12-31 2020-03-31 中国银行股份有限公司 Automatic script testing method and device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06178363A (en) * 1992-12-03 1994-06-24 Mitsubishi Electric Corp Communication testing equipment
JPH1065762A (en) * 1996-08-14 1998-03-06 Hitachi Ltd Automatic testing simulator for communication software and automatic testing method therefor
CN1996374A (en) * 2006-12-30 2007-07-11 中国建设银行股份有限公司 Method, device, and system for testing advanced apparatus
CN107113196A (en) * 2017-04-12 2017-08-29 深圳怡化电脑股份有限公司 ATM business softwares exploitation adjustment method, system and a kind of simulation ATMP systems
CN107102947A (en) * 2017-05-12 2017-08-29 中国工商银行股份有限公司 ATM transaction flows test device and method
CN107404487A (en) * 2017-08-07 2017-11-28 浙江国利信安科技有限公司 A kind of industrial control system safety detection method and device
CN107688537A (en) * 2017-08-25 2018-02-13 泰康保险集团股份有限公司 Method of testing, device and front end processor
CN108055266A (en) * 2017-12-15 2018-05-18 南京邮电大学盐城大数据研究院有限公司 A kind of method and system of 8583 data message of parsing based on position offset
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109062801A (en) * 2018-08-01 2018-12-21 四川长虹电器股份有限公司 Software interface automated conversion system
CN109474488A (en) * 2018-10-31 2019-03-15 中国银行股份有限公司 Interface test method, device and computer equipment
CN110830442A (en) * 2019-10-09 2020-02-21 贝壳技术有限公司 Message processing method, device and gateway
CN110781082A (en) * 2019-10-14 2020-02-11 腾讯科技(深圳)有限公司 Method, device, medium and equipment for generating test case of interface
CN110941563A (en) * 2019-12-31 2020-03-31 中国银行股份有限公司 Automatic script testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
唐丁波: "通用报文格式转换的实现", 《电脑与信息技术》 *

Similar Documents

Publication Publication Date Title
CN107908485A (en) Interface parameters transmission method, device, equipment and computer-readable recording medium
CN111177005A (en) Service application testing method, device, server and storage medium
CN109474578A (en) Message method of calibration, device, computer equipment and storage medium
CN110008226A (en) Construction method, device, computer equipment and the storage medium of data model
CN114500690B (en) Interface data processing method and device, electronic equipment and storage medium
CN108629567A (en) Declaration information processing method, device, computer equipment and storage medium
CN110175833B (en) Computer device, method, system and medium for binding bank card information
CN111181800B (en) Test data processing method and device, electronic equipment and storage medium
CN105791178A (en) Message assembly method and device
CN103514092A (en) Method for automatic testing of software system of ATM
CN109598602A (en) Account checking method, device, equipment and computer readable storage medium
CN106992940B (en) Message processing method, device, system and terminal
US20200394904A1 (en) Metering data management system and computer readable recording medium
CN110209605A (en) The register reading/writing method and calculating equipment of PCIE Cardbus NIC Cardbus
CN117194242A (en) Log playback method and device for transaction system, electronic equipment and storage medium
CN106875184B (en) Abnormal scene simulation method, device and equipment
CN111627171A (en) Test message conversion method, device, equipment and medium of ATMP system
CN108280024A (en) Traffic distribution strategy test method, device and electronic equipment
RU2532714C2 (en) Method of acquiring data when evaluating network resources and apparatus therefor
CN111726260B (en) Method, device and system for testing format conversion of network request reply information
CN115168205A (en) Automatic testing method and device
CN105374131A (en) Method and device for automatic testing
CN115061924A (en) Automatic test case generation method and generation device
JP2022104888A (en) Test information provision method, virtual cooperation device, and system
CN114338850A (en) Message checking method and device, terminal equipment and computer readable storage medium

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240322

AD01 Patent right deemed abandoned