CN114490290A - Method and system for improving pressure testing efficiency - Google Patents
Method and system for improving pressure testing efficiency Download PDFInfo
- Publication number
- CN114490290A CN114490290A CN202210077884.5A CN202210077884A CN114490290A CN 114490290 A CN114490290 A CN 114490290A CN 202210077884 A CN202210077884 A CN 202210077884A CN 114490290 A CN114490290 A CN 114490290A
- Authority
- CN
- China
- Prior art keywords
- data
- pressure
- flow
- pressure measurement
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 116
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000009530 blood pressure measurement Methods 0.000 claims abstract description 78
- 230000008859 change Effects 0.000 claims abstract description 41
- 238000004458 analytical method Methods 0.000 claims abstract description 30
- 230000011218 segmentation Effects 0.000 claims abstract description 15
- 230000008569 process Effects 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 14
- 238000012544 monitoring process Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000003860 storage Methods 0.000 claims description 6
- 238000009662 stress testing Methods 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000007792 addition Methods 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009661 fatigue test Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
-
- 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
- G06F11/3612—Software analysis for verifying properties of programs by runtime analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Measuring Fluid Pressure (AREA)
Abstract
The application discloses a method and a system for improving pressure testing efficiency, which relate to the technical field of software system testing, wherein the method comprises the following steps: and configuring a plurality of flow subsections, and implementing pressure test on the application to be tested by the generator according to the flow subsections to generate first pressure test data. And dynamically changing the flow segmentation according to the first pressure measurement data to generate flow change contents, and executing the flow change contents by the generator to generate second pressure measurement data. And establishing an analysis task when the pressure measurement is finished, acquiring second pressure measurement data by the analysis task, and calculating performance index data according to the second pressure measurement data. The method has the advantages that the maximum concurrency number supported by the application to be tested can be obtained by executing one pressure test, so that the pressure test frequency is reduced, the pressure test efficiency is improved, the calculated performance index data is more accurate, the performance index data under different concurrencies can be automatically analyzed through the analysis task, the test data does not need to be manually arranged, and the labor cost for writing reports is reduced.
Description
Technical Field
The application belongs to the technical field of software system testing, and particularly relates to a method and a system for improving pressure testing efficiency.
Background
The performance test is used as an important means for evaluating the system capacity and the system processing capacity, the main test methods comprise a benchmark test, a single transaction test, a hybrid test and a fatigue test, each test method can run for a period of time under different concurrency numbers, the number of users supported by the system to access the system at the same time is judged through different performance index data, and three obvious defects exist when the traditional pressure test tool is used for implementing different types of tests:
first, only one concurrent system throughput can be evaluated by performing one pressure measurement, and multiple pressure measurements must be performed to finally evaluate the system throughput, resulting in a large number of pressure measurement executions.
Secondly, when the conventional testing tool calculates the performance index data under one concurrency number, the data participating in the calculation includes the performance index data which is increased from 0 to the specified concurrency number, so that the counted data has a certain deviation compared with the actual data.
Thirdly, in order to simulate the user request more truly, test data is generally required to be prepared before pressure testing in the test, the test data is divided into reusable data and non-reusable data, if a large number of errors are found in the tested application in the pressure testing process, the test is required to be interrupted, so that the non-reusable data prepared before can be discarded and prepared again, wherein time and labor are consumed during the preparation of some non-reusable pressure testing data, and the pressure testing efficiency is greatly influenced.
Disclosure of Invention
An object of the present application is to provide a method and a system for improving pressure testing efficiency, so as to solve the technical problems existing in the prior art that the efficiency is not high and the accuracy of the counted performance index data is low due to the need of performing multiple pressure tests.
In order to achieve the technical purpose, the technical scheme adopted by the application is as follows:
a method of improving the efficiency of a pressure test, comprising the steps of:
configuring a plurality of flow subsections, and implementing pressure test on the application to be tested by a generator according to the flow subsections to generate first pressure test data;
dynamically changing the flow subsection according to the first pressure measurement data to generate flow change content, and executing the flow change content by the generator to generate second pressure measurement data;
and when the pressure measurement is finished, an analysis task is created, the analysis task acquires second pressure measurement data, and performance index data is calculated according to the second pressure measurement data.
Preferably, a plurality of flow segments are configured, and the pressure generator performs a pressure test on the application to be tested according to the flow segments to generate first pressure test data, specifically including the following steps:
configuring a plurality of flow segments for a thread group and writing a pressure test script into the thread group, wherein the pressure test script and test data are transmitted to the transmitter through a gateway;
and the transmitter receives and executes the pressure test script and the test data, transmits a request to the application to be tested to simulate the user operation to implement the pressure test, and generates first pressure test data.
Preferably, the flow segments comprise concurrency numbers and duration of pressure measurement, and the duration of pressure measurement of each concurrency number in the flow segments is not less than 1 minute.
Preferably, dynamically changing the flow segment according to the first pressure measurement data specifically includes the following steps:
acquiring the current concurrency number and the executed time of each hair press, and calculating the current total concurrency number of the hair presses;
and filling a thread group needing to change the flow segmentation, an expected concurrency number and required time according to the current total concurrency number, generating flow change contents and transmitting the flow change contents to the transmitter.
Preferably, before acquiring the current concurrency number of each of the hair dryers, the method further comprises the steps of:
monitoring and acquiring first resource data of the application to be tested in real time through a monitoring system, and judging whether the first resource data meet preset requirements or not;
if the first resource data meet the preset requirement, ending the process, and if the first resource data do not meet the preset requirement, issuing a first control instruction to the sender, wherein the sender responds to the first control instruction to report the current concurrency number and the executed time;
the first pressure measurement data comprise first resource data and first pressure transmission data of a tested application, and the first pressure transmission data comprise the current concurrency number and the executed time of the pressure transmitter.
Preferably, the step of executing the flow rate change content by the transmitter to generate second pressure measurement data specifically includes the following steps:
the sender receives the flow change content, calculates the difference value between the expected concurrency number and the current concurrency number, and automatically reports the concurrency number change result according to the new or reduced concurrency number of the difference value;
if the difference value is larger than 0, increasing the concurrency number; if the difference is less than 0, the number of concurrences is reduced.
Preferably, the method further comprises the steps of:
monitoring whether the tested application has error data or not during pressure testing, and if so, reducing the number of the flow segments to 0;
and responding to the error reporting data, generating a processing result of the error reporting problem according to the error reporting problem generated by the error reporting data solution, and recovering the flow subsection according to the processing result to continue the pressure test.
Preferably, an analysis task is created when pressure measurement is finished, the analysis task acquires second pressure measurement data, and performance index data is calculated according to the second pressure measurement data, and the method specifically includes the following steps:
the second pressure measurement data comprise second resource data and second pressure data of the application to be measured, and unstable data in the second resource data and unstable data in the second pressure data when the flow segmentation is dynamically changed are removed;
and calculating performance index data according to the second resource data and the second pressure data.
A system for improving the efficiency of pressure testing, comprising:
the system comprises a configuration module, a pressure generator and a data processing module, wherein the configuration module is used for configuring a plurality of flow subsections, and the pressure generator is used for carrying out pressure test on a tested application according to the flow subsections to generate first pressure test data;
the flow change module is used for dynamically changing the flow subsection according to the first pressure measurement data to generate flow change contents, and the generator executes the flow change contents to generate second pressure measurement data;
and the analysis module is used for creating an analysis task when the pressure measurement is finished, acquiring second pressure measurement data by the analysis task, and calculating performance index data according to the second pressure measurement data.
A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method described above.
The application provides beneficial effect lies in:
1. the method and the device have the advantages that the plurality of flow subsections are configured, the generator performs pressure testing on the application to be tested according to the flow subsections to generate first pressure testing data, the flow subsections are dynamically changed according to the first pressure testing data to generate flow changing contents, and the generator executes the flow changing contents to generate second pressure testing data. When the pressure is judged to be too large or insufficient according to the first pressure measurement data in the pressure test process, the pressure test is not required to be stopped, only the flow segmentation is required to be reduced or increased, and the maximum concurrent number supported by the tested application can be obtained by executing one pressure test, so that the pressure test frequency is reduced, and the pressure measurement efficiency is improved.
2. The analysis task is established when pressure measurement is finished, the analysis task acquires second pressure measurement data, performance index data is calculated according to the second pressure measurement data, unstable data in second resource data and unstable data in second pressure emission data when flow segmentation is changed dynamically are removed, calculated performance index data are more accurate, different concurrent performance index data are automatically analyzed through the analysis task, test data do not need to be manually arranged, and labor cost for writing reports is reduced.
3. Whether error reporting data appears in the application of control quilt survey during this application pressure test, if, reduce the quantity of flow segmentation to 0, resume flow segmentation according to the processing result and continue pressure test, if a large amount of error reporting appear in finding quilt survey application in the pressure test process, need not to interrupt and stop pressure test, after the problem of waiting to report an error is solved, adjust the number of concurrences to expected value again and can resume pressure test, need use the test data of non-reusable among the pressure test, can avoid the waste of test data of non-reusable.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for improving the efficiency of a pressure test in example 1.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example 1:
as shown in fig. 1, the present embodiment includes a method for improving the efficiency of a pressure test, comprising the steps of: and configuring a plurality of flow subsections, and implementing pressure test on the application to be tested by the generator according to the flow subsections to generate first pressure test data.
And dynamically changing the flow segmentation according to the first pressure measurement data to generate flow change contents, and executing the flow change contents by the generator to generate second pressure measurement data. And establishing an analysis task when the pressure measurement is finished, acquiring second pressure measurement data by the analysis task, and calculating performance index data according to the second pressure measurement data.
Configuring a plurality of flow subsections, and implementing pressure test on the application to be tested by the generator according to the flow subsections to generate first pressure test data, wherein the method specifically comprises the following steps: and configuring a plurality of flow segments for the thread group and writing a pressure test script into the thread group, wherein the pressure test script and the test data are transmitted to the transmitter through the gateway. The pressure generator receives and executes the pressure measurement script and the test data, sends a request to the application to be tested to simulate the user operation to implement the pressure test, and generates first pressure measurement data.
Specifically, the pressure measurement script includes request content, and the transmitter receives the request content in the pressure measurement script and transmits a request to the application to be tested to simulate a user operation to implement the pressure test.
The flow subsection comprises concurrency numbers and duration pressure measurement time, and the duration pressure measurement time of each concurrency number in the flow subsection is not less than 1 minute. And inaccurate analysis caused by too little data is avoided.
The method for dynamically changing the flow segmentation according to the first pressure measurement data specifically comprises the following steps: and acquiring the current concurrency number and the executed time of each hair press, and calculating the current total concurrency number of the hair presses. And filling a thread group needing to change the flow segmentation, an expected concurrency number and required time according to the current total concurrency number, generating flow change contents and transmitting the flow change contents to the transmitter.
Specifically, since it cannot be determined in advance how much concurrency is supported by the highest energy of the application to be tested, the estimated concurrency is configured in the flow segment, the pressure is adjusted by increasing or decreasing the concurrency according to the first pressure measurement data in the pressure testing process, and the start time and the end time of the adjustment of the concurrency are automatically recorded.
Before obtaining the current concurrency number of each hair press, the method also comprises the following steps: the monitoring system monitors and acquires the first resource data of the application to be tested in real time and judges whether the first resource data meets the preset requirement.
If the first resource data meet the preset requirement, the process is ended, if the first resource data do not meet the preset requirement, a first control instruction is issued to the transmitter, and the transmitter responds to the first control instruction to report the current concurrency number and the executed time. The first pressure measurement data comprise first resource data and first pressure transmission data of the application to be measured, and the first pressure transmission data comprise the current concurrency number and the executed time of the pressure transmitter.
Specifically, the first resource data includes a cpu usage rate of the application under test, an average cpu load of 5 minutes, a wait queue length of the disk, and an available memory. The preset requirements include whether the cpu usage of the application under test exceeds a threshold, whether the cpu's 5-minute average load is excessive, whether the wait queue of the disk is too long, and whether the available memory is less than 10%.
The method comprises the steps that a transmitter uploads first transmitting pressure data in a pressure testing process in real time, and whether the first transmitting pressure data meet preset requirements or not is judged. If the first pressure data meets the preset requirement, the process is ended, if the first pressure data does not meet the preset requirement, a first control instruction is issued to the pressure generator, and the pressure generator responds to the first control instruction to report the current concurrency number and the executed time
The preset requirements comprise whether the influence time of the request exceeds an expected value and whether the request return content contains a large amount of abnormal information.
The method for generating the second pressure measurement data by the generator executing the flow change content specifically comprises the following steps: the transmitter receives the flow change content, calculates the difference value between the expected concurrency number and the current concurrency number, and automatically reports the concurrency number change result according to the new or reduced concurrency number of the difference value. Specifically, the transmitter automatically reports the result of the concurrent number change through the gateway. If the difference value is larger than 0, increasing the concurrency number; if the difference is less than 0, the number of concurrences is reduced.
Specifically, the change result includes a change in the number of concurrencies and corresponding start time and end time. And after receiving the change result, automatically recording the change start time, the end time and the expected concurrency number of the concurrency number corresponding to the thread group, so that the specific flow change condition in the whole pressure test process can be conveniently checked after the pressure test is finished.
When the pressure is judged to be too large or insufficient according to the first pressure measurement data in the pressure test process, the pressure test is not required to be stopped, and only the concurrency number needs to be reduced or increased, so that the maximum supported concurrency number of the tested application can be obtained by executing one pressure test, and the pressure test frequency is reduced, and the pressure test efficiency is improved.
Further comprising the steps of: and monitoring whether the tested application has error data or not during pressure testing, and if so, reducing the number of flow segments to 0. And responding to the error reporting data, generating a processing result of the error reporting problem according to the error reporting problem generated by the error reporting data solution, and recovering the flow segmentation according to the processing result to continue the pressure test.
Specifically, if a large number of errors are reported in the tested application in the pressure testing process, the pressure testing is not required to be stopped, after the error reporting problem is solved, the concurrent number is adjusted to a preset value, the pressure testing can be recovered, the test data which cannot be repeatedly used need to be used in the pressure testing, and the waste of the test data which cannot be repeatedly used can be avoided.
And creating an analysis task when the pressure measurement is finished, acquiring second pressure measurement data by the analysis task, and calculating performance index data according to the second pressure measurement data, wherein the method specifically comprises the following steps: the second pressure measurement data comprises second resource data and second pressure data of the application to be measured, and unstable data in the second resource data and unstable data in the second pressure data when the flow segmentation is dynamically changed are removed, so that the calculated performance index data is more accurate.
And calculating performance index data according to the second resource data and the second pressure data. Specifically, the traffic segment includes a rising segment and a stable segment, and aggregation calculation is performed only on all the second pressure data reported from the pressure generator and the second resource data monitored from the monitoring system within the starting time and the ending time of the stable segment.
Specifically, the second resource data includes a cpu utilization rate, a memory utilization rate, a disk read-write speed, and a network read-write speed, and the second pressure data includes an average response time, a number of transactions processed per second, a success rate, a total number of requests, and a total number of failures.
When the pressure measurement is finished, the performance index data under different concurrencies are automatically analyzed through the analysis task, the test data do not need to be manually arranged, and the labor cost for writing reports is reduced. More time can be devoted to pressure measurement risk prevention and control and performance problem analysis and positioning in the pressure test process, and the online production of the full-link pressure test is more beneficial to reducing the cooperation cost among different departments.
Example 2:
the present embodiment includes a system for improving the efficiency of a pressure test, comprising:
the configuration module is used for configuring a plurality of flow subsections, and the pressure generator is used for carrying out pressure test on the application to be tested according to the flow subsections to generate first pressure test data.
And the flow change module is used for dynamically changing the flow segmentation according to the first pressure measurement data to generate flow change contents, and the generator executes the flow change contents to generate second pressure measurement data.
And the analysis module is used for creating an analysis task when the pressure measurement is finished, acquiring second pressure measurement data by the analysis task, and calculating performance index data according to the second pressure measurement data.
The relevant points can be seen in the description of the embodiment 1.
Example 3:
a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of embodiment 1.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that:
reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. Thus, the appearances of the phrase "one embodiment" or "an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
In addition, it should be noted that the specific embodiments described in the present specification may differ in the shape of the components, the names of the components, and the like. All equivalent or simple changes in the structure, characteristics and principles as described in the patent idea are included in the protection scope of the patent. Various modifications, additions and substitutions for the specific embodiments described herein may occur to those skilled in the art without departing from the scope and spirit of the invention as defined by the accompanying claims.
Claims (10)
1. A method for improving the efficiency of pressure testing is characterized by comprising the following steps:
configuring a plurality of flow subsections, and implementing pressure test on the application to be tested by a generator according to the flow subsections to generate first pressure test data;
dynamically changing the flow subsection according to the first pressure measurement data to generate flow change contents, and executing the flow change contents by the generator to generate second pressure measurement data;
and when the pressure measurement is finished, an analysis task is created, the analysis task acquires second pressure measurement data, and performance index data is calculated according to the second pressure measurement data.
2. The method according to claim 1, wherein a plurality of flow segments are configured, and the pressure generator performs a pressure test on the application to be tested according to the flow segments to generate first pressure test data, and specifically comprises the following steps:
configuring a plurality of flow segments for a thread group and writing a pressure test script into the thread group, wherein the pressure test script and test data are transmitted to the transmitter through a gateway;
and the transmitter receives and executes the pressure test script and the test data, transmits a request to the application to be tested to simulate the user operation to implement the pressure test, and generates first pressure test data.
3. The method of claim 1, wherein the flow segments comprise concurrency numbers and duration of pressure measurements, and wherein the duration of pressure measurements for each concurrency number in the flow segments is not less than 1 minute.
4. The method according to claim 1, wherein dynamically changing the flow segment according to the first pressure measurement data comprises the following steps:
acquiring the current concurrency number and the executed time of each hair press, and calculating the current total concurrency number of the hair presses;
and filling a thread group needing to change the flow segmentation, an expected concurrency number and required time according to the current total concurrency number, generating flow change contents and transmitting the flow change contents to the transmitter.
5. The method for improving the efficiency of stress testing according to claim 4, wherein before obtaining the current concurrency number of each of the hair dryers, the method further comprises the steps of:
monitoring and acquiring first resource data of the application to be tested in real time through a monitoring system, and judging whether the first resource data meet preset requirements or not;
if the first resource data meet the preset requirement, ending the process, and if the first resource data do not meet the preset requirement, issuing a first control instruction to the sender, wherein the sender responds to the first control instruction to report the current concurrency number and the executed time;
the first pressure measurement data comprise first resource data and first pressure transmission data of a tested application, and the first pressure transmission data comprise the current concurrency number and the executed time of the pressure transmitter.
6. The method according to claim 4, wherein the step of executing the content of the flow change by the transmitter to generate second pressure measurement data includes the following steps:
the sender receives the flow change content, calculates the difference value between the expected concurrency number and the current concurrency number, and automatically reports the concurrency number change result according to the new or reduced concurrency number of the difference value;
if the difference value is larger than 0, increasing the concurrency number; if the difference is less than 0, the number of concurrences is reduced.
7. The method of claim 1, further comprising the step of:
monitoring whether the tested application has error data or not during pressure testing, and if so, reducing the number of the flow segments to 0;
and responding to the error reporting data, generating a processing result of the error reporting problem according to the error reporting problem generated by the error reporting data solution, and recovering the flow subsection according to the processing result to continue the pressure test.
8. The method according to claim 1, wherein an analysis task is created when pressure measurement ends, the analysis task obtains second pressure measurement data, and performance index data is calculated according to the second pressure measurement data, and the method specifically includes the following steps:
the second pressure measurement data comprise second resource data and second pressure data of the application to be measured, and unstable data in the second resource data and unstable data in the second pressure data when the flow segment is dynamically changed are removed;
and calculating performance index data according to the second resource data and the second pressure data.
9. A system for improving the efficiency of pressure testing, comprising:
the system comprises a configuration module, a pressure generator and a data processing module, wherein the configuration module is used for configuring a plurality of flow subsections, and the pressure generator is used for carrying out pressure test on a tested application according to the flow subsections to generate first pressure test data;
the flow change module is used for dynamically changing the flow subsection according to the first pressure measurement data to generate flow change contents, and the generator executes the flow change contents to generate second pressure measurement data;
and the analysis module is used for creating an analysis task when the pressure measurement is finished, acquiring second pressure measurement data by the analysis task, and calculating performance index data according to the second pressure measurement data.
10. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the method of improving the efficiency of stress testing according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210077884.5A CN114490290A (en) | 2022-01-21 | 2022-01-21 | Method and system for improving pressure testing efficiency |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210077884.5A CN114490290A (en) | 2022-01-21 | 2022-01-21 | Method and system for improving pressure testing efficiency |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114490290A true CN114490290A (en) | 2022-05-13 |
Family
ID=81472450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210077884.5A Withdrawn CN114490290A (en) | 2022-01-21 | 2022-01-21 | Method and system for improving pressure testing efficiency |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114490290A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116680165A (en) * | 2023-04-25 | 2023-09-01 | 厦门国际银行股份有限公司 | Interface performance testing method, device and equipment |
WO2024041018A1 (en) * | 2022-08-23 | 2024-02-29 | 京东科技控股股份有限公司 | Method and apparatus for adjusting response duration of stress test system, and device and medium |
-
2022
- 2022-01-21 CN CN202210077884.5A patent/CN114490290A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024041018A1 (en) * | 2022-08-23 | 2024-02-29 | 京东科技控股股份有限公司 | Method and apparatus for adjusting response duration of stress test system, and device and medium |
CN116680165A (en) * | 2023-04-25 | 2023-09-01 | 厦门国际银行股份有限公司 | Interface performance testing method, device and equipment |
CN116680165B (en) * | 2023-04-25 | 2024-01-23 | 厦门国际银行股份有限公司 | Interface performance testing method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114490290A (en) | Method and system for improving pressure testing efficiency | |
CN112035404B (en) | Medical data monitoring and early warning method, device, equipment and storage medium | |
CN111563014B (en) | Interface service performance test method, device, equipment and storage medium | |
US20060200546A9 (en) | Reporting of abnormal computer resource utilization data | |
US20130116976A1 (en) | Method, computer program, and information processing apparatus for analyzing performance of computer system | |
CN110633194B (en) | Performance evaluation method of hardware resources in specific environment | |
CN111181800B (en) | Test data processing method and device, electronic equipment and storage medium | |
WO2022116922A1 (en) | Magnetic disk failure prediction method, prediction model training method, and electronic device | |
WO2020233252A1 (en) | Method and apparatus for diagnosing spark application | |
CN113656174A (en) | Resource allocation method, system, computer device and storage medium | |
CN116560811A (en) | Simulation system and method applied to scheduling system | |
CN114924965A (en) | Performance prediction system for software development based on Internet | |
CN114297042A (en) | Interface pressure performance testing method, device, equipment and storage medium | |
CN110928750B (en) | Data processing method, device and equipment | |
CN116682479A (en) | Method and system for testing enterprise-level solid state disk time delay index | |
CN111752786A (en) | Data storage method, data summarization method, equipment and medium in pressure test process | |
CN108196992B (en) | Automatic performance testing method and device | |
CN109344025A (en) | Cpu performance is from monitoring method and server | |
CN111506422B (en) | Event analysis method and system | |
CN111737097B (en) | Performance test method and related device of stream processing system | |
CN113177060A (en) | Method, device and equipment for managing SQL (structured query language) statements | |
CN106855840B (en) | System CPU analysis method and device | |
CN109656796B (en) | Task selection method and device | |
WO2024066770A9 (en) | Information acquisition method and apparatus, and storage medium | |
CN111290897A (en) | Asynchronous storage test method, electronic device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220513 |
|
WW01 | Invention patent application withdrawn after publication |