WO2019104844A1 - Automatic performance testing method, apparatus and device for monetary fund system, and storage medium - Google Patents

Automatic performance testing method, apparatus and device for monetary fund system, and storage medium Download PDF

Info

Publication number
WO2019104844A1
WO2019104844A1 PCT/CN2018/072928 CN2018072928W WO2019104844A1 WO 2019104844 A1 WO2019104844 A1 WO 2019104844A1 CN 2018072928 W CN2018072928 W CN 2018072928W WO 2019104844 A1 WO2019104844 A1 WO 2019104844A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
fund system
test
money fund
virtual money
Prior art date
Application number
PCT/CN2018/072928
Other languages
French (fr)
Chinese (zh)
Inventor
伍朗
伍振亮
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019104844A1 publication Critical patent/WO2019104844A1/en

Links

Images

Classifications

    • 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/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • the present application belongs to the field of software testing technology, and more particularly to a method, device, device and storage medium for automatic performance testing of a money fund system.
  • the performance test of the money fund system often involves more than one hundred kinds of business transactions.
  • the manual method was adopted to arrange a batch of outlets and a large number of tellers in the country to coordinate and simulate the operation of the business.
  • This test method is neither flexible nor costly. A lot of manpower and time.
  • the present application provides a method, device, device and storage medium for automatic performance testing of a money fund system, which can make the performance testing process unaffected by the front and rear ends of the system, reduce the re-run rate, and form a unified statistical rule. .
  • the first aspect of the present application provides a method for testing an automatic performance of a money fund system, the method comprising the following steps:
  • the second aspect of the present application provides an automatic performance testing device for a money fund system, the device comprising:
  • a mirror generation module for connecting to the money fund system to generate a mirror to establish a virtual money fund system
  • a data importing module configured to clear the historical data of the virtual money fund system, and import the preparation data
  • a performance test module for applying an automated test case to perform performance testing on the virtual money fund system
  • the report generation module is configured to acquire key parameters of the performance test, and automatically generate a test report according to the key parameter.
  • a third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
  • a fourth aspect of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
  • the method, device, device and storage medium for the automatic performance test of the money fund system provided by the present application reduce the test environment by establishing a virtual money fund system, clearing historical data, and importing the preparation data, thereby reducing the test environment to the performance test process. Influence, reduce the re-run rate, and automatically generate test reports based on key parameters to make the test results comparable, and more objectively evaluate the performance of the money fund system.
  • FIG. 1 is a flowchart of a method for testing an automatic performance of a money fund system according to an embodiment of the present application
  • FIG. 2 is a flowchart of a method for testing an automatic performance of a money fund system according to another embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an automatic performance testing device for a money fund system according to another embodiment of the present application.
  • Figure 4 is another schematic structural view of the embodiment shown in Figure 3;
  • FIG. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a method for testing an automatic performance of a money fund system provided by an embodiment of the present application.
  • the method for automatically testing the money fund system includes the following steps:
  • Step S100 connecting the money fund system, generating an image and establishing a virtual money fund system according to the image.
  • the Monetary Fund system is virtualized to separate the test environment, which greatly reduces the impact of the test environment, reduces the re-run rate, and improves the efficiency of performance testing.
  • test machine can be connected to the money fund system, and the test machine can be connected to the money fund system through the program interface, and the virtual currency fund system is established according to the generated image file according to the image file generated by the money fund system.
  • the image file may be generated by the test machine program according to the preset test rule and selected part (or all) of the data in the money fund system, and the image file may be generated by the test machine program for use in the subsequent process.
  • the system image required for the test is generated, and does not constitute a limitation on the present application.
  • step S101 the historical data of the virtual money fund system is cleared, and the preparation data is imported.
  • the relevant data in the real system will remain in the virtual system.
  • the retained data needs to be cleared first to avoid the remaining data pairs.
  • the test process generates interference and is then imported into the preparation data for automatic performance testing for performance testing.
  • the preparation data may be various business transaction data such as a network point, a teller, a card number, a transaction account, a customer name, a certificate, a type, a document number, a signing agreement number, etc., or may be data of the front and back ends of the money fund system.
  • the test machine is extracted according to the needs, and is imported into the virtual money fund system during the automatic performance test to establish an independent test environment, which enables the automatic performance test of each stage to proceed smoothly.
  • the front and back of the Monetary Fund system refers to the upstream and downstream of the money fund, including: user account opening system, audit audit system, commission management system, broker management system and fund settlement system.
  • Step S102 applying an automated test case to perform performance testing on the virtual money fund system.
  • Performance testing is mainly to test the response speed of a system's function points and the consumption of resources (CPU, memory, disk, etc.). For example, for the system login function, the system will not ⁇ if many users log in. Thus, at the critical point, the maximum number of users the system can accommodate is derived.
  • the purpose of the Monetary Fund System Performance Test is to verify the stability of the system by setting different system pressures and testing whether the system's functional points can maintain a normal response under various pressures.
  • the automated test cases include automated test scripts under different system pressures, which can simulate different scenarios and make the performance test results more reliable. This can include, but is not limited to, testing under the following stresses:
  • Continuous fatigue online refers to long-term stress test under high transaction rate to examine the performance of the money fund system under long-term and heavy load conditions.
  • the embodiment of the present application simulates different stress scenarios by inputting different numbers of concurrent users.
  • the number of concurrent users refers to the number of users who use the system to trade at the same time.
  • Step S103 Obtain key parameters of the performance test, and automatically generate a test report according to the key parameters.
  • the performance of the money fund system can be specifically reflected in the key parameters of the virtual money fund system.
  • Key parameters may include, but are not limited to, response time, response success rate, CPU usage, memory usage, disk usage, number of processes, and network response speed. These key parameters can objectively reflect the performance of the money fund system. index.
  • test side of the virtual money fund system After running the automated test case, the test side of the virtual money fund system acquires these key parameters and automatically generates test reports based on these parameters.
  • the key parameters of the virtual money fund system running the automation use case are obtained, and the parameter values in the test report template are replaced according to the key parameters to generate a test report.
  • the test report can be a report template, and the report template has replaceable parameter values, and the parameter values represent various key parameters.
  • the report template automatically obtains key parameters of the performance test, in the template. The parameter values are replaced to generate a test report.
  • the automatic performance testing method of the money fund system provided by the embodiment of the present application, by establishing a virtual money fund system, and clearing historical data, importing preparation data, making the test environment independent, reducing the influence of the test environment on the performance testing process, and reducing the re-run
  • the test report is automatically generated based on key parameters, making the test results comparable and more objectively evaluating the performance of the IMF system.
  • FIG. 2 is a flowchart of a method for testing the automatic performance of the money fund system provided by another embodiment of the present application.
  • the method for automatically testing the money fund system includes the following steps:
  • Step S200 connecting the money fund system, generating a mirror to establish a virtual money fund system.
  • step S201 the historical data of the virtual money fund system is cleared, and the preparation data is imported.
  • Step S202 applying an automated test case to perform performance testing on the virtual money fund system.
  • Step S203 obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
  • the steps S200 to S203 are the same as the steps S100 to S103 in the previous embodiment. Please refer to the previous embodiment, and details are not described herein again.
  • step S204 the maximum user capacity of different services in the virtual money fund system is automatically obtained according to the test report, and the weight thresholds of different services are generated.
  • the maximum user occupancy number refers to the maximum number of users that the money fund system can accommodate in the case of stable operation, and can reflect the performance of the money fund system.
  • the key parameters obtained in the template of the test report include the maximum user capacity.
  • the test report template can obtain the maximum user capacity.
  • the maximum user capacity is the obtained user capacity when the key parameter reaches the preset value.
  • the key parameter reaches the preset value refers to the number of user capacity obtained when some or all of the key parameters reach a predetermined value, for example, the user of the test machine system reaches 30%, or the memory usage rate reaches 20%.
  • the number of accommodations can be specified according to actual conditions. This application does not limit the preset values.
  • the transaction volume of different services is different.
  • the transaction volume of the business with wider usage is larger than the transaction volume with narrower usage.
  • the automated test cases will be set according to these different services. Different test scenarios.
  • the consumption of system resources is different. For example, when the number of concurrent users reaches 1000, the CPU usage is 20%, and the service B is When the number of concurrent users reaches 800, the CPU usage is 20%.
  • the maximum number of users with a CPU usage of 25% is A1
  • the maximum number of users with a CPU usage of 25% is B1
  • the service C has a maximum CPU usage of 25%.
  • the number of accommodating users is C1
  • the maximum number of accommodating users whose service D is 25% is D1.
  • the weight threshold of each service is the maximum number of users of the service and the maximum number of users of the service.
  • the ratio of the sum, for example, the weight threshold of the service A is A1/(A1+B1+C1+D1).
  • Step S205 Perform quality of service control on the service group in each service according to the real-time weight and the weight threshold of each service.
  • each service After obtaining the weight threshold of each service according to the maximum user capacity, each service can be optimally arranged in the actual server group.
  • server resources can be optimized for 30% of service A and 20% of service B in the actual server group.
  • the arrangement makes the Monetary Fund system more in line with actual usage and improves the performance of the IMF system.
  • the bandwidth of the service is increased to reduce the delay of accessing the service, reduce data loss, and improve service quality. For example, when the service A is actually applied. If the weight exceeds the weight threshold, the bandwidth of service A is increased, the delay for accessing the service is reduced, and the service quality is improved.
  • the method for testing the automatic performance of the money fund system obtained by the embodiment of the present application obtains the maximum user capacity of each service, generates a weight threshold for each service according to the maximum user capacity, and pairs the service according to the weight threshold of the service.
  • the resources in the server group are optimized. When the real-time weight of a service exceeds the weight threshold, the bandwidth of the service is increased, the delay of accessing the service is reduced, and the service quality is improved.
  • Xi is the service priority
  • Twait is the dwell time
  • K is the time weighted value.
  • different service corresponding time weighting values may be different.
  • the time weighting value can include K1 and K2.
  • GBR Guard BitRate
  • K1 the time weighted value of the data service including the voice service and the video call type
  • N-GBR No-Guaranteed Bit Rate
  • FIG. 3 is a schematic structural diagram of an automatic performance testing device for a money fund system provided by an embodiment of the present application.
  • the money fund system automatic performance testing device 30 includes a mirror generation module 301, a data import module 302, a performance test module 303, and a report generation module 304.
  • the image generation module 301 is configured to connect to the money fund system and generate a mirror to establish a virtual money fund system.
  • the image generation module 301 is connected to the money fund system, and generates a virtual money fund system according to the image file of the money fund system generation system.
  • the image information may be generated by the image generation module 301 by selecting the data in the partial (or all) money fund system according to the preset test rule.
  • the image file may be generated by the image generation module 301.
  • the system image required for the test is generated in the subsequent process, and does not constitute a limitation on the present application.
  • the data importing module 302 is configured to clear the historical data of the virtual money fund system and import the preparation data.
  • the data importing module 302 is used to clear the data retained by the virtual money fund system, and then import the preparation data.
  • the data prepared by the data importing module 302 may be various business transaction data such as a network point, a teller, a card number, a transaction account, a customer name, a certificate, a type, a document number, a signing agreement number, etc., or may be before or after the money fund system. Data at the end. These data are extracted by the data import module 302, imported into the virtual money fund system, and an independent test environment is established, which enables the automatic performance test of each stage to proceed smoothly.
  • the performance test module 303 is configured to apply an automated test case to perform performance testing on the virtual money fund system.
  • the performance test module 303 includes automated test cases under different system pressures, and running these automated test cases can perform performance tests on the virtual money fund system.
  • the performance testing module 303 simulates a scenario in which different system pressures are implemented by inputting different numbers of concurrent users to the virtual money fund system.
  • the report generation module 304 is configured to acquire key parameters of the performance test, and automatically generate a test report according to the key parameters.
  • the report generation module 304 After running the automated test case to perform performance testing on the virtual money fund system, the report generation module 304 obtains key parameters of the performance test process and automatically generates a test report.
  • the report generation module 304 has a report template, and the report template has a replaceable parameter value. After the key parameter is obtained, the template in the report generation module 304 automatically acquires key parameters of the performance test, in the template. The parameter values are replaced and a test report is generated.
  • FIG. 4 is another schematic structural diagram of the money testing system automatic testing device provided by the embodiment of the present application.
  • the money fund system automatic test device 30 also includes a quality control module 305.
  • the quality control module 305 is configured to automatically acquire the maximum user capacity of each service in the virtual money fund system according to the test report, generate a weight threshold value for each service, and perform real-time weights and weight threshold values according to each service. Each service performs quality of service control in the server group. When the weight of a service exceeds its corresponding weight threshold, the bandwidth for accessing the service is increased.
  • the report generation module 304 can obtain the maximum user capacity. number.
  • the quality control module 305 can generate a weight weight threshold for each service, and perform quality of service control on each service in the server group according to the real-time weight and weight threshold of each service. .
  • server resources can be optimized for 30% of service A and 20% of service B in the actual server group.
  • the arrangement makes the Monetary Fund system more in line with actual usage and improves the performance of the IMF system.
  • the automatic performance testing device of the money fund system reduces the impact of the test environment by creating a virtual test system, and reduces the retry rate.
  • the test report is automatically generated by acquiring key parameters to form a unified statistics. Rules to make test results comparable.
  • the resources of the service are optimized in the server group according to the weight of the service, and then the preset threshold is set according to the weight of each service, when the real-time weight of a certain service exceeds the preset threshold. Limit the time, increase the bandwidth of the service, reduce the delay of accessing services, and improve the quality of service.
  • Another embodiment of the present application provides a computer readable storage medium having stored thereon computer readable instructions that, when executed by a processor, implement the automatic performance of the money fund system in the above embodiments Test methods, to avoid repetition, will not be described here.
  • the computer readable instructions when executed by the processor, the functions of the modules/units in the automatic performance testing device of the money fund system in the above embodiments are implemented. To avoid repetition, details are not described herein again.
  • FIG. 5 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 6 includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and executable on the processor 60.
  • the processor 60 executes the computer readable instructions 62 to implement the various steps of the money fund system automatic performance testing method of the above-described embodiments, such as steps S100, S101, S102, and S103 shown in FIG.
  • the functions of the modules/units of the money fund system automatic performance testing device in the above embodiment are implemented, such as the image generation module 301, the data import module 302, and the performance test module shown in FIG. 303 and report generation module 304.
  • Computer readable instructions 62 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 61 and executed by processor 60 to complete the application.
  • the one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of computer readable instructions 62 in the terminal device 6.
  • computer readable instructions 62 may be partitioned into a mirror generation module 301, a data import module 302, a performance testing module 303, and a report generation module 304 (modules in a virtual device).
  • the terminal device 6 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, the processor 60, the memory 61. It will be understood by those skilled in the art that FIG. 5 is only an example of the terminal device 6, and does not constitute a limitation of the terminal device 6, and may include more or less components than those illustrated, or combine some components, or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.
  • the so-called processor 60 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6.
  • the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on.
  • the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device.
  • the memory 61 is used to store computer readable instructions and other programs and data required by the terminal device.
  • the memory 61 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), and the like.

Abstract

An automatic performance testing method, apparatus and device for a monetary fund system, and a storage medium, which are related to the technical field of software testing; the method comprises: connecting a monetary fund system, generating a mirror image and establishing a virtual monetary fund system according to the mirror image (S100); clearing historical data from the virtual monetary fund system, and importing preparation data (S101); applying an automated testing use case to test the performance of the virtual monetary fund system (S102); acquiring key parameters of performance testing, and automatically generating a test report according to the key parameters (S103). By means of performing virtualization on the system, said method reduces the environmental influence during automatic testing, lowers the re-run rate, and forms standardized statistical rules for test reports such that test reports may be compared.

Description

货币基金系统自动性能测试方法、装置、设备及存储介质Monetary fund system automatic performance testing method, device, device and storage medium
本专利申请以2017年11月29日提交的申请号为201711221494.6,名称为“货币基金系统自动性能测试方法、装置、设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This patent application is based on the Chinese invention patent application filed on November 29, 2017, with the application number of 201711221494.6, entitled "Monetary Fund System Automatic Performance Test Method, Apparatus, Equipment and Storage Medium", and requires its priority.
技术领域Technical field
本申请属于软件测试技术领域,更具体地说,是涉及一种货币基金系统自动性能测试方法、装置、设备及存储介质。The present application belongs to the field of software testing technology, and more particularly to a method, device, device and storage medium for automatic performance testing of a money fund system.
背景技术Background technique
货币基金系统的性能测试,往往涉及一百多种的业务交易,以往一般采取人工方式,统一安排全国一批网点和大量柜员,协调同时模拟业务操作,这种测试方式既不灵活,也需要耗费大量人力和时间。The performance test of the money fund system often involves more than one hundred kinds of business transactions. In the past, the manual method was adopted to arrange a batch of outlets and a large number of tellers in the country to coordinate and simulate the operation of the business. This test method is neither flexible nor costly. A lot of manpower and time.
由于许多性能测试需要在高负荷或者是长时间情况下进行,如果有任何配置错误或者是其他的问题,比如货币基金系统前后端出现技术故障等,都需要重跑测试,会浪费很多的时间,影响测试周期;另外由于没有统一的统计规则,不同测试人员在统计关键指标时可能会出现出入,导致性能数据无法对比的情况,或者产生错误的测试结果。Since many performance tests need to be performed under high load or long time, if there are any configuration errors or other problems, such as technical failures at the front and back of the Monetary Fund system, it is necessary to rerun the test, which will waste a lot of time. Impact test cycle; In addition, because there is no unified statistical rule, different testers may appear in the statistics of key indicators, resulting in inability to compare performance data, or produce incorrect test results.
发明内容Summary of the invention
针对现有技术的不足,本申请提供一种货币基金系统自动性能测试方法、装置、设备及存储介质,可以使性能测试过程不受系统前后端的影响,降低重跑率,并且形成统一的统计规则。In view of the deficiencies of the prior art, the present application provides a method, device, device and storage medium for automatic performance testing of a money fund system, which can make the performance testing process unaffected by the front and rear ends of the system, reduce the re-run rate, and form a unified statistical rule. .
本申请是这样实现的:This application is implemented as follows:
本申请第一方面提供一种货币基金系统自动性能测试方法,所述方法包括以下步骤:The first aspect of the present application provides a method for testing an automatic performance of a money fund system, the method comprising the following steps:
连接货币基金系统,生成镜像并根据所述镜像建立虚拟货币基金系统;Connect to the money fund system, generate a mirror and establish a virtual money fund system based on the image;
清除所述虚拟货币基金系统历史数据,导入准备数据;Clearing the historical data of the virtual currency fund system and importing the preparation data;
应用自动化测试用例对所述虚拟货币基金系统进行性能测试;Applying an automated test case to perform performance testing on the virtual money fund system;
获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。Obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
本申请第二方面提供一种货币基金系统自动性能测试装置,所述装置包括:The second aspect of the present application provides an automatic performance testing device for a money fund system, the device comprising:
镜像生成模块,用于连接货币基金系统,生成镜像建立虚拟货币基金系统;a mirror generation module for connecting to the money fund system to generate a mirror to establish a virtual money fund system;
数据导入模块,用于清除所述虚拟货币基金系统历史数据,导入准备数据;a data importing module, configured to clear the historical data of the virtual money fund system, and import the preparation data;
性能测试模块,用于应用自动化测试用例对所述虚拟货币基金系统进行性能测试;a performance test module for applying an automated test case to perform performance testing on the virtual money fund system;
报告生成模块,用于获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。The report generation module is configured to acquire key parameters of the performance test, and automatically generate a test report according to the key parameter.
本申请第三方面提供一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
连接货币基金系统,生成镜像并根据所述镜像建立虚拟货币基金系统;Connect to the money fund system, generate a mirror and establish a virtual money fund system based on the image;
清除所述虚拟货币基金系统历史数据,导入准备数据;Clearing the historical data of the virtual currency fund system and importing the preparation data;
应用自动化测试用例对所述虚拟货币基金系统进行性能测试;Applying an automated test case to perform performance testing on the virtual money fund system;
获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。Obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
本申请第四方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:A fourth aspect of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
连接货币基金系统,生成镜像并根据所述镜像建立虚拟货币基金系统;Connect to the money fund system, generate a mirror and establish a virtual money fund system based on the image;
清除所述虚拟货币基金系统历史数据,导入准备数据;Clearing the historical data of the virtual currency fund system and importing the preparation data;
应用自动化测试用例对所述虚拟货币基金系统进行性能测试;Applying an automated test case to perform performance testing on the virtual money fund system;
获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。Obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
本申请提供的货币基金系统自动性能测试方法、装置、设备及存储介质,通过建立虚拟货币基金系统,并进行清除历史数据,导入准备数据,使测试环境独立,减少了测试环境对性能测试过程的影响,降低重跑率,同时,根据关键参数自动生成测试报告,使测试结果具有可比性,更能客观地评价货币基金系统的性能。The method, device, device and storage medium for the automatic performance test of the money fund system provided by the present application reduce the test environment by establishing a virtual money fund system, clearing historical data, and importing the preparation data, thereby reducing the test environment to the performance test process. Influence, reduce the re-run rate, and automatically generate test reports based on key parameters to make the test results comparable, and more objectively evaluate the performance of the money fund system.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only the present application. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1是本申请一实施例提供的货币基金系统自动性能测试方法的流程图;1 is a flowchart of a method for testing an automatic performance of a money fund system according to an embodiment of the present application;
图2是本申请又一实施例提供的货币基金系统自动性能测试方法的流程图;2 is a flowchart of a method for testing an automatic performance of a money fund system according to another embodiment of the present application;
图3是本申请又一实施例提供的货币基金系统自动性能测试装置的结构示意图;3 is a schematic structural diagram of an automatic performance testing device for a money fund system according to another embodiment of the present application;
图4是图3所示实施例的另一结构示意图;Figure 4 is another schematic structural view of the embodiment shown in Figure 3;
图5是本申请又一实施例提供的终端设备的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device according to another embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本申请所要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clear, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
请参考图1,其示出了本申请实施例提供的货币基金系统自动性能测试方法的流程图。Please refer to FIG. 1 , which is a flowchart of a method for testing an automatic performance of a money fund system provided by an embodiment of the present application.
所述货币基金系统自动性能测试方法包括以下步骤:The method for automatically testing the money fund system includes the following steps:
步骤S100,连接货币基金系统,生成镜像并根据镜像建立虚拟货币基金系统。Step S100, connecting the money fund system, generating an image and establishing a virtual money fund system according to the image.
由于一般的性能测试的测试过程需要在高负荷或者是长时间情况下进行,这样如果测试系统中有配置错误或者系统的前后端出现问题例如技术故障时,都需要重新跑性能测试,这样会浪费大量的时间,影响测试周期,本步骤中将货币基金系统进行虚拟,将测试环境独立起来,很大程度上减少了测试环境的影响,使重跑率降低,提高性能测试的效率。Since the test process of the general performance test needs to be carried out under high load or for a long time, if there is a configuration error in the test system or a problem occurs in the front and rear ends of the system, such as a technical failure, the performance test needs to be re-run, which wastes A large amount of time affects the test cycle. In this step, the Monetary Fund system is virtualized to separate the test environment, which greatly reduces the impact of the test environment, reduces the re-run rate, and improves the efficiency of performance testing.
作为一种实施方式,可以用测试机连接货币基金系统,可以使测试机通过程序接口与货币基金系统进行连接,根据货币基金系统生成系统的镜像文件,根据生成的镜像文件建立虚拟货币基金系统。As an implementation manner, the test machine can be connected to the money fund system, and the test machine can be connected to the money fund system through the program interface, and the virtual currency fund system is established according to the generated image file according to the image file generated by the money fund system.
其中,镜像文件具体可以是测试机程序根据预设的测试规则而选定部分(或全部)货币基金系统中的数据生成的,可以认为镜像文件是由测试机程序所生成,用以在后续过程中生成测试所需的系统镜像,这里并不构成对本申请的限定。The image file may be generated by the test machine program according to the preset test rule and selected part (or all) of the data in the money fund system, and the image file may be generated by the test machine program for use in the subsequent process. The system image required for the test is generated, and does not constitute a limitation on the present application.
步骤S101,清除虚拟货币基金系统历史数据,导入准备数据。In step S101, the historical data of the virtual money fund system is cleared, and the preparation data is imported.
由于在虚拟货币基金系统的过程中,虚拟的系统中会保留有真实系统中的相关数据,为了顺利地进行货币基金系统各个阶段的测试,需要先将存留的数据进行清除,避免存留的数据对测试过程产生干扰,再导入进行自动性能测试的准备数据进行性能测试。In the process of the virtual currency fund system, the relevant data in the real system will remain in the virtual system. In order to smoothly test the various stages of the money fund system, the retained data needs to be cleared first to avoid the remaining data pairs. The test process generates interference and is then imported into the preparation data for automatic performance testing for performance testing.
其中,准备数据可以是诸如网点、柜员、卡号、交易帐户、客户名称、证件、类型、证件号码、签订协议号等之类各种业务交易数据,也可以是货币基金系统前后端的数据,这些数据是测试机根据需要抽取出来,在自动性能测试的过程中,导入到虚拟货币基金系统中,建立独立的测试环境,能够使各阶段的自动性能测试顺利进行。货币基金系统前后端是指货币基金的上下游,包括:用户开户系统、稽核审计系统、佣金管理系统、经纪人管理系统以及基金结算 系统等等。The preparation data may be various business transaction data such as a network point, a teller, a card number, a transaction account, a customer name, a certificate, a type, a document number, a signing agreement number, etc., or may be data of the front and back ends of the money fund system. The test machine is extracted according to the needs, and is imported into the virtual money fund system during the automatic performance test to establish an independent test environment, which enables the automatic performance test of each stage to proceed smoothly. The front and back of the Monetary Fund system refers to the upstream and downstream of the money fund, including: user account opening system, audit audit system, commission management system, broker management system and fund settlement system.
步骤S102,应用自动化测试用例对虚拟货币基金系统进行性能测试。Step S102, applying an automated test case to perform performance testing on the virtual money fund system.
性能测试主要是测试一个系统的功能点的响应速度和对资源(CPU、内存、磁盘等)的消耗情况,例如,对于系统登录的功能,在很多用户都进行登录的情况下系统会不会瘫痪,从而在临界点得出系统可以容纳的最大用户数。货币基金系统性能测试的目的是通过设置不同的系统压力,测试系统的功能点在各种压力下是否能保持正常的响应,从而验证系统的稳定性。Performance testing is mainly to test the response speed of a system's function points and the consumption of resources (CPU, memory, disk, etc.). For example, for the system login function, the system will not 瘫痪 if many users log in. Thus, at the critical point, the maximum number of users the system can accommodate is derived. The purpose of the Monetary Fund System Performance Test is to verify the stability of the system by setting different system pressures and testing whether the system's functional points can maintain a normal response under various pressures.
其中,自动化测试用例包括了不同系统压力下的自动化测试脚本,可以模拟不同的场景,使性能测试的结果更加可靠。可以包括但不限于以下几种压力下的测试:Among them, the automated test cases include automated test scripts under different system pressures, which can simulate different scenarios and make the performance test results more reliable. This can include, but is not limited to, testing under the following stresses:
1.模拟货币基金系统的正常工作状态,系统资源相对充足,系统CPU使用率为60%~70%。1. Simulate the normal working state of the money fund system, the system resources are relatively sufficient, and the system CPU usage rate is 60% to 70%.
2.模拟货币基金系统资源紧张的工作状态,为CPU使用率超过90%的情况。2. Simulate the tight working state of the money fund system resources, in the case of CPU usage exceeding 90%.
3.模拟货币基金系统持续疲劳联机的工作状态,持续疲劳联机指在高交易率的情况下进行长时间的压力测试,以考察货币基金系统在长时间、大负荷情况下的表现。3. Simulate the working state of the continuous fatigue of the money fund system. Continuous fatigue online refers to long-term stress test under high transaction rate to examine the performance of the money fund system under long-term and heavy load conditions.
作为一种实施方式,本申请实施例是通过输入不同数量的并发用户来模拟不同的压力场景的。其中,用户并发数是指同一时间使用系统进行交易的用户数量。As an implementation manner, the embodiment of the present application simulates different stress scenarios by inputting different numbers of concurrent users. Among them, the number of concurrent users refers to the number of users who use the system to trade at the same time.
步骤S103,获取性能测试的关键参数,根据关键参数自动生成测试报告。Step S103: Obtain key parameters of the performance test, and automatically generate a test report according to the key parameters.
在性能测试的过程中,为了使性能测试的结果具有可比性,需要对性能测试的统计规则进行统一。本申请实施例中,货币基金系统的性能可以具体反映在虚拟货币基金系统的关键参数中。其中,关键参数可以包括但不限于响应时间、响应成功率、CPU占用率、内存使用率、磁盘使用率、进程数和网络响应速度,这些关键参数可以客观地反映货币基金系统的各项性能的指标。In the performance test process, in order to make the results of the performance test comparable, it is necessary to unify the statistical rules of the performance test. In the embodiment of the present application, the performance of the money fund system can be specifically reflected in the key parameters of the virtual money fund system. Key parameters may include, but are not limited to, response time, response success rate, CPU usage, memory usage, disk usage, number of processes, and network response speed. These key parameters can objectively reflect the performance of the money fund system. index.
在运行自动化测试用例后,虚拟货币基金系统的测试端获取这些关键参数, 根据这些参数自动生成测试报告。After running the automated test case, the test side of the virtual money fund system acquires these key parameters and automatically generates test reports based on these parameters.
作为一种实施方式,获取虚拟货币基金系统运行自动化用例后的关键参数,根据关键参数对测试报告模板中的参数值进行替换以生成测试报告。As an implementation manner, the key parameters of the virtual money fund system running the automation use case are obtained, and the parameter values in the test report template are replaced according to the key parameters to generate a test report.
其中,测试报告可以是一个报告模板,报告模板中具有可以替换的参数值,这些参数值代表各种关键参数,在运行自动化测试用例之后,报告模板自动获取性能测试的关键参数,对模板中的参数值进行替换,生成测试报告。The test report can be a report template, and the report template has replaceable parameter values, and the parameter values represent various key parameters. After running the automated test case, the report template automatically obtains key parameters of the performance test, in the template. The parameter values are replaced to generate a test report.
本申请实施例提供的货币基金系统自动性能测试方法,通过建立虚拟货币基金系统,并进行清除历史数据,导入准备数据,使测试环境独立,减少了测试环境对性能测试过程的影响,降低重跑率,同时,根据关键参数自动生成测试报告,使测试结果具有可比性,更能客观地评价货币基金系统的性能。The automatic performance testing method of the money fund system provided by the embodiment of the present application, by establishing a virtual money fund system, and clearing historical data, importing preparation data, making the test environment independent, reducing the influence of the test environment on the performance testing process, and reducing the re-run At the same time, the test report is automatically generated based on key parameters, making the test results comparable and more objectively evaluating the performance of the IMF system.
请参考图2,其示出了本申请另一实施例提供的货币基金系统自动性能测试方法的流程图。Please refer to FIG. 2 , which is a flowchart of a method for testing the automatic performance of the money fund system provided by another embodiment of the present application.
所述货币基金系统自动性能测试方法包括以下步骤:The method for automatically testing the money fund system includes the following steps:
步骤S200,连接货币基金系统,生成镜像建立虚拟货币基金系统。Step S200, connecting the money fund system, generating a mirror to establish a virtual money fund system.
步骤S201,清除虚拟货币基金系统历史数据,导入准备数据。In step S201, the historical data of the virtual money fund system is cleared, and the preparation data is imported.
步骤S202,应用自动化测试用例对虚拟货币基金系统进行性能测试。Step S202, applying an automated test case to perform performance testing on the virtual money fund system.
步骤S203,获取性能测试的关键参数,根据关键参数自动生成测试报告。Step S203, obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
其中,步骤S200至步骤S203与前一实施例中步骤S100至步骤S103相同,请参照前一实施例,这里不再赘述。The steps S200 to S203 are the same as the steps S100 to S103 in the previous embodiment. Please refer to the previous embodiment, and details are not described herein again.
步骤S204,根据测试报告自动获取虚拟货币基金系统中不同业务的最大用户容纳数,生成不同业务的权重门限值。In step S204, the maximum user capacity of different services in the virtual money fund system is automatically obtained according to the test report, and the weight thresholds of different services are generated.
其中,最大用户容纳数是指货币基金系统在可以稳定运行的情况下可以容纳的最多的一起交易的用户数,可以反映货币基金系统的性能。Among them, the maximum user occupancy number refers to the maximum number of users that the money fund system can accommodate in the case of stable operation, and can reflect the performance of the money fund system.
作为一种实施方式,测试报告的模板中获取的关键参数包括最大用户容纳数,在运行自动化测试用例对虚拟货币基金系统进行性能测试后,测试报告的 模板可以获取最大用户容纳数。As an implementation manner, the key parameters obtained in the template of the test report include the maximum user capacity. After running the automated test case to perform performance test on the virtual money fund system, the test report template can obtain the maximum user capacity.
本申请实施例中,最大用户容纳数是关键参数达到预设值时的获得的用户容纳数。其中,关键参数达到预设值是指部分或者全部关键参数都达到一个预定的数值时获得的用户容纳数,例如测试用机系统CPU占用率达到30%,或者内存使用率达到20%时的用户容纳数,可以根据实际情况进行规定,本申请不对预设值进行限定。In the embodiment of the present application, the maximum user capacity is the obtained user capacity when the key parameter reaches the preset value. Wherein, the key parameter reaches the preset value refers to the number of user capacity obtained when some or all of the key parameters reach a predetermined value, for example, the user of the test machine system reaches 30%, or the memory usage rate reaches 20%. The number of accommodations can be specified according to actual conditions. This application does not limit the preset values.
在实际货币基金系统的应用中,不同业务的交易量是不同的,使用面比较广的业务的交易量比使用面比较窄的业务交易量要大,自动化测试用例会根据这些不同的业务设定不同的测试场景。但是,对于使用面比较广且交易量差不多的业务而言,其对系统资源的消耗是不一样的,例如,业务A在并发用户数达到1000人时CPU占用率为20%,而业务B在并发用户数达到800人时CPU的占用率为20%。为了使性能测试的结果更加有价值,需要对这些使用面广的业务的最大容纳用户数进行比较,根据最大用户容纳数生成不同业务的权重门限值,从而对不同的业务在服务器的布置中更加优化,例如,业务A在CPU占用率为25%的最大容纳用户数为A1,业务B在CPU占用率为25%的最大容纳用户数为B1,业务C在CPU占用率为25%的最大容纳用户数为C1,业务D在CPU占用率为25%的最大容纳用户数为D1,则每个业务的权重门限值为该业务的最大容纳用户数为与所用业务的最大容纳用户数之和的比值,例如,业务A的权重门限值为A1/(A1+B1+C1+D1)。In the application of the actual money fund system, the transaction volume of different services is different. The transaction volume of the business with wider usage is larger than the transaction volume with narrower usage. The automated test cases will be set according to these different services. Different test scenarios. However, for a service that uses a relatively large number of transactions and a similar transaction volume, the consumption of system resources is different. For example, when the number of concurrent users reaches 1000, the CPU usage is 20%, and the service B is When the number of concurrent users reaches 800, the CPU usage is 20%. In order to make the results of the performance test more valuable, it is necessary to compare the maximum number of users of these widely used services, and generate weight thresholds for different services according to the maximum user capacity, so that different services are arranged in the server. It is more optimized. For example, the maximum number of users with a CPU usage of 25% is A1, the maximum number of users with a CPU usage of 25% is B1, and the service C has a maximum CPU usage of 25%. The number of accommodating users is C1, and the maximum number of accommodating users whose service D is 25% is D1. The weight threshold of each service is the maximum number of users of the service and the maximum number of users of the service. The ratio of the sum, for example, the weight threshold of the service A is A1/(A1+B1+C1+D1).
步骤S205,根据每个业务的实时权重和权重门限值对每个业务在服务器群中进行服务质量控制。Step S205: Perform quality of service control on the service group in each service according to the real-time weight and the weight threshold of each service.
根据最大用户容纳数获得每个业务的权重门限值后,就可以对每个业务在实际的服务器群中进行优化布置。After obtaining the weight threshold of each service according to the maximum user capacity, each service can be optimally arranged in the actual server group.
例如,业务A占的权重门限值是30%,业务B占的权重门限值是20%,则可以在实际的服务器群中对业务A比例30%和业务B比例20%进行服务器资源优化布置,使货币基金系统更加符合实际的使用情况,提高货币基金系统的性能。For example, if the weight threshold of service A is 30% and the weight threshold of service B is 20%, server resources can be optimized for 30% of service A and 20% of service B in the actual server group. The arrangement makes the Monetary Fund system more in line with actual usage and improves the performance of the IMF system.
当某个业务的实时权重超过其对应的权重门限值时,增加访问该业务的带宽,以减少访问该业务的时延,降低数据丢包,提高服务质量,例如当实际应用中业务A的权重超过了权重门限值,则增加业务A的带宽,减少访问该业务的时延,提高服务质量。When the real-time weight of a service exceeds its corresponding weight threshold, the bandwidth of the service is increased to reduce the delay of accessing the service, reduce data loss, and improve service quality. For example, when the service A is actually applied. If the weight exceeds the weight threshold, the bandwidth of service A is increased, the delay for accessing the service is reduced, and the service quality is improved.
本申请实施例提供的货币基金系统自动性能测试方法,通过获取每个业务的最大用户容纳数,根据最大用户容纳数生成每个业务的权重门限值,按照业务的权重门限值对业务在服务器群中资源进行优化,当某个业务的实时权重超过权重门限时,增加该业务的带宽,减少访问业务的时延,提高服务质量。The method for testing the automatic performance of the money fund system provided by the embodiment of the present application obtains the maximum user capacity of each service, generates a weight threshold for each service according to the maximum user capacity, and pairs the service according to the weight threshold of the service. The resources in the server group are optimized. When the real-time weight of a service exceeds the weight threshold, the bandwidth of the service is increased, the delay of accessing the service is reduced, and the service quality is improved.
进一步的,由于服务器接收业务的信道资源是有限的,因此,当服务器接入业务请求之后,需要为等待队列分配合适的优先级,并将有限的信道资源优先分配给优先级较高的业务,具体可以根据公式Xi(t)=Xi+Twait×K,进行计算得到优先级Xi(t)。其中,Xi为业务优先级,Twait为驻留时间,K为时间加权值。需要说明的是,不同的业务对应时间加权值可能不同。比如:时间加权值可以包括K1和K2。GBR(GuaranteedBitRate,保证比特速率)承载业务,也就是包括语音业务、视频通话类的数据业务的时间加权值均为K1,而N-GBR(No-GuaranteedBitRate,非保证比特速率)承载业务的时间加权值均为K2。为了保证实时业务的优先性,需要确保K1>K2,也就是当N-GBR承载业务等待时间较长时,在下一时刻其优先级函数Xi大于GBR承载优先级函数时,那么对N-GBR承载业务提供服务,而GBR业务进入等待队列中进行排队等待,当有空余的资源时,在等待队列中的优先级最高的业务能够优先接入。Further, since the channel resources of the server receiving the service are limited, after the server accesses the service request, the waiting queue needs to be assigned an appropriate priority, and the limited channel resources are preferentially allocated to the higher priority service. Specifically, the priority Xi(t) can be calculated according to the formula Xi(t)=Xi+Twait×K. Where Xi is the service priority, Twait is the dwell time, and K is the time weighted value. It should be noted that different service corresponding time weighting values may be different. For example, the time weighting value can include K1 and K2. GBR (Guaranteed BitRate) guarantees the bearer service, that is, the time weighted value of the data service including the voice service and the video call type is K1, and the N-GBR (No-Guaranteed Bit Rate) carries the time weight of the bearer service. The value is K2. In order to ensure the priority of the real-time service, it is necessary to ensure that K1>K2, that is, when the N-GBR bearer service has a long waiting time, when the priority function Xi is greater than the GBR bearer priority function at the next moment, then the N-GBR bearer The service provides the service, and the GBR service enters the waiting queue to wait in the queue. When there are spare resources, the service with the highest priority in the waiting queue can be preferentially accessed.
以下是本申请的装置实施例,在装置实施例中未详尽描述的细节,可以参考上述对应的方法实施例。The following are device embodiments of the present application. For details that are not described in detail in the device embodiments, reference may be made to the corresponding method embodiments.
请参考图3,其示出了本申请实施例提供的货币基金系统自动性能测试装置的结构示意图。Please refer to FIG. 3 , which is a schematic structural diagram of an automatic performance testing device for a money fund system provided by an embodiment of the present application.
所述货币基金系统自动性能测试装置30包括:镜像生成模块301、数据导 入模块302、性能测试模块303和报告生成模块304。The money fund system automatic performance testing device 30 includes a mirror generation module 301, a data import module 302, a performance test module 303, and a report generation module 304.
镜像生成模块301,用于连接货币基金系统,生成镜像建立虚拟货币基金系统。The image generation module 301 is configured to connect to the money fund system and generate a mirror to establish a virtual money fund system.
具体的,镜像生成模块301连接货币基金系统,根据货币基金系统生成系统的镜像文件,建立镜像生成虚拟的货币基金系统。Specifically, the image generation module 301 is connected to the money fund system, and generates a virtual money fund system according to the image file of the money fund system generation system.
其中,镜像信息具体可以是镜像生成模块301根据预设的测试规则而选定部分(或全部)货币基金系统中的数据生成的,可以认为,镜像文件是由镜像生成模块301所生成,用以在后续过程中生成测试所需的系统镜像,这里并不构成对本申请的限定。The image information may be generated by the image generation module 301 by selecting the data in the partial (or all) money fund system according to the preset test rule. The image file may be generated by the image generation module 301. The system image required for the test is generated in the subsequent process, and does not constitute a limitation on the present application.
数据导入模块302,用于清除虚拟货币基金系统历史数据,导入准备数据。The data importing module 302 is configured to clear the historical data of the virtual money fund system and import the preparation data.
为了清除测试环境的数据干扰,生成虚拟的货币基金系统后,数据导入模块302用于清除虚拟货币基金系统存留的数据,然后再导入准备数据。In order to clear the data interference of the test environment, after generating the virtual money fund system, the data importing module 302 is used to clear the data retained by the virtual money fund system, and then import the preparation data.
其中,数据导入模块302准备的数据可以是诸如网点、柜员、卡号、交易帐户、客户名称、证件、类型、证件号码、签订协议号等之类各种业务交易数据,也可以是货币基金系统前后端的数据。这些数据由数据导入模块302抽取出来,导入到虚拟货币基金系统中,建立独立的测试环境,能够使各阶段的自动性能测试顺利进行。The data prepared by the data importing module 302 may be various business transaction data such as a network point, a teller, a card number, a transaction account, a customer name, a certificate, a type, a document number, a signing agreement number, etc., or may be before or after the money fund system. Data at the end. These data are extracted by the data import module 302, imported into the virtual money fund system, and an independent test environment is established, which enables the automatic performance test of each stage to proceed smoothly.
性能测试模块303,用于应用自动化测试用例对虚拟货币基金系统进行性能测试。The performance test module 303 is configured to apply an automated test case to perform performance testing on the virtual money fund system.
其中,性能测试模块303包括了不同系统压力下的自动化测试用例,运行这些自动化测试用例,就可以实现对虚拟货币基金系统进行性能测试。Among them, the performance test module 303 includes automated test cases under different system pressures, and running these automated test cases can perform performance tests on the virtual money fund system.
作为一种实施方式,性能测试模块303是通过对虚拟货币基金系统输入不同数量的并发用户实现不同系统压力的场景模拟的。As an implementation manner, the performance testing module 303 simulates a scenario in which different system pressures are implemented by inputting different numbers of concurrent users to the virtual money fund system.
报告生成模块304,用于获取性能测试的关键参数,根据关键参数自动生成测试报告。The report generation module 304 is configured to acquire key parameters of the performance test, and automatically generate a test report according to the key parameters.
在运行自动化测试用例对虚拟货币基金系统进行性能测试后,报告生成模 块304获取性能测试过程的关键参数,自动生成测试报告。After running the automated test case to perform performance testing on the virtual money fund system, the report generation module 304 obtains key parameters of the performance test process and automatically generates a test report.
作为一种实施方式,报告生成模块304具有一个报告模板,报告模板中具有可以替换的参数值,在获取到关键参数后,报告生成模块304中的模板自动获取性能测试的关键参数,对模板中的参数值进行替换,生成测试报告。As an implementation manner, the report generation module 304 has a report template, and the report template has a replaceable parameter value. After the key parameter is obtained, the template in the report generation module 304 automatically acquires key parameters of the performance test, in the template. The parameter values are replaced and a test report is generated.
请参考图4,其示出本申请实施例提供的货币基金系统自动测试装置的另一结构示意图。Please refer to FIG. 4 , which is another schematic structural diagram of the money testing system automatic testing device provided by the embodiment of the present application.
所述货币基金系统自动测试装置30还包括质量控制模块305。The money fund system automatic test device 30 also includes a quality control module 305.
质量控制模块305,用于根据测试报告自动获取虚拟货币基金系统中每个业务的最大用户容纳数,生成每个业务的权重门限值,并根据每个业务的实时权重和权重门限值对每个业务在服务器群中进行服务质量控制,当某个业务的权重超过其对应的权重门限值时,增加访问该业务的带宽。The quality control module 305 is configured to automatically acquire the maximum user capacity of each service in the virtual money fund system according to the test report, generate a weight threshold value for each service, and perform real-time weights and weight threshold values according to each service. Each service performs quality of service control in the server group. When the weight of a service exceeds its corresponding weight threshold, the bandwidth for accessing the service is increased.
作为一种实施方式,报告生成模块304获取的关键参数中,包括最大用户容纳数,在性能测试模块302运行自动化测试用例对虚拟货币基金系统进行性能测试后,报告生成模块304可以获取最大用户容纳数。As an implementation manner, among the key parameters acquired by the report generation module 304, including the maximum user capacity, after the performance test module 302 runs the automated test case to perform performance test on the virtual money fund system, the report generation module 304 can obtain the maximum user capacity. number.
质量控制模块305获取了最大用户容纳数后,可以生成每个业务的权重权重门限值,并根据每个业务的实时权重和权重门限值限对每个业务在服务器群中进行服务质量控制。After obtaining the maximum number of users, the quality control module 305 can generate a weight weight threshold for each service, and perform quality of service control on each service in the server group according to the real-time weight and weight threshold of each service. .
例如,业务A占的权重门限值是30%,业务B占的权重门限值是20%,则可以在实际的服务器群中对业务A比例30%和业务B比例20%进行服务器资源优化布置,使货币基金系统更加符合实际的使用情况,提高货币基金系统的性能。For example, if the weight threshold of service A is 30% and the weight threshold of service B is 20%, server resources can be optimized for 30% of service A and 20% of service B in the actual server group. The arrangement makes the Monetary Fund system more in line with actual usage and improves the performance of the IMF system.
本申请实施例提供的货币基金系统自动性能测试装置,通过建立镜像生成虚拟的测试系统,减少了测试环境的影响,使重跑率降低,同时通过获取关键参数自动生成测试报告,形成统一的统计规则,使测试结果具有可比性。另外,通过获取每个业务的最大用户容纳数,按照业务的权重对业务在服务器群中资源进行优化,再根据每个业务的权重设置预设门限,当某个业务的实时权重超过预设门限时,增加该业务的带宽,减少访问业务的时延,提高服务质量。The automatic performance testing device of the money fund system provided by the embodiment of the present application reduces the impact of the test environment by creating a virtual test system, and reduces the retry rate. At the same time, the test report is automatically generated by acquiring key parameters to form a unified statistics. Rules to make test results comparable. In addition, by obtaining the maximum user capacity of each service, the resources of the service are optimized in the server group according to the weight of the service, and then the preset threshold is set according to the weight of each service, when the real-time weight of a certain service exceeds the preset threshold. Limit the time, increase the bandwidth of the service, reduce the delay of accessing services, and improve the quality of service.
本申请另一种实施例提供一计算机可读存储介质,该计算机可读存储介质上存储有计算机可读指令,该计算机可读指令被处理器执行时实现上述实施例中的货币基金系统自动性能测试方法,为避免重复,这里不再赘述。或者,该计算机可读指令被处理器执行时实现上述实施例中货币基金系统自动性能测试装置中各模块/单元的功能,为避免重复,这里不再赘述。Another embodiment of the present application provides a computer readable storage medium having stored thereon computer readable instructions that, when executed by a processor, implement the automatic performance of the money fund system in the above embodiments Test methods, to avoid repetition, will not be described here. Alternatively, when the computer readable instructions are executed by the processor, the functions of the modules/units in the automatic performance testing device of the money fund system in the above embodiments are implemented. To avoid repetition, details are not described herein again.
请参考图5,其示出了本申请实施例提供的终端设备的示意图。终端设备6包括处理器60、存储器61以及存储在存储器61中并可在处理器60上运行的计算机可读指令62。处理器60执行计算机可读指令62时实现上述实施例中货币基金系统自动性能测试方法的各个步骤,例如图1所示的步骤S100、S101、S102和S103。或者,处理器60执行计算机可读指令62时实现上述实施例中货币基金系统自动性能测试装置各模块/单元的功能,如图3所示的镜像生成模块301、数据导入模块302、性能测试模块303和报告生成模块304。Please refer to FIG. 5, which is a schematic diagram of a terminal device provided by an embodiment of the present application. The terminal device 6 includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and executable on the processor 60. The processor 60 executes the computer readable instructions 62 to implement the various steps of the money fund system automatic performance testing method of the above-described embodiments, such as steps S100, S101, S102, and S103 shown in FIG. Alternatively, when the processor 60 executes the computer readable instructions 62, the functions of the modules/units of the money fund system automatic performance testing device in the above embodiment are implemented, such as the image generation module 301, the data import module 302, and the performance test module shown in FIG. 303 and report generation module 304.
计算机可读指令62可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器61中,并由处理器60执行,以完成本申请。一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述计算机可读指令62在终端设备6中的执行过程。例如,计算机可读指令62可以被分割成镜像生成模块301、数据导入模块302、性能测试模块303和报告生成模块304(虚拟装置中的模块)。Computer readable instructions 62 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 61 and executed by processor 60 to complete the application. The one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of computer readable instructions 62 in the terminal device 6. For example, computer readable instructions 62 may be partitioned into a mirror generation module 301, a data import module 302, a performance testing module 303, and a report generation module 304 (modules in a virtual device).
该终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。终端设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图5仅仅是终端设备6的示例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 6 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, the processor 60, the memory 61. It will be understood by those skilled in the art that FIG. 5 is only an example of the terminal device 6, and does not constitute a limitation of the terminal device 6, and may include more or less components than those illustrated, or combine some components, or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器60可以是中央处理单元(Central Processing Unit,CPU),还 可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 60 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
存储器61可以是终端设备6的内部存储单元,例如终端设备6的硬盘或内存。存储器61也可以是终端设备6的外部存储设备,例如终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器61还可以既包括终端设备6的内部存储单元也包括外部存储设备。存储器61用于存储计算机可读指令以及终端设备所需的其他程序和数据。存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used to store computer readable instructions and other programs and data required by the terminal device. The memory 61 can also be used to temporarily store data that has been output or is about to be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units as needed. The module is complete. For the specific working process of the unit and the module in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。In the embodiments provided by the present application, it should be understood that the disclosed device/terminal device and method may be implemented in other manners.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)等。The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), and the like.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种货币基金系统自动性能测试方法,其特征在于,所述货币基金系统自动性能测试方法包括以下步骤:An automatic performance testing method for a money fund system, characterized in that the automatic performance testing method of the money fund system comprises the following steps:
    连接货币基金系统,生成镜像并根据所述镜像建立虚拟货币基金系统;Connect to the money fund system, generate a mirror and establish a virtual money fund system based on the image;
    清除所述虚拟货币基金系统历史数据,导入准备数据;Clearing the historical data of the virtual currency fund system and importing the preparation data;
    应用自动化测试用例对所述虚拟货币基金系统进行性能测试;Applying an automated test case to perform performance testing on the virtual money fund system;
    获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。Obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
  2. 如权利要求1所述的测试方法,其特征在于,所述应用自动化测试用例对所述虚拟货币基金系统进行性能测试,包括:The testing method according to claim 1, wherein the application automation test case performs performance testing on the virtual money fund system, including:
    对所述虚拟货币基金系统输入不同数量的并发用户,运行所述自动化测试用例,获取所述虚拟货币基金系统在所述不同数量的并发用户时的各种关键参数。Entering a different number of concurrent users to the virtual money fund system, running the automated test case, and obtaining various key parameters of the virtual money fund system when the different number of concurrent users are.
  3. 如权利要求2所述的测试方法,其特征在于,所述获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告,包括:The testing method according to claim 2, wherein the obtaining the key parameters of the performance test, automatically generating a test report according to the key parameters, comprising:
    获取所述虚拟货币基金系统运行所述自动化用例后的关键参数,根据所述关键参数对所述测试报告模板中的参数值进行替换以生成测试报告。Obtaining key parameters after the virtual money fund system runs the automation use case, and replacing parameter values in the test report template according to the key parameters to generate a test report.
  4. 如权利要求3所述的测试方法,其特征在于,所述根据所述关键参数自动生成测试报告,之后还包括:The test method according to claim 3, wherein said automatically generating a test report according to said key parameter, further comprising:
    根据所述测试报告自动获取所述虚拟货币基金系统中每个业务的最大用户容纳数,生成每个业务的权重门限值,其中,所述最大用户容纳数为所述关键参数达到预设值时的用户容纳数;And automatically generating the maximum user capacity of each service in the virtual money fund system according to the test report, and generating a weight threshold value for each service, where the maximum user capacity is the key parameter reaches a preset value. The number of users in the time;
    根据每个业务的实时权重和权重门限值对所述每个业务在服务器群中进行服务质量控制。The quality of service is controlled in the server group for each of the services according to the real-time weight and weight threshold of each service.
  5. 如权利要求4所述的测试方法,其特征在于,所述根据每个业务的实时权重和权重门限值对所述每个业务在服务器群中进行服务质量控制,包括:The test method according to claim 4, wherein the performing quality of service control on the service group in the server group according to the real-time weight and weight threshold of each service comprises:
    当某个业务的权重超过其对应的权重门限值时,增加访问该业务的带宽。When the weight of a service exceeds its corresponding weight threshold, the bandwidth for accessing the service is increased.
  6. 一种货币基金系统自动性能测试装置,其特征在于,所述货币基金系统自动性能测试装置包括:An automatic performance testing device for a money fund system, characterized in that the automatic performance testing device of the money fund system comprises:
    镜像生成模块,用于连接货币基金系统,生成镜像并根据所述镜像建立虚拟货币基金系统;a mirror generation module, configured to connect to the money fund system, generate a mirror image, and establish a virtual money fund system according to the image;
    数据导入模块,用于清除所述虚拟货币基金系统历史数据,导入准备数据;a data importing module, configured to clear the historical data of the virtual money fund system, and import the preparation data;
    性能测试模块,用于应用自动化测试用例对所述虚拟货币基金系统进行性能测试;a performance test module for applying an automated test case to perform performance testing on the virtual money fund system;
    报告生成模块,用于获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。The report generation module is configured to acquire key parameters of the performance test, and automatically generate a test report according to the key parameter.
  7. 如权利要求6所述的测试装置,其特征在于,所述性能测试模块还用于对所述虚拟货币基金系统输入不同数量的并发用户,运行所述自动化测试用例,获取所述虚拟货币基金系统在所述不同数量的并发用户时的各种关键参数。The testing device according to claim 6, wherein the performance testing module is further configured to input a different number of concurrent users to the virtual money fund system, run the automated test case, and obtain the virtual money fund system. Various key parameters at the different number of concurrent users.
  8. 如权利要求7所述的测试装置,其特征在于,所述报告生成模块还用于获取所述关键参数,根据所述关键参数对所述测试报告模板中的参数值进行替换以生成测试报告。The test apparatus according to claim 7, wherein the report generation module is further configured to acquire the key parameter, and replace the parameter value in the test report template according to the key parameter to generate a test report.
  9. 如权利要求8所述的测试装置,其特征在于,所述测试装置还包括质量控制模块,The testing device of claim 8 wherein said testing device further comprises a quality control module
    所述质量控制模块,用于根据所述测试报告自动获取所述虚拟货币基金系统中每个业务的最大用户容纳数,生成每个业务的权重门限值,并根据每个业务的实时权重和权重门限值对所述每个业务在服务器群中进行服务质量控制。The quality control module is configured to automatically acquire a maximum user capacity of each service in the virtual money fund system according to the test report, generate a weight threshold value for each service, and perform real-time weights according to each service. The weight threshold is used to perform quality of service control on the server group in each of the services.
  10. 如权利要求9所述的测试装置,其特征在于,所述质量控制模块还用于当某个业务的权重超过其对应的预设门限时,增加访问该业务的带宽。The test apparatus according to claim 9, wherein the quality control module is further configured to increase a bandwidth for accessing the service when the weight of the service exceeds its corresponding preset threshold.
  11. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device comprising a memory, a processor, and computer readable instructions stored in the memory and operable on the processor, wherein the processor executes the computer readable instructions as follows step:
    连接货币基金系统,生成镜像并根据所述镜像建立虚拟货币基金系统;Connect to the money fund system, generate a mirror and establish a virtual money fund system based on the image;
    清除所述虚拟货币基金系统历史数据,导入准备数据;Clearing the historical data of the virtual currency fund system and importing the preparation data;
    应用自动化测试用例对所述虚拟货币基金系统进行性能测试;Applying an automated test case to perform performance testing on the virtual money fund system;
    获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。Obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
  12. 如权利要求11所述的终端设备,其特征在于,所述应用自动化测试用例对所述虚拟货币基金系统进行性能测试,包括:The terminal device according to claim 11, wherein the application automation test case performs performance testing on the virtual money fund system, including:
    对所述虚拟货币基金系统输入不同数量的并发用户,运行所述自动化测试用例,获取所述虚拟货币基金系统在所述不同数量的并发用户时的各种关键参数。Entering a different number of concurrent users to the virtual money fund system, running the automated test case, and obtaining various key parameters of the virtual money fund system when the different number of concurrent users are.
  13. 如权利要求12所述的终端设备,其特征在于,所述获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告,包括:The terminal device according to claim 12, wherein the obtaining a key parameter of the performance test, automatically generating a test report according to the key parameter, comprising:
    获取所述虚拟货币基金系统运行所述自动化用例后的关键参数,根据所述关键参数对所述测试报告模板中的参数值进行替换以生成测试报告。Obtaining key parameters after the virtual money fund system runs the automation use case, and replacing parameter values in the test report template according to the key parameters to generate a test report.
  14. 如权利要求13所述的终端设备,其特征在于,所述根据所述关键参数自动生成测试报告,之后还包括:The terminal device according to claim 13, wherein the automatically generating a test report according to the key parameter, further comprising:
    根据所述测试报告自动获取所述虚拟货币基金系统中每个业务的最大用户容纳数,生成每个业务的权重门限值,其中,所述最大用户容纳数为所述关键参数达到预设值时的用户容纳数;And automatically generating the maximum user capacity of each service in the virtual money fund system according to the test report, and generating a weight threshold value for each service, where the maximum user capacity is the key parameter reaches a preset value. The number of users in the time;
    根据每个业务的实时权重和权重门限值对所述每个业务在服务器群中进行服务质量控制。The quality of service is controlled in the server group for each of the services according to the real-time weight and weight threshold of each service.
  15. 如权利要求14所述的终端设备,其特征在于,所述根据每个业务的实时权重和权重门限值对所述每个业务在服务器群中进行服务质量控制,包括:The terminal device according to claim 14, wherein the performing quality of service control on the service group in the server group according to the real-time weight and weight threshold of each service comprises:
    当某个业务的权重超过其对应的权重门限值时,增加访问该业务的带宽。When the weight of a service exceeds its corresponding weight threshold, the bandwidth for accessing the service is increased.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by a processor, implement the following steps:
    连接货币基金系统,生成镜像并根据所述镜像建立虚拟货币基金系统;Connect to the money fund system, generate a mirror and establish a virtual money fund system based on the image;
    清除所述虚拟货币基金系统历史数据,导入准备数据;Clearing the historical data of the virtual currency fund system and importing the preparation data;
    应用自动化测试用例对所述虚拟货币基金系统进行性能测试;Applying an automated test case to perform performance testing on the virtual money fund system;
    获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告。Obtaining key parameters of the performance test, and automatically generating a test report according to the key parameters.
  17. 如权利要求16所述的可读存储介质,其特征在于,所述应用自动化测试用例对所述虚拟货币基金系统进行性能测试,包括:The readable storage medium of claim 16, wherein the application automation test case performs performance testing on the virtual money fund system, including:
    对所述虚拟货币基金系统输入不同数量的并发用户,运行所述自动化测试用例,获取所述虚拟货币基金系统在所述不同数量的并发用户时的各种关键参数。Entering a different number of concurrent users to the virtual money fund system, running the automated test case, and obtaining various key parameters of the virtual money fund system when the different number of concurrent users are.
  18. 如权利要求17所述的可读存储介质,其特征在于,所述获取所述性能测试的关键参数,根据所述关键参数自动生成测试报告,包括:The readable storage medium of claim 17, wherein the obtaining a key parameter of the performance test, automatically generating a test report according to the key parameter, comprising:
    获取所述虚拟货币基金系统运行所述自动化用例后的关键参数,根据所述关键参数对所述测试报告模板中的参数值进行替换以生成测试报告。Obtaining key parameters after the virtual money fund system runs the automation use case, and replacing parameter values in the test report template according to the key parameters to generate a test report.
  19. 如权利要求18所述的可读存储介质,其特征在于,所述根据所述关键参数自动生成测试报告,之后还包括:The readable storage medium according to claim 18, wherein said automatically generating a test report based on said key parameters, further comprising:
    根据所述测试报告自动获取所述虚拟货币基金系统中每个业务的最大用户容纳数,生成每个业务的权重门限值,其中,所述最大用户容纳数为所述关键参数达到预设值时的用户容纳数;And automatically generating the maximum user capacity of each service in the virtual money fund system according to the test report, and generating a weight threshold value for each service, where the maximum user capacity is the key parameter reaches a preset value. The number of users in the time;
    根据每个业务的实时权重和权重门限值对所述每个业务在服务器群中进行服务质量控制。The quality of service is controlled in the server group for each of the services according to the real-time weight and weight threshold of each service.
  20. 如权利要求19所述的可读存储介质,其特征在于,所述根据每个业务的实时权重和权重门限值对所述每个业务在服务器群中进行服务质量控制,包括:The readable storage medium according to claim 19, wherein the performing quality of service control on the service group in the server group according to the real-time weight and weight threshold of each service comprises:
    当某个业务的权重超过其对应的权重门限值时,增加访问该业务的带宽。When the weight of a service exceeds its corresponding weight threshold, the bandwidth for accessing the service is increased.
