[go: up one dir, main page]

CN114374615B - Data virtual interaction simulation method and device, storage medium and electronic device - Google Patents

Data virtual interaction simulation method and device, storage medium and electronic device Download PDF

Info

Publication number
CN114374615B
CN114374615B CN202111643641.5A CN202111643641A CN114374615B CN 114374615 B CN114374615 B CN 114374615B CN 202111643641 A CN202111643641 A CN 202111643641A CN 114374615 B CN114374615 B CN 114374615B
Authority
CN
China
Prior art keywords
response
interface
bank
message
preset
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
CN202111643641.5A
Other languages
Chinese (zh)
Other versions
CN114374615A (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.)
Zhongqi Scc Beijing Finance Information Service Co ltd
Original Assignee
Zhongqi Scc Beijing Finance Information Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongqi Scc Beijing Finance Information Service Co ltd filed Critical Zhongqi Scc Beijing Finance Information Service Co ltd
Priority to CN202111643641.5A priority Critical patent/CN114374615B/en
Publication of CN114374615A publication Critical patent/CN114374615A/en
Application granted granted Critical
Publication of CN114374615B publication Critical patent/CN114374615B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • 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
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • 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/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • 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/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a data virtual interaction simulation method and device, a storage medium and an electronic device. The method comprises the steps of configuring a bank response interface through a configuration interface in a front-end page, wherein a response type in the bank response interface is associated with an interface type according to a preset mode, and the interface type is associated with the service data; and receiving a returned preset response message according to the data simulation interaction request through the bank response interface, and obtaining the result of the data virtual interaction according to the preset message response message. The application solves the technical problem of lacking an effective processing method for data virtual interaction simulation. By providing the unified configuration page, all functions of the butt joint bank can be simulated, the time for deploying a network communicated with the bank, checking network problems and communicating message contents is not needed, the whole flow simulation is completed rapidly, and the service closed loop is realized.

Description

Data virtual interaction simulation method and device, storage medium and electronic device
Technical Field
The application relates to the field of banking financial services, in particular to a data virtual interaction simulation method and device, a storage medium and an electronic device.
Background
When the enterprises and banks perform virtual docking of service data, testing is needed, and the enterprises and banks can be delivered after the testing is successful.
In the related technology, in the development stage of enterprises and banks, because of lack of communication with the banks, a message format and an encryption signature mode cannot be completely and self-tested, and only whether the message structure of an initiator is correct or not can be tested. In addition, due to lack of bank cooperation in the test stage, the business cannot complete closed loop and the progress is slow. The testing stage often takes a lot of time to check the problem of communicating with the bank network, and the network is communicated with the time required in the production stage, so that the working efficiency is affected, and the cost of manpower and material resources communicated with the bank party is increased.
Aiming at the problem that the data virtual interaction simulation in the related technology lacks an effective processing method, no effective solution is proposed at present.
Disclosure of Invention
The application mainly aims to provide a data virtual interaction simulation method and device, a storage medium and an electronic device, so as to solve the problem that an effective processing method is lacking for data virtual interaction simulation.
In order to achieve the above object, according to one aspect of the present application, a data virtual interaction simulation method is provided for assisting an enterprise to make delivery of a test when virtually interfacing business data with a bank.
The data virtual interaction simulation method comprises the following steps: a bank response interface is configured through a configuration interface in a front-end page, wherein a response type in the bank response interface is associated with an interface type according to a preset mode, and the interface type is associated with the service data; receiving a returned preset response message through the bank response interface according to a data simulation interaction request, wherein the preset message is used for judging a test result when the enterprise virtually interfaces with the bank in service data, the preset message is generated based on a preset HTTP interface of background service, the preset HTTP interface comprises an HTTP protocol and interface path parameters, the HTTP protocol is used for responding to the data simulation interaction request in real time, and the interface path parameters are used for prescribing a selected bank and a callable interface corresponding to the selected bank; and responding to the message according to the preset message to obtain the result of the data virtual interaction.
Further, the configuring a bank response interface through a configuration interface in a front-end page, where a response type in the bank response interface is associated with an interface type according to a preset manner, and the interface type is associated with the service data, includes: the bank response interface is configured into automatic response or manual response through a configuration interface in a front-end page, wherein the automatic response or manual response is selectively configured according to preset service requirements and is used for obtaining message data of a service closed loop in a development stage and a test stage, the automatic response is used for directly returning to a message in a standard format, and the manual response is used for defining returned message content according to the test requirements.
Further, configuring the bank response interface as an automatic response includes: based on response messages of a plurality of preset interfaces of the bank, acquiring a standard response message format when the bank is docked with an enterprise, wherein the standard response message format comprises a standard message format with successful interface response and failed response; when the configuration interface is an automatic response, the response type and the interface type in the bank response interface are associated according to a preset mode, the corresponding response result is set to be failed or successful, and the background service is used for inquiring the configuration information after judging according to the interface type of the calling party and returning built-in message information through the Spring framework according to the configuration information.
Further, configuring the bank response interface as a manual response includes: performing manual response configuration by configuring customized message information, wherein the message information supports EL expression scalar replacement; associating the manual response configuration with the interface type and storing the manual response configuration in a database; after the analysis of the self-defined message of the manual response configuration and the scalar replacement of the EL expression are finished, returning complete message information, wherein the message information queries related configuration stored in a database according to the interface type in background service and analyzes the configured self-defined message; and sorting the parsed message data and the data sent during interface calling into a preset Map set based on background service for scalar replacement of the EL expression.
Further, the configuring the bank response interface through the configuration interface in the front-end page includes: the bank response interface is configured to access the bank which obtains the virtual interaction service to be used through the visual configuration interface in the front-end page; the step of obtaining the result of the data virtual interaction according to the preset message response message comprises the following steps: and providing a sending notification page according to the preset message response message, wherein the sending notification page is used for sending the notification of the bank to the RocketMq or to a preset interface address.
To achieve the above object, according to another aspect of the present application, there is provided an interactive virtual platform for test delivery when interfacing with a bank.
The interactive virtual platform for test delivery when interfacing with a bank according to the present application comprises: the front-end page configuration module is used for configuring a bank response interface through a configuration interface in the front-end page, wherein the response type in the bank response interface is associated with the interface type according to a preset mode, and the interface type is associated with the service data; the response module is used for receiving a returned preset response message through the bank response interface according to the data simulation interaction request, wherein the preset message is used for judging a test result when the enterprise virtually interfaces with the bank in service data, the preset message is generated based on a preset HTTP interface of background service, the preset HTTP interface comprises an HTTP protocol and interface path parameters, the HTTP protocol is used for responding to the data simulation interaction request in real time, and the interface path parameters are used for prescribing a selected bank and a callable interface corresponding to the selected bank; and the interaction result module is used for responding to the message according to the preset message to obtain the result of the data virtual interaction.
Further, the method comprises the steps of: the encryption module is used for providing a preset encryption and signing algorithm and an expansion interface; and the analysis module is used for analyzing the message data by using fastJson, and assembling and replacing the message content according to the specific variable character string.
Further, the method comprises the steps of: the configuration module is used for calling the Nacos registry to perform unified configuration; the data recording module is used for automatically responding to the flow by the bank response interface, notifying the data circulation process in the sending flow, recording in real time through MySQL, and outputting the log of the abnormal condition of the bank response interface to carry out MySQL persistence.
In order to achieve the above object, according to yet another aspect of the present application, there is provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to execute the method when run.
To achieve the above object, according to a further aspect of the present application, there is provided an electronic device comprising a memory, in which a computer program is stored, and a processor arranged to run the computer program to perform the method.
According to the data virtual interaction simulation method, the device, the storage medium and the electronic device, a mode of configuring a bank response interface through a configuration interface in a front-end page is adopted, a preset response message returned by the bank response interface is received according to a data simulation interaction request, the purpose of obtaining a data virtual interaction result according to the preset message response message is achieved, the technical effect of accessing a virtual service platform required to be used according to visual configuration is achieved, the problem checking efficiency is improved, the communication test cost is saved, meanwhile, interface interaction intermediate data flow visualization is achieved, short-term deployment is achieved, front-end and rear-end separation decoupling is achieved, service closed loop is achieved, and the technical problem that a virtual data interaction simulation method is lacked is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, are incorporated in and constitute a part of this specification. The drawings and their description are illustrative of the application and are not to be construed as unduly limiting the application. In the drawings:
FIG. 1 is a schematic diagram of a hardware architecture of a data virtual interaction simulation method according to an embodiment of the present application;
FIG. 2 is a flow chart of a data virtual interaction simulation method according to an embodiment of the application;
FIG. 3 is a schematic diagram of a data virtual interaction simulator according to an embodiment of the application;
fig. 4 is a flow chart of a data virtual interaction simulation method according to an embodiment of the application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the present application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate an azimuth or a positional relationship based on that shown in the drawings. These terms are only used to better describe the present application and its embodiments and are not intended to limit the scope of the indicated devices, elements or components to the particular orientations or to configure and operate in the particular orientations.
Also, some of the terms described above may be used to indicate other meanings in addition to orientation or positional relationships, for example, the term "upper" may also be used to indicate some sort of attachment or connection in some cases. The specific meaning of these terms in the present application will be understood by those of ordinary skill in the art according to the specific circumstances.
Furthermore, the terms "mounted," "configured," "provided," "connected," "coupled," and "sleeved" are to be construed broadly. For example, it may be a fixed connection, a removable connection, or a unitary construction; may be a mechanical connection, or an electrical connection; may be directly connected, or indirectly connected through intervening media, or may be in internal communication between two devices, elements, or components. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 is a schematic diagram of a hardware structure of a data virtual interaction simulation method according to an embodiment of the present application, where the hardware structure includes: enterprise 100, interactive virtual platform 200, bank 300, database 400. The interactive virtual platform 200 is used for assisting in testing delivery when an enterprise is docked with a bank. The database 400 employs a high performance MySQL database for data persistence.
As shown in fig. 2, the method is used for assisting the enterprise to carry out the delivery of the test when the business data is virtually docked with the bank, and includes the following steps S201 to S203:
step S201, a bank response interface is configured through a configuration interface in a front-end page, wherein a response type in the bank response interface is associated with an interface type according to a preset mode, and the interface type is associated with the service data;
step S202, receiving a returned preset response message through the bank response interface according to a data simulation interaction request, wherein the preset message is used for judging a test result when the enterprise virtually interfaces with the bank in service data, the preset message is generated based on a preset HTTP interface of background service, the preset HTTP interface comprises an HTTP protocol and interface path parameters, the HTTP protocol is used for responding to the data simulation interaction request in real time, and the interface path parameters are used for prescribing a selected bank and a callable interface corresponding to the selected bank;
step 203, obtaining the result of the data virtual interaction according to the preset message response message.
From the above description, it can be seen that the following technical effects are achieved:
the method comprises the steps of configuring a bank response interface through a configuration interface in a front-end page, receiving a returned preset response message according to a data simulation interaction request through the bank response interface, and achieving the purpose of obtaining a data virtual interaction result according to the preset message response message, so that the technical effect of accessing a virtual service platform required to be used according to visual configuration is achieved, the problem checking efficiency is improved, the communication test cost is saved, meanwhile, interface interaction intermediate data flow visualization is achieved, short-term deployment is achieved, front-end and rear-end separation decoupling is achieved, service closed loop is achieved, and the technical problem that a virtual data interaction simulation method lacks an effective processing method is solved.
In step S201, the client configures a bank response interface through the configuration interface in the front-end page. It will be appreciated that based on the visual configuration interface provided, a bank that requires the use of a virtual service platform is accessed. The network can be used after being accessed, and the process of communicating the network with the bank in the middle is omitted.
In a specific embodiment, the response type in the bank response interface is associated with the interface type according to a preset mode. The bank interface automatic response and manual response are set, flexible configuration can be carried out according to the needs, business closed loop is completed, and the desired message data can be directly obtained in the development and test stages.
In a specific embodiment, the interface type is related to the service data, and in an embodiment, the interface type is related to the service data. In the process of testing the interface of the interaction data with the bank, services such as filing application, filing notification, financing application and the like are involved. And a banking party is simulated, the problem of network failure is solved in the development and test stage, and the development and test efficiency is improved.
In the step S202, a returned preset response message is received through the bank response interface according to the data simulation interaction request. And the bank response interface of the client receives a returned preset response message according to the data simulation interaction request.
In a specific embodiment, the preset message is used for judging a test result when the enterprise and the bank perform virtual docking of service data. And judging a test result when the enterprise and the bank are subjected to virtual docking of service data according to the preset message, and taking the test result as a test closed loop.
In a preferred embodiment, the preset message is generated based on a preset HTTP interface of the background service, where the preset HTTP interface includes an HTTP protocol and an interface path parameter, the HTTP protocol is used to respond to the data simulation interaction request in real time, and the interface path parameter is used to specify a selected bank and a callable interface corresponding to the selected bank. And providing a unified HTTP interface on the server side, and prescribing bank major class and bank interface type information in an interface path. The interface of the HTTP protocol can implement real-time response, and the interface path parameters can be used to determine which interface of which bank to invoke. Thereby querying the configuration data according to the conditions.
In the step S203, the result of the virtual interaction of the data is obtained according to the preset message response message. And obtaining the result of the data virtual interaction for a preset message response message.
As a preferred embodiment of the present application, the configuring a bank response interface through a configuration interface in a front-end page, where a response type in the bank response interface is associated with an interface type in a preset manner, and the interface type is associated with the service data, includes: the bank response interface is configured into automatic response or manual response through a configuration interface in a front-end page, wherein the automatic response or manual response is selectively configured according to preset service requirements and is used for obtaining message data of a service closed loop in a development stage and a test stage, the automatic response is used for directly returning to a message in a standard format, and the manual response is used for defining returned message content according to the test requirements.
In specific implementation, the bank response interface is configured into automatic response or manual response through a configuration interface in the front-end page. The automatic response can directly return to the message in the standard format, and the manual mode can define any returned message content according to the requirement.
It can be understood that the automatic response or the manual response is selectively configured according to preset service requirements, so as to obtain the message data of the service closed loop in the development stage and the testing stage.
The automatic response is used for directly returning the message in the standard format, and the manual response is used for defining the content of the returned message according to the test requirement.
As a preference in this embodiment, configuring the bank response interface as an automatic response includes: based on response messages of a plurality of preset interfaces of the bank, acquiring a standard response message format when the bank is docked with an enterprise, wherein the standard response message format comprises a standard message format with successful interface response and failed response; when the configuration interface is an automatic response, the response type and the interface type in the bank response interface are associated according to a preset mode, the corresponding response result is set to be failed or successful, and the background service is used for inquiring the configuration information after judging according to the interface type of the calling party and returning built-in message information through the Spring framework according to the configuration information.
In the implementation process, based on response messages of a plurality of preset interfaces of the bank, a standard response message format when the bank is in butt joint with an enterprise is obtained. And collecting and sorting response messages of all interfaces of the bank to obtain a set of standard response message formats which are in butt joint with enterprises. Standard messages aiming at successful response and failure response of the interface are built in the interactive platform. When the interface is configured to respond automatically, only the interface type (such as filing application and financing application) is required to be associated with the response type, and the response is set as 'failure' or 'success'. When the interface is called, the virtual interactive platform judges according to the interface type of the calling party, inquires configuration information and returns a built-in message.
It should be noted that, the standard response message format includes a standard message format of successful response and failed response of the interface; and when the configuration interface is an automatic response, the response type and the interface type in the bank response interface are associated according to a preset mode, the corresponding response result is set to be failed or successful, the background service is used for inquiring the configuration information after judging according to the interface type of the calling party, and the built-in message information is returned through the Spring framework according to the configuration information. And enhancing the scheduling interface through the tangent plane of the Spring framework, and directly sending the returned built-in message to the message queue mq. The service processing result in the test stage can be obtained rapidly.
As a preference in this embodiment, configuring the bank response interface as a manual response includes: performing manual response configuration by configuring customized message information, wherein the message information supports EL expression scalar replacement; associating the manual response configuration with the interface type and storing the manual response configuration in a database; after the analysis of the self-defined message of the manual response configuration and the scalar replacement of the EL expression are finished, returning complete message information, wherein the message information queries related configuration stored in a database according to the interface type in background service and analyzes the configured self-defined message; and sorting the parsed message data and the data sent during interface calling into a preset Map set based on background service for scalar replacement of the EL expression.
In specific implementation, the manual response configuration is carried out by configuring the customized message information. After the service closed loop can pass the test, when the detailed problem needs to be tested, the manual response can be started. Manual response supports configuring custom messages, and scalar substitution of EL expressions is also supported in the messages.
The configuration of the manual response is associated with the interface type, the repository. When receiving the interface call initiated by the bank channel, the virtual interactive platform queries the related configuration stored in the database according to the interface type, analyzes the configured custom message, and sorts the analyzed message data and the data sent during the interface call into a unified Map set for scalar replacement of the EL expression.
And after the analysis of the self-defined message of the manual response and the replacement of the EL scalar are finished, returning the final complete message to the bank channel. If the message needs to be encrypted, the virtual interaction platform can call a unified encryption interface, generate an encrypted message and return the encrypted message to the bank channel, and finally, the internal part of the bank channel executes own code logic, so that interaction is completed.
As a preferable mode in this embodiment, the configuring the bank response interface through the configuration interface in the front-end page includes: the bank response interface is configured to access the bank which obtains the virtual interaction service to be used through the visual configuration interface in the front-end page; the step of obtaining the result of the data virtual interaction according to the preset message response message comprises the following steps: and providing a sending notification page according to the preset message response message, wherein the sending notification page is used for sending the notification of the bank to the RocketMq or to a preset interface address.
In the implementation, the client configures a bank response interface to access a bank for obtaining the virtual interaction service to be used through a visual configuration interface in the front-end page. By sending the notification page, a bank notification can be sent to the dockmq or to a designated interface address.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
According to an embodiment of the present application, there is also provided an interactive virtual platform for implementing the above method for test delivery when interfacing with a bank, as shown in fig. 3, the platform comprising:
the front-end page configuration module 301 is configured to configure a bank response interface through a configuration interface in a front-end page, where a response type in the bank response interface is associated with an interface type according to a preset manner, and the interface type is associated with the service data;
the response module 302 is configured to receive, through the bank response interface, a returned preset response message according to a data simulation interaction request, where the preset message is used to determine a test result when the enterprise virtually interfaces with the bank in service data, the preset message is generated based on a preset HTTP interface of a background service, the preset HTTP interface includes an HTTP protocol and an interface path parameter, the HTTP protocol is used to respond to the data simulation interaction request in real time, and the interface path parameter is used to specify a selected bank and a callable interface corresponding to the selected bank;
and the interaction result module 303 is configured to obtain a result of the virtual interaction of the data according to the preset message response message.
The client in the front-end page configuration module 301 configures a bank response interface through a configuration interface in the front-end page. It will be appreciated that based on the visual configuration interface provided, a bank that requires the use of a virtual service platform is accessed. The network can be used after being accessed, and the process of communicating the network with the bank in the middle is omitted.
In a specific embodiment, the response type in the bank response interface is associated with the interface type according to a preset mode. The bank interface automatic response and manual response are set, flexible configuration can be carried out according to the needs, business closed loop is completed, and the desired message data can be directly obtained in the development and test stages.
In a specific embodiment, the interface type is related to the service data, and in an embodiment, the interface type is related to the service data. In the process of testing the interface of the interaction data with the bank, services such as filing application, filing notification, financing application and the like are involved. And a banking party is simulated, the problem of network failure is solved in the development and test stage, and the development and test efficiency is improved.
The response module 302 receives a returned preset response message according to the data simulation interaction request through the bank response interface. And the bank response interface of the client receives a returned preset response message according to the data simulation interaction request.
In a specific embodiment, the preset message is used for judging a test result when the enterprise and the bank perform virtual docking of service data. And judging a test result when the enterprise and the bank are subjected to virtual docking of service data according to the preset message, and taking the test result as a test closed loop.
In a preferred embodiment, the preset message is generated based on a preset HTTP interface of the background service, where the preset HTTP interface includes an HTTP protocol and an interface path parameter, the HTTP protocol is used to respond to the data simulation interaction request in real time, and the interface path parameter is used to specify a selected bank and a callable interface corresponding to the selected bank. And providing a unified HTTP interface on the server side, and prescribing bank major class and bank interface type information in an interface path. The interface of the HTTP protocol can implement real-time response, and the interface path parameters can be used to determine which interface of which bank to invoke. Thereby querying the configuration data according to the conditions.
And the interaction result module 303 obtains the result of the data virtual interaction according to the preset message response message. And obtaining the result of the data virtual interaction for a preset message response message.
As a preferred embodiment of the present application, the encryption module is configured to provide a preset encryption and signing algorithm, and provide an expansion interface; and the analysis module is used for analyzing the message data by using fastJson, and assembling and replacing the message content according to the specific variable character string.
In specific implementation, the virtual interactive platform is internally provided with a plurality of encryption and signing algorithms, including symmetric algorithms (DES, AES, SM ECB, SM4CBC and MD 5) and asymmetric algorithms (RSA, SM2 and SHA1 WITHRSA), and an expansion interface is provided, so that encryption and signing algorithm libraries can be gradually perfected and enriched in the subsequent development process.
In specific implementation, fastJson is used to analyze the message data, and the message content is assembled and replaced according to specific variable character strings (for example, filetype, sign, encryptMessage, $ { }). And finally, carrying out security protection on the data by using an encryption and signing algorithm.
As an optimization in this embodiment, the configuration module is configured to call the Nacos registry to perform unified configuration; the data recording module is used for automatically responding to the flow by the bank response interface, notifying the data circulation process in the sending flow, recording in real time through MySQL, and outputting the log of the abnormal condition of the bank response interface to carry out MySQL persistence.
In specific implementation, the Nacos registry is called to perform unified configuration, and a bank notification message (such as a filing notification and a financing notification) is sent to the docking system. The interface automatically responds to the data flow in the flow and the notification sending flow, and the abnormal condition of the interface is subjected to log output and MySQL persistence through MySQL real-time recording.
It will be apparent to those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
In order to better understand the flow of the data virtual interaction simulation method, the technical scheme is explained below in combination with the preferred embodiment, but the technical scheme is not limited to the embodiment of the application.
The data virtual interaction simulation method in the embodiment of the application provides a visual configuration interface and accesses a bank needing to use a virtual service platform. The network can be used after being accessed, and the process of communicating the network with the bank in the middle is omitted. In addition, by setting automatic response and manual response of the bank interface, the system can be flexibly configured according to the needs, the business closed loop is completed, and the desired message data can be directly obtained in the development and test stages. Finally, the simulation sending of the bank notification is supported, and a message encryption and decryption function is provided.
The data virtual interaction simulation method in the embodiment of the application provides a unified configuration page, is configured by developers and testers according to needs, can simulate all functions of a butt joint bank, does not need to spend time to deploy a network communicated with the bank, check network problems and communicate message contents, and can rapidly complete the whole flow through a virtual platform to realize service closed loop. And the complete business can be completed without actually communicating with a bank, and the test of the complete flow is realized. And the test efficiency is improved. Meanwhile, the method can simulate sending out the messages of failure, success and any data, and omits the cost of communicating with the banking party. Based on the visualization of the interface interaction intermediate data flow process, the problem investigation efficiency is improved.
Fig. 4 is a schematic flow chart of a data virtual interaction simulation method in the embodiment of the present application, and a specific implementation process includes the following steps:
the interactive virtual platform is used for testing delivery when the interactive virtual platform is docked with a bank, and the service is built on the basis of Springboot. Decoupling among systems is realized through the RocketMq, and the Nacos registry is used for carrying out unified processing of parameter configuration. The high performance MySQL database performs data persistence. The layUI builds a front-end configuration page, so that the front end and the back end are decoupled and can be independently deployed and independently maintained for upgrading.
For the operation steps of the client side:
step S1, a front-end open source framework layUI realizes a configuration interface.
Step S2, a virtual platform access switch is provided, and the use of the interactive virtual platform can be turned on and off by one key.
The bank interface response may be configured as an automatic response, a manual response, step S3. The automatic response can directly return to the message in the standard format, and the manual mode can define any returned message content according to the requirement.
Step S31, automatic response is performed.
Step S311, a set of standard response message formats which are in butt joint with enterprises are summarized through collecting and arranging response messages of all interfaces of the bank. Standard messages aiming at successful response and failure response of the interface are built in the interactive platform.
In step S312, when the interface is configured to respond automatically, it is only necessary to associate the interface type (such as filing application and financing application) with the response type, and set the response to "failure" or "success". When the interface is called, the virtual interactive platform judges according to the interface type of the calling party, inquires configuration information and returns a built-in message.
Step S313, enhancing the calling interface through the tangent plane of the Spring framework, and directly sending the returned built-in message to the message queue mq. The service processing result in the test stage can be obtained rapidly.
Step S32, manual response
In step S321, after the service closed loop can pass the test, when the detailed problem needs to be tested, a manual response can be started. Manual response supports configuring custom messages, and scalar substitution of EL expressions is also supported in the messages.
Step S322, the configuration of the manual response is correlated with the interface type and is stored. When receiving the interface call initiated by the bank channel, the virtual interactive platform queries the related configuration stored in the database according to the interface type, analyzes the configured custom message, and sorts the analyzed message data and the data sent during the interface call into a unified map set for scalar replacement of the EL expression.
Step S323, after the manual response self-defined message analysis and EL scalar replacement are finished, the final complete message is returned to the bank channel. If the message needs to be encrypted, the virtual interaction platform can call a unified encryption interface, generate an encrypted message and return the encrypted message to the bank channel, and finally, the internal part of the bank channel executes own code logic, so that interaction is completed.
Step S4, a sending notification page is provided, and a bank notification can be sent to the dockMq or the designated interface address.
And S5, providing a response log viewing page, and rapidly positioning specific circulation data through conditional search.
For the operation steps of the background service side:
and S1, providing a unified http interface to the outside by the virtual interactive platform, and prescribing information of a bank major class and a bank interface type in an interface path. The interface of the http protocol can realize real-time response, and the interface path parameters can be used for judging which interface of which bank is called. Thereby querying the configuration data according to the conditions.
And S2, a plurality of encryption and signing algorithms are built in the virtual interaction platform, wherein the encryption and signing algorithms comprise a symmetric algorithm (DES, AES, SM ECB, SM4CBC and MD 5) and an asymmetric algorithm (RSA, SM2 and SHA1 WITHRSA), an expansion interface is provided, and encryption and signing algorithm libraries can be gradually perfected and enriched in the subsequent development process.
And S3, analyzing the message data by using fastJson, and assembling and replacing the message content according to specific variable character strings (such as filetype, sign, encryptMessage, $ { }). And finally, carrying out security protection on the data by using an encryption and signing algorithm.
And S4, calling a Nacos registry to perform unified configuration.
And S5, sending a bank notification message (such as a filing notification and financing notification) to the docking system.
And S6, the interface automatically responds to the data flow in the flow and the notification sending flow and records the data flow in real time through MySQL.
And S7, outputting the log of the interface abnormal condition and persisting MySQL.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A data virtual interaction simulation method is characterized in that,
the method is used for assisting the enterprises to carry out delivery of the test when the business data are virtually docked with the banks, and comprises the following steps:
a bank response interface is configured through a configuration interface in a front-end page, wherein a response type in the bank response interface is associated with an interface type according to a preset mode, and the interface type is associated with the service data;
receiving a returned preset response message through the bank response interface according to a data simulation interaction request, wherein the preset message is used for judging a test result when the enterprise virtually interfaces with the bank in service data, the preset message is generated based on a preset HTTP interface of background service, the preset HTTP interface comprises an HTTP protocol and interface path parameters, the HTTP protocol is used for responding to the data simulation interaction request in real time, and the interface path parameters are used for prescribing a selected bank and a callable interface corresponding to the selected bank;
obtaining a result of the data virtual interaction according to the preset message response message;
the bank response interface is configured through a configuration interface in a front-end page, wherein a response type in the bank response interface is associated with an interface type according to a preset mode, the interface type is associated with the service data, and the method comprises the following steps:
the bank response interface is configured into automatic response or manual response through a configuration interface in a front-end page, wherein the automatic response or manual response is selectively configured according to preset service requirements and is used for obtaining message data of a service closed loop in a development stage and a test stage, the automatic response is used for directly returning to a message in a standard format, and the manual response is used for defining returned message content according to the test requirements;
configuring the bank response interface as an automatic response, comprising:
based on response messages of a plurality of preset interfaces of the bank, acquiring a standard response message format when the bank is docked with an enterprise, wherein the standard response message format comprises a standard message format with successful interface response and failed response;
when the configuration interface is an automatic response, the response type and the interface type in the bank response interface are associated according to a preset mode, the corresponding response result is set to be failed or successful, and the background service is used for inquiring the configuration information after judging according to the interface type of the calling party and returning built-in message information through a Spring framework according to the configuration information;
configuring the bank response interface as a manual response, comprising:
performing manual response configuration by configuring customized message information, wherein the message information supports EL expression scalar replacement;
associating the manual response configuration with the interface type and storing the manual response configuration in a database;
after the analysis of the self-defined message of the manual response configuration and the scalar replacement of the EL expression are finished, returning complete message information, wherein the message information queries related configuration stored in a database according to the interface type in background service and analyzes the configured self-defined message; and sorting the parsed message data and the data sent during interface calling into a preset Map set based on background service for scalar replacement of the EL expression.
2. The method according to claim 1, characterized in that: the configuration of the bank response interface through the configuration interface in the front-end page comprises the following steps:
the bank response interface is configured to access the bank which obtains the virtual interaction service to be used through the visual configuration interface in the front-end page;
the step of obtaining the result of the data virtual interaction according to the preset message response message comprises the following steps:
and providing a sending notification page according to the preset message response message, wherein the sending notification page is used for sending the notification of the bank to the RocketMq or to a preset interface address.
3. An interactive virtual platform for test delivery when docked with a bank, comprising:
the front-end page configuration module is used for configuring a bank response interface through a configuration interface in the front-end page, wherein the response type in the bank response interface is associated with the interface type according to a preset mode, and the interface type is associated with service data;
the response module is used for receiving a returned preset response message through the bank response interface according to the data simulation interaction request, wherein the preset message is used for judging a test result when an enterprise virtually interfaces with the bank in service data, the preset message is generated based on a preset HTTP interface of background service, the preset HTTP interface comprises an HTTP protocol and interface path parameters, the HTTP protocol is used for responding to the data simulation interaction request in real time, and the interface path parameters are used for prescribing a selected bank and a callable interface corresponding to the selected bank;
the interaction result module is used for responding to the message according to the preset message to obtain the result of the data virtual interaction;
the bank response interface is configured through a configuration interface in a front-end page, wherein a response type in the bank response interface is associated with an interface type according to a preset mode, the interface type is associated with the service data, and the method comprises the following steps:
the bank response interface is configured into automatic response or manual response through a configuration interface in a front-end page, wherein the automatic response or manual response is selectively configured according to preset service requirements and is used for obtaining message data of a service closed loop in a development stage and a test stage, the automatic response is used for directly returning to a message in a standard format, and the manual response is used for defining returned message content according to the test requirements;
configuring the bank response interface as an automatic response, comprising:
based on response messages of a plurality of preset interfaces of the bank, acquiring a standard response message format when the bank is docked with an enterprise, wherein the standard response message format comprises a standard message format with successful interface response and failed response;
when the configuration interface is an automatic response, the response type and the interface type in the bank response interface are associated according to a preset mode, the corresponding response result is set to be failed or successful, and the background service is used for inquiring the configuration information after judging according to the interface type of the calling party and returning built-in message information through a Spring framework according to the configuration information;
configuring the bank response interface as a manual response, comprising:
performing manual response configuration by configuring customized message information, wherein the message information supports EL expression scalar replacement;
associating the manual response configuration with the interface type and storing the manual response configuration in a database;
after the analysis of the self-defined message of the manual response configuration and the scalar replacement of the EL expression are finished, returning complete message information, wherein the message information queries related configuration stored in a database according to the interface type in background service and analyzes the configured self-defined message; and sorting the parsed message data and the data sent during interface calling into a preset Map set based on background service for scalar replacement of the EL expression.
4. An interactive virtual platform according to claim 3, comprising:
the encryption module is used for providing a preset encryption and signing algorithm and an expansion interface;
and the analysis module is used for analyzing the message data by using fastJson, and assembling and replacing the message content according to the specific variable character string.
5. An interactive virtual platform according to claim 3, comprising:
the configuration module is used for calling the Nacos registry to perform unified configuration;
the data recording module is used for automatically responding to the flow by the bank response interface, notifying the data circulation process in the sending flow, recording in real time through MySQL, and outputting the log of the abnormal condition of the bank response interface to carry out MySQL persistence.
6. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 2 when run.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 2.
CN202111643641.5A 2021-12-30 2021-12-30 Data virtual interaction simulation method and device, storage medium and electronic device Active CN114374615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111643641.5A CN114374615B (en) 2021-12-30 2021-12-30 Data virtual interaction simulation method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111643641.5A CN114374615B (en) 2021-12-30 2021-12-30 Data virtual interaction simulation method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114374615A CN114374615A (en) 2022-04-19
CN114374615B true CN114374615B (en) 2023-11-28

Family

ID=81142010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111643641.5A Active CN114374615B (en) 2021-12-30 2021-12-30 Data virtual interaction simulation method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114374615B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9525598B1 (en) * 2014-11-13 2016-12-20 Amazon Technologies, Inc. Network testing device for automated topology validation
CN106506283A (en) * 2016-12-08 2017-03-15 用友网络科技股份有限公司 Bank and the service test method and device of enterprise's docking system
CN107018046A (en) * 2017-06-06 2017-08-04 上海鋆创信息技术有限公司 A kind of collecting method, device, terminal and storage medium
CN112732572A (en) * 2021-01-06 2021-04-30 微民保险代理有限公司 Service testing method, device and system, storage medium and electronic device
TWM612705U (en) * 2021-01-20 2021-06-01 菁英國際文教事業股份有限公司 Interactive test competition teaching management system
CN113259496A (en) * 2021-07-15 2021-08-13 中企链信(北京)科技有限公司 Bank-enterprise direct connection system and method based on financial service
CN113452575A (en) * 2021-06-24 2021-09-28 河北幸福消费金融股份有限公司 Service test method, system, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BRPI0602085A (en) * 2006-05-24 2008-01-15 Banco Bradesco S A malfunction detector of electronic modules
GB2533562A (en) * 2014-12-18 2016-06-29 Ipco 2012 Ltd An interface, method and computer program product for controlling the transfer of electronic messages
US20180217921A1 (en) * 2017-02-02 2018-08-02 Cognizant Technology Solutions India Pvt. Ltd. System and method for generating and executing automated test cases

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9525598B1 (en) * 2014-11-13 2016-12-20 Amazon Technologies, Inc. Network testing device for automated topology validation
CN106506283A (en) * 2016-12-08 2017-03-15 用友网络科技股份有限公司 Bank and the service test method and device of enterprise's docking system
CN107018046A (en) * 2017-06-06 2017-08-04 上海鋆创信息技术有限公司 A kind of collecting method, device, terminal and storage medium
CN112732572A (en) * 2021-01-06 2021-04-30 微民保险代理有限公司 Service testing method, device and system, storage medium and electronic device
TWM612705U (en) * 2021-01-20 2021-06-01 菁英國際文教事業股份有限公司 Interactive test competition teaching management system
CN113452575A (en) * 2021-06-24 2021-09-28 河北幸福消费金融股份有限公司 Service test method, system, device and storage medium
CN113259496A (en) * 2021-07-15 2021-08-13 中企链信(北京)科技有限公司 Bank-enterprise direct connection system and method based on financial service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Xiaoping Che,Pengyu Liu.An Approach for Testing Data Intensive Systems:Application to a Banking CRM System.2015 IEEE 29th International Conference on Advanced Information Networking and Applications Workshops.2015,全文. *
交换机的接入认证系统设计与实现;阳雄;中国优秀硕士学位论文数据库;全文 *

