CN110245089A - Method for testing pressure, device, equipment and computer readable storage medium - Google Patents
Method for testing pressure, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110245089A CN110245089A CN201910546667.4A CN201910546667A CN110245089A CN 110245089 A CN110245089 A CN 110245089A CN 201910546667 A CN201910546667 A CN 201910546667A CN 110245089 A CN110245089 A CN 110245089A
- Authority
- CN
- China
- Prior art keywords
- test
- pressure
- request
- pressure test
- scene 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Engineering & Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Computer Hardware Design (AREA)
- General Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Tourism & Hospitality (AREA)
- Software Systems (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Technology Law (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to financial technology fields, and disclose a kind of method for testing pressure, this method comprises: when receiving pressure test request, the test scene information corresponding with pressure test request pre-saved is obtained, the test scene information obtains and analyzing the real user behavioral data in operation analysis system in advance;Obtain pre-generated test script corresponding with the test scene information;Pressure test is executed according to the test script.The invention also discloses a kind of pressure test device, equipment and a kind of computer readable storage mediums.The present invention improves the accuracy of pressure test efficiency and pressure testing results.
Description
Technical field
The present invention relates to financial technology (Fintech) technical field more particularly to method for testing pressure, device, equipment and
Computer readable storage medium.
Background technique
With the development of computer technology, more and more technology (big data, distribution, block chain Blockchain, people
Work intelligence etc.) it applies in financial field, traditional financial industry gradually changes to financial technology (Fintech), but due to finance
The safety of industry, requirement of real-time, also to technology, more stringent requirements are proposed.
In current financial field, pressure test is that do survey is required before each web application is online
Examination, it can help the bottleneck problem we have found that in system, and reduction is published to the probability to go wrong after production environment.However,
The case data input of existing pressure test scheme is that tester is rule of thumb write and inputted manually, is not only grasped
Make cumbersome time-consuming, and the data according to the input of artificial experience often have deviation with practical business scene, it is practical multiple to be easy missing
Data under miscellaneous business scenario lead to final pressure testing results inaccuracy.
Summary of the invention
It is a primary object of the present invention to propose a kind of method for testing pressure, device, equipment and computer-readable storage medium
Matter, it is intended to improve the accuracy of pressure test efficiency and pressure testing results.
To achieve the above object, the present invention provides a kind of method, and described method includes following steps:
When receiving pressure test request, the test scene corresponding with pressure test request pre-saved is obtained
Information, the test scene information are obtained and analyzing the real user behavioral data in operation analysis system in advance;
Obtain pre-generated test script corresponding with the test scene information;
Pressure test is executed according to the test script.
Preferably, it is described when receive pressure test request when, obtain pre-save with the pressure test request pair
Before the step of test scene information answered, further includes:
When receiving test scene request to create, read in the first preset time period from preset operation analysis system
Real user behavioral data;
According to user behavior, classify to the real user behavioral data in first preset time period, and obtains
Number of concurrent under each classification;
After first preset time period, the user behavior and the number of concurrent are associated, as test scene
Information preservation is into preset scene database;
Engine is generated by preset test script, generates test script corresponding with the test scene information.
Preferably, it is described first preset time period, the user behavior and the number of concurrent are associated after, make
Include: for step of the test scene information preservation into preset scene database
The priority of corresponding user behavior is set according to the number of concurrent;
After first preset time period, the user behavior, the number of concurrent and the priority are associated, make
It is test scene information preservation into preset scene database;
It is described when receive pressure test request when, obtain the test corresponding with pressure test request pre-saved
The step of scene information includes:
When receiving pressure test request, the precedence information carried in the pressure test request is obtained;
The test scene information pre-saved is obtained according to the precedence information.
Preferably, the method for testing pressure further include:
When receiving test scene update request, read in the second preset time period from the operation analysis system
Real user behavioral data;
Compare true in the real user behavioral data and second preset time period in first preset time period
Similarity between real user's behavioral data;
When the similarity is less than or equal to default similarity, according to the real user in second preset time period
Behavioral data updates the test scene information saved in the scene database, and updates and the test scene information
Corresponding test script.
Preferably, described the step of executing pressure test according to the test script, includes:
The test script is run to survey the implementation center of platform to pressure and initiate automation building request, so that the execution
Center pulls corresponding test according to automation building request from preset test repository and relies on packet;
Packet is relied on according to the test and executes pressure test, and in the pressure test implementation procedure, to desired indicator
It is monitored, corresponding pressure test is generated according to monitoring data and is reported.
In addition, to achieve the above object, the present invention also provides a kind of pressure test device, the pressure test device packet
It includes:
First obtains module, for obtaining pre-saving with the pressure test when receiving pressure test request
Corresponding test scene information is requested, the test scene information by analyzing the real user row in operation analysis system in advance
It is obtained for data;
Second obtains module, for obtaining pre-generated test script corresponding with the test scene information;
Execution module, for executing pressure test according to the test script.
Preferably, the pressure test device further include:
First read module, for being read from preset operation analysis system when receiving test scene request to create
Take the real user behavioral data in the first preset time period;
Categorization module, for according to user behavior, to the real user behavioral data in first preset time period into
Row classification, and obtain the number of concurrent under each classification;
Preserving module, after first preset time period, the user behavior and the number of concurrent are associated,
As test scene information preservation into preset scene database;
Generation module generates corresponding with the test scene information for generating engine by preset test script
Test script.
Preferably, the preserving module is also used to be arranged according to the number of concurrent priority of corresponding user behavior;By institute
It states after the first preset time period, the user behavior, the number of concurrent and the priority is associated, believes as test scene
Breath is saved into preset scene database;
Described first obtains module, is also used to when receiving pressure test request, obtains in the pressure test request
The precedence information of carrying;The test scene information pre-saved is obtained according to the precedence information.
Preferably, the pressure test device further include:
Second read module, for being read from the operation analysis system when receiving test scene update request
Real user behavioral data in second preset time period;
Comparison module is preset for the real user behavioral data and described second in first preset time period
The similarity between real user behavioral data in period;
Update module is used for when the similarity is less than or equal to default similarity, according to second preset time
Real user behavioral data in section updates the test scene information saved in the scene database, and update and institute
State the corresponding test script of test scene information.
Preferably, the execution module is also used to:
It runs the test script and initiates automation building request to the implementation center that pressure surveys platform, so that the execution
Center pulls corresponding test from preset test repository according to automation building request and relies on packet;
Packet is relied on according to the test and executes pressure test, and in the pressure test implementation procedure, to desired indicator
It is monitored, corresponding pressure test is generated according to monitoring data and is reported.
In addition, to achieve the above object, the present invention also provides a kind of pressure test equipment, the pressure test equipment packet
It includes: memory, processor and being stored in the pressure test program that can be run on the memory and on the processor, it is described
The step of pressure test program realizes method for testing pressure as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Pressure test program is stored on storage medium, the pressure test program realizes pressure as described above when being executed by processor
The step of test method.
The present invention obtains the survey corresponding with pressure test request pre-saved when receiving pressure test request
Scene information is tried, the test scene information obtains and analyzing the real user behavioral data in operation analysis system in advance
It arrives;Obtain pre-generated test script corresponding with the test scene information;Pressure is executed according to the test script to survey
Examination.In this way, it realizes and executes pressure test, phase automatically according to the real user behavioral data in operation analysis system
Than improving pressure test efficiency in the existing mode for being manually entered pressure test case data, and stick on test more
Actual business scenario is closed, the accuracy of pressure testing results is improved.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of method for testing pressure first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Pressure test equipment of the embodiment of the present invention can be the equipment such as PC machine, server.
As shown in Figure 1, the pressure test equipment may include: processor 1001, such as CPU, network interface 1004, user
Interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection between these components
Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user
Interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include having for standard
Line interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable storage
Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing
The storage device of device 1001.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and pressure test program.
In equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor
1001 can be used for calling the pressure test program stored in memory 1005, and execute in following method for testing pressure embodiments
Operation.
Based on above-mentioned hardware configuration, method for testing pressure embodiment of the present invention is proposed.
It is the flow diagram of method for testing pressure first embodiment of the present invention referring to Fig. 2, Fig. 2, which comprises
Step S10, when receive pressure test request when, obtain pre-save it is corresponding with pressure test request
Test scene information, the test scene information are obtained and analyzing the real user behavioral data in operation analysis system in advance
It arrives;
The present embodiment method for testing pressure is applied to pressure test equipment, surveys on the pressure test equipment equipped with a pressure
Platform (i.e. pressure surveys platform) is tried, for surveying to examining system in certain stability accessed under pressure condition and load performance
Examination.
In the present embodiment, user can survey the triggering pressure test request of platform front end in pressure, and pressure test request can
To be single game scape pressure test request, i.e., pressure test only is carried out to a special interface, scene pressure test can also be mixed,
Pressure test is carried out simultaneously to multiple interfaces.In the system pressure of financial field is surveyed, it is often necessary to multiple interfaces by certain
Pro rate simulates true business scenario, i.e. mixing scene pressure test, such as to a certain financial transaction system to be measured, can
Be arranged same period user access log in, the amount of access ratio of the interfaces such as purchase and inquiry income is 2:4:4, true to simulate
Real transaction scene.For convenience of understanding, it is illustrated by taking the mixing scene pressure test of financial service system as an example below.
Firstly, when pressure survey platform receive pressure test request when, obtain pre-save with the pressure test request pair
The test scene information answered.Wherein, pressure test request can carry the information such as system and the test scene of institute's request for test;With
It includes that user behavior (is such as logged in, inquired, opening an account, buying product, selling and produce that corresponding test scene information is requested in pressure test
Product withdraw deposit, supplement with money, transferring accounts) and number of concurrent, such as " having 1000 users login system successively in 5 minutes ", wherein user's row
To be to log in, number of concurrent is 1000.
Above-mentioned test scene information is obtained and analyzing the real user behavioral data in operation analysis system in advance
, and test scene information is pre-stored in pressure and surveys in the scene database of platform.Specifically, operation analysis system is with industry
In Operation Support System of being engaged in based on the data of other systems, unified global data warehouse, by taking bank as an example, bank are constructed
The user behavior data under true sale scene (such as save, provide a loan, investment) is saved in operation analysis system, by warp
Real user behavioral data in battalion's analysis system is analyzed, and the user behavior and correspondence under true sale scene can be obtained
Concurrency, concurrent time etc..
Step S20 obtains pre-generated test script corresponding with the test scene information;
In the step, test script refers to the series of instructions of a fc-specific test FC, these instructions can be automated
Testing tool executes.Test script corresponding with each test scene information is that the test script generation surveyed in platform by pressure is drawn
Hold up pre-generated, and test script is pre-stored in the script administrative center that pressure surveys platform, pre-saves when getting
It, can be by the further query script management of the test scene information after test scene information corresponding with pressure test request
The heart, to obtain test script corresponding with the test scene information.
Step S30 executes pressure test according to the test script.
After getting test script, i.e., pressure test is executed according to the test script.Specifically, step S30 can be with
Further comprise: running the test script to survey the implementation center of platform to pressure and initiate automation building request, so that described
Implementation center pulls corresponding test according to automation building request from preset test repository and relies on packet;According to described
Test relies on packet and executes pressure test, and in the pressure test implementation procedure, is monitored to desired indicator, according to monitoring
Data generate corresponding pressure test report.
In the present embodiment, pressure surveys platform and runs the test script got, and initiates automation building to implementation center
Request, automation building request can be realized by Gradle (the automation the build tool based on Java Virtual Machine);
Implementation center pulls corresponding test from preset test repository and relies on packet, the survey after receiving automation building request
It is that Jar (Java ARchive, Java archive) wraps that examination, which relies on packet, and Jar packet is a kind of and platform-independent file format, can will be more
One file of a file synthesis, wherein including several classes;After getting test and relying on packet, implementation center can be according to test
It relies on the class for including in packet and attribute executes pressure test.In pressure test implementation procedure, need to supervise desired indicator
Control, the desired indicator include but is not limited to TPS (Transactions Per Second, the web request response that each second completes
Quantity), number of concurrent (in certain period of time, system simultaneously handle web request number of responses), response time (all web requests
The time being disposed), handling capacity (unit time system transmit total amount of data) etc., when specific implementation, can flexible setting.Finally,
Pressure surveys platform and generates corresponding pressure test report according to monitoring data, and pressure test report is sent to front end and is opened up
Show.
In the present embodiment, when receive pressure test request when, obtain pre-save with the pressure test request
Corresponding test scene information, the test scene information by analyzing the real user behavior number in operation analysis system in advance
According to and obtain;Obtain pre-generated test script corresponding with the test scene information;It is executed according to the test script
Pressure test.In this way, it realizes and executes pressure automatically according to the real user behavioral data in operation analysis system
Test, compared to the existing mode for being manually entered pressure test case data, improves pressure test efficiency, and make to test
It is more bonded actual business scenario, improves the accuracy of pressure testing results.
Further, it is based on method for testing pressure first embodiment of the present invention, proposes method for testing pressure second of the present invention
Embodiment.
In the present embodiment, before above-mentioned steps S10, can also include: when receiving test scene request to create, from
The real user behavioral data in the first preset time period is read in preset operation analysis system;According to user behavior, to institute
The real user behavioral data stated in the first preset time period is classified, and obtains the number of concurrent under each classification;By described
After one preset time period, the user behavior and the number of concurrent are associated, as test scene information preservation to preset
In scene database;Engine is generated by preset test script, generates test script corresponding with the test scene information.
In the present embodiment, for guarantee packing pressure test being normally carried out, need to firstly generate test scene information and
Test script corresponding with test scene information.
Specifically, pressure surveys platform and can receive the test scene request to create of user's triggering first, and according to the checkout area
Scape request to create is from the real user read in the first preset time period (such as in the past 1 hour) in preset operation analysis system
Behavioral data, to protect privacy of user, which is the real user behavioral data after desensitization;So
Afterwards, according to user behavior, the real user behavioral data read is classified, and obtains the number of concurrent under each classification,
Middle user behavior includes but is not limited to the operations row such as to log in, inquire, opening an account, buy product, sell product, withdraw deposit, supplementing with money, transferring accounts
For number of concurrent indicates the web request number of responses relevant to user behavior that system is handled simultaneously in the first preset time period;It
Afterwards, after the first preset time period, user behavior and number of concurrent being associated, as test scene information preservation to preset field
In scape database;Engine is generated by preset test script again later, generates test script corresponding with test scene information,
Wherein script create-rule can be with flexible setting, such as the step of generating related token (logging in token) interface requests code is wrapped
It includes: 1, Auto-matching duplication Gradle form work engineering;2, middleware services messaging protocol is write based on self-defined template engine
Transceiver logic;3, calling template engine transmitting includes protocol header, request DCN (Data Communication Network, data
Communication network), scene id, service id, request backpack body etc. parameters generate a kind of Groovy (agile development based on Java Virtual Machine
Language) pressure survey code.
In the present embodiment, test scene letter is generated by the real user behavioral data in analysis operation analysis system
Breath, and then test script corresponding with test scene information is generated, platform, which is surveyed, for subsequent pressure executes based on actual services scene
Automation pressure test provides premise.
Further, it is based on method for testing pressure second embodiment of the present invention, proposes method for testing pressure third of the present invention
Embodiment.
In the present embodiment, described to close first preset time period, the user behavior and the number of concurrent
It may include: to be set according to the number of concurrent as step of the test scene information preservation into preset scene database after connection
Set the priority of corresponding user behavior;By first preset time period, the user behavior, the number of concurrent and described preferential
After grade is associated, as test scene information preservation into preset scene database;Accordingly, described to receive pressure
When test request, obtain pre-save may include: with the step of pressure test request corresponding test scene information
When receiving pressure test request, the precedence information carried in the pressure test request is obtained;According to the priority
The test scene information that acquisition of information pre-saves.
In the present embodiment, it is contemplated that only need to carry out pressure survey to the certain important or common function of examining system sometimes
Examination, for this purpose, the preferential of corresponding user behavior can be arranged according to the number of concurrent of each user behavior when generating test scene information
Grade, number of concurrent is higher, represent user access it is more frequent, then correspond to priority also and can be set higher, conversely, number of concurrent is got over
Low, then corresponding to priority can be set lower;Later, by above-mentioned first preset time period, user behavior, number of concurrent and setting
Priority be associated after, as test scene information preservation into preset scene database.Subsequently received pressure is surveyed
When examination request, the precedence information carried in pressure test request is obtained, scene database is searched according to precedence information
Obtain the test scene information of corresponding priority.
The present embodiment is by setting priority, so that subsequent can only execute certain important or common work according to priority
The pressure test of energy, to improve the flexibility of pressure test.
Further, it is based on second, third embodiment of method for testing pressure of the present invention, proposes method for testing pressure of the present invention
Fourth embodiment.
In the present embodiment, the method for testing pressure further include: when receiving test scene and updating request, from described
The real user behavioral data in the second preset time period is read in operation analysis system;Compare in first preset time period
Real user behavioral data and second preset time period in real user behavioral data between similarity;When described
When similarity is less than or equal to default similarity, according to the real user behavioral data in second preset time period, update
The test scene information saved in the scene database, and update test foot corresponding with the test scene information
This.
In the present embodiment, test scene, which updates request, can be user's triggering, is also possible to pressure and surveys platform clocked flip,
It is true in the second preset time period from being read in operation analysis system when pressure, which surveys platform, receives test scene update request
User behavior data, and compare true in real user behavioral data and the second preset time period in the first preset time period
Similarity between user behavior data, wherein the duration of the duration of the second preset time period and the first preset time period can be with
It is identical, it can also be different;When similarity is less than or equal to default similarity, according to the real user in the second preset time period
Behavioral data generates new test scene information and test script, then more according to new test scene information and test script
The test scene information saved in new scene database, and update test script corresponding with test scene information.
The test scene information and test script of pressure survey platform preservation are updated by the above-mentioned means, realizing, made
It obtains pressure test and is bonded newest business scenario, further improve the accuracy of pressure testing results.
The present invention also provides a kind of pressure test devices.The pressure test device includes:
First obtains module, for obtaining pre-saving with the pressure test when receiving pressure test request
Corresponding test scene information is requested, the test scene information by analyzing the real user row in operation analysis system in advance
It is obtained for data;
Second obtains module, for obtaining pre-generated test script corresponding with the test scene information;
Execution module, for executing pressure test according to the test script.
Further, the pressure test device further include:
First read module, for being read from preset operation analysis system when receiving test scene request to create
Take the real user behavioral data in the first preset time period;
Categorization module, for according to user behavior, to the real user behavioral data in first preset time period into
Row classification, and obtain the number of concurrent under each classification;
Preserving module, after first preset time period, the user behavior and the number of concurrent are associated,
As test scene information preservation into preset scene database;
Generation module generates corresponding with the test scene information for generating engine by preset test script
Test script.
Further, the preserving module is also used to be arranged according to the number of concurrent priority of corresponding user behavior;It will
After first preset time period, the user behavior, the number of concurrent and the priority are associated, as test scene
Information preservation is into preset scene database;
Described first obtains module, is also used to when receiving pressure test request, obtains in the pressure test request
The precedence information of carrying;The test scene information pre-saved is obtained according to the precedence information.
Further, the pressure test device further include:
Second read module, for being read from the operation analysis system when receiving test scene update request
Real user behavioral data in second preset time period;
Comparison module is preset for the real user behavioral data and described second in first preset time period
The similarity between real user behavioral data in period;
Update module is used for when the similarity is less than or equal to default similarity, according to second preset time
Real user behavioral data in section updates the test scene information saved in the scene database, and update and institute
State the corresponding test script of test scene information.
Further, the execution module is also used to:
It runs the test script and initiates automation building request to the implementation center that pressure surveys platform, so that the execution
Center pulls corresponding test from preset test repository according to automation building request and relies on packet;
Packet is relied on according to the test and executes pressure test, and in the pressure test implementation procedure, to desired indicator
It is monitored, corresponding pressure test is generated according to monitoring data and is reported.
Method performed by above-mentioned each program module can refer to each embodiment of method for testing pressure of the present invention, herein no longer
It repeats.
The present invention also provides a kind of computer readable storage mediums.
Pressure test program is stored on computer readable storage medium of the present invention, the pressure test program is by processor
The step of method for testing pressure as described above is realized when execution.
Wherein, the pressure test program run on the processor, which is performed realized method, can refer to the present invention
The each embodiment of method for testing pressure, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (12)
1. a kind of method for testing pressure, which is characterized in that the method for testing pressure includes the following steps:
When receiving pressure test request, test scene corresponding with the pressure test request letter pre-saved is obtained
Breath, the test scene information are obtained and analyzing the real user behavioral data in operation analysis system in advance;
Obtain pre-generated test script corresponding with the test scene information;
Pressure test is executed according to the test script.
2. method for testing pressure as described in claim 1, which is characterized in that it is described when receiving pressure test request, it obtains
Take pre-save with the step of pressure test request corresponding test scene information before, further includes:
It is true in the first preset time period from being read in preset operation analysis system when receiving test scene request to create
Real user's behavioral data;
According to user behavior, classify to the real user behavioral data in first preset time period, and obtains each point
Number of concurrent under class;
After first preset time period, the user behavior and the number of concurrent are associated, as test scene information
It saves into preset scene database;
Engine is generated by preset test script, generates test script corresponding with the test scene information.
3. method for testing pressure as claimed in claim 2, which is characterized in that it is described by first preset time period, it is described
After user behavior and the number of concurrent are associated, as step of the test scene information preservation into preset scene database
Include:
The priority of corresponding user behavior is set according to the number of concurrent;
After first preset time period, the user behavior, the number of concurrent and the priority are associated, as survey
Examination hall scape information preservation is into preset scene database;
It is described when receive pressure test request when, obtain the test scene corresponding with pressure test request pre-saved
The step of information includes:
When receiving pressure test request, the precedence information carried in the pressure test request is obtained;
The test scene information pre-saved is obtained according to the precedence information.
4. method for testing pressure as claimed in claim 2 or claim 3, which is characterized in that the method for testing pressure further include:
It is true in the second preset time period from being read in the operation analysis system when receiving test scene update request
User behavior data;
Compare the true use in the real user behavioral data and second preset time period in first preset time period
Similarity between the behavioral data of family;
When the similarity is less than or equal to default similarity, according to the real user behavior in second preset time period
Data update the test scene information saved in the scene database, and update corresponding with the test scene information
Test script.
5. method for testing pressure as described in claim 1, which is characterized in that described to execute pressure survey according to the test script
The step of examination includes:
The test script is run to survey the implementation center of platform to pressure and initiate automation building request, so that the implementation center
Corresponding test is pulled from preset test repository according to automation building request relies on packet;
Packet is relied on according to the test and executes pressure test, and in the pressure test implementation procedure, desired indicator is carried out
Monitoring generates corresponding pressure test according to monitoring data and reports.
6. a kind of pressure test device, which is characterized in that the pressure test device includes:
First obtain module, for when receive pressure test request when, obtain pre-save with the pressure test request
Corresponding test scene information, the test scene information by analyzing the real user behavior number in operation analysis system in advance
According to and obtain;
Second obtains module, for obtaining pre-generated test script corresponding with the test scene information;
Execution module, for executing pressure test according to the test script.
7. pressure test device as claimed in claim 6, which is characterized in that the pressure test device further include:
First read module, for when receiving test scene request to create, reading from preset operation analysis system
Real user behavioral data in one preset time period;
Categorization module, for dividing the real user behavioral data in first preset time period according to user behavior
Class, and obtain the number of concurrent under each classification;
Preserving module, after first preset time period, the user behavior and the number of concurrent are associated, as
Test scene information preservation is into preset scene database;
Generation module generates test corresponding with the test scene information for generating engine by preset test script
Script.
8. pressure test device as claimed in claim 7, which is characterized in that
The preserving module is also used to be arranged according to the number of concurrent priority of corresponding user behavior;Described first is preset
After period, the user behavior, the number of concurrent and the priority are associated, as test scene information preservation to pre-
If scene database in;
Described first obtains module, is also used to when receiving pressure test request, obtains and carries in the pressure test request
Precedence information;The test scene information pre-saved is obtained according to the precedence information.
9. pressure test device as claimed in claim 7 or 8, which is characterized in that the pressure test device further include:
Second read module, for reading second from the operation analysis system when receiving test scene update request
Real user behavioral data in preset time period;
Comparison module, in first preset time period real user behavioral data and second preset time
The similarity between real user behavioral data in section;
Update module is used for when the similarity is less than or equal to default similarity, according in second preset time period
Real user behavioral data, update the test scene information saved in the scene database, and update and the survey
Try the corresponding test script of scene information.
10. pressure test device as claimed in claim 6, which is characterized in that the execution module is also used to:
It runs the test script and initiates automation building request to the implementation center that pressure surveys platform, so that the implementation center
Corresponding test, which is pulled, from preset test repository according to automation building request relies on packet;
Packet is relied on according to the test and executes pressure test, and in the pressure test implementation procedure, desired indicator is carried out
Monitoring generates corresponding pressure test according to monitoring data and reports.
11. a kind of pressure test equipment, which is characterized in that the pressure test equipment includes: memory, processor and is stored in
On the memory and the pressure test program that can run on the processor, the pressure test program is by the processor
The step of method for testing pressure as described in any one of claims 1 to 5 is realized when execution.
12. a kind of computer readable storage medium, which is characterized in that be stored with pressure survey on the computer readable storage medium
Program is tried, the pressure test as described in any one of claims 1 to 5 is realized when the pressure test program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910546667.4A CN110245089A (en) | 2019-06-21 | 2019-06-21 | Method for testing pressure, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910546667.4A CN110245089A (en) | 2019-06-21 | 2019-06-21 | Method for testing pressure, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110245089A true CN110245089A (en) | 2019-09-17 |
Family
ID=67888859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910546667.4A Pending CN110245089A (en) | 2019-06-21 | 2019-06-21 | Method for testing pressure, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110245089A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110865913A (en) * | 2019-11-05 | 2020-03-06 | 深圳前海微众银行股份有限公司 | Pressure testing method and device |
CN110968468A (en) * | 2019-12-18 | 2020-04-07 | 广州唯品会信息科技有限公司 | Pressure testing method, terminal device and computer storage medium |
CN111309576A (en) * | 2020-02-18 | 2020-06-19 | 北京达佳互联信息技术有限公司 | Pressure testing method and device |
CN111552634A (en) * | 2020-03-30 | 2020-08-18 | 深圳壹账通智能科技有限公司 | Method and device for testing front-end system and storage medium |
CN111583027A (en) * | 2020-05-09 | 2020-08-25 | 深圳前海微众银行股份有限公司 | Business process switching method, device, equipment and computer readable storage medium |
CN111949504A (en) * | 2020-08-19 | 2020-11-17 | 政采云有限公司 | Pressure testing method, device and medium |
CN112035303A (en) * | 2020-09-01 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Data testing method and device, computer and readable storage medium |
CN112116401A (en) * | 2020-09-28 | 2020-12-22 | 中国建设银行股份有限公司 | Pressure testing method, device, equipment and storage medium |
CN112214205A (en) * | 2020-10-10 | 2021-01-12 | 中国平安人寿保险股份有限公司 | Method, device and equipment for setting menu path and storage medium |
CN112631884A (en) * | 2020-12-18 | 2021-04-09 | 平安普惠企业管理有限公司 | Pressure measurement method and device based on data synchronization, computer equipment and storage medium |
CN112764978A (en) * | 2021-01-18 | 2021-05-07 | 北京开拓鸿业高科技有限公司 | Pressure measurement simulation degree determination method and device, storage medium and electronic equipment |
CN112882910A (en) * | 2021-01-22 | 2021-06-01 | 中国建设银行股份有限公司 | Interface pressure testing method and device of workflow engine |
CN113064777A (en) * | 2021-04-02 | 2021-07-02 | 中国建设银行股份有限公司 | Method and device for testing data acquisition service |
CN113392002A (en) * | 2021-06-15 | 2021-09-14 | 北京京东振世信息技术有限公司 | Test system construction method, device, equipment and storage medium |
CN113656313A (en) * | 2021-08-19 | 2021-11-16 | 工银科技有限公司 | Automatic test processing method and device |
CN114040191A (en) * | 2021-11-04 | 2022-02-11 | 广州博冠信息科技有限公司 | Pressure testing method and device for live scene, medium and electronic equipment |
CN113064777B (en) * | 2021-04-02 | 2024-07-30 | 中国建设银行股份有限公司 | Testing method and device for data acquisition service |
-
2019
- 2019-06-21 CN CN201910546667.4A patent/CN110245089A/en active Pending
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110865913A (en) * | 2019-11-05 | 2020-03-06 | 深圳前海微众银行股份有限公司 | Pressure testing method and device |
CN110865913B (en) * | 2019-11-05 | 2024-05-03 | 深圳前海微众银行股份有限公司 | Pressure testing method and device |
CN110968468A (en) * | 2019-12-18 | 2020-04-07 | 广州唯品会信息科技有限公司 | Pressure testing method, terminal device and computer storage medium |
CN111309576A (en) * | 2020-02-18 | 2020-06-19 | 北京达佳互联信息技术有限公司 | Pressure testing method and device |
CN111552634A (en) * | 2020-03-30 | 2020-08-18 | 深圳壹账通智能科技有限公司 | Method and device for testing front-end system and storage medium |
CN111583027A (en) * | 2020-05-09 | 2020-08-25 | 深圳前海微众银行股份有限公司 | Business process switching method, device, equipment and computer readable storage medium |
CN111949504A (en) * | 2020-08-19 | 2020-11-17 | 政采云有限公司 | Pressure testing method, device and medium |
CN112035303A (en) * | 2020-09-01 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Data testing method and device, computer and readable storage medium |
CN112035303B (en) * | 2020-09-01 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Data testing method and device, computer and readable storage medium |
CN112116401A (en) * | 2020-09-28 | 2020-12-22 | 中国建设银行股份有限公司 | Pressure testing method, device, equipment and storage medium |
CN112214205A (en) * | 2020-10-10 | 2021-01-12 | 中国平安人寿保险股份有限公司 | Method, device and equipment for setting menu path and storage medium |
CN112214205B (en) * | 2020-10-10 | 2023-09-26 | 中国平安人寿保险股份有限公司 | Method, device, equipment and storage medium for setting menu path |
CN112631884A (en) * | 2020-12-18 | 2021-04-09 | 平安普惠企业管理有限公司 | Pressure measurement method and device based on data synchronization, computer equipment and storage medium |
CN112764978A (en) * | 2021-01-18 | 2021-05-07 | 北京开拓鸿业高科技有限公司 | Pressure measurement simulation degree determination method and device, storage medium and electronic equipment |
CN112882910A (en) * | 2021-01-22 | 2021-06-01 | 中国建设银行股份有限公司 | Interface pressure testing method and device of workflow engine |
CN113064777A (en) * | 2021-04-02 | 2021-07-02 | 中国建设银行股份有限公司 | Method and device for testing data acquisition service |
CN113064777B (en) * | 2021-04-02 | 2024-07-30 | 中国建设银行股份有限公司 | Testing method and device for data acquisition service |
CN113392002A (en) * | 2021-06-15 | 2021-09-14 | 北京京东振世信息技术有限公司 | Test system construction method, device, equipment and storage medium |
CN113392002B (en) * | 2021-06-15 | 2024-04-12 | 北京京东振世信息技术有限公司 | Test system construction method, device, equipment and storage medium |
CN113656313A (en) * | 2021-08-19 | 2021-11-16 | 工银科技有限公司 | Automatic test processing method and device |
CN114040191A (en) * | 2021-11-04 | 2022-02-11 | 广州博冠信息科技有限公司 | Pressure testing method and device for live scene, medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110245089A (en) | Method for testing pressure, device, equipment and computer readable storage medium | |
CN109446071A (en) | Interface test method, interface test device, electronic equipment and storage medium | |
CN110244977A (en) | Customized software generation method, system, electronic equipment and storage medium | |
US8117601B2 (en) | Internal test and manipulation of an application | |
CN107506451A (en) | abnormal information monitoring method and device for data interaction | |
US11237806B2 (en) | Multi objective optimization of applications | |
US20200159690A1 (en) | Applying scoring systems using an auto-machine learning classification approach | |
CA3094542A1 (en) | Management of programmatic and compliance workflows using robotic process automation | |
CN113157947A (en) | Knowledge graph construction method, tool, device and server | |
US20230351401A1 (en) | Automated Rules Execution Testing And Release System | |
CN109902251A (en) | Scheme Choice method, apparatus, terminal and readable storage medium storing program for executing based on decision tree | |
CN110109978A (en) | Data analysing method, device, server and readable storage medium storing program for executing based on index | |
US20090169008A1 (en) | System and method for tracking testing of software modification projects from a wireless mobile device | |
CN112559525B (en) | Data checking system, method, device and server | |
CN110336791A (en) | A kind of breakpoint data transmission method, device, equipment and computer storage medium | |
CN102281260B (en) | Generating method and server of monitoring rule | |
US20240020607A1 (en) | System and method for a machine learning operations framework | |
CN110009397A (en) | A kind of method and device of precision marketing | |
US11394668B1 (en) | System and method for executing operations in a performance engineering environment | |
CN114968821A (en) | Test data generation method and device based on reinforcement learning | |
CA3171033A1 (en) | Right-sizing resource requests by applications in dynamically scalable computing environments | |
CN113495498A (en) | Simulation method, simulator, device, and medium for hardware device | |
US20130318209A1 (en) | Distributed decision service | |
CN113590932A (en) | Brand-new job aggregation mode and system | |
Simmons | The usage model: Describing product usage during design and development |
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 |