PCT/CN2018/072928 2017-11-29 2018-01-17 Automatic performance testing method, apparatus and device for monetary fund system, and storage medium WO2019104844A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711221494.6A CN107957945B (en) 2017-11-29 2017-11-29 Monetary fund system automatic performance test method, device, equipment and storage medium
CN201711221494.6 2017-11-29

Publications (1)

Publication Number Publication Date
WO2019104844A1 true WO2019104844A1 (en) 2019-06-06

Family

ID=61962794

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/072928 WO2019104844A1 (en) 2017-11-29 2018-01-17 Automatic performance testing method, apparatus and device for monetary fund system, and storage medium

Country Status (2)

Country Link
CN (1) CN107957945B (en)
WO (1) WO2019104844A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108776642B (en) * 2018-06-01 2023-04-11 平安普惠企业管理有限公司 Test report generation method and device, computer equipment and storage medium
CN110765004A (en) * 2019-09-26 2020-02-07 北京你财富计算机科技有限公司 Testing method and device based on sandbox system and electronic equipment
CN111309594B (en) * 2020-01-17 2024-04-23 腾讯科技(深圳)有限公司 System testing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307860A1 (en) * 2010-06-09 2011-12-15 Hong Seong Park Simulation-based interface testing automation system and method for robot software components
CN103150253A (en) * 2013-03-15 2013-06-12 珠海市君天电子科技有限公司 Method and system for duration performance testing
CN103593294A (en) * 2013-11-21 2014-02-19 福建天晴数码有限公司 Method and system for testing network game performance
US20150089292A1 (en) * 2013-09-25 2015-03-26 Hitachi, Ltd. Virtual machine test system, virtual machine test method
CN105988909A (en) * 2015-02-06 2016-10-05 展讯通信(天津)有限公司 Real-time monitoring system as well as method and mobile terminal
CN107133162A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 A kind of method of testing and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576844A (en) * 2008-05-09 2009-11-11 北京世纪拓远软件科技发展有限公司 Method and system for testing software system performances
CN104104551B (en) * 2013-04-02 2018-03-23 中国移动通信集团公司 Cloud resource need assessment method and device
CN105848176B (en) * 2015-01-14 2019-09-13 中国移动通信集团河北有限公司 A kind of performance test methods and device
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN105847088A (en) * 2016-05-18 2016-08-10 浪潮电子信息产业股份有限公司 Virtual machine performance testing system based on cloud service
CN106095688A (en) * 2016-06-23 2016-11-09 微梦创科网络科技(中国)有限公司 A kind of software performance testing method and device
CN106909508A (en) * 2017-02-28 2017-06-30 国家电网公司 A kind of information system testing results method and system
CN107179995A (en) * 2017-03-09 2017-09-19 北京融信易安信息技术有限公司 A kind of performance test methods of application program of computer network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307860A1 (en) * 2010-06-09 2011-12-15 Hong Seong Park Simulation-based interface testing automation system and method for robot software components
CN103150253A (en) * 2013-03-15 2013-06-12 珠海市君天电子科技有限公司 Method and system for duration performance testing
US20150089292A1 (en) * 2013-09-25 2015-03-26 Hitachi, Ltd. Virtual machine test system, virtual machine test method
CN103593294A (en) * 2013-11-21 2014-02-19 福建天晴数码有限公司 Method and system for testing network game performance
CN105988909A (en) * 2015-02-06 2016-10-05 展讯通信(天津)有限公司 Real-time monitoring system as well as method and mobile terminal
CN107133162A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 A kind of method of testing and device

