Pressure testing method, device, equipment and medium for bank core system

文档序号:190223 发布日期:2021-11-02 浏览:12次 中文

阅读说明:本技术 一种银行核心系统的压力测试方法、装置、设备及介质 (Pressure testing method, device, equipment and medium for bank core system ) 是由 王巍 于 2021-06-28 设计创作,主要内容包括:本申请设计了一种银行核心系统的压力测试方法、装置、设备及介质,包括:根据银行核心系统的配置信息创建测试主机,并获取银行核心系统在峰值交易时期的流水数据,得到目标数据报文;利用时间戳确定目标数据报文中各数据报文之间的时间间隔;通过对时间间隔进行调整,并按照顺序控制模拟服务器将目标数据报文串行发送至测试主机,得到第一响应数据;对目标数据报文进行拆分,得到拆分数据报文,通过对目标时间间隔进行调整,并控制模拟服务器将拆分数据报文并行发送至测试主机,得到第二响应数据;根据响应数据对银行核心系统的性能进行判定。通过该方法不仅可以保证银行核心系统压力测试结果的准确性,而且,也可以显著降低其所需要的测试成本。(The application designs a pressure testing method, a device, equipment and a medium of a bank core system, which comprise the following steps: establishing a test host according to the configuration information of the bank core system, and acquiring the running data of the bank core system in the peak value transaction period to obtain a target data message; determining the time interval between each data message in the target data message by using the timestamp; the time interval is adjusted, and the simulation server is controlled to serially transmit the target data message to the test host according to the sequence to obtain first response data; splitting the target data message to obtain a split data message, adjusting the target time interval, and controlling the simulation server to send the split data message to the test host in parallel to obtain second response data; and judging the performance of the bank core system according to the response data. By the method, the accuracy of the pressure test result of the bank core system can be ensured, and the required test cost can be obviously reduced.)

1. A pressure testing method of a bank core system is characterized by comprising the following steps:

establishing a test host according to configuration information of a bank core system, and acquiring running data of the bank core system in a peak value transaction period to obtain a target data message;

determining a target time interval between each data message in the target data message by using a timestamp;

the target time interval is adjusted, and the simulation server is controlled according to the sequence of the target data messages to serially send the target data messages to the test host, so that first response data of the test host to the simulation server are obtained;

splitting the target data message to obtain a split data message, adjusting the target time interval, and controlling the simulation server to send the split data message to the test host in parallel to obtain second response data of the test host to the simulation server;

and judging the performance of the bank core system according to the first response data and the second response data.

2. A pressure testing method according to claim 1, wherein the process of creating a test host according to the configuration information of the bank core system comprises:

and creating the test host according to the hardware configuration information, the software configuration information and the load information of the bank core system.

3. The pressure testing method of claim 1, further comprising:

and filtering the target data message by using the transaction code.

4. The pressure testing method of claim 1, further comprising:

acquiring response failure data in the first response data and the second response data to obtain failure response data;

and adjusting the target data message and/or the split data message according to the failure response data.

5. The pressure testing method according to claim 1, wherein the process of splitting the target data packet to obtain a split data packet includes:

screening the target data message according to the service transaction type to obtain a screened data message;

and splitting the screened data message to obtain the split data message.

6. The pressure testing method according to any one of claims 1 to 5, further comprising:

and setting a target baffle program in the test host according to the target transaction between the test host and the third party.

7. A pressure testing device of a bank core system is characterized by comprising:

the data acquisition module is used for creating a test host according to the configuration information of the bank core system and acquiring the running data of the bank core system in the peak value transaction period to obtain a target data message;

an interval determining module, configured to determine a target time interval between data packets in the target data packet by using a timestamp;

the first test module is used for adjusting the target time interval and controlling the simulation server to serially send the target data messages to the test host according to the sequence of the target data messages to obtain first response data of the test host to the simulation server;

the second test module is used for splitting the target data message to obtain a split data message, adjusting the target time interval and controlling the simulation server to send the split data message to the test host in parallel to obtain second response data of the test host to the simulation server;

and the performance judging module is used for judging the performance of the bank core system according to the first response data and the second response data.

8. A pressure testing apparatus of a bank core system, comprising:

