CN115086191B - Automatic test method, device and equipment for bank card - Google Patents

Automatic test method, device and equipment for bank card Download PDF

Info

Publication number
CN115086191B
CN115086191B CN202210680112.0A CN202210680112A CN115086191B CN 115086191 B CN115086191 B CN 115086191B CN 202210680112 A CN202210680112 A CN 202210680112A CN 115086191 B CN115086191 B CN 115086191B
Authority
CN
China
Prior art keywords
card
message
bank card
message log
original communication
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
CN202210680112.0A
Other languages
Chinese (zh)
Other versions
CN115086191A (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202210680112.0A priority Critical patent/CN115086191B/en
Publication of CN115086191A publication Critical patent/CN115086191A/en
Application granted granted Critical
Publication of CN115086191B publication Critical patent/CN115086191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/356Aspects of software for card payments
    • 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/02Banking, e.g. interest calculation or account maintenance
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • 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/08Protocols for interworking; Protocol conversion
    • 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 Networks & Wireless Communication (AREA)
  • Finance (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses an automatic test method, device and equipment for a bank card, which can be applied to the distributed field or the financial field. The method comprises the following steps: acquiring a bank card test request; responding to the bank card test request, converting the card organization original communication message log into a request message used by a bank card switching center system; the request message is sent to a front-end server of a bank card exchange center, so that the front-end server of the bank card exchange center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message; acquiring an output message Wen Rizhi corresponding to the request message from the front-end server of the bank card switching center; and performing difference comparison on the output message log corresponding to the original communication message log of the card organization and the output message log corresponding to the request message, and outputting a difference comparison result. Therefore, the automatic test of the functions of the plurality of nodes after mutual interaction can be realized, and the test efficiency and accuracy are improved.

Description

Automatic test method, device and equipment for bank card
Technical Field
The present disclosure relates to the field of software testing technologies, and in particular, to a method, an apparatus, and a device for automated testing of a bank card.
Background
With the rapid development of the information age, more and more software is being presented in people's lives. People are widely applied to software, the call for guaranteeing the quality of the software is higher, and how to better and comprehensively guarantee the quality of the software through testing becomes key at present.
Software testing is an important means of software quality assurance, and in general software testing is a process of auditing or comparison between actual and expected output. I.e., a process of operating the program under prescribed conditions to find program errors, measure software quality, and evaluate whether it meets design requirements. The existing software testing method is mostly aimed at single system testing, and for a transaction link, the testing efficiency is low and the accuracy is poor due to the fact that the system nodes are numerous and interdependent.
Therefore, how to improve the test efficiency and accuracy of the complex link system is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides an automatic test method, device and equipment for a bank card, which are used for rapidly obtaining a relatively accurate test result, so that the problems of low test efficiency and poor accuracy when facing a system with complex transaction links and numerous and interdependent system nodes in the prior test technology are solved.
In a first aspect, an embodiment of the present application provides a method for automatically testing a bank card, including:
acquiring a bank card test request;
responding to the bank card test request, converting the card organization original communication message log into a request message used by a bank card switching center system;
the request message is sent to a front-end server of a bank card exchange center, so that the front-end server of the bank card exchange center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message;
acquiring an output message Wen Rizhi corresponding to the request message from the front-end server of the bank card switching center;
and performing difference comparison on the output message log corresponding to the original communication message log of the card organization and the output message log corresponding to the request message, and outputting a difference comparison result.
Optionally, the responding to the bank card test request converts the card organization original communication message log into a request message used by a bank card switching center system, including:
reading a card organization original communication message log;
and converting hexadecimal messages in the card organization original communication message log into character messages, filling the converted character length in the head of the character messages, and generating request messages used by a bank card switching center system.
Optionally, the converting the hexadecimal message in the card organization original communication message log into a character message, and filling the converted character length in the character message header, generating a request message used by a bank card switching center system, includes:
converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
when the data transaction card numbers of different test environments are different, the offset in the character message is replaced according to the transaction card numbers, and a request message used by the bank card switching center system is generated.
Optionally, the converting the hexadecimal message in the card organization original communication message log into a character message, and filling the converted character length in the character message header, generating a request message used by a bank card switching center system, includes:
reading the parsed 8583 specification character report Wen Rizhi;
associating the card organization original communication message log with the parsed 8583 standard character message log through transaction date;
converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
Extracting a specific transaction scene from the parsed 8583 specification character message log associated with the card organization original communication message log;
and adding the transaction scene into the character message to generate a request message used by a bank card switching center system.
Optionally, the reading card organizes an original communication message log and an parsed 8583 standard character message log, including:
receiving a card organization original communication message log and an parsed 8583 standard character message Wen Rizhi sent by a front-end server of a bank card exchange center;
storing the card organization original communication message log and the parsed 8583 standard character message log in a message warehouse;
and reading the card organization original communication message log and the parsed 8583 standard character message log from the message warehouse.
Optionally, the sending the request message to a front-end server of a bank card switching center, so that the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message log corresponding to the request message, including:
an automatic detection framework is automatically adjusted up, so that bidirectional response of a transaction link with a front-end server of a bank card exchange center is realized;
And sending the request message to a front-end server of a bank card exchange center so that the front-end server of the bank card exchange center sends the request message to a card issuing system and receives an output message log corresponding to the request message generated by the card issuing system.
Optionally, the performing difference comparison between the output message log corresponding to the card organization original communication message log and the output message log corresponding to the request message, and outputting a difference comparison result, includes:
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the card organization original communication message log;
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the request message;
after the transaction date, the system tracking number and the response code are used as key elements for matching, comparing the difference between the message fields of the output message log corresponding to the original communication message and the output message log corresponding to the request message to generate a difference text;
and outputting the difference text.
Optionally, the bank card switching center front-end server is specifically configured to:
establishing a bidirectional response of a transaction link with the card issuing system;
Receiving the card organization original communication message log, the parsed 8583 standard character message log and the output message Wen Rizhi corresponding to the card organization original communication message log sent by the card issuing system;
the request message obtained by converting the original communication message log of the card organization is sent to the card issuing system;
and receiving an output message log corresponding to the request message sent by the card sending system.
In a second aspect, an embodiment of the present application provides an automated banking card testing device, including
The data format conversion module is used for acquiring a bank card test request; responding to the bank card test request, converting the original communication message log of the card organization into a request message used by a bank card switching center system;
the data sending module sends the request message to a front-end server of a bank card switching center so that the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message;
the data comparison module is used for acquiring an output message Wen Rizhi corresponding to the request message from the front-end server of the bank card switching center; and performing difference comparison on the output message log corresponding to the original communication message log of the card organization and the output message log corresponding to the request message, and outputting a difference comparison result.
In a third aspect, the present application provides a bank card automated test equipment, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the automatic test method for the bank card when executing the computer program.
From the above technical solutions, the embodiments of the present application have the following advantages:
in this embodiment of the present application, it may be determined that after a bank card test request is acquired, the application responds to the bank card test request, converts a card organization original communication message log into a request message used by a bank card switching center system, and then sends the request message to a front-end server of the bank card switching center, so that the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message, acquires an output message Wen Rizhi corresponding to the request message from the front-end server of the bank card switching center, and finally performs difference comparison on the output message log corresponding to the card organization original communication message log and the output message log corresponding to the request message. Therefore, the test software interacts with the bank card exchange center, and the bank card exchange center interacts with system nodes, such as a card issuing system, and the automatic test of the system with complex transaction links, numerous system nodes and interdependence can be realized by comparing output messages Wen Rizhi generated by interaction among multiple nodes, so that the test efficiency is improved, and the test result is more accurate.
Drawings
FIG. 1 is a flowchart of a method for automated testing of a bank card according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an automated testing device for a bank card according to an embodiment of the present application.
Detailed Description
As described above, the existing software testing method is mostly aimed at a single system test, and for a complex transaction link, the system with numerous system nodes and interdependence will make the testing efficiency lower, and the accuracy lower. Specifically, taking a banking system as an example, the banking system nodes are numerous and interdependent, at least including a receipt system, a card organization system, a bank card switching center, a card issuing system and the like, and the message analysis of a certain system node is abnormal, which leads to the failure of the whole transaction. Because the existing software testing method can only aim at a single system test, the system tests of a plurality of system nodes need to be manually participated, so that the testing efficiency and the accuracy of the system tests of a plurality of system nodes and interdependence are difficult to ensure.
In order to solve the above problems, an embodiment of the present application provides a method for automatically testing a bank card, including: after a bank card test request is acquired, the original communication message log of the card organization is converted into a request message used by a bank card switching center system in response to the bank card test request, the request message is then sent to a front-end server of the bank card switching center, the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message, an output message Wen Rizhi corresponding to the request message is acquired from the front-end server of the bank card switching center, and finally the output message log corresponding to the original communication message log of the card organization is subjected to difference comparison with the output message log corresponding to the request message, so that a result of difference comparison is output.
Therefore, the test software interacts with the bank card exchange center, and the bank card exchange center interacts with system nodes, such as a card issuing system, and the automatic test of the system with complex transaction links, numerous system nodes and interdependence can be realized by comparing output messages Wen Rizhi generated by interaction among multiple nodes, so that the test efficiency is improved, and the test result is more accurate.
It should be noted that the automated testing method and apparatus for a bank card provided in the present application may be used in an artificial intelligence field, a blockchain field, a distributed field, a cloud computing field, a big data field, an internet of things field, a mobile internet field, a network security field, a chip field, a virtual reality field, an augmented reality field, a holographic technical field, a quantum computing field, a quantum communication field, a quantum measurement field, a digital twin field, or a financial field. The foregoing is merely an example, and is not limited to the application field of the method and the apparatus for automated testing of a bank card provided in the present application.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 1 is a flowchart of a method for automatically testing a bank card according to an embodiment of the present application. Referring to fig. 1, a method for automatically testing a bank card according to an embodiment of the present application may include:
s101: and acquiring a bank card test request.
In practical application, taking banking business as an example, the transaction link in the banking business is complex, the system nodes are numerous and interdependent, at least comprising a receipt system, a card organization system, a bank card switching center, a card issuing system and the like, when the bank card test requirement exists, the bank card switching center can send a bank card test request to test software, and the test software receives the bank card test request sent by the bank card switching center, so that the bank card test request is obtained. The card issuing system can also send a bank card test request to the test software, so that the test software can receive the bank card test request sent by the card issuing system, and the bank card test request is obtained. In the embodiment provided in the application, the bank card test request is obtained from the bank card exchange center.
S102: and responding to the bank card test request, and converting the original communication message log of the card organization into a request message used by a bank card switching center system.
The test software responds to the received bank card test request, and converts the original communication message log of the card organization into a request message used by the bank card switching center system, wherein the message is a data unit exchanged and transmitted in the network. In the present application, the card organization original communication message log is used to record the date and time stamp information of the card issuing system about daily events or misoperation alarms.
In combination with the banking business, when a bank card test request sent by the bank card switching center is received, the test software responds to the bank card test request to convert the card organization original communication message log including the related daily events of the card issuing system into a data unit which can be used by the bank card switching center system, namely the request message mentioned in the application.
In addition, since the original communication message logs of different card organizations may correspond to different conversion modes, the present application may describe possible conversion modes.
In one case, the original communication message log is converted for the card organization composed of hexadecimal messages. Accordingly, S102 may specifically include:
reading a card organization original communication message log;
And converting hexadecimal messages in the card organization original communication message log into character messages, filling the converted character length in the head of the character messages, and generating request messages used by a bank card switching center system.
In practical application, the test software receives the card organization original communication message log sent to the bank card exchange center by the card sending system from the bank card exchange center. And then, the test software reads the received card organization original communication message log, converts hexadecimal messages in the card organization original communication message log into character messages, and fills the converted character length in the header of the converted character messages. In general, the message used by the bank card switching center system is a character message, and the hexadecimal message in the card organization original communication message log cannot be used by the bank card switching center system, so that conversion is needed to convert the hexadecimal message in the card organization original communication message log into the character message.
In one case, the card organization original communication message log composed of hexadecimal messages is converted aiming at different data transaction card numbers of different test environments. Correspondingly, the hexadecimal message in the original communication message log of the card organization is converted into a character message, the converted character length is filled in the head of the character message, and a request message used by a bank card switching center system is generated, which specifically comprises the following steps:
Converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
when the data transaction card numbers of different test environments are different, the offset in the character message is replaced according to the transaction card numbers, and a request message used by the bank card switching center system is generated.
In practical application, the test software may face different test environments and different types of transaction card numbers, for which the application specifically may convert hexadecimal messages in the card organization original communication message log into character messages, and fill the converted character lengths in the character message header. When the data transaction card numbers of different test environments are different, the offset in the character message is replaced according to the transaction card numbers, and a request message used by the bank card switching center system is generated.
In another case, the original communication message log is organized according to the cards formed by hexadecimal messages to be converted, and a transaction scene is added in the converted character message. Correspondingly, the hexadecimal message in the original communication message log of the card organization is converted into a character message, the converted character length is filled in the head of the character message, and a request message used by a bank card switching center system is generated, which specifically comprises the following steps:
Reading the parsed 8583 specification character report Wen Rizhi;
associating the card organization original communication message log with the parsed 8583 standard character message log through transaction date;
converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
extracting a specific transaction scene from the parsed 8583 specification character message log associated with the card organization original communication message log;
and adding the transaction scene into the character message to generate a request message used by a bank card switching center system.
In practical application, a specific transaction scenario is often required to be added in a request message sent to a bank card switching center, at this time, a parsed 8583 standard character message Wen Rizhi is required, and a log of the parsed 8583 standard character message contains the specific transaction scenario and can be extracted by test software. Specifically, the test software receives the parsed 8583 specification character message log from the bank card switching center, which is sent to the bank card switching center by the card issuing system. And then, the test software reads the received 8583 standard character message log after analysis, correlates the 8583 standard character message log after analysis with the acquired card organization original communication message log, and ensures that the card organization original communication message log corresponds to the 8583 standard character message log after analysis. And then converting hexadecimal messages in the original communication message log of the card organization into character messages, and filling the converted character lengths in the header of the converted character messages. In general, the message used by the bank card switching center system is a character message, and the hexadecimal message in the card organization original communication message log cannot be used by the bank card switching center system, so that conversion is needed to convert the hexadecimal message in the card organization original communication message log into the character message. Because the received parsed 8583 standard character message log is the character message containing the specific transaction scene, the conversion is not needed, the specific transaction scene is directly extracted from the parsed 8583 standard character message log and added into the character message converted from the card organization original communication message log, and the request message containing the specific transaction scene used by the bank card exchange center system can be obtained.
In addition, since different test software may have different storage modes, the embodiment of the application may further organize the original communication message log and the parsed 8583 standard character message log according to the corresponding test software read card in different storage modes.
In one case, the test software may read the card organization original communication message log and the parsed 8583 specification character message log from the message repository. Correspondingly, the reading card organizes the original communication message log and the parsed 8583 standard character message Wen Rizhi, which specifically may include:
receiving a card organization original communication message log and an parsed 8583 standard character message Wen Rizhi sent by a front-end server of a bank card exchange center;
storing the card organization original communication message log and the parsed 8583 standard character message log in a message warehouse;
and reading the card organization original communication message log and the parsed 8583 standard character message log from the message warehouse.
In practical application, the test software often has a storage function, and through accumulation of daily months, the system quality is ensured more comprehensively. Specifically, a message warehouse may be added in the test software, and after the test software receives the parsed 8583 standard character message log sent to the bank card switching center by the card sending system from the bank card switching center, the card organization original communication message log and the parsed 8583 standard character message log are stored in the message warehouse. Reading a card organization original communication message log and an analyzed 8583 standard character message log from a message warehouse, converting hexadecimal messages in the card organization original communication message log into character messages, extracting specific transaction scenes from the analyzed 8583 standard character message log, and adding the specific transaction scenes into the character messages converted from the card organization original communication message log to obtain request messages containing the specific transaction scenes, wherein the request messages are used by a bank card switching center system.
S103: and sending the request message to a front-end server of a bank card switching center so that the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message log corresponding to the request message.
In practical application, in order to obtain an output message log corresponding to a request message, a front-end server of a bank card switching center needs to be used for converting an original communication message log of a card organization into a request message used by the bank card switching center system and sending the request message to a card issuing system. And the card issuing system returns a corresponding output message log after receiving the request message. Specifically, after the request message used by the generated bank card switching center is sent to the front-end server of the bank card switching center, the front-end server of the bank card switching center interacts with the card issuing system and sends the request message to the card issuing system. The card issuing system generates a corresponding output message log after receiving the request message sent by the front-end server of the bank card switching center, and sends an output message Wen Rizhi corresponding to the request message to the front-end server of the bank card switching center.
In addition, because the interaction modes of different test software and the system can be different, the interaction process of the test software and the system can be further described according to the different interaction modes of the test software and the system.
In one case, the test software may perform a bidirectional response of the complete transaction link with the system by establishing a frame, and S103 may specifically include:
an automatic detection framework is automatically adjusted up, so that bidirectional response of a transaction link with a front-end server of a bank card exchange center is realized;
and sending the request message to a front-end server of a bank card exchange center so that the front-end server of the bank card exchange center sends the request message to a card issuing system and receives an output message log corresponding to the request message generated by the card issuing system.
In practical application, in combination with the banking card service, the request message used by the banking card switching center system can be sent to other card issuing systems through the transaction link, and the corresponding output message log is returned. Specifically, after the original communication message log of the card organization is converted into a request message used by a bank card switching center system, the test software automatically calls an automatic detection framework to realize bidirectional response of a transaction link with a front-end server of the bank card switching center. And transmitting a request message used by the bank card exchange center system to a front-end server of the bank card exchange center through a transaction link, wherein the front-end server of the bank card exchange center interacts with the card issuing system and transmits the request message to the card issuing system. The card issuing system generates a corresponding output message log after receiving the request message sent by the front-end server of the bank card switching center, and sends an output message Wen Rizhi corresponding to the request message to the front-end server of the bank card switching center.
S104: acquiring an output message Wen Rizhi corresponding to the request message from the front-end server of the bank card switching center;
in practical application, after the card issuing system sends the output message Wen Rizhi corresponding to the request message to the front-end server of the bank card switching center which interacts with the output message, the front-end server of the bank card switching center sends the output message log corresponding to the received request message to the test software for the test software to receive.
S105: and performing difference comparison on the output message log corresponding to the original communication message log of the card organization and the output message log corresponding to the request message, and outputting a difference comparison result.
In practical application, the automatic test of the complex link should pay more attention to whether the functions of the plurality of nodes after interaction are normal, so that the difference comparison of the output message logs generated after the plurality of nodes interact is needed. Specifically, after the output message log corresponding to the request message generated by interaction between the front-end server of the bank card exchange and the card issuing system is received by the test software, the test software performs difference comparison on the output message log corresponding to the original communication message log of the card organization and the output message log corresponding to the request message, generates a difference comparison result and outputs the result.
In addition, since the output message log includes a plurality of elements, for example, transaction date, system tracking number, etc., the embodiment of the present application may also perform matching according to different elements to illustrate the difference of the message fields.
In one case, the key elements may be matched by transaction date, system tracking number, and response code. Accordingly, S105 may specifically include:
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the card organization original communication message log;
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the request message;
after the transaction date, the system tracking number and the response code are used as key elements for matching, comparing the difference between the message fields of the output message log corresponding to the original communication message and the output message log corresponding to the request message to generate a difference text;
and outputting the difference text.
In practical application, the output message log corresponding to the original communication message log of the card organization contains a plurality of key elements which can be used as comparison, and the transaction date, the system tracking number and the response code in the output message log can be extracted. Correspondingly, after the test software receives the output message log corresponding to the request message sent by the front-end server of the bank card switching center, the test software extracts the transaction date, the system tracking number and the response code from various elements of the output message log corresponding to the request message as matched key elements. After the test software is matched by taking the transaction date, the system tracking number and the response code as key elements, comparing the difference between the message fields of the output message log corresponding to the original communication message and the output message log corresponding to the request message, generating a difference text, and outputting the generated difference text.
In addition, the front-end server of the bank card switching center can have multiple purposes, such as interaction with a card organization system, interaction with a receipt system, interaction with a card issuing system, and the like. Therefore, the embodiment of the application can be used for explaining the function of the bank card exchange center in the test software.
In one case, the output message log corresponding to the request message can be obtained through interaction with the card issuing system. Accordingly, the front-end server of the bank card switching center may be specifically used in the present application:
establishing a bidirectional response of a transaction link with the card issuing system;
receiving the card organization original communication message log, the parsed 8583 standard character message log and the output message Wen Rizhi corresponding to the card organization original communication message log sent by the card issuing system;
the request message obtained by converting the original communication message log of the card organization is sent to the card issuing system;
and receiving an output message log corresponding to the request message sent by the card sending system.
In practical application, the front-end server of the bank card switching center can establish a bidirectional response of a transaction link with the card issuing system so as to receive a card organization original communication message log sent by the card issuing system, an parsed 8583 standard character message log, an output message log corresponding to the card organization original communication message log and an output message log corresponding to a request message sent by the card issuing system to test software, and can also send the request message obtained by converting the card organization original communication message log to the card issuing system.
In summary, after determining that the application obtains the bank card test request, responding to the bank card test request, converting the card organization original communication message log into a request message used by the bank card switching center system, then sending the request message to the bank card switching center front-end server, enabling the bank card switching center front-end server to interact with the card issuing system to obtain an output message Wen Rizhi corresponding to the request message, obtaining an output message Wen Rizhi corresponding to the request message from the bank card switching center front-end server, and finally comparing the difference between the output message log corresponding to the card organization original communication message log and the output message log corresponding to the request message. Therefore, the test software interacts with the bank card exchange center, and the bank card exchange center interacts with system nodes, such as a card issuing system, and the automatic test of the system with complex transaction links, numerous system nodes and interdependence can be realized by comparing output messages Wen Rizhi generated by interaction among multiple nodes, so that the test efficiency is improved, and the test result is more accurate.
Based on the method for testing the bank card provided by the embodiment, the application also provides a device for testing the bank card. The bank card testing device is described below with reference to the embodiments and drawings, respectively.
Fig. 2 is a schematic structural diagram of a bank card testing device according to an embodiment of the present application. As described in connection with fig. 2, the bank card testing apparatus 200 provided in the embodiment of the present application may include:
a data format conversion module 201, configured to obtain a bank card test request; responding to the bank card test request, converting the original communication message log of the card organization into a request message used by a bank card switching center system;
the data sending module 202 sends the request message to a front-end server of a bank card switching center, so that the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message;
a data comparison module 203, configured to obtain an output packet Wen Rizhi corresponding to the request packet from the front-end server of the bank card switching center; and performing difference comparison on the output message log corresponding to the original communication message log of the card organization and the output message log corresponding to the request message, and outputting a difference comparison result.
As an embodiment, when converting the original communication message log of the card organization composed of hexadecimal messages, the data format conversion module 201 specifically includes:
The reading subunit is used for reading the original communication message log of the card organization;
the conversion subunit is used for converting the hexadecimal message in the card organization original communication message log into a character message, filling the converted character length in the character message header, and generating a request message used by the bank card exchange center system.
As an implementation manner, the conversion subunit is specifically configured to convert a card organization original communication message log composed of hexadecimal messages according to different data transaction card numbers of different test environments:
converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
when the data transaction card numbers of different test environments are different, the offset in the character message is replaced according to the transaction card numbers, and a request message used by the bank card switching center system is generated.
As another implementation manner, the conversion subunit is specifically configured to convert the original communication message log of the card organization composed of hexadecimal messages, and when a transaction scene is added in the converted character message:
Reading the parsed 8583 specification character report Wen Rizhi;
associating the card organization original communication message log with the parsed 8583 standard character message log through transaction date;
converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
extracting a specific transaction scene from the parsed 8583 specification character message log associated with the card organization original communication message log;
and adding the transaction scene into the character message to generate a request message used by a bank card switching center system.
As an embodiment, there may be different storage modes for different test software, and the reading subunit is specifically configured to:
receiving a card organization original communication message log and an parsed 8583 standard character message Wen Rizhi sent by a front-end server of a bank card exchange center;
storing the card organization original communication message log and the parsed 8583 standard character message log in a message warehouse;
and reading the card organization original communication message log and the parsed 8583 standard character message log from the message warehouse.
As an embodiment, the interaction mode between the different test software and the system may be different, and the data sending module 202 is specifically configured to:
an automatic detection framework is automatically adjusted up, so that bidirectional response of a transaction link with a front-end server of a bank card exchange center is realized;
and sending the request message to a front-end server of a bank card exchange center so that the front-end server of the bank card exchange center sends the request message to a card issuing system and receives an output message log corresponding to the request message generated by the card issuing system.
As an embodiment, the data comparison module 203 is specifically configured to match a plurality of elements included in the output message log:
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the card organization original communication message log;
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the request message;
after the transaction date, the system tracking number and the response code are used as key elements for matching, comparing the difference between the message fields of the output message log corresponding to the original communication message and the output message log corresponding to the request message to generate a difference text;
And outputting the difference text.
As an embodiment, for different roles that the bank card switching center server in the bank card system plays in the test software, the bank card switching center front-end server may be used to:
establishing a bidirectional response of a transaction link with the card issuing system;
receiving the card organization original communication message log, the parsed 8583 standard character message log and the output message Wen Rizhi corresponding to the card organization original communication message log sent by the card issuing system;
the request message obtained by converting the original communication message log of the card organization is sent to the card issuing system;
and receiving an output message log corresponding to the request message sent by the card sending system.
In summary, after determining that the application obtains the bank card test request, responding to the bank card test request, converting the card organization original communication message log into a request message used by the bank card switching center system, then sending the request message to the bank card switching center front-end server, enabling the bank card switching center front-end server to interact with the card issuing system to obtain an output message Wen Rizhi corresponding to the request message, obtaining an output message Wen Rizhi corresponding to the request message from the bank card switching center front-end server, and finally comparing the difference between the output message log corresponding to the card organization original communication message log and the output message log corresponding to the request message. Therefore, the test software interacts with the bank card exchange center, and the bank card exchange center interacts with system nodes, such as a card issuing system, and the automatic test of the system with complex transaction links, numerous system nodes and interdependence can be realized by comparing output messages Wen Rizhi generated by interaction among multiple nodes, so that the test efficiency is improved, and the test result is more accurate.
In addition, the application also provides automatic test equipment for the bank card, which comprises the following components: a memory for storing a computer program; and the processor is used for realizing the steps of the automatic test method for the bank card when executing the computer program.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (5)

1. A method for automated testing of a bank card, the method comprising:
acquiring a bank card test request;
responding to the bank card test request, converting the card organization original communication message log into a request message used by a bank card switching center system;
the request message is sent to a front-end server of a bank card exchange center, so that the front-end server of the bank card exchange center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message;
Acquiring an output message Wen Rizhi corresponding to the request message from the front-end server of the bank card switching center;
performing difference comparison on an output message log corresponding to the original communication message log of the card organization and an output message log corresponding to the request message, and outputting a difference comparison result;
the response to the bank card test request converts the card organization original communication message log into a request message used by a bank card switching center system, and the response comprises the following steps:
reading a card organization original communication message log;
converting hexadecimal messages in the original communication message log of the card organization into character messages, filling the converted character length in the head of the character messages, and generating request messages used by a bank card switching center system;
the method for converting hexadecimal messages in the card organization original communication message log into character messages, filling the converted character length in the character message header, and generating request messages used by a bank card switching center system comprises the following steps:
reading the parsed 8583 specification character report Wen Rizhi;
associating the card organization original communication message log with the parsed 8583 standard character message log through transaction date;
Converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
extracting a specific transaction scene from the parsed 8583 specification character message log associated with the card organization original communication message log;
adding the transaction scene into the character message to generate a request message used by a bank card switching center system;
the reading card organizes an original communication message log and an parsed 8583 standard character message log, and the reading card comprises:
receiving a card organization original communication message log and an parsed 8583 standard character message Wen Rizhi sent by a front-end server of a bank card exchange center;
storing the card organization original communication message log and the parsed 8583 standard character message log in a message warehouse;
reading card organization original communication message logs and parsed 8583 standard character messages Wen Rizhi from the message warehouse;
the step of sending the request message to a front-end server of a bank card switching center so that the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message log corresponding to the request message, comprising the following steps:
An automatic detection framework is automatically adjusted up, so that bidirectional response of a transaction link with a front-end server of a bank card exchange center is realized;
the request message is sent to a front-end server of a bank card exchange center, so that the front-end server of the bank card exchange center sends the request message to a card issuing system and receives an output message Wen Rizhi corresponding to the request message generated by the card issuing system;
the step of comparing the difference between the output message log corresponding to the original communication message log of the card organization and the output message log corresponding to the request message, and outputting a difference comparison result comprises the following steps:
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the card organization original communication message log;
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the request message;
after the transaction date, the system tracking number and the response code are used as key elements for matching, comparing the difference between the message fields of the output message log corresponding to the original communication message and the output message log corresponding to the request message to generate a difference text;
and outputting the difference text.
2. The method according to claim 1, wherein the steps of converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character lengths in the character message header, and generating request messages used by a bank card switching center system include:
Converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
when the data transaction card numbers of different test environments are different, the offset in the character message is replaced according to the transaction card numbers, and a request message used by the bank card switching center system is generated.
3. The method according to claim 1, wherein the bank card switching center front-end server is specifically configured to:
establishing a bidirectional response of a transaction link with the card issuing system;
receiving the card organization original communication message log, the parsed 8583 standard character message log and the output message Wen Rizhi corresponding to the card organization original communication message log sent by the card issuing system;
the request message obtained by converting the original communication message log of the card organization is sent to the card issuing system;
and receiving an output message log corresponding to the request message sent by the card sending system.
4. An automated testing device for a bank card, comprising:
the data format conversion module is used for acquiring a bank card test request; responding to the bank card test request, converting the original communication message log of the card organization into a request message used by a bank card switching center system;
The data sending module sends the request message to a front-end server of a bank card switching center so that the front-end server of the bank card switching center interacts with a card issuing system to obtain an output message Wen Rizhi corresponding to the request message;
the data comparison module is used for acquiring an output message Wen Rizhi corresponding to the request message from the front-end server of the bank card switching center; performing difference comparison on an output message log corresponding to the original communication message log of the card organization and an output message log corresponding to the request message, and outputting a difference comparison result;
the data format conversion module specifically comprises:
the reading subunit is used for reading the original communication message log of the card organization;
the conversion subunit is used for converting hexadecimal messages in the card organization original communication message log into character messages, filling the converted character length in the character message header and generating a request message used by a bank card exchange center system;
the conversion subunit is specifically configured to:
reading the parsed 8583 specification character report Wen Rizhi;
associating the card organization original communication message log with the parsed 8583 standard character message log through transaction date;
Converting hexadecimal messages in the card organization original communication message log into character messages, and filling the converted character length in the head of the character messages;
extracting a specific transaction scene from the parsed 8583 specification character message log associated with the card organization original communication message log;
adding the transaction scene into the character message to generate a request message used by a bank card switching center system;
the reading subunit is specifically configured to:
receiving a card organization original communication message log and an parsed 8583 standard character message Wen Rizhi sent by a front-end server of a bank card exchange center;
storing the card organization original communication message log and the parsed 8583 standard character message log in a message warehouse;
reading card organization original communication message logs and parsed 8583 standard character messages Wen Rizhi from the message warehouse;
the data sending module is specifically used for:
an automatic detection framework is automatically adjusted up, so that bidirectional response of a transaction link with a front-end server of a bank card exchange center is realized;
the request message is sent to a front-end server of a bank card exchange center, so that the front-end server of the bank card exchange center sends the request message to a card issuing system and receives an output message Wen Rizhi corresponding to the request message generated by the card issuing system;
The data comparison module is specifically used for:
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the card organization original communication message log;
acquiring a transaction date, a system tracking number and a response code in an output message log corresponding to the request message;
after the transaction date, the system tracking number and the response code are used as key elements for matching, comparing the difference between the message fields of the output message log corresponding to the original communication message and the output message log corresponding to the request message to generate a difference text;
and outputting the difference text.
5. An automated banking card testing device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the automated banking card testing method as claimed in any one of claims 1 to 3 when said computer program is executed.
CN202210680112.0A 2022-06-16 2022-06-16 Automatic test method, device and equipment for bank card Active CN115086191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210680112.0A CN115086191B (en) 2022-06-16 2022-06-16 Automatic test method, device and equipment for bank card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210680112.0A CN115086191B (en) 2022-06-16 2022-06-16 Automatic test method, device and equipment for bank card

Publications (2)

Publication Number Publication Date
CN115086191A CN115086191A (en) 2022-09-20
CN115086191B true CN115086191B (en) 2024-03-26

Family

ID=83254536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210680112.0A Active CN115086191B (en) 2022-06-16 2022-06-16 Automatic test method, device and equipment for bank card

Country Status (1)

Country Link
CN (1) CN115086191B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006024223A1 (en) * 2004-08-31 2006-03-09 China Unionpay A new type bankcard transaction exchange system
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN110837470A (en) * 2019-11-06 2020-02-25 中国银行股份有限公司 Method and device for testing bank card network transaction
CN112084109A (en) * 2020-09-01 2020-12-15 中国银联股份有限公司 System test method, apparatus, device and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006024223A1 (en) * 2004-08-31 2006-03-09 China Unionpay A new type bankcard transaction exchange system
CN101089903A (en) * 2006-06-14 2007-12-19 中国银联股份有限公司 Bank card transaction test method and system
CN110837470A (en) * 2019-11-06 2020-02-25 中国银行股份有限公司 Method and device for testing bank card network transaction
CN112084109A (en) * 2020-09-01 2020-12-15 中国银联股份有限公司 System test method, apparatus, device and medium

Also Published As

Publication number Publication date
CN115086191A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN110765102B (en) Service data processing method and device, computer equipment and storage medium
CN114500690B (en) Interface data processing method and device, electronic equipment and storage medium
CN109670081B (en) Method and device for processing service request
CN112367680B (en) External communication test method and device based on intelligent ammeter and computer equipment
CN107135188B (en) Method, device and system for realizing services of financial information exchange (FIX) protocol
CN101001183A (en) Test method and system for network application software
CN112039701A (en) Interface call monitoring method, device, equipment and storage medium
CN110969417B (en) Government affair item synchronization method, device, system, computer equipment and storage medium
CN101964710B (en) Digital signature and signature authenticating method
CN111061696A (en) Method and device for analyzing transaction message log
CN111324480B (en) Large-scale host transaction fault positioning system and method
CN111258832B (en) Interface parameter verification method, device, equipment and medium
CN107040613A (en) A kind of message transmitting method and system
CN115086191B (en) Automatic test method, device and equipment for bank card
CN117499287A (en) Web testing method, device, storage medium and proxy server
CN111352821A (en) Service testing method, device, electronic equipment and computer readable storage medium
CN111427796A (en) System testing method and device and electronic equipment
CN116483899A (en) Calling method and device for converged service interface, electronic equipment and storage medium
CN113360363B (en) Method, device, equipment and computer storage medium for testing micro service system
CN110928955B (en) Data interaction method and device, computer equipment and storage medium
JP2022104888A (en) Test information provision method, virtual cooperation device, and system
CN115913912A (en) Message interception and service link diagram generation method and device
CN113141366B (en) Message submitting method and device, storage medium and electronic equipment
CN110069416B (en) Test data processing method and device and related equipment
CN113691584B (en) Data transmission method, device and network bridge

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