Also Published As

Publication number Publication date
CN114374615A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US10705942B1 (en) Simulated testing of API
CN106940428B (en) Chip verification method, device and system
van Beek et al. Digital forensics as a service: Stepping up the game
CN107341109B (en) Test data generation method and system
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
US20210026614A1 (en) Container orchestration framework
CN109101415A (en) Interface test method, system, equipment and the storage medium compared based on database
US20180260201A1 (en) Intelligent software deployment on an iaas platform
US20150074647A1 (en) Testing system for an integrated software system
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN109408247A (en) Interaction data processing method and device
CN109491860A (en) Method for detecting abnormality, terminal device and the medium of application program
EP2929498A1 (en) Systems and methods for testing a financial trading system
CN110196809A (en) Interface test method and device
CN114022278A (en) Simulated transaction processing method and device
CN116069838A (en) Data processing method, device, computer equipment and storage medium
CN115904852B (en) Automatic test method, equipment and medium for data processor
CN108062276A (en) The generation method and device of test case and the generation method and device of test report
CN114443039A (en) Input parameter verification method, device, electronic device and storage medium
CN114374615B (en) Data virtual interaction simulation method and device, storage medium and electronic device
CN114615336A (en) Request scheduling method and device, computer equipment and storage medium
CN114610598A (en) Test method, test device, electronic equipment and computer readable storage medium
CN112699042A (en) Method and device for generating unit test case
CN109766228A (en) Verification method and device on a kind of line based on interface
CN113032647B (en) Data analysis system

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