a memory for storing a computer program;

a processor for implementing the steps of a method of stress testing of a bank core system as claimed in any one of claims 1 to 6 when executing said computer program.

9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of a method of stress testing of a bank core system according to any one of claims 1 to 6.

Technical Field

The invention relates to the technical field of computers, in particular to a pressure testing method, a pressure testing device, pressure testing equipment and a pressure testing medium for a bank core system.

Background

At present, when testing a bank core system, one method is to use pressure simulation software to perform pressure testing on the bank core system, but when using the pressure simulation software to perform pressure testing on the bank core system, not only test data needs to be compiled, but also the test data is difficult to be randomly distributed, for example: when a plurality of concurrent processes make continuous deposits to the same account at the same time, the problem of record update lock of the account is easily caused, and the situation is almost not occurred in practical application. Therefore, the accuracy and the reliability of the test result are difficult to ensure by using the pressure simulation software to carry out the pressure test on the bank core system. Another method is to organize a stress tester to perform a stress test on the bank core system, but this test method needs to organize tens of thousands of people to perform a stress test on the bank core system, and needs huge financial support. At present, no effective solution exists for the above technical problems.

Disclosure of Invention

In view of the above, an object of the present invention is to provide a method, an apparatus, a device and a medium for pressure testing of a bank core system, so as to ensure accuracy of a pressure testing result of the bank core system and reduce a cost required for the pressure testing of the bank core system. The specific scheme is as follows:

a pressure testing method of a bank core system comprises the following steps:

establishing a test host according to configuration information of a bank core system, and acquiring running data of the bank core system in a peak value transaction period to obtain a target data message;

determining a target time interval between each data message in the target data message by using a timestamp;

the target time interval is adjusted, and the simulation server is controlled according to the sequence of the target data messages to serially send the target data messages to the test host, so that first response data of the test host to the simulation server are obtained;

splitting the target data message to obtain a split data message, adjusting the target time interval, and controlling the simulation server to send the split data message to the test host in parallel to obtain second response data of the test host to the simulation server;

and judging the performance of the bank core system according to the first response data and the second response data.

Preferably, the process of creating a test host according to the configuration information of the bank core system includes:

and creating the test host according to the hardware configuration information, the software configuration information and the load information of the bank core system.

Preferably, the method further comprises the following steps:

and filtering the target data message by using the transaction code.

Preferably, the method further comprises the following steps:

acquiring response failure data in the first response data and the second response data to obtain failure response data;

and adjusting the target data message and/or the split data message according to the failure response data.

Preferably, the splitting the target data packet to obtain a split data packet includes:

screening the target data message according to the service transaction type to obtain a screened data message;

and splitting the screened data message to obtain the split data message.

Preferably, the method further comprises the following steps:

and setting a target baffle program in the test host according to the target transaction between the test host and the third party.

Correspondingly, the invention also discloses a pressure testing device of the bank core system, which comprises:

the data acquisition module is used for creating a test host according to the configuration information of the bank core system and acquiring the running data of the bank core system in the peak value transaction period to obtain a target data message;

an interval determining module, configured to determine a target time interval between data packets in the target data packet by using a timestamp;

the first test module is used for adjusting the target time interval and controlling the simulation server to serially send the target data messages to the test host according to the sequence of the target data messages to obtain first response data of the test host to the simulation server;

the second test module is used for splitting the target data message to obtain a split data message, adjusting the target time interval and controlling the simulation server to send the split data message to the test host in parallel to obtain second response data of the test host to the simulation server;

and the performance judging module is used for judging the performance of the bank core system according to the first response data and the second response data.

Correspondingly, the invention also discloses a pressure testing device of the bank core system, which comprises:

a memory for storing a computer program;

a processor for implementing the steps of a method for stress testing of a bank core system as disclosed in the foregoing when executing said computer program.

Accordingly, the present invention also discloses a computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the pressure testing method of a bank core system as disclosed in the foregoing.

