CN107864073B - Method and device for batch sending of SWIFT messages - Google Patents
Method and device for batch sending of SWIFT messages Download PDFInfo
- Publication number
- CN107864073B CN107864073B CN201711325518.2A CN201711325518A CN107864073B CN 107864073 B CN107864073 B CN 107864073B CN 201711325518 A CN201711325518 A CN 201711325518A CN 107864073 B CN107864073 B CN 107864073B
- Authority
- CN
- China
- Prior art keywords
- message
- message data
- sending
- data file
- macro script
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/3017—Runtime instruction translation, e.g. macros
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a batch SWIFT message sending method and device. The method comprises the steps of forming a script by system commands and operation instructions which are manually sent in sequence; and adding a circulation function into the script to enable the script to circularly read the message data in the message data file, forming a system instruction which can be continuously and completely executed after being analyzed, completing the action of continuously sending the message, effectively replacing the mode of manually sending the message in the test process, and being capable of well improving the test efficiency.
Description
Technical Field
The present application relates to the field of finance, and more particularly, to a method and an apparatus for batch sending SWIFT messages.
Background
In the function test of the bank system, when the SWIFT message is manually sent, a test group needs to connect with the MERVA system in the WINDOWS system by means of an IBMPCOMM simulator, uses the instruction provided by the system to create and send the message (comprising the MT103, the MT202, the MT110 and the like) to the WBIFN platform, and then transfers the message to the BOCS-O system through SWIFTI and GUPP. The manual message sending mode in the MERVA system operation command has low efficiency, and is difficult to realize the test of the system performance aspect of large-batch message sending processing among multiple banks in the same example.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for sending SWIFT messages in bulk, so as to implement sending of messages coming in bulk between multiple banks in the same instance.
In order to achieve the above object, the following solutions are proposed:
a batch SWIFT message sending method comprises the following steps:
obtaining a pre-written message macro script, wherein the message macro script comprises: a message sending operation instruction, a loop function and an address of message data;
determining a message data file where the message data are located based on the address where the message data are located so as to obtain a plurality of message data needing to be sent;
and executing the message macro script, and circularly reading and sending the plurality of message data to be sent according to the message sending operation instruction.
Preferably, the message macro script is written based on an IBMPCOMM simulator.
3. The method according to claim 1, wherein before determining the message data file where the message data is located based on the address where the message data is located to obtain the plurality of message data that need to be sent, the method further comprises:
and carrying out input compliance verification on a plurality of message data in the message data file according to the SWIFT message rule.
A SWIFT message batch sending device comprises:
the message macro script module is used for compiling a message macro script, and the message macro script comprises: a message sending operation instruction, a loop function and an address of message data;
the message data file is used for storing a plurality of message data to be sent;
and the MERVA sending module is used for executing the message macro script and circularly reading and sending the plurality of message data to be sent according to the message sending operation instruction.
Preferably, the message macro script module writes a message macro script based on the self-contained macro of the IBMPCOMM simulator.
Preferably, the message data file is further configured to perform input compliance verification on a plurality of message data in the message data file according to a SWIFT message rule.
According to the technical scheme, the application discloses a batch SWIFT message sending method and device. The method comprises the steps of forming a script by system commands and operation instructions which are manually sent in sequence; and adding a circulation function into the script to enable the script to circularly read the message data in the message data file, forming a system instruction which can be continuously and completely executed after being analyzed, completing the action of continuously sending the message, effectively replacing the mode of manually sending the message in the test process, and being capable of well improving the test efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a batch SWIFT message sending method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a SWIFT message bulk sending apparatus according to another embodiment of the present application.
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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart showing a SWIFT message batch sending method according to an embodiment of the present invention.
As can be seen from fig. 1, the method includes:
s101: obtaining a pre-written message macro script, wherein the message macro script comprises: and sending the operation instruction, the loop function and the address of the message data by the message.
The message macro script is written by using VBSCRIPT language and referring to the self macro of the IBMPCOMM simulator. The message macro script defines the flow steps required by the sending, encapsulates the operation instructions required by the sending, and simultaneously specifies the read message data file and defines the data in each field of content reading data file.
Meanwhile, a circulation function is added in the message macro script, so that the message macro script circularly reads message data in the message data file.
S102: and determining a message data file where the message data is located based on the address where the message data is located so as to acquire a plurality of message data needing to be sent.
The message data file is an EXCEL file, the file comprises a plurality of message data, and each message data comprises a plurality of fields. In this embodiment, the message data file is further configured to perform input compliance verification on the plurality of message data in the message data file according to the SWIFT message rule, and determine whether the plurality of message data in the message data file conform to the writing specification of the SWIFT message.
S103: and executing the message macro script, and circularly reading and sending the plurality of message data to be sent according to the message sending operation instruction.
The message sending module is responsible for executing the script, and when the script is executed, the message sending module sequentially and circularly reads a plurality of message data in the message data file, so that the required message can be created and sent.
As can be seen from the foregoing embodiments, the present application discloses a batch SWIFT message sending method. The method comprises the steps of forming a script by system commands and operation instructions which are manually sent in sequence; and adding a circulation function into the script to enable the script to circularly read the message data in the message data file, forming a system instruction which can be continuously and completely executed after being analyzed, completing the action of continuously sending the message, effectively replacing the mode of manually sending the message in the test process, and being capable of well improving the test efficiency.
Fig. 2 is a schematic structural diagram of a SWIFT message bulk sending apparatus according to another embodiment of the present invention.
As can be seen from fig. 2, the apparatus includes: the message macro script module 1, the message data file 2 and the MERVA report sending module 3.
The message macro script module is used for compiling a message macro script, and the message macro script comprises: and sending the operation instruction, the loop function and the address of the message data by the message.
The module adopts VBSCRIPT language and refers to the IBMPCOMM simulator with macros to compile the message macro script. The message macro script defines the flow steps required by the sending, encapsulates the operation instructions required by the sending, and simultaneously specifies the read message data file and defines the data in each field of content reading data file.
Meanwhile, a circulation function is added in the message macro script, so that the message macro script circularly reads message data in the message data file.
And the message data file is used for storing a plurality of message data to be sent. The message data file defines the data source of each message required when the macro script is executed, and can also realize the input compliance verification process of the message data content according to the SWIFT message rule.
And the MERVA sending module is used for executing the message macro script and circularly reading and sending the plurality of message data to be sent according to the message sending operation instruction.
It should be noted that the system embodiment corresponds to the method embodiment, and the execution process and the execution principle are the same, which are not described herein again.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. 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 invention. Thus, the present invention 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 (2)
1. A SWIFT message batch sending method is characterized by comprising the following steps:
obtaining a message macro script which is pre-compiled based on an IBM PCOMM simulator, wherein the message macro script comprises: the message macro script is used for defining the flow steps required by the message sending, packaging the operation instructions required by the message sending steps, appointing the read message data file at the same time, defining the data in each field content read data file, and enabling the message macro script to circularly read the message data in the message data file;
determining a message data file where the message data are located based on the address where the message data are located to acquire a plurality of message data to be sent, wherein the message data file is further used for performing input compliance check on the plurality of message data in the message data file according to an SWIFT message rule to determine whether the plurality of message data in the message data file meet the writing specification of the SWIFT message;
the message data file is an EXCEL file, the file comprises a plurality of message data, and each message data comprises a plurality of fields;
and executing the message macro script, and circularly reading and sending the plurality of message data to be sent according to the message sending operation instruction.
2. A SWIFT message batch sending device is characterized by comprising:
a message macro script module, configured to compile a message macro script based on an IBM PCOMM simulator, where the message macro script includes: the message macro script is used for defining the flow steps required by the message sending, packaging the operation instructions required by the message sending steps, appointing the read message data file at the same time, defining the data in each field content read data file, and enabling the message macro script to circularly read the message data in the message data file;
the message data file is used for storing a plurality of message data to be sent, and is also used for performing input compliance verification on the plurality of message data in the message data file according to SWIFT message rules, determining whether the plurality of message data in the message data file conform to the SWIFT message writing specification, wherein the message data file is an EXCEL file and comprises a plurality of message data, and each message data comprises a plurality of fields;
and the MERVA sending module is used for executing the message macro script and circularly reading and sending the plurality of message data to be sent according to the message sending operation instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711325518.2A CN107864073B (en) | 2017-12-13 | 2017-12-13 | Method and device for batch sending of SWIFT messages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711325518.2A CN107864073B (en) | 2017-12-13 | 2017-12-13 | Method and device for batch sending of SWIFT messages |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107864073A CN107864073A (en) | 2018-03-30 |
CN107864073B true CN107864073B (en) | 2021-03-09 |
Family
ID=61706374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711325518.2A Active CN107864073B (en) | 2017-12-13 | 2017-12-13 | Method and device for batch sending of SWIFT messages |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107864073B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804140B (en) * | 2018-06-15 | 2021-08-13 | 中国建设银行股份有限公司 | Batch instruction analysis method, device and equipment |
CN111127209A (en) * | 2019-12-31 | 2020-05-08 | 中国银行股份有限公司 | Transaction processing method and device based on SWIFT message |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100394383C (en) * | 2003-12-31 | 2008-06-11 | 无极公司 | Method, system, and computer program product for automatically managing components within a controlled environment |
CN103532854B (en) * | 2013-10-22 | 2017-05-10 | 迈普通信技术股份有限公司 | Storage and forwarding method and device of message |
-
2017
- 2017-12-13 CN CN201711325518.2A patent/CN107864073B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107864073A (en) | 2018-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9043759B1 (en) | System and method for generating software unit tests simultaneously with API documentation | |
US8209341B2 (en) | Configurable transformation macro | |
US8943487B2 (en) | Optimizing libraries for validating C++ programs using symbolic execution | |
JP6913746B2 (en) | Kernel module loading method and equipment | |
CN101976187B (en) | Stack tracing method and device in decompilation process and decompiler | |
CN108920496B (en) | Rendering method and device | |
CN102929682B (en) | The preprocess method of automatic expansion TCL language and device | |
US8868976B2 (en) | System-level testcase generation | |
CN106933887B (en) | Data visualization method and device | |
CN108197027B (en) | Software performance optimization method, storable medium, computer program | |
US9892027B2 (en) | Event-driven software testing | |
US20120192162A1 (en) | Optimizing Handlers for Application-Specific Operations for Validating C++ Programs Using Symbolic Execution | |
US10387124B2 (en) | System and method for creating domain specific language | |
CN103631719A (en) | Web automated testing method and device | |
CN107864073B (en) | Method and device for batch sending of SWIFT messages | |
CN110109671B (en) | Webpack label size and style conversion method and device | |
CN106326112B (en) | A kind of method and apparatus that procedure operation is corrected automatically | |
CN105404574B (en) | Smart card and mobile terminal consistency test method and device | |
US8589734B2 (en) | Verifying correctness of processor transactions | |
CN105138337A (en) | Plugin adaptation method and plugin adaptation device | |
CN110058849A (en) | Generation method, device, computer equipment and the storage medium of flow chart | |
US8627273B2 (en) | Model checking of liveness property in a phase abstracted model | |
CN107818073B (en) | Method and system for automatically converting dynamic form page into HTML5 page | |
CN109426497B (en) | Data embedding method, device, system and storage medium | |
CN109542447B (en) | OTX program file execution method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |