CN112416725A - Pressure testing method and device - Google Patents

Pressure testing method and device Download PDF

Info

Publication number
CN112416725A
CN112416725A CN202011206044.1A CN202011206044A CN112416725A CN 112416725 A CN112416725 A CN 112416725A CN 202011206044 A CN202011206044 A CN 202011206044A CN 112416725 A CN112416725 A CN 112416725A
Authority
CN
China
Prior art keywords
service
information system
batch
pressure test
batch information
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.)
Withdrawn
Application number
CN202011206044.1A
Other languages
Chinese (zh)
Inventor
苏春艳
张成春
常盼盼
席在发
黄一峰
纪明林
郑宇�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202011206044.1A priority Critical patent/CN112416725A/en
Publication of CN112416725A publication Critical patent/CN112416725A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The specification discloses a pressure test method and a pressure test device, which can generate clearing files and service data corresponding to a plurality of transaction services, and determine a pressure test case based on the generated clearing files and the generated service data. And then inputting the pressure test case into a batch information system, and executing batch processing service through the batch information system. And finally, when the batch processing service is executed, determining a pressure test result of the batch information system, and prompting a user to optimize the batch information system when a service index in the pressure test result does not accord with a preset reference condition. The processing duration of each operation step in the batch information system in the process of executing the batch processing service is determined, and each operation step is detected, so that each operation step in the batch information system is optimized, and the optimization cost is saved.

Description

