CN113127356A - Pressure measurement method and device, electronic equipment and storage medium - Google Patents

Pressure measurement method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113127356A
CN113127356A CN202110437984.XA CN202110437984A CN113127356A CN 113127356 A CN113127356 A CN 113127356A CN 202110437984 A CN202110437984 A CN 202110437984A CN 113127356 A CN113127356 A CN 113127356A
Authority
CN
China
Prior art keywords
tested
pressure measurement
pressure
configuration file
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.)
Pending
Application number
CN202110437984.XA
Other languages
Chinese (zh)
Inventor
徐霁
刘磊
陈先进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202110437984.XA priority Critical patent/CN113127356A/en
Publication of CN113127356A publication Critical patent/CN113127356A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The embodiment of the invention discloses a pressure measurement method, a pressure measurement device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a pressure measurement data set and a configuration file corresponding to a target system to be tested; performing pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when detecting that the current pressure test meets a preset pressure test quitting condition; generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file; updating the target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report. According to the technical scheme of the embodiment of the invention, the multi-round pressure test can be completed in an automatic mode, and the performance trend information of the system can be obtained through the multi-round pressure test.

Description

Pressure measurement method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of testing, in particular to a pressure testing method and device, electronic equipment and a storage medium.
Background
In internet application, with the continuous increase of user quantity, the performance of the system can gradually reach a bottleneck, so that the evaluation of the upper limit of the system load is significant for improving the application stability and saving the application cost, and the pressure measurement is an important link in the evaluation process.
The pressure test is also called strength test and load test, and the pressure test simulates the environment of practical application and the process of accessing the system by a user, so that the system to be tested operates under a heavy-load and high-concurrency state, the stability and the reliability of the system are determined, and the limit performance of the system is known. In the prior art, some general pressure testing tools based on the http protocol are generally used for performing pressure testing, for example, Java-based Jmeter testing tools, which can be used for simulating a huge load on a server, a network, or an object, and use a flow that a pressure testing script is selected first, then the number of concurrent threads is configured, an http request is executed in a specific environment after a click operation, a behavior of a concurrent user is simulated, and information such as a query per second rate (QPS) of a system, an average response time, and the like is further acquired.
However, in the prior art, the specific configuration parameters of the pressure measurement tool can only be modified in a single pressure measurement process, when the stability and reliability of the system are determined, multiple pressure tests need to be executed, each pressure test still needs manual participation, the system cannot complete multiple tests in an automatic manner, and further, each pressure test can only obtain an isolated test result, and performance trend information of the system in a period of time cannot be determined.
Disclosure of Invention
The invention provides a pressure testing method, a pressure testing device, electronic equipment and a storage medium, which can complete multiple rounds of pressure tests in an automatic mode and obtain performance trend information of a system through the multiple rounds of pressure tests.
In a first aspect, an embodiment of the present invention provides a pressure measurement method, where the method includes:
determining a pressure measurement data set and a configuration file corresponding to a target system to be tested;
performing pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when detecting that the current pressure test meets a preset pressure test quitting condition; wherein, the configuration file comprises at least one interface address of an interface to be tested;
generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file; the pressure measurement output result corresponds to configuration items of all target configuration information in the configuration file;
and updating target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report so as to repeatedly perform pressure measurement on the target system to be tested based on the updated target configuration information.
In a second aspect, an embodiment of the present invention further provides a pressure measurement apparatus, where the apparatus includes:
the pressure measurement data set and configuration file determining module is used for determining a pressure measurement data set and a configuration file corresponding to a target system to be tested;
the pressure test output result generation module is used for carrying out pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when detecting that the current pressure test meets a preset pressure test quitting condition; wherein, the configuration file comprises at least one interface address of an interface to be tested;
the pressure measurement analysis report generation module is used for generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file; and the pressure measurement output result corresponds to the configuration item of each target configuration information in the configuration file.
And the target configuration information updating module is used for updating the target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report so as to repeatedly perform pressure measurement on the target system to be tested based on the updated target configuration information.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a pressure measurement method as in any one of the embodiments of the invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a pressure measurement method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, each interface to be tested of the target system to be tested is subjected to pressure test by determining a pressure test data set and a configuration file corresponding to the target system to be tested, when the current pressure test is detected to meet a preset pressure test exit condition, the pressure test is exited to obtain a pressure test output result corresponding to the target system to be tested, a pressure test analysis report corresponding to the target system to be tested can be generated based on the pressure test output result and preset target configuration information in the configuration file, the target configuration information in the configuration file is updated based on analysis data in the pressure test analysis report, repeated pressure test is carried out on the target system to be tested based on the updated target configuration information, and therefore, the invention can complete the whole-course pressure test of multiple rounds in an automatic mode, and simultaneously, the target configuration information in an iterative configuration file is automatically updated before each round of pressure test, the system performance trend information which is more valuable than a single pressure measurement result can be obtained, and reasonable planning and distribution of system resources are facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart of a pressure measurement method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a pressure measurement method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of system traffic switching according to a second embodiment of the present invention;
fig. 4 is a schematic flow chart of a pressure measurement method according to a third embodiment of the present invention;
fig. 5 is a schematic flow chart of a pressure measurement method according to a fourth embodiment of the present invention;
fig. 6 is a block diagram of a pressure measurement apparatus according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a pressure measurement method according to an embodiment of the present invention, where the present embodiment is applicable to a situation where a pressure test is performed on a system interface based on a pressure measurement data set and a configuration file, and after target configuration information in the configuration file is updated by using analysis data in a pressure measurement analysis report, the pressure measurement is repeated on the system.
As shown in fig. 1, the method specifically includes the following steps:
and S110, determining a pressure test data set and a configuration file corresponding to the target system to be tested.
The target system to be tested is a system which needs to know the stability, reliability and load upper limit, for example, a platform for carrying network game operation or a server for carrying a payment function, etc., information such as the maximum number of simultaneous online users of the platform and the server, the number of requests processed per second, etc. needs to be known through a stress test, and whether the user needs to be shunted or whether a new platform or a server is erected to share the current load is judged through analyzing the information. The pressure measurement data set may be a collection of various types of data called by a pressure measurement tool through an Application Programming Interface (API) during the test process. The configuration file may be a file for configuring a plurality of parameters in the pressure measurement tool, for example, a file in the format of jmx, which is already supported by Windows, Mac and Linux platforms, and the file in the format of jmx can be imported into a Jmeter of the pressure measurement tool before performing the pressure measurement, and the parameters in the pressure measurement tool can be adaptively adjusted according to the content of the file.
In this embodiment, the pressure measurement data set and the configuration file corresponding to the target system to be tested may be determined in two ways, including:
1) a pressure measurement dataset is created manually and a configuration file is written. Specifically, multiple user operations can be simulated manually in a test environment according to functions provided by a target system to be tested, data generated in the process is used as a pressure test data set, and an interface address of an interface accessed by each simulation operation is used as configuration information. Log files in log format are generated, information in the log files is used as a pressure measurement data set, and interface addresses for processing orders and transfer requests and the number of concurrent connections in the processing process are written into configuration files.
2) A pressure measurement dataset and a configuration file are automatically created. In particular, scripts may be used to automatically retrieve data from a database of storage system access data and generate a set of pressure measurements and configuration files. Illustratively, a host based on an SQL server database in a test environment is logged in, a script written by Python and an SQL statement are used for querying data meeting conditions, and after the screened data are extracted, a corresponding pressure test data set and a configuration file are automatically generated. The automatic creation mode can generate a data set containing a large amount of data in a short time, the efficiency is high, the executed script can be written based on a plurality of programming languages, and the embodiment of the disclosure is not specifically limited herein.
In the practical application process, the manual and automatic modes can be combined to create a pressure measurement data set and a configuration file, and the requirements of different test stages on data can be met by flexibly applying various creation modes.
And S120, performing pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when the current pressure test meets a preset pressure test quitting condition.
The configuration file comprises at least one interface address of the interface to be tested. The interface of the target system to be tested comprises a plurality of interfaces connected with the front end, the back end and the mobile end, each interface comprises a logical data transmission protocol, and the request sent by the user and the response of the system are transmitted through the interfaces, wherein the interface also comprises information such as a state code, a request type, request time, response time length, response size and the like. The advantage of selecting only the interface of the system for pressure testing is that the reliability and the limit load of the system can be determined efficiently and accurately in a short time. It should be noted that the pressure test on each interface to be tested may be completed through a cloud test platform, or may be completed through a plurality of interface test tools, for example, Loadrunner and meter, and specifically, which platform or test tool should be selected, and a plurality of aspects such as test time, test simplicity, complexity of the system and service to be tested should be considered comprehensively.
Since the test result generated by the over-test of the system cannot accurately reflect the performance of the system, a pressure test exit condition is preset to terminate a single pressure test. The pressure test exit condition may be set according to a "useful but not optimal" criterion, which is based on a specific test case, for example, that a system test has been completed according to a test plan, or that a system should exit the test after its function and performance have met the requirements of a product requirements specification; the conditions for ending the test may also be set according to "most valuable" criteria, i.e. in exact numbers, for example, in the process of performing a stress test based on the stress test data set and the configuration file, when the obtained defect ratio and the number of defects found in the system reach a certain threshold, the stress test is exited; the number of the error requests in unit time can be detected in real time, the number of the error requests in each period of time is displayed in a line graph form, and when the trend of the line graph tends to be flat, the pressure test is quitted. Because a single test result cannot accurately reflect the performance trend information of the system, by presetting a pressure test exit condition, the system is favorable for automatically adjusting a test plan or configuration information in time and carrying out the next round of pressure test, and the waste of system computing resources is avoided.
In this embodiment, the pressure measurement output result includes information describing a single test process and information characterizing system performance, and specifically, the pressure measurement output result may include, but is not limited to, start and end time points of a current test, test duration, an identifier of a system under test, QPS information of an online peak value of the system, an online average response time, a maximum QPS or a maximum concurrency number of the average response time within 100ms/50ms, and usage conditions of a system cpu, a memory, a disk, and a network in the current test.
S130, generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file;
and the pressure measurement output result corresponds to the configuration item of each target configuration information in the configuration file. Since it is not necessary to extract and process the entire content in the pressure measurement output result when generating the pressure measurement analysis report, and it is not necessary to consider all the information in the configuration file, it is necessary to preset configuration items of each target configuration information in the configuration file, for example, interface request ratio information, online peak QPS information, online average response time, maximum QPS or maximum concurrency number for which the average response time is within 100ms/50ms, and usage of the system cpu, the memory, the disk, and the network in the test are taken as configuration items of the target configuration information, and at this time, it is only necessary to filter the information in the pressure measurement output result when generating the pressure measurement analysis report.
In this embodiment, the pressure measurement analysis report is displayed in a text or visual list form, which may be used to reflect the stability and reliability of the system in the test process, or may be used to be combined with other analysis reports to obtain the performance trend information of the system. The pressure analysis report may be generated by a data analysis tool or a platform, or may be generated by importing the screened information into a pressure analysis report template and filling the template with the screened information at a corresponding position.
Optionally, the pressure measurement analysis report is displayed in json data format. Illustratively, the pressure measurement analysis report includes: QPS is 2000, and the average response time is 300ms, then the corresponding json data format is:
{
“QPS”:”2000”,
"average response time": "300 ms"
}
And S140, updating target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report, and repeatedly performing pressure measurement on the target system to be tested based on the updated target configuration information.
In order to automatically execute multiple rounds of pressure tests to obtain system performance trend information, updating iteration needs to be performed on a configuration file for adjusting parameters of a test tool, and the basis for updating target configuration information in the configuration file is analysis data in a pressure test analysis report. Illustratively, when the target configuration information is interface request ratio information and the maximum concurrency number of which the average response time is within 100ms, the two pieces of information need to be updated based on analysis data after a single test is finished, the interface request ratio information is increased from 10 to 15%, the maximum concurrency number is increased from 1000 to 1500, a test tool can adjust corresponding parameters according to the updated information, and a new round of pressure test is started on the system according to the adjusted parameters.
In the technical scheme of this embodiment, a pressure test data set and a configuration file corresponding to a target system to be tested are determined, a pressure test is performed on each interface to be tested of the target system to be tested, when it is detected that a current pressure test meets a preset pressure test exit condition, the pressure test exits to obtain a pressure test output result corresponding to the target system to be tested, a pressure test analysis report corresponding to the target system to be tested can be generated based on the pressure test output result and preset target configuration information in the configuration file, the target configuration information in the configuration file is updated based on analysis data in the pressure test analysis report, repeated pressure tests are performed on the target system to be tested based on the updated target configuration information, the whole process of the multi-round pressure tests can be completed in an automatic manner, and simultaneously, the target configuration information in an iterative configuration file is automatically updated before each round of pressure tests, the system performance trend information which is more valuable than a single pressure measurement result can be obtained, and reasonable planning and distribution of system resources are facilitated.
Example two
Fig. 2 is a schematic flow chart of a pressure measurement method according to a second embodiment of the present invention, which is based on the foregoing embodiment, and determines a pressure measurement data set and a configuration file based on an acquired gateway log, so that a test tool can better conform to an online actual situation when a user requests, and further, before performing a pressure test on a target system to be tested, a flow of the target system to be tested is switched to a standby system by configuring a flow switching interface address, so that normal access of the user is not affected during the pressure measurement process, and meanwhile, interference of a request generated by user access on a pressure measurement result is avoided, so that an analysis report of each round of pressure measurement is more accurate. The specific implementation manner can be referred to the technical scheme of the embodiment. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method specifically includes the following steps:
s210, acquiring a gateway log corresponding to the target system to be tested.
The user realizes the access to the system by sending a request, taking a post-type http request sent by the user as an example, one request includes four parameters of a request line, a request header, a null line and request data, and the gateway is used as an entry for the user to send the request, and the corresponding gateway log records the relevant information of the user request and the hardware, software and system problem information in the system, wherein the relevant information of the user request can be a request IP, a request port, a request type, request parameters and the like.
S220, determining a pressure measurement data set based on the resource locator in the gateway log; determining an interface to be tested based on the processing interfaces processed by the plurality of resource locators; and determining a configuration file based on the interface address of the interface to be tested, the number of concurrent connections, the data volume of the test set and the request occupation ratio preset occupation ratio threshold value of the interface to be tested.
A url (uniform resource locator) is a representation method for specifying information location on a web service program, and a url is a character string composed of characters. In this embodiment, in order to make the test tool simulate the actual situation on the line when the user requests, the url generated when the user actually accesses the system, which is extracted from the gateway log, is used as the pressure test data set. Here, taking an http request of get type sent by a user as an example, the url of the request is included in the request line, and request data such as "Name & Age & 10" is written in the url.
The multiple resource locators can also represent processing interfaces when the system processes the corresponding requests, and in this embodiment, in order to consider that different interfaces of the system may be used for processing different services and make the stress testing process more similar to the actual access situation of the user, the processing interfaces corresponding to the multiple resource locators are used as the interfaces to be tested. Further, the interface address, the number of concurrent connections, the data volume of the test set and the request duty ratio preset duty ratio threshold of the interface to be tested can be determined through the interface to be tested, and the configuration file is determined based on the information. The number of concurrent connections is the number of point-to-point connections that can be processed simultaneously by the system interface, and can reflect the processing capability of the system on the service information flow, the access control capability on a plurality of connections, and the connection state tracking capability. The ratio of the requests of the interfaces to be tested to the total number of requests of each interface of the system may be, for example, 100000 total number of requests of the plurality of interfaces to be tested and 10000 total number of requests through the interface 1, where the ratio of the requests of the interface 1 as the interface to be tested is 10%. The condition that the test is automatically interrupted due to the fact that the number of requests is too large and errors are reported in the process of testing a single interface is guaranteed through presetting the ratio threshold value for the request ratio of the interface to be tested.
And S230, determining a standby system corresponding to the target system to be tested, and switching the flow corresponding to the target system to be tested to the standby system.
And the standby system and the target system to be tested have the same realization function. Specifically, referring to fig. 3, fig. 3 is a schematic diagram of system traffic switching in the second embodiment of the present invention, when a system in the machine room 1 is in an online normal operating state, a user accesses the system through a gateway interface, and when a pressure test needs to be performed on the system in the machine room 1, the system is a target system to be tested. Before pressure measurement is executed, the flow of the system in the machine room 1 is switched to the system in the machine room 2 by configuring the address of the flow switching interface, at this time, the system in the machine room 2 is a standby system, and because the two systems have the same function, the two systems are respectively configured with a database or a server containing the same data. After the flow switching is completed, one or more pressure tests are performed on the system in the machine room 1.
Since one of the objectives of the pressure test on the system is to know the performance bottleneck of the system, it is inevitable to cause instability of the system during the test process, and therefore, in this embodiment, the benefit of switching the flow to the standby system before the pressure test on the system is as follows: the normal access of the user is not influenced in the process of carrying out pressure test on the system, and meanwhile, the interference of the request generated by the access of the user on the pressure test result is avoided, so that the analysis report of each round of pressure test is more accurate.
It should be noted that, after the pressure test is finished, the flow is switched from the standby system to the target system to be tested, so that the target system to be tested processes the received service processing requests. With reference to fig. 3, after the system pressure test of the machine room 1 is finished, the address of the flow switching interface is adjusted again, so that the flow generated by the user access is switched from the system of the machine room 2 to the system of the machine room 1, thereby relieving the pressure of the standby system and ensuring the reasonable utilization of the system resources.
S240, performing pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when detecting that the current pressure test meets a preset pressure test quitting condition; the configuration file comprises at least one interface address of the interface to be tested.
S250, generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file; and the pressure measurement output result corresponds to the configuration item of each target configuration information in the configuration file.
And S260, updating target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report, and repeatedly performing pressure measurement on the target system to be tested based on the updated target configuration information.
According to the technical scheme, the pressure test data set and the configuration file are determined based on the acquired gateway log, so that the test tool can better meet the on-line actual situation when simulating the user request, further, before the pressure test is carried out on the target system to be tested, the flow of the target system to be tested is switched to the standby system by configuring the flow switching interface address, so that the normal access of the user is not influenced in the pressure test process, meanwhile, the interference of the request generated by the user access on the pressure test result is avoided, and the analysis report of each round of pressure test is more accurate.
EXAMPLE III
Fig. 4 is a schematic flow chart of a pressure measurement method according to a third embodiment of the present invention, where on the basis of the foregoing embodiment, a pressure measurement exit condition is preset in each pressure measurement process to ensure accuracy and reliability of a pressure test result, and further, a pressure measurement output result is imported into an ELK component for analysis processing to obtain a pressure measurement analysis report, and a visual view is obtained according to the pressure measurement analysis report, so that system performance trend information more valuable than a single pressure measurement result can be obtained, and reasonable planning and allocation of system resources are facilitated. The specific implementation manner can be referred to the technical scheme of the embodiment. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 4, the method specifically includes the following steps:
s310, determining a pressure test data set and a configuration file corresponding to the target system to be tested.
And S320, performing pressure test on each selected interface to be tested in the configuration file based on the resource locator in the pressure test data set.
The resource locators in the pressure test data set can represent processing interfaces when the system processes corresponding requests, and the user requests comprise multiple services, and different services correspond to different processing interfaces, so that in order to enable the pressure test process to be more similar to the actual access situation of a user, the corresponding system interface is selected for pressure test based on the resource locators in the pressure test data set in the configuration file.
S330, when the current pressure test is detected to meet the preset pressure test exit condition, exiting the pressure test to obtain a pressure test output result corresponding to the target system to be tested.
Optionally, the pressure measurement exit condition includes at least one of: the average response time of each interface to be tested exceeds a preset response time threshold; the error rate of the feedback data of each interface to be tested reaches a preset error rate threshold value; the interval duration between the current pressure test time and the pressure test starting time reaches a preset interval duration threshold value. In this embodiment, the pressure test exit condition may be set by writing a program or script. When the system monitors that the parameters exceed the corresponding threshold values in the pressure test process, the system may run in an overload state or generate a running problem, and may affect the test result, so that in order to ensure the accuracy and reliability of the pressure test result, the pressure test needs to be exited and a pressure test output result corresponding to the target system to be tested needs to be obtained.
The average response duration refers to the average time from the time when the user sends a request or an instruction to the time when the system responds in one transaction, and the average response duration is influenced by many factors, such as network bandwidth, the number of users, the number of submitted requests, the type of the request, and the average delay time, so for example, 1000ms may be used as a preset response duration threshold, and when it is detected that the time taken by the interface to be tested to respond to the user request exceeds 1000ms, the pressure test is exited. In each round of test, the system will continuously record the number of successful requests and the number of failed requests of the user, so that the error rate is the ratio of the number of failed requests to the number of successful requests, for example, 1% is used as a preset error rate threshold, and when the error rate is detected to be greater than 1%, the pressure test is exited. Because a long-time high-load and high-concurrency pressure test may cause a system downtime or a more serious problem, an interval duration threshold value may also be preset, that is, when a single pressure test reaches the preset interval duration threshold value, the pressure test is exited.
In this embodiment, the pressure measurement output result includes at least one of request duty ratio information, query rate quota per second information, and average response time information of each interface to be tested.
The query rate quota per second information is information characterizing a system QPS, and the QPS is a measure of how much traffic a specific system processes within a specified time, so that at least one of the QPS, request duty ratio information of each interface to be tested, and average response time information is output as a pressure measurement result.
S340, importing the pressure measurement output result into an ELK component to obtain an analysis result corresponding to the configuration item of the target configuration information; and determining a pressure measurement analysis report of the target system to be tested based on the analysis result.
The ELK is an acronym of three open source frameworks of the elastic search, Logstash and Kibana, so that the ELK component integrates the functions of the three open source frameworks and is used for data search, collection, analysis and conversion, and the core of the ELK component is the elastic search. The elastic search is a search server based on Lucene, provides a full-text search engine with the capability of processing distributed multi-users, can achieve real-time search, is stable, reliable and fast, and is convenient for users to install.
In this embodiment, after the pressure measurement result is imported into the ELK component, the data in the ELK component is analyzed through ELK analysis, so as to obtain an analysis result corresponding to the configuration item of the target configuration information, and further determine a pressure measurement analysis report of the target system to be tested based on the analysis result.
And S350, updating target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report, and repeatedly performing pressure measurement on the target system to be tested based on the updated target configuration information.
S360, obtaining a visual view corresponding to each configuration item in the configuration file according to a pressure measurement analysis report corresponding to each pressure measurement; and determining the stability of the target system to be tested based on the visual view.
After the pressure measurement analysis reports of the multi-round tests are processed through the cloud processing platform on the line or the data analysis tool under the line, trend graphs and/or report information can be generated, namely the visual views corresponding to the configurations in the configuration files are obtained, so that system performance trend information which is more valuable than a single pressure measurement result is obtained, and reasonable planning and distribution of system resources are facilitated.
According to the technical scheme, the pressure measurement quitting condition is preset in the pressure measurement process each time to ensure the accuracy and reliability of the pressure test result, further, the pressure measurement output result is led into the ELK component to be analyzed and processed to obtain a pressure measurement analysis report, a visual view is obtained according to the pressure measurement analysis report, system performance trend information which is more valuable than a single pressure measurement result can be obtained, and reasonable planning and distribution of system resources are facilitated.
Example four
As an alternative embodiment of the foregoing embodiment, fig. 5 is a schematic flow chart of a pressure measurement method according to a fourth embodiment of the present invention. For clearly describing the technical solution of the present embodiment, an application scenario may be described as an example in which a meter test tool is used to perform a multi-round pressure test on a system in an automated manner, but the present invention is not limited to the above scenario and may be applied to various scenarios requiring pressure test.
Referring to fig. 5, the overall automatic pressure measurement process is divided into three stages, the first stage is a stage of generating a pressure measurement data set and a configuration file, the second stage is a pressure test stage, and the third stage is a data analysis stage, which will be described below.
Continuing to refer to fig. 5, at the stage of generating the pressure measurement data set and the configuration file, determining the pressure measurement data set based on the resource locator in the gateway log by obtaining the gateway log corresponding to the target system to be tested; determining an interface to be tested based on the processing interfaces processed by the plurality of resource locators; and determining a configuration file based on the interface address of the interface to be tested, the number of concurrent connections, the data volume of the test set and the request occupation ratio preset occupation ratio threshold value of the interface to be tested. In order to make the test tool better conform to the online actual situation when simulating a user request, the url generated when the user actually accesses the system, which is extracted from the gateway log, is used as a pressure measurement data set, the generated pressure measurement data set may be a log file in a log format, and the generated configuration file may be a file in a jmx format, which is already supported by Windows, Mac and Linux platforms, before performing a pressure test, the file in the jmx format may be imported into a Jmeter of the pressure measurement tool, and parameters in the pressure measurement tool may be adaptively adjusted according to the content of the file.
Referring to fig. 5, a specific process of generating the configuration file includes using the processing interfaces corresponding to the resource locators as interfaces to be tested, determining an interface address, a concurrent connection number, a test set data amount, and a preset duty ratio threshold of a request duty ratio of the interfaces to be tested through the interfaces to be tested, and determining the configuration file based on the information. The number of concurrent connections is the number of point-to-point connections that can be processed simultaneously by the system interface, and can reflect the processing capability of the system on the service information flow, the access control capability on a plurality of connections, and the connection state tracking capability. The ratio of the requests of the interfaces to be tested to the total number of requests of each interface of the system may be, for example, 100000 total number of requests of the plurality of interfaces to be tested and 10000 total number of requests through the interface 1, where the ratio of the requests of the interface 1 as the interface to be tested is 10%.
With continued reference to fig. 5, in the pressure testing stage, before the meter pressure testing tool performs the pressure testing, it is necessary to determine a standby system corresponding to the target system to be tested, and switch the flow rate corresponding to the target system to be tested to the standby system. And the standby system and the target system to be tested have the same realization function. The benefit of switching flow to a backup system before pressure testing the system is: the normal access of the user is not influenced in the process of carrying out pressure test on the system, and meanwhile, the interference of the request generated by the access of the user on the pressure test result is avoided, so that the analysis report of each round of pressure test is more accurate. It should be noted that, after the pressure test is finished, the flow is switched from the standby system to the target system to be tested, so that the target system to be tested processes the received service processing requests.
With continued reference to FIG. 5, a pressure test is performed on the system using the Jmeter test tool. Before starting a Jmeter testing tool, configuring environment variables based on Java, starting the testing tool to create a test and add thread groups, configuring thread numbers, adding configuration elements, selecting the configuration elements as http request default values as simulated user requests are http requests, configuring program protocols, addresses and ports, constructing the http requests, namely setting request paths, data and header information of the http requests of interfaces to be tested based on a pressure test set and a configuration file, and finally adding assertions and listeners to execute the test in a command line mode.
Continuing to refer to fig. 5, when the pressure test is performed, if the preset pressure test exit condition is reached, the pressure test exits to obtain a pressure test output result corresponding to the target system to be tested. Wherein the pressure measurement exit condition comprises at least one of: the average response time of each interface to be tested exceeds a preset response time threshold; the error rate of the feedback data of each interface to be tested reaches a preset error rate threshold value; the interval duration between the current pressure test time and the pressure test starting time reaches a preset interval duration threshold value. In this embodiment, the pressure test exit condition may be set by writing a program or script. When the system monitors that the parameters exceed the corresponding threshold values in the pressure test process, the system may run in an overload state or generate a running problem, and may affect the test result, so that in order to ensure the accuracy and reliability of the pressure test result, the pressure test needs to be exited and a pressure test output result corresponding to the target system to be tested needs to be obtained. Thus, for example, 1000ms may be used as the preset response time threshold, and when it is monitored that the time taken for the interface to be tested to respond to the user request exceeds 1000ms, the pressure test is exited. In each round of test, the system will continuously record the number of successful requests and the number of failed requests of the user, so that the error rate is the ratio of the number of failed requests to the number of successful requests, for example, 1% is used as a preset error rate threshold, and when the error rate is detected to be greater than 1%, the pressure test is exited.
Continuing to refer to fig. 5, importing the pressure measurement output result into the ELK component to obtain an analysis result corresponding to the configuration item of the target configuration information; and determining a pressure measurement analysis report of the target system to be tested based on an analysis result output by the kibana service management platform in the component on the basis of pressure measurement, storing the pressure measurement analysis report into a database, updating target configuration information in the configuration file based on analysis data in the pressure measurement analysis report, and repeatedly measuring the target system to be tested based on the updated target configuration information.
Continuing to refer to fig. 5, in the data analysis stage, according to the pressure measurement analysis report corresponding to each pressure measurement, a visual view corresponding to each configuration item in the configuration file is obtained, and based on the visual view, the stability of the target system to be tested is determined. After the pressure measurement analysis reports of the multi-round tests are processed through the cloud processing platform on the line or the data analysis tool under the line, trend graphs and/or report information can be generated, namely the visual views corresponding to the configurations in the configuration files are obtained, so that system performance trend information which is more valuable than a single pressure measurement result is obtained, and reasonable planning and distribution of system resources are facilitated.
The beneficial effects of the above technical scheme are: the whole process of the multi-round pressure test can be completed in an automatic mode, and meanwhile, the target configuration information in the iterative configuration file is automatically updated before each round of pressure test, so that system performance trend information which is more valuable than a single pressure test result can be obtained, and reasonable planning and distribution of system resources are facilitated.
EXAMPLE five
Fig. 6 is a block diagram of a pressure measurement apparatus according to a fifth embodiment of the present invention, which is capable of executing a pressure measurement method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 6, the apparatus specifically includes: a pressure measurement data set and configuration file determining module 510, a pressure measurement output result generating module 520, a pressure measurement analysis report generating module 530, and a target configuration information updating module 540.
A pressure data set and configuration file determining module 510 for determining a pressure data set and configuration file corresponding to the target system to be tested.
A pressure test output result generating module 520, configured to perform a pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and when it is detected that the current pressure test meets a preset pressure test exit condition, exit the pressure test to obtain a pressure test output result corresponding to the target system to be tested; the configuration file comprises at least one interface address of the interface to be tested.
A pressure measurement analysis report generation module 530, configured to generate a pressure measurement analysis report corresponding to the target system to be tested, based on the pressure measurement output result and target configuration information preset in the configuration file; and the pressure measurement output result corresponds to the configuration item of each target configuration information in the configuration file.
And the target configuration information updating module 540 is configured to update the target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report, so as to perform repeated pressure measurement on the target system to be tested based on the updated target configuration information.
On the basis of the above technical solutions, the pressure measurement data set and configuration file determining module 510 includes a gateway log obtaining unit, a pressure measurement data set determining unit, a to-be-tested interface determining unit, and a configuration file determining unit.
And the gateway log obtaining unit is used for obtaining a gateway log corresponding to the target system to be tested.
And the pressure measurement data set determining unit is used for determining the pressure measurement data set based on the resource locator in the gateway log.
And the to-be-tested interface determining unit is used for determining the to-be-tested interface based on the processing interfaces processed by the plurality of resource locators.
And the configuration file determining unit is used for determining the configuration file based on the interface address of the interface to be tested, the number of concurrent connections, the data volume of the test set and the preset duty ratio threshold of the request duty ratio of the interface to be tested.
On the basis of the above technical solutions, the pressure measurement output result generation module 520 includes a flow cutting unit.
The flow switching unit is used for determining a standby system corresponding to the target system to be tested before pressure testing is carried out on each interface to be tested of the target system to be tested based on the pressure testing data set and the configuration file, and switching the flow corresponding to the target system to be tested to the standby system; and the standby system and the target system to be tested have the same realization function.
Optionally, the pressure test output result generating module 520 is further configured to perform a pressure test on each selected to-be-tested interface in the configuration file based on the resource locator in the pressure test data set; the pressure measurement exit condition includes at least one of: the average response time of each interface to be tested exceeds a preset response time threshold; the error rate of the feedback data of each interface to be tested reaches a preset error rate threshold value; the interval duration between the current pressure test time and the pressure test starting time reaches a preset interval duration threshold value.
Optionally, the pressure measurement output result includes at least one of request duty ratio information, query rate quota information per second, and average response time information of each interface to be tested.
On the basis of the above technical solutions, the pressure measurement analysis report generation module 530 includes an analysis result generation unit and a pressure measurement analysis report determination unit.
And the analysis result generating unit is used for importing the pressure measurement output result into the ELK component to obtain an analysis result corresponding to the configuration item of the target configuration information.
And the pressure measurement analysis report determining unit is used for determining a pressure measurement analysis report of the target system to be tested based on the analysis result.
Optionally, the target configuration information updating module 540 is further configured to obtain a visual view corresponding to each configuration item in the configuration file according to the pressure measurement analysis report corresponding to each pressure measurement.
Optionally, the flow switching unit is further configured to switch the flow from the standby system to the target system to be tested after the pressure test is finished, so that the target system to be tested processes the received service processing requests.
The pressure testing device provided by this embodiment performs pressure testing on each interface to be tested of the target system to be tested by determining a pressure testing data set and a configuration file corresponding to the target system to be tested, and exits the pressure testing to obtain a pressure testing output result corresponding to the target system to be tested when it is detected that the current pressure testing satisfies a preset pressure testing exit condition, based on the pressure testing output result and target configuration information preset in the configuration file, a pressure testing analysis report corresponding to the target system to be tested can be generated, based on analysis data in the pressure testing analysis report, target configuration information in the configuration file is updated, and repeated pressure testing is performed on the target system to be tested based on the updated target configuration information, thus, the invention can complete the whole process of multi-round pressure testing in an automatic manner, and simultaneously, automatically update target configuration information in an iteration configuration file before each round of pressure testing, the system performance trend information which is more valuable than a single pressure measurement result can be obtained, and reasonable planning and distribution of system resources are facilitated.
The pressure measurement device provided by the embodiment of the invention can execute the pressure measurement method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE six
Fig. 7 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary electronic device 60 suitable for use in implementing embodiments of the present invention. The electronic device 60 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the electronic device 60 is in the form of a general purpose computing device. The components of the electronic device 60 may include, but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 that couples various system components including the system memory 602 and the processing unit 601.
Bus 603 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 60 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 60 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 602 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)604 and/or cache memory 605. The electronic device 60 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 606 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 603 by one or more data media interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 608 having a set (at least one) of program modules 607 may be stored, for example, in memory 602, such program modules 607 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 607 generally perform the functions and/or methods of the described embodiments of the invention.
Electronic device 60 may also communicate with one or more external devices 609 (e.g., keyboard, pointing device, display 610, etc.), with one or more devices that enable a user to interact with electronic device 60, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 60 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 611. Also, the electronic device 60 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 612. As shown, the network adapter 612 communicates with the other modules of the electronic device 60 via the bus 603. It should be appreciated that although not shown in FIG. 7, other hardware and/or software modules may be used in conjunction with electronic device 60, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 601 executes various functional applications and data processing by running programs stored in the system memory 602, for example, implementing the pressure measurement method provided by the embodiment of the present invention.
EXAMPLE seven
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a pressure measurement method.
The method comprises the following steps:
determining a pressure measurement data set and a configuration file corresponding to a target system to be tested;
performing pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when detecting that the current pressure test meets a preset pressure test quitting condition; the configuration file comprises at least one interface address of an interface to be tested;
generating a pressure measurement analysis report corresponding to a target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file; the pressure measurement output result corresponds to the configuration item of each target configuration information in the configuration file;
and updating the target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report so as to repeatedly perform pressure measurement on the target system to be tested based on the updated target configuration information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A pressure measurement method, comprising:
determining a pressure measurement data set and a configuration file corresponding to a target system to be tested;
performing pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when detecting that the current pressure test meets a preset pressure test quitting condition; wherein, the configuration file comprises at least one interface address of an interface to be tested;
generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file; the pressure measurement output result corresponds to configuration items of all target configuration information in the configuration file;
and updating target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report so as to repeatedly perform pressure measurement on the target system to be tested based on the updated target configuration information.
2. The method of claim 1, wherein determining a set of pressure test data and a configuration file corresponding to a target system under test comprises:
acquiring a gateway log corresponding to the target system to be tested;
determining the pressure measurement dataset based on a resource locator in the gateway log;
determining an interface to be tested based on the processing interfaces processed by the plurality of resource locators;
and determining the configuration file based on the interface address of the interface to be tested, the number of concurrent connections, the data volume of the test set and the request occupation ratio preset occupation ratio threshold value of the interface to be tested.
3. The method of claim 1, further comprising, prior to said stress testing each interface under test of said target system under test based on said set of stress test data and said configuration file:
determining a standby system corresponding to the target system to be tested, and switching the flow corresponding to the target system to be tested to the standby system;
and the standby system and the target system to be tested have the same realization function.
4. The method of claim 1, wherein the stress testing each interface to be tested of the target system to be tested based on the stress test dataset and the configuration file comprises:
performing pressure test on each selected interface to be tested in the configuration file based on the resource locator in the pressure test data set;
the pressure measurement exit condition includes at least one of:
the average response time of each interface to be tested exceeds a preset response time threshold;
the error rate of the feedback data of each interface to be tested reaches a preset error rate threshold value;
the interval duration between the current pressure test time and the pressure test starting time reaches a preset interval duration threshold value.
5. The method of claim 1, wherein the pressure test output result comprises at least one of request-to-ratio information, query rate per second quota information, and average response time information of each interface to be tested.
6. The method of claim 1, wherein generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and target configuration information preset in the configuration file comprises:
importing the pressure measurement output result into an ELK component to obtain an analysis result corresponding to the configuration item of the target configuration information;
and determining a pressure measurement analysis report of the target system to be tested based on the analysis result.
7. The method of claim 1, further comprising:
obtaining a visual view corresponding to each configuration item in the configuration file according to a pressure measurement analysis report corresponding to each pressure measurement;
and determining the stability of the target system to be tested based on the visual view.
8. The method of claim 3, further comprising:
and after the pressure test is finished, switching the flow from the standby system to the target system to be tested so that the target system to be tested processes the received service processing requests.
9. A pressure measurement device, comprising:
the pressure measurement data set and configuration file determining module is used for determining a pressure measurement data set and a configuration file corresponding to a target system to be tested;
the pressure test output result generation module is used for carrying out pressure test on each interface to be tested of the target system to be tested based on the pressure test data set and the configuration file, and quitting the pressure test to obtain a pressure test output result corresponding to the target system to be tested when detecting that the current pressure test meets a preset pressure test quitting condition; wherein, the configuration file comprises at least one interface address of an interface to be tested;
the pressure measurement analysis report generation module is used for generating a pressure measurement analysis report corresponding to the target system to be tested based on the pressure measurement output result and preset target configuration information in the configuration file; and the pressure measurement output result corresponds to the configuration item of each target configuration information in the configuration file.
And the target configuration information updating module is used for updating the target configuration information in the configuration file based on the analysis data in the pressure measurement analysis report so as to repeatedly perform pressure measurement on the target system to be tested based on the updated target configuration information.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the pressure measurement method of any one of claims 1-8.
11. A storage medium containing computer-executable instructions for performing the pressure measurement method of any one of claims 1-8 when executed by a computer processor.
CN202110437984.XA 2021-04-22 2021-04-22 Pressure measurement method and device, electronic equipment and storage medium Pending CN113127356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110437984.XA CN113127356A (en) 2021-04-22 2021-04-22 Pressure measurement method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110437984.XA CN113127356A (en) 2021-04-22 2021-04-22 Pressure measurement method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113127356A true CN113127356A (en) 2021-07-16