Therefore, in the invention, the test host is firstly established according to the configuration information of the bank core system, so that the performance of the bank core system facing the pressure test can be truly simulated by the test host; then, the real target data message of the bank core system in the peak value transaction period is used for carrying out pressure test on the test host, so that the validity and reliability of the pressure test data can be ensured; in the process of carrying out pressure test on the bank core system, one is to serially send target data messages to a test host according to the sequence of the target data messages so as to restore the real transaction of the bank core system; the other method is that the target data message is split to obtain a split data message, and the simulation server is controlled to send the split data message to the test host in parallel, so as to simulate the scene of the bank core system facing high-pressure transaction; in both test scenarios, the transaction environment of the bank core system facing a peak value which is 1 to N times of the real transaction can be simulated by adjusting the time interval between the data messages sent to the test host by the simulation server. At the moment, the performance of the bank core system can be judged according to the response data of the test host under different test scenes. Therefore, the accuracy of the pressure test result of the bank core system can be ensured, and the cost required by the pressure test of the bank core system can be obviously reduced. Correspondingly, the pressure testing device, the equipment and the medium of the bank core system provided by the invention also have the beneficial effects.

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 flowchart of a pressure testing method for a bank core system according to an embodiment of the present invention;

fig. 2 is a structural diagram of a pressure testing apparatus of a bank core system according to an embodiment of the present invention;

fig. 3 is a structural diagram of a pressure testing device of a bank core system according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are 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.

Referring to fig. 1, fig. 1 is a flowchart of a pressure testing method of a bank core system according to an embodiment of the present invention. The pressure testing method comprises the following steps:

step S11: establishing a test host according to the configuration information of the bank core system, and acquiring the running data of the bank core system in the peak value transaction period to obtain a target data message;

step S12: determining a target time interval between each data message in a target data message by using the timestamp;

step S13: the target time interval is adjusted, and the simulation server is controlled to serially send the target data messages to the test host according to the sequence of the target data messages, so that first response data of the test host to the simulation server are obtained;

step S14: splitting the target data message to obtain a split data message, adjusting the target time interval, and controlling the simulation server to send the split data message to the test host in parallel to obtain second response data of the test host to the simulation server;

step S15: and judging the performance of the bank core system according to the first response data and the second response data.

In this embodiment, a pressure testing method for a bank core system is provided, which can not only ensure the accuracy of a pressure testing result of the bank core system, but also significantly reduce the cost required for performing a pressure test on the bank core system.

It can be understood that, when performing a stress test on the bank core system, it is necessary to use a test host consistent with the configuration of the bank core system to simulate the operating environment of the bank core system, so in this embodiment, the test host is first created according to the configuration information of the bank core system. And then acquiring the running data of the bank core system in the peak value transaction period to obtain a target data message. Because the target data message is the real running data of the bank core system in the peak value transaction period, the accuracy and the reliability of the test data can be relatively ensured by utilizing the target data message to carry out the pressure test on the test host.

After the target data message of the bank core system in the peak value transaction period is obtained, the target time interval between the data messages in the target data message can be determined by using the timestamp in the target data message. At the moment, the simulation server is controlled according to the timestamp in the target data message to serially send the data message in the target data message to the test host, so that the real scene of the bank core system in the face of peak value transaction can be simulated.

In order to increase the transaction pressure faced by the bank core system, the testing pressure of the testing host can be increased by shortening the communication time between the simulation server and the testing host. Specifically, the interval time between the data messages in the target data message can be adjusted, and the simulation server is controlled according to the sequence of the target data message to serially send the target data message to the test host, so that the transaction environment of the bank core system facing different peak transaction periods can be simulated. That is, the response performance of the bank core system in the face of different stress tests can be determined according to the first response data of the test host to the simulation server. In other words, the communication time between the simulation server and the test host is compressed, so that the response performance of the bank core system in the face of higher-pressure test can be tested.

In this embodiment, the performance of the bank core system in the face of a pressure load N times the true peak transaction period may also be simulated by submitting test data in parallel. Specifically, in the test scenario, a target data message needs to be split to obtain split data messages, then the time interval between the data messages in the target data message is adjusted, and the simulation server is controlled to send the split data to the test host in parallel, so that a bank core system is simulated in a pressure test scenario facing a real peak value transaction period which is N times that of the bank core system. And determining the response performance of the bank core system in the face of pressure load N times of the real peak transaction period according to the second response data of the test host to the simulation server.