Pressure testing method and device
Technical Field
The present disclosure relates to the field of testing technologies, and in particular, to a pressure testing method and apparatus.
Background
At present, when a bank processes credit card services, an online and batch dual information system is generally adopted, wherein the online information system is used for performing service processing in real time according to service requests (card application requests, transfer requests and the like) sent by users. The batch information system is used for generating an account posting file through calculation and verification according to a clearing file which is sent by a clearing platform (UnionPay, Visa and the like) and contains all transaction services and service data in the online information system when each transaction service is executed, wherein the account posting file at least contains information such as credit card consumption bills, transfer amount, overdue time and the like of each user who executes the service.
The clearing platform sends clearing files of all services executed by users in one day to a bank at a fixed time every night, and the bank also needs to verify the clearing files within a certain time and generate posting files so as to archive the posting files.
As the number of credit card services continues to increase, the batch information system often needs to process a large amount of services within a certain time, and therefore before the batch information system is online, the batch information system needs to be subjected to a stress test to test various indexes of system equipment.
In the prior art, when a batch information system is subjected to a stress test, specifically, a large batch of clearing files and service data are generated by editing manually according to formats and data contents in the clearing files and the service data which are acquired historically. And then, determining a pressure test case based on the large-batch clearing files and the service data, and operating the pressure test case in the batch information system. And finally, after the pressure test case is operated, determining various performance indexes of the batch of information system equipment, such as CPU utilization rate, memory utilization rate and the like. When the pressure of the batch information system is determined to be too high according to various performance indexes, the pressure of the batch information system can be reduced by adding hardware equipment such as a server.
Disclosure of Invention
The embodiment of the specification provides a pressure testing method and a pressure testing device, and solves the problems that the testing method in the prior art only tests the overall operation efficiency of a batch information system, only can reduce the system pressure by adding hardware equipment, and the required equipment cost is high.
The embodiment of the specification adopts the following technical scheme:
the present specification provides a pressure testing method, including:
generating clearing files and business data corresponding to a plurality of transaction businesses;
determining a pressure test case according to the generated clearing files and the service data;
inputting the pressure test case into a batch information system so as to enable the batch information system to execute batch processing service;
when the batch processing service is executed, determining a pressure test result of the batch information system, wherein the pressure test result at least comprises a service index, and the service index comprises processing duration of each operation step for executing the batch processing service;
and when the service index in the pressure test result does not accord with the preset reference condition, prompting a user to optimize the batch information system.
Optionally, generating clearing files and service data corresponding to the transaction services specifically includes:
and generating a plurality of clearing files and service data according to the historically stored clearing files and service data, wherein the clearing files and the service data have a corresponding relation.
Optionally, the method further comprises:
monitoring the execution state of the stress test case through a monitoring code, wherein the execution state comprises an interruption state and a completion state;
and when the execution state is monitored to be in an interruption state, sending interruption prompt information to a user so that the user can detect the interruption reason.
Optionally, sending an interruption prompt message to the user specifically includes:
retrying to start the batch information system and continuously executing the batch processing service;
judging whether the retry times reach the preset times or not;
if so, sending interruption prompt information to the user;
if not, the batch information system is retried to be started until the retry times reach the preset times.
Optionally, the causing the batch information system to execute a batch processing service specifically includes:
for each transaction service contained in the pressure test case, accounting is carried out on a clearing file and service data corresponding to the transaction service through the batch information system;
and when the accounting is correct, the transaction business is posted to generate a posting bill corresponding to the transaction business.
Optionally, determining the pressure test result of the batch information system specifically includes:
determining the processing time length of each thread in the process of executing the batch processing service;
for each operation step of executing the batch processing service, determining each thread contained in the operation step;
determining the processing time length of the operation step according to the processing time length of each thread included in the operation step;
and determining a pressure test result of the batch information system according to the processing duration of each operation step of executing the batch processing service.
Optionally, the method further comprises:
randomly generating a plurality of application files, wherein the application files at least comprise user names, identity card numbers and mobile phone numbers;
determining a pressure test case according to the generated each Shenka file;
inputting the pressure test case into a batch information system so as to enable the batch information system to execute batch processing service;
and when the batch processing service is executed, determining a pressure test result of the batch information system.
This specification provides a pressure test device, includes:
the business creating module is used for creating clearing files and business data corresponding to a plurality of transaction businesses;
the first determining module is used for determining a pressure test case according to the generated clearing files and the generated business data;
the execution module inputs the pressure test case into a batch information system so as to enable the batch information system to execute batch processing service;
the second determining module is used for determining a pressure test result of the batch information system when the batch processing service is executed, wherein the pressure test result at least comprises a service index, and the service index comprises processing duration of each operation step for executing the batch processing service;
and the prompting module prompts a user to optimize the batch information system when the service index in the pressure test result does not accord with a preset reference condition.
The present specification provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described stress testing method.
The present specification provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the pressure testing method when executing the program.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
when the pressure test is performed on the batch information system, the clearing files and the service data corresponding to a plurality of transaction services can be generated first, and the pressure test case is determined based on the generated clearing files and the generated service data. And then inputting the pressure test case into a batch information system, and executing batch processing service through the batch information system. And finally, when the batch processing service is executed, determining a pressure test result of the batch information system, and prompting a user to optimize the batch information system when a service index in the pressure test result does not accord with a preset reference condition. The processing duration of each operation step in the batch information system in the process of executing the batch processing service is determined, and each operation step is detected, so that each operation step in the batch information system is optimized, and the optimization cost is saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart of a pressure testing method provided in an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a pressure testing apparatus provided in an embodiment of the present disclosure;
fig. 3 is a schematic view of an electronic device implementing a pressure testing method according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person skilled in the art without making any inventive step based on the embodiments in the description belong to the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Generally, a bank generally processes a credit card service by using an online and batch dual information system, where the online information system needs to perform service processing in real time according to a service request sent by a user, such as: a card application service, a payment service, a transaction service and the like. The batch information system needs to execute batch processing services according to the service data of each service processed by the online information system. The batch processing business comprises various businesses such as batch clearing account-entering business, batch applying card business, batch integral calculation and the like. For example, the clearing process is carried out in batch according to the business data of each transaction business recorded by the online information system and the clearing file sent by the clearing platform. And generating entity credit card information in batches according to the card application files recorded when the online information system executes the card application service.
It should be noted that, the online information system processes a service of a user after receiving a service request of the user. And the batch information system generally performs business processing in batches based on a large batch of stored user data, for example, batch processing of consumption accounting business of 100 ten thousand users.
The clearing platform sends the clearing file to the batch information system of the bank at night usually at 10:00, so that the batch information system performs calculation verification and archiving according to the business data of each transaction business recorded by the in-line information system in one day and the received clearing file.
Since the batch information system often needs to clear a large batch of transaction services in a short time, the batch information system has a high operation pressure. Thus, before the batch information system is brought online, the batch information system may be stress tested to check reliability, stability, etc. of the batch information system.
At present, when a batch information system is subjected to a stress test, a large amount of clearing files and service data are generally generated by editing manually according to formats and data contents in the clearing files acquired historically and the service data recorded by an online information system. And then, determining a pressure test case based on the large-batch clearing files and the service data, and operating the pressure test case in the batch information system. And finally, after the pressure test case is operated, determining various performance indexes of the batch of information system equipment, such as CPU utilization rate, memory utilization rate and the like.
In addition, in the process of performing the stress test, when the batch information system is unstable or the stress test case runs in error, an interrupt is often generated, that is, the execution of the batch processing service is stopped. Therefore, in the prior art, when the batch information system is subjected to the pressure test, the process of batch processing needs to be monitored manually, when the batch processing is interrupted, the interruption reason is detected in time, the batch information system is restarted manually, and the pressure test case is executed continuously.
In the pressure testing method in the prior art, when the pressure testing case is determined, the pressure testing case is determined based on the clearing file and the service data generated by manual editing, and the whole batch processing process needs to be monitored manually, so that a large amount of human resources are needed. Further, in the conventional pressure testing method, performance parameters of each system device in the batch information system are detected, only the overall operation efficiency of the batch information system is detected, and only hardware devices such as servers are added, so that the pressure of the batch information system is reduced, and high equipment cost is often required.
Based on the above problems in the prior art, the present specification provides a pressure testing method, which can automatically generate clearing files and service data for performing pressure testing based on clearing files and service data pre-stored in a database, and monitor the execution state of a pressure test case through a monitoring code, so as to know the execution condition of a batch processing service in real time, thereby reducing the consumption of human resources.
In addition, the pressure testing method provided by the present specification can also detect the service index of the batch information system, that is, the processing duration of each operation step in the process of executing the batch processing service. When the processing time of a certain operation step is detected to be too long, the processing time of the batch processing service can be reduced by optimizing codes and the like. The high cost of adding equipment is reduced.
Fig. 1 is a schematic flow chart of a pressure testing method provided in an embodiment of the present disclosure, which may specifically include the following steps:
s100: and generating clearing files and service data corresponding to a plurality of transaction services.
In one or more embodiments of the present disclosure, the batch information system is configured to perform calculation and verification in batches to generate an entry document according to a clearing file sent by the clearing platform and business data of a transaction business recorded by the online information system, so that when performing a pressure test on the batch information system in the present disclosure, a large batch of clearing files and corresponding business data may be determined first, and then a pressure test may be performed based on the large batch of clearing files and the business data.
It should be noted that the pressure testing method provided in this specification may be executed by a server that executes a pressure testing process, where the server may be a single server or a system composed of multiple servers, and this specification does not limit this, and may be specifically set as needed.
Specifically, when determining the clearing document and the business data, the server may generate a large amount of clearing documents for performing the stress test and the business data of the business service according to the clearing document historically stored in the database and the business data of the business service processed by the online information system. The clearing document and the business data of the transaction business have a corresponding relation, and the clearing document of the same transaction business corresponds to the business data of the transaction business.
Alternatively, in this specification, the server may randomly generate a plurality of clearing documents and business data by automatic numbering according to data formats in the clearing documents and business data of the transaction business stored in history. The pressure test is used for detecting the performance condition of system equipment when the batch information system executes each batch processing service, but not for detecting whether the batch processing service can be normally executed, so that the randomly generated clearing files and service data are completely consistent in order to ensure the normal execution of batch clearing.
S102: and determining a pressure test case according to the generated clearing files and the service data.
In one or more embodiments of the present disclosure, after generating clearing files and business data of a large batch of transaction business, a stress test case may be determined, so as to perform a stress test on a batch information system based on the stress test case.
Specifically, the server may determine, as a test data, the clearing file and the service data corresponding to the same transaction service according to each generated clearing file and each generated service data. And then, determining a pressure test case according to the determined large batch of test data.
It should be noted that, because the batch information system can execute batch processing services of a plurality of different scenarios, when determining the stress test case, test data corresponding to each different batch processing service can be generated for each batch processing service of each scenario, so as to determine the stress test case, and when executing the stress test case in the batch information system, each batch processing service can be executed in series or in parallel. For convenience of description, the above description only takes the test data of the batch clearing posting service as an example of the stress test case.
S104: and inputting the stress test case into a batch information system so as to enable the batch information system to execute batch processing service.
In one or more embodiments of the present disclosure, after the stress test case is determined through step S102, the stress test case may be executed through the batch information system to perform a stress test.
Specifically, the server may input the stress test case into a batch information system, and then, for each transaction service included in the stress test case, the batch information system performs accounting on the clearing file and the service data corresponding to the transaction service, and when the accounting is correct, the transaction service is posted to generate a posting bill corresponding to the transaction service. The account-entering bill comprises information such as payment amount, repayment amount and account-entering time.
Further, when the clearing document and the service data are checked, each field information included in the clearing document and the service data needs to be checked respectively. The clearing document and the service data comprise information such as a user account, transaction time, transaction amount, transaction type and the like.
S106: and when the batch processing service is executed, determining a pressure test result of the batch information system.
In one or more embodiments of the present description, the results of stress testing of a batch information system may be statistically analyzed after a batch processing service is performed.
Specifically, after the batch processing service is executed by the batch information system, the server may determine a processing time of each thread in the batch information system during execution of the batch processing service. And then, for each operation step in the batch processing process, determining each thread included in the operation step, and determining the processing time length of the operation step based on the processing time length of each thread included in the operation step. And finally, determining a service index for executing the batch processing service according to the processing duration of each operation step for executing the batch processing service, and determining a pressure test result of the batch information system according to the service index of each operation step. Each operation step comprises a plurality of threads, and the threads can be serial or parallel. The operation steps may be, for example, a query step, an update step, a verification step, and the like.
Further, the pressure test result further includes performance parameters of each system device of the batch information system, such as: CPU utilization rate, memory occupancy rate, network bandwidth and the like.
S108: and when the service index in the pressure test result does not accord with the preset reference condition, prompting a user to optimize the batch information system.
In one or more embodiments of the present disclosure, the batch information system may be optimized by analyzing the stress test results after the stress test results are determined.
Specifically, after the processing time length of each operation step in the process of executing the batch processing service is determined, the server compares the processing time length of the operation step in the process of testing the pressure with the processing time length preset for the operation step for each operation step, and determines that the service code corresponding to the operation step may have the problems of redundancy and the like when the processing time length of the operation step exceeds the preset processing time length, so that a user can be prompted to optimize the service code corresponding to the operation step, and the operation pressure of the batch information system is reduced. The preset reference condition is a standard processing time length preset by a tester according to experience, different operation steps respectively correspond to different reference conditions, and the preset reference condition can be specifically set according to needs, and the preset reference condition is not limited in the specification.
Based on the pressure testing method shown in fig. 1, when a batch information system is subjected to pressure testing, clearing files and service data corresponding to a plurality of transaction services can be generated first, and a pressure testing case is determined based on the generated clearing files and the generated service data. And then inputting the pressure test case into a batch information system, and executing batch processing service through the batch information system. And finally, when the batch processing service is executed, determining a pressure test result of the batch information system, and prompting a user to optimize the batch information system when a service index in the pressure test result does not accord with a preset reference condition. The processing duration of each operation step in the batch information system in the process of executing the batch processing service is determined, and each operation step is detected, so that each operation step in the batch information system is optimized, and the optimization cost is saved.
In addition, in the process of executing the batch processing service through the batch information system, because the processed data volume is large, an interruption phenomenon caused by reasons such as unstable system performance or service execution errors may occur, so in this specification, a monitoring code may be preset for monitoring the execution state of the pressure test case, and when it is monitored that the execution state is in the interruption state, the batch information system may be retried to start first, and the pressure test case continues to be executed, thereby completing the batch processing service. And then, judging whether the retry frequency reaches a preset frequency, if so, determining that the service execution is wrong, sending interruption prompt information to a user (tester) to prompt the user to detect the reason of interruption, and if not, determining that the system environment is unstable, and at this moment, retrying to start the batch information system.
In another embodiment of the present specification, the online information system is also used for executing a card application service, but when the user transacts the card application service through the online information system in real time, the online information system only performs simple verification and returns a credit card account number to the user, but the entity credit card is not generated in real time. Therefore, the batch information system is also used for further verification according to the application card file filled in the online information system by the user, generating the information of the entity credit card based on the user information in the application card file, and sending the information to the card flow system for subsequent card manufacturing.
Therefore, in the present specification, several schardian documents can be randomly generated, and a pressure test case is determined according to the generated schardian documents, so as to perform a pressure test through subsequent steps.
Furthermore, when the batch information system executes the batch processing service, the batch information system can also simultaneously carry out accounting on the transaction service, generate an account entry bill and execute the batch application service. Therefore, when the batch information system is subjected to the stress test, the stress test case can be generated based on each clearing file, the business data and the application file. And then inputting the pressure test case into the batch information system, and enabling the batch information system to execute application card business, accounting check-in business and the like. And finally, when the batch processing service is executed, determining a pressure test result.
When generating the application file, a new application file can be randomly generated through automatic number generation based on the format and the data range of the application file. The application file comprises user information such as user name, identity card number, mobile phone number, home address and the like.
Furthermore, in the present specification, the batch information system may further perform services such as overdue batch calculation, credit batch calculation, and batch generation of marketing messages according to the file data such as repayment files, credit batch files, and marketing message files provided by the bank. Therefore, when the batch information system is subjected to pressure test, data corresponding to different batch processing services can be randomly generated, and the method comprises the following steps: clearing files, business data of transaction business, application card files, point files, marketing short message files and the like, determining a pressure test case based on the generated data, executing each batch processing business in a batch information system through subsequent steps, and determining a pressure test result.
It should be noted that, for the batch processing services in different scenarios such as the application service, the accounting entry service, and the point calculation, the services may be executed in series or in parallel. Among them, some services have a sequence, so serial execution is required. For example, for A, B, C three batch processing services, the service processing is required to be performed on the service C according to the service data a obtained from the service a and the service data B obtained from the service B, so that the service A, B can be executed in parallel first, and the service C can be executed after the service data a and the service data B are obtained. Taking the batch calculation of overdue as an example, when determining the overdue time of the user, the information such as the consumption time and the consumption amount of the user is often determined according to the posting bill of the user.
In this specification, after the pressure test is performed on each scene service executed by the batch information system, the pressure test result further includes a processing duration of each scene service and a processing duration of each operation step in each scene service executed.
Based on the pressure testing method shown in fig. 1, the embodiment of the present specification further provides a schematic structural diagram of a pressure testing apparatus, as shown in fig. 2.
Fig. 2 is a schematic structural diagram of a pressure testing apparatus provided in an embodiment of the present disclosure, where the apparatus includes:
the number making module 200 is used for generating clearing files and service data corresponding to a plurality of transaction services;
the first determining module 202 is used for determining a pressure test case according to the generated clearing files and the generated business data;
the execution module 204 is used for inputting the pressure test cases into a batch information system so as to enable the batch information system to execute batch processing services;
a second determining module 206, configured to determine a pressure test result of the batch information system when the batch processing service is executed, where the pressure test result at least includes a service indicator, and the service indicator includes a processing duration for executing each operation step of the batch processing service;
and the prompting module 208 prompts a user to optimize the batch information system when the service index in the pressure test result does not meet a preset reference condition.
Optionally, the number making module 200 is specifically configured to generate a plurality of clearing files and service data according to the historically stored clearing files and service data, where a corresponding relationship exists between the clearing files and the service data.
Optionally, the pressure testing apparatus further includes a monitoring module, where the monitoring module 210 is specifically configured to monitor an execution state of the pressure test case through a monitoring code, where the execution state includes an interruption state and a completion state, and when it is monitored that the execution state is in the interruption state, send interruption prompt information to a user, so that the user detects an interruption reason.
Optionally, the monitoring module 210 is specifically configured to retry to start the batch information system, continue to execute the batch processing service, and determine whether the retry number reaches a preset number, if so, send an interrupt notification message to the user, and if not, retry to start the batch information system until the retry number reaches the preset number.
Optionally, the execution module 204 is specifically configured to, for each transaction service included in the stress test case, perform accounting on the clearing file and the service data corresponding to the transaction service through the batch information system, and when the accounting is correct, enter the transaction service and generate an account bill corresponding to the transaction service.
Optionally, the second determining module 206 is specifically configured to determine a processing time length of each thread in the process of executing the batch processing service, determine, for each operation step of executing the batch processing service, each thread included in the operation step, determine, according to the processing time length of each thread included in the operation step, the processing time length of the operation step, and determine, according to the processing time length of each operation step of executing the batch processing service, a pressure test result of the batch information system.
Optionally, the number making module 200 and the first determining module 202 are further configured to randomly generate a plurality of application files, where each application file at least includes a user name, an identity card number, and a mobile phone number, determine a pressure test case according to each generated application file, input the pressure test case into a batch information system, so that the batch information system executes a batch processing service, and when the batch processing service is executed, determine a pressure test result of the batch information system.
Embodiments of the present description also provide a computer-readable storage medium, where the storage medium stores a computer program, and the computer program can be used to execute the pressure testing method provided in fig. 1.
Based on the pressure testing method shown in fig. 1, the embodiment of the present specification further provides a schematic structural diagram of the electronic device shown in fig. 3. As shown in fig. 3, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, but may also include hardware required for other services. The processor reads a corresponding computer program from the non-volatile memory into the memory and then runs the computer program to implement the pressure testing method shown in fig. 1.
Of course, besides the software implementation, the present specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may be hardware or logic devices.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present specification, and is not intended to limit the present specification. Various modifications and alterations to this description will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A pressure testing method, comprising:
generating clearing files and business data corresponding to a plurality of transaction businesses;
determining a pressure test case according to the generated clearing files and the service data;
inputting the pressure test case into a batch information system so as to enable the batch information system to execute batch processing service;
when the batch processing service is executed, determining a pressure test result of the batch information system, wherein the pressure test result at least comprises a service index, and the service index comprises processing duration of each operation step for executing the batch processing service;
and when the service index in the pressure test result does not accord with the preset reference condition, prompting a user to optimize the batch information system.
2. The method of claim 1, wherein generating clearing documents and business data corresponding to a plurality of transaction businesses comprises:
and generating a plurality of clearing files and service data according to the historically stored clearing files and service data, wherein the clearing files and the service data have a corresponding relation.
3. The method of claim 1, wherein the method further comprises:
monitoring the execution state of the stress test case through a monitoring code, wherein the execution state comprises an interruption state and a completion state;
and when the execution state is monitored to be in an interruption state, sending interruption prompt information to a user so that the user can detect the interruption reason.
4. The method of claim 3, wherein sending the interrupt notification message to the user specifically comprises:
retrying to start the batch information system and continuously executing the batch processing service;
judging whether the retry times reach the preset times or not;
if so, sending interruption prompt information to the user;
if not, the batch information system is retried to be started until the retry times reach the preset times.
5. The method of claim 1, wherein causing the batch information system to perform batch processing services comprises:
for each transaction service contained in the pressure test case, accounting is carried out on a clearing file and service data corresponding to the transaction service through the batch information system;
and when the accounting is correct, the transaction business is posted to generate a posting bill corresponding to the transaction business.
6. The method of claim 1, wherein determining the stress test result for the batch information system specifically comprises:
determining the processing time length of each thread in the process of executing the batch processing service;
for each operation step of executing the batch processing service, determining each thread contained in the operation step;
determining the processing time length of the operation step according to the processing time length of each thread included in the operation step;
and determining a pressure test result of the batch information system according to the processing duration of each operation step of executing the batch processing service.
7. The method of claim 1, wherein the method further comprises:
randomly generating a plurality of application files, wherein the application files at least comprise user names, identity card numbers and mobile phone numbers;
and determining a pressure test case according to the generated each application card file.
8. A pressure testing device is characterized by specifically comprising:
the business creating module is used for creating clearing files and business data corresponding to a plurality of transaction businesses;
the first determining module is used for determining a pressure test case according to the generated clearing files and the generated business data;
the execution module inputs the pressure test case into a batch information system so as to enable the batch information system to execute batch processing service;
the second determining module is used for determining a pressure test result of the batch information system when the batch processing service is executed, wherein the pressure test result at least comprises a service index, and the service index comprises processing duration of each operation step for executing the batch processing service;
and the prompting module prompts a user to optimize the batch information system when the service index in the pressure test result does not accord with a preset reference condition.
9. A computer-readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-7 when executing the program.
CN202011206044.1A 2020-11-02 2020-11-02 Pressure testing method and device Withdrawn CN112416725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011206044.1A CN112416725A (en) 2020-11-02 2020-11-02 Pressure testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011206044.1A CN112416725A (en) 2020-11-02 2020-11-02 Pressure testing method and device

Publications (1)

Publication Number Publication Date
CN112416725A true CN112416725A (en) 2021-02-26

Family

ID=74826884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011206044.1A Withdrawn CN112416725A (en) 2020-11-02 2020-11-02 Pressure testing method and device

Country Status (1)

Country Link
CN (1) CN112416725A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204490A (en) * 2021-05-28 2021-08-03 中国工商银行股份有限公司 Batch operation testing method and device, electronic equipment and storage medium
CN115499355A (en) * 2022-09-30 2022-12-20 中国建设银行股份有限公司 Pressure testing method, device, equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648874A (en) * 2005-03-18 2005-08-03 中国工商银行 Bank host operation pressure test system
US20130305230A1 (en) * 2012-05-08 2013-11-14 International Business Machines Corporation Optimization apparatus, optimization method and optimization program
CN106095688A (en) * 2016-06-23 2016-11-09 微梦创科网络科技(中国)有限公司 A kind of software performance testing method and device
CN106485141A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The detection of abnormal traffic thread and processing method under JAVA environment
CN106649500A (en) * 2016-10-11 2017-05-10 中国工商银行股份有限公司 Data verification method and system
CN109324946A (en) * 2018-09-10 2019-02-12 天津字节跳动科技有限公司 Operational monitoring method, apparatus, electronic equipment and computer readable storage medium
CN109684219A (en) * 2018-12-26 2019-04-26 百度在线网络技术(北京)有限公司 System performance testing method, apparatus and storage medium
CN109859043A (en) * 2019-01-14 2019-06-07 阿里巴巴集团控股有限公司 A kind of exchange settlement method and trade clearing system
CN110458379A (en) * 2018-05-08 2019-11-15 阿里巴巴集团控股有限公司 Pressure testing system, method, apparatus and electronic equipment
CN110955593A (en) * 2019-10-28 2020-04-03 北京三快在线科技有限公司 Client test method and device, electronic equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1648874A (en) * 2005-03-18 2005-08-03 中国工商银行 Bank host operation pressure test system
US20130305230A1 (en) * 2012-05-08 2013-11-14 International Business Machines Corporation Optimization apparatus, optimization method and optimization program
CN106095688A (en) * 2016-06-23 2016-11-09 微梦创科网络科技(中国)有限公司 A kind of software performance testing method and device
CN106649500A (en) * 2016-10-11 2017-05-10 中国工商银行股份有限公司 Data verification method and system
CN106485141A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The detection of abnormal traffic thread and processing method under JAVA environment
CN110458379A (en) * 2018-05-08 2019-11-15 阿里巴巴集团控股有限公司 Pressure testing system, method, apparatus and electronic equipment
CN109324946A (en) * 2018-09-10 2019-02-12 天津字节跳动科技有限公司 Operational monitoring method, apparatus, electronic equipment and computer readable storage medium
CN109684219A (en) * 2018-12-26 2019-04-26 百度在线网络技术(北京)有限公司 System performance testing method, apparatus and storage medium
CN109859043A (en) * 2019-01-14 2019-06-07 阿里巴巴集团控股有限公司 A kind of exchange settlement method and trade clearing system
CN110955593A (en) * 2019-10-28 2020-04-03 北京三快在线科技有限公司 Client test method and device, electronic equipment and readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204490A (en) * 2021-05-28 2021-08-03 中国工商银行股份有限公司 Batch operation testing method and device, electronic equipment and storage medium
CN115499355A (en) * 2022-09-30 2022-12-20 中国建设银行股份有限公司 Pressure testing method, device, equipment and medium
CN115499355B (en) * 2022-09-30 2024-04-26 中国建设银行股份有限公司 Pressure testing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN109033772B (en) Verification information input method and device
CN110650036A (en) Alarm processing method and device and electronic equipment
CN106487603B (en) Response testing method and device
CN110992188B (en) Transaction processing method, device and equipment
CN112416725A (en) Pressure testing method and device
CN110750440A (en) Data testing method and terminal equipment
CN112035341A (en) Automatic testing method and device
CN111582868A (en) Transaction request processing method, device and equipment
CN113312259B (en) Interface testing method and device
CN114819012A (en) Graphic code checking method and device
CN113408254A (en) Page form information filling method, device, equipment and readable medium
CN109039695B (en) Service fault processing method, device and equipment
CN110647463B (en) Method and device for restoring test breakpoint and electronic equipment
CN109597706B (en) Detection method, device and system for checking difference data
CN116822606A (en) Training method, device, equipment and storage medium of anomaly detection model
CN115080449A (en) Test method, device, equipment, medium and program product
CN110245115B (en) File processing method, engine and system
CN112596781A (en) Service execution and service configuration method and device
CN110018957B (en) Method and device for detecting resource loss check script
CN109903165B (en) Model merging method and device
CN113760747A (en) Software testing method, device, equipment, storage medium and program product
CN111967764A (en) Service access verification method and device and electronic equipment
CN111967767A (en) Business risk identification method, device, equipment and medium
CN111737129A (en) Service control method, service control device, computer readable medium and electronic equipment
CN116594862B (en) DBMS test method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210226

WW01 Invention patent application withdrawn after publication