Family

ID=76779538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110437984.XA Pending CN113127356A (en) 2021-04-22 2021-04-22 Pressure measurement method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113127356A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114153679A (en) * 2021-12-08 2022-03-08 南方电网数字电网研究院有限公司 Simulation environment-based substation gateway accessory equipment testing method and system
CN114268570A (en) * 2021-12-14 2022-04-01 扬州万方电子技术有限责任公司 Server cluster inspection flow visualization method based on intelligent terminal
CN114328196A (en) * 2021-12-16 2022-04-12 北京明朝万达科技股份有限公司 Method, device and equipment for testing data leakage prevention system and storage medium
CN117312157A (en) * 2023-09-28 2023-12-29 上海新迪数字技术有限公司 CAD software interface test feedback method, system and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874637A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 A kind of method of pressure test, system, electronic equipment and readable storage medium storing program for executing
CN109309596A (en) * 2017-07-28 2019-02-05 阿里巴巴集团控股有限公司 A kind of method for testing pressure, device and server
CN109426593A (en) * 2017-08-24 2019-03-05 北京京东尚科信息技术有限公司 The method and apparatus of automatic evaluation system performance
CN110245078A (en) * 2019-05-24 2019-09-17 平安国际智慧城市科技股份有限公司 A kind of method for testing pressure of software, device, storage medium and server
CN110457199A (en) * 2018-05-08 2019-11-15 北京京东尚科信息技术有限公司 The method and apparatus of performance test
CN110782211A (en) * 2019-10-25 2020-02-11 上海燕汐软件信息科技有限公司 Data processing method and device, electronic equipment and storage medium
CN110968468A (en) * 2019-12-18 2020-04-07 广州唯品会信息科技有限公司 Pressure testing method, terminal device and computer storage medium
CN111563014A (en) * 2019-02-13 2020-08-21 北京京东尚科信息技术有限公司 Interface service performance test method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874637A (en) * 2017-05-09 2018-11-23 北京京东尚科信息技术有限公司 A kind of method of pressure test, system, electronic equipment and readable storage medium storing program for executing
CN109309596A (en) * 2017-07-28 2019-02-05 阿里巴巴集团控股有限公司 A kind of method for testing pressure, device and server
CN109426593A (en) * 2017-08-24 2019-03-05 北京京东尚科信息技术有限公司 The method and apparatus of automatic evaluation system performance
CN110457199A (en) * 2018-05-08 2019-11-15 北京京东尚科信息技术有限公司 The method and apparatus of performance test
CN111563014A (en) * 2019-02-13 2020-08-21 北京京东尚科信息技术有限公司 Interface service performance test method, device, equipment and storage medium
CN110245078A (en) * 2019-05-24 2019-09-17 平安国际智慧城市科技股份有限公司 A kind of method for testing pressure of software, device, storage medium and server
CN110782211A (en) * 2019-10-25 2020-02-11 上海燕汐软件信息科技有限公司 Data processing method and device, electronic equipment and storage medium
CN110968468A (en) * 2019-12-18 2020-04-07 广州唯品会信息科技有限公司 Pressure testing method, terminal device and computer storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114153679A (en) * 2021-12-08 2022-03-08 南方电网数字电网研究院有限公司 Simulation environment-based substation gateway accessory equipment testing method and system
CN114268570A (en) * 2021-12-14 2022-04-01 扬州万方电子技术有限责任公司 Server cluster inspection flow visualization method based on intelligent terminal
CN114328196A (en) * 2021-12-16 2022-04-12 北京明朝万达科技股份有限公司 Method, device and equipment for testing data leakage prevention system and storage medium
CN117312157A (en) * 2023-09-28 2023-12-29 上海新迪数字技术有限公司 CAD software interface test feedback method, system and electronic equipment