And finally, determining the reaction performance of the bank core system in the face of different application scenes according to the first response data and the second response data. Obviously, the testing method can not only ensure the accuracy and reliability of the pressure testing result of the bank core system, but also obviously reduce the cost required for the pressure testing of the bank core system.

In addition, by using the pressure testing method provided by the embodiment, the problems of the existing bank core system can be reproduced and restored. In a real application scenario, if a bank core system has a problem, it is difficult to have time to collect complete performance data: such as stored input and output flow water data, specific indexes of the bank core system storage response and the like. Moreover, even if the fault data of the bank core system when a problem occurs is stored, the reason for the problem cannot be found, and therefore the same problem cannot be guaranteed not to occur again. Obviously, the method provided by the embodiment can restore the specific reaction performance of the bank core system facing the pressure load to the maximum extent, and can completely collect the response data of the bank core system facing various transaction tests, so that the method is more convenient for a worker to debug and modify various parameters of the bank core system in the subsequent process, and determine whether the performance of the bank core system is improved or not after the parameters are modified. Obviously, the method provided by the embodiment can further improve the convenience and test experience of people in the process of carrying out stress test on the bank core system.

Therefore, in the embodiment, the test host is firstly created according to the configuration information of the bank core system, so that the performance of the bank core system facing the pressure test can be truly simulated by the test host; then, the real target data message of the bank core system in the peak value transaction period is used for carrying out pressure test on the test host, so that the validity and reliability of the pressure test data can be ensured; in the process of carrying out pressure test on the bank core system, one is to serially send target data messages to a test host according to the sequence of the target data messages so as to restore the real transaction of the bank core system; the other method is that the target data message is split to obtain a split data message, and the simulation server is controlled to send the split data message to the test host in parallel, so as to simulate the scene of the bank core system facing high-pressure transaction; in both test scenarios, the transaction environment of the bank core system facing a peak value which is 1 to N times of the real transaction can be simulated by adjusting the time interval between the data messages sent to the test host by the simulation server. At the moment, the performance of the bank core system can be judged according to the response data of the test host under different test scenes. Therefore, the accuracy of the pressure test result of the bank core system can be ensured, and the cost required by the pressure test of the bank core system can be obviously reduced.

Based on the above embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the above steps: the process of creating test host according to the configuration information of the bank core system includes:

and creating a test host according to the hardware configuration information, the software configuration information and the load information of the bank core system.

In this embodiment, in order to ensure that the testing host can accurately represent the response performance of the bank core system in the face of various stress tests, the testing host is created according to the hardware configuration information, the software configuration information and the load information of the bank core system.

In the process of creating the test host according to the hardware configuration information of the bank core system, it is necessary to ensure that information such as a Central Processing Unit (CPU), a memory, and an Input/Output (IO) configuration of the test host is consistent with the bank core system; in the process of creating the test host according to the software configuration information of the bank core system, the operating system version, the authorized software version, the application program version, the operating system patch package, the database patch package, the application patch package and the like installed on the test host need to be ensured to be consistent with the configuration of the bank core system; in addition, in the process of creating the test host according to the load information of the bank core system, it is required to ensure that the load of the test host is consistent with the load of the bank core system, for example: attention needs to be paid to whether PowerHA is deployed in the bank core system, whether performance-compatible software is deployed, and the like.

Obviously, by the technical scheme provided by the embodiment, the accuracy and reliability of the test result can be further ensured when the bank core system is subjected to the pressure test.

Based on the above embodiment, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the pressure testing method further includes:

and filtering the target data message by using the transaction code.

It will be appreciated that in practice, there are no types of transactions such as surreptitious wages, institutional withdrawal, etc. that occur in the core system of the bank on a daily basis. Therefore, if the transaction type is found in the target data message according to the transaction code, the data message can be shielded, and only the common daily transaction type in the target data message is reserved, so that the data contained in the target data message can reflect the normal transaction load of the bank core system.

Obviously, the technical scheme provided by the embodiment can relatively improve the testing efficiency when the bank core system is subjected to the stress test.

Based on the above embodiment, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the pressure testing method further includes:

acquiring response failure data in the first response data and the second response data to obtain failure response data;

and adjusting the target data message and/or the split data message according to the failure response data.

It can be understood that if data failing to respond appears in the first response data and the second response data, it indicates that there may be error data in the target data packet, or data that cannot be split but is forced to be split appears in the split data packet. At this time, in order to ensure the validity of the test data between the simulation server and the test host, the target data packet and/or the split data packet needs to be adjusted and modified according to the failure response data in the first response data and the second response data.

Therefore, the technical scheme provided by the embodiment can further ensure the overall reliability of the pressure test result of the bank core system.

Based on the above embodiments, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the above steps: the process of splitting the target data message to obtain a split data message comprises the following steps:

screening the target data message according to the service transaction type to obtain a screened data message;

and splitting the screened data message to obtain a split data message.

In this embodiment, in order to ensure the accuracy and reliability of the test result when the bank core system is subjected to the stress test, the target data packet needs to be screened according to the service transaction type, for example: if the account withholding service exists in the target data message, the data message cannot be split into a plurality of data messages to be sent to the test host in parallel, because if the data message of the type is split into a plurality of data messages to be sent to the test host in parallel, the problem of record update lock occurs in the account, and the problem cannot occur in practical application at all. Therefore, in this embodiment, the target data packet may be screened according to the service transaction type to obtain a screened data packet, and then the screened data packet is split to obtain a split data packet.

Obviously, the technical scheme provided by the embodiment can relatively improve the testing efficiency when testing the bank core system.

Based on the above embodiment, this embodiment further describes and optimizes the technical solution, and as a preferred implementation, the pressure testing method further includes:

and setting a target baffle program in the test host according to the target transaction between the test host and the third party.

In practical application, the bank core system may perform communication transaction with third parties such as union pay, wechat and pay bank in addition to in-line transaction, but the test host may not simulate the application transaction well due to the limitation of the test environment.

Therefore, in this embodiment, in order to enable the simulation server and the test host to simulate the transaction performed between the bank core system and the third party, a target barrier program may be further set in the test host according to the target transaction between the test host and the third party so that the test host may simulate the response performance of the bank core system in the face of the transaction performed with the third party.

Obviously, the technical scheme provided by the embodiment can further ensure the integrity and comprehensiveness of the pressure test result of the bank core system.

Referring to fig. 2, fig. 2 is a structural diagram of a pressure testing apparatus of a bank core system according to an embodiment of the present invention, where the pressure testing apparatus includes:

the data acquisition module 21 is configured to create a test host according to configuration information of the bank core system, and acquire running data of the bank core system in a peak transaction period to obtain a target data message;

an interval determining module 22, configured to determine a target time interval between each data packet in the target data packet by using the timestamp;

the first test module 23 is configured to adjust the target time interval and control the simulation server to serially send the target data packets to the test host according to the sequence of the target data packets, so as to obtain first response data of the test host to the simulation server;

the second test module 24 is configured to split the target data packet to obtain a split data packet, adjust the target time interval, and control the simulation server to send the split data packet to the test host in parallel to obtain second response data of the test host to the simulation server;

and the performance judging module 25 is used for judging the performance of the bank core system according to the first response data and the second response data.

The pressure testing device of the bank core system provided by the embodiment of the invention has the beneficial effects of the pressure testing method of the bank core system disclosed in the embodiment.

Referring to fig. 3, fig. 3 is a structural diagram of a pressure testing device of a bank core system according to an embodiment of the present invention, where the pressure testing device includes:

a memory 31 for storing a computer program;

a processor 32 for implementing the steps of a method for stress testing of a bank core system as disclosed in the foregoing when executing a computer program.

The pressure test equipment of the bank core system provided by the embodiment of the invention has the beneficial effects of the pressure test method of the bank core system disclosed in the foregoing.

Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for testing the pressure of the bank core system disclosed in the foregoing are implemented.

The computer-readable storage medium provided by the embodiment of the invention has the beneficial effects of the pressure testing method of the bank core system disclosed in the foregoing.

The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.

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 method, the device, the equipment and the medium for testing the pressure of the bank core system provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于权重计算的内网用户行为分析方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!