Also Published As

Publication number Publication date
CN107957945A (en) 2018-04-24
CN107957945B (en) 2019-06-25

Similar Documents

Publication Publication Date Title
US10289539B1 (en) Performance testing in a software deployment pipeline
KR20180041174A (en) Risk Assessment Methods and Systems
WO2019223142A1 (en) Application program testing method, apparatus, computer device and storage medium
US7415444B2 (en) Determining compliance rates for probabilistic requests
US8606905B1 (en) Automated determination of system scalability and scalability constraint factors
WO2019104844A1 (en) Automatic performance testing method, apparatus and device for monetary fund system, and storage medium
CN111290958B (en) Method and device for debugging intelligent contract
WO2022120995A1 (en) Device computing power evaluation method and system based on pow consensus mechanism
CN110968437A (en) Method, device, equipment and medium for parallel execution of single contract based on Java intelligent contract
CN112148582B (en) Policy testing method and device, computer readable medium and electronic equipment
CN109947651B (en) Artificial intelligence engine optimization method and device
CN110647447A (en) Abnormal instance detection method, apparatus, device and medium for distributed system
CN113886162A (en) Computing equipment performance test method, computing equipment and storage medium
CN107229487B (en) Code processing method and device
Getir et al. State Elimination as Model Transformation Problem.
CN108427614B (en) Interface testing method and device based on adaptor tool
CN111625455A (en) Program testing method, device, equipment and medium
CN106528718B (en) Method and apparatus for processing data from third party
CN110008098A (en) The method and apparatus for assessing the operation conditions of the node in operation flow
CN117076546B (en) Data processing method, terminal device and computer readable storage medium
US20230368202A1 (en) System and method of service through a distributed ledger
US20230093988A1 (en) Data-driven decision enhancement
CN115600819A (en) Risk assessment method and device, electronic equipment and storage medium
CN116610559A (en) Test method, test device, electronic equipment and computer readable storage medium
Kim et al. The new approach to IT testing: real transaction-based automated validation solution

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18883055

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.08.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18883055

Country of ref document: EP

Kind code of ref document: A1