Similar Documents

Publication Publication Date Title
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
CN113127356A (en) Pressure measurement method and device, electronic equipment and storage medium
US10116534B2 (en) Systems and methods for WebSphere MQ performance metrics analysis
CN110532168B (en) Full-link interface pressure measurement method and device, computer equipment and storage medium
Wang et al. Research on performance automation testing technology based on JMeter
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
US20210383295A1 (en) Method and apparatus for stress testing, electronic device and computer readable medium
CN111045911B (en) Performance test method, performance test device, storage medium and electronic equipment
CN110109824B (en) Big data autoregression test method and device, computer equipment and storage medium
CN111949545A (en) Automatic testing method, system, server and storage medium
CN113553267A (en) Application performance testing method, device, medium, and computer program product
CN114564374A (en) Operator performance evaluation method and device, electronic equipment and storage medium
CN111045879B (en) Method, device and storage medium for generating pressure test report
CN115757150A (en) Production environment testing method, device, equipment and storage medium
CN111913861A (en) Performance test method, device, equipment and medium of Internet of things system
CN112269697A (en) Equipment storage performance testing method, system and related device
CN116974874A (en) Database testing method and device, electronic equipment and readable storage medium
CN115248782B (en) Automatic testing method and device and computer equipment
CN115952098A (en) Performance test tuning scheme recommendation method and system
CN115509931A (en) System-based performance test method and device, electronic equipment and storage medium
CN114546743A (en) Method and device for testing performance of equipment interface
CN115017047A (en) Test method, system, equipment and medium based on B/S architecture
CN114138839A (en) Test account number implementation method based on database routing
CN113656314A (en) Pressure test processing method and device
Linling et al. Research on automatic test of WEB system based on Loadrunner

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