CN115391225A - Pressure measurement method and device - Google Patents

Pressure measurement method and device Download PDF

Info

Publication number
CN115391225A
CN115391225A CN202211119915.5A CN202211119915A CN115391225A CN 115391225 A CN115391225 A CN 115391225A CN 202211119915 A CN202211119915 A CN 202211119915A CN 115391225 A CN115391225 A CN 115391225A
Authority
CN
China
Prior art keywords
pressure measurement
script
scene
configuration information
generating
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
CN202211119915.5A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211119915.5A priority Critical patent/CN115391225A/en
Publication of CN115391225A publication Critical patent/CN115391225A/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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (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 application provides a pressure measurement method and a pressure measurement device, wherein the method comprises the following steps: connecting a content management system to pull server information; generating a pressure measurement scene according to the server information; configuring and debugging a preset original pressure measurement script to obtain a pressure measurement script; generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script; executing a pressure measurement task according to a preset task execution condition to obtain a pressure measurement result; and generating and outputting a pressure measurement report according to the pressure measurement result. Therefore, the method can automatically realize script debugging and pressure measurement without manual participation, and avoids overhead blind areas and loopholes, thereby providing systematic and continuous guarantee for pressure measurement.

Description

Pressure measurement method and device
Technical Field
The application relates to the technical field of computers, in particular to a pressure measurement method and device.
Background
At present, with the increasing of the line of the gold-eliminating product, more and more external channels are needed, production problems need to be found in time, and performance problems need to be early warned. At present, with the explosive growth of business, the application faces the challenge of high concurrent counterability. The bearing capacity of the server is not estimated, and the server is paralyzed due to the flood peak; if the data capacity is not estimated sufficiently, the data base will be bottlenecked and collapsed. The existing method generally includes editing and debugging a Jmeter script under a manual line, then washing data in a database, and if a plurality of sets of pressure measurement environments need to be switched, manually modifying the script. However, in practice, it is found that the existing method for performing pressure measurement by using a manual debugging script leads to a large amount of manual customization work, and a monitoring blind area and a leak exist, so that the pressure measurement lacks systematic and continuous guarantee.
Disclosure of Invention
An object of the embodiments of the present application is to provide a pressure measurement method and apparatus, which can automatically implement script debugging and perform pressure measurement, do not require manual intervention, and avoid overhead blind areas and leaks, thereby providing systematic and persistent guarantee for pressure measurement.
A first aspect of an embodiment of the present application provides a pressure measurement method, including:
connecting a content management system to pull server information;
generating a pressure measurement scene according to the server information;
configuring and debugging a preset original pressure measurement script to obtain a pressure measurement script;
generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script;
executing the pressure measurement task according to preset task execution conditions to obtain a pressure measurement result;
and generating a pressure measurement report according to the pressure measurement result and outputting the pressure measurement report.
In the implementation process, the method can preferentially connect the content management system to pull the server information; generating a pressure measurement scene according to the server information; then, carrying out configuration debugging on a preset original pressure measurement script to obtain a pressure measurement script; generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script; then, executing a pressure measurement task according to a preset task execution condition to obtain a pressure measurement result; and finally, generating a pressure measurement report according to the pressure measurement result and outputting the pressure measurement report. Therefore, by implementing the implementation mode, script debugging can be automatically realized, pressure measurement is carried out, manual participation is not needed, and overhead blind areas and leaks are avoided, so that systematic and continuous guarantee is provided for pressure measurement.
Further, the generating a pressure measurement scene according to the server information includes:
acquiring the pre-configuration information of the intelligent pressure measurement platform according to the server information, wherein the pre-configuration information comprises subsystem configuration information of the intelligent pressure measurement platform, environment configuration information of the intelligent pressure measurement platform and version configuration information of the intelligent pressure measurement platform;
and generating a pressure measurement scene according to the pre-configuration information, and associating the pressure measurement scene with a preset data construction algorithm.
Further, the executing the pressure measurement task according to the preset task execution condition to obtain a pressure measurement result includes:
when the pressure measurement task is executed according to preset task execution conditions, a target pressure measurement scene and a target pressure measurement script are determined according to the pressure measurement task;
carrying out data construction according to a data construction algorithm associated with the target pressure measurement scene to obtain pressure measurement data;
and performing pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result.
Further, after the pressure measurement is performed according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result, the method further includes:
and performing data cleaning on the pressure measurement data to prevent the used pressure measurement data from influencing normal service test.
Further, the configuring and debugging of the preset original pressure measurement script to obtain the pressure measurement script includes:
acquiring a preset original pressure measurement script and script configuration information; the script configuration information comprises environment configuration information, execution times, execution time, a pressure measurement mode and a pressure measurement result comparison version;
and configuring and debugging the original pressure measurement script according to the script configuration information to obtain a pressure measurement script.
A second aspect of the embodiments of the present application provides a pressure measurement device, including:
the docking unit is used for docking the content management system so as to pull the server information;
the scene generating unit is used for generating a pressure measurement scene according to the server information;
the script debugging unit is used for carrying out configuration debugging on a preset original pressure testing script to obtain a pressure testing script;
the task generating unit is used for generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script;
the execution unit is used for executing the pressure measurement task according to preset task execution conditions to obtain a pressure measurement result;
and the report generating unit is used for generating and outputting a pressure measurement report according to the pressure measurement result.
In the implementation process, the device can be used for connecting the content management system through the connecting unit so as to pull the server information; generating a pressure measurement scene according to the server information by a scene generation unit; configuring and debugging a preset original pressure measurement script through a script debugging unit to obtain a pressure measurement script; generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script through a task generating unit; executing the pressure measurement task according to a preset task execution condition through an execution unit to obtain a pressure measurement result; and generating and outputting a pressure measurement report according to the pressure measurement result by a report generating unit. Therefore, by implementing the implementation mode, script debugging can be automatically realized, pressure measurement is carried out, manual participation is not needed, and overhead blind areas and leaks are avoided, so that systematic and continuous guarantee is provided for pressure measurement.
Further, the scene generation unit includes:
the acquisition subunit is configured to acquire, according to the server information, pre-configuration information of the intelligent pressure measurement platform, where the pre-configuration information includes subsystem configuration information of the intelligent pressure measurement platform, environment configuration information of the intelligent pressure measurement platform, and version configuration information of the intelligent pressure measurement platform;
and the generating subunit is used for generating a pressure measurement scene according to the preset configuration information and associating the pressure measurement scene with a preset data construction algorithm.
Further, the execution unit includes:
the determining subunit is used for determining a target pressure measurement scene and a target pressure measurement script according to the pressure measurement task when the pressure measurement task is executed according to preset task execution conditions;
the data construction subunit is used for carrying out data construction according to a data construction algorithm associated with the target pressure measurement scene to obtain pressure measurement data;
and the pressure measurement subunit is used for performing pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result.
Further, the execution unit further includes:
and the cleaning subunit is used for performing pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result, and then performing data cleaning on the pressure measurement data to prevent the used pressure measurement data from influencing the normal service test.
Further, the script debugging unit includes:
the extraction subunit is used for acquiring a preset original pressure measurement script and script configuration information; the script configuration information comprises environment configuration information, execution times, execution time, a pressure measurement mode and a pressure measurement result comparison version;
and the debugging subunit is used for configuring and debugging the original pressure measurement script according to the script configuration information to obtain the pressure measurement script.
A third aspect of the embodiments of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the pressure measurement method described in any one of the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores computer program instructions, where the computer program instructions, when read and executed by a processor, perform the pressure measurement method according to any one of the first aspect of the embodiments of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flow chart of a pressure measurement method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another pressure measurement method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a pressure measurement device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another pressure measurement device provided in the embodiment of the present application;
fig. 5 is an application design diagram of a pressure measurement method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of a pressure measurement method according to an embodiment of the present disclosure. The pressure measurement method comprises the following steps:
and S101, connecting a content management system to pull server information.
And S102, generating a pressure measurement scene according to the server information.
S103, configuring and debugging the preset original pressure measurement script to obtain the pressure measurement script.
And S104, generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script.
And S105, executing the pressure measurement task according to the preset task execution condition to obtain a pressure measurement result.
And S106, generating and outputting a pressure measurement report according to the pressure measurement result.
In this embodiment, the method considers that the performance test mainly aims at four points: first script preparation, second data preparation, third environment preparation, and fourth report output. The conventional pressure test is to edit and debug a Jmeter script basically on line, then wash data in a database, modify the script if a plurality of sets of pressure test environments need to be switched, and the Jmeter is only provided with a basic performance test report. As business rapidly develops, there is a lack of systematicness and persistence with the use of meter pressure measurements. In order to solve the technical problems, the method provides a more intelligent pressure measurement method, and all usable environments are pulled by directly butting CMS through a platform; meanwhile, the process case and joba which can exist in the ATS by directly docking the ATS can directly refer to the scenario. In addition, the preparation of the number of generations before the corresponding pressure measurement can also be solved perfectly by the smart number in the ATS. And as for the pressure measurement report, communicating with the ATS report, the method not only can output a performance report, but also can output the case execution condition.
In this embodiment, referring to fig. 5, it can be seen that the method is designed in detail as follows:
(1) the intelligent pressure measurement (namely an execution main body-an intelligent pressure measurement platform) is in butt joint with the CMS, and the server information is automatically pulled; configuring a subsystem, an environment and a version on an intelligent pressure measurement platform;
(2) the ATS selects a link interface or a single interface and generates a pressure measurement scene by one key; the pressure measurement scene can be repeatedly utilized after being generated;
(3) the data structure in the ATS can be used for single or batch one-key correlation pressure measurement scenes; after the associated data is constructed, the data construction is automatically executed before the pressure measurement scene is executed, and the data required by the pressure measurement is buried in advance; and automatically cleaning data after the pressure measurement is completed; the influence of junk data on normal service test is prevented;
(4) debugging a pressure test script on line; when the pressure test script is debugged, the environment, the execution times, the execution time, the pressure test mode, the result comparison version and the like can be configured;
(5) after the pressure measurement result is obtained, the selected comparison version can be automatically compared to generate a pressure measurement report, and a pressure measurement result mail informs related personnel and synchronously files the pressure measurement report to the intelligent pressure measurement platform and the ATS platform.
In the field of financial science and technology, the method can improve the efficiency of compiling and maintaining the pressure measurement script, reduce the cost of embedding pressure measurement data and reduce the probability of influence on business test caused by pressure measurement of manufactured garbage data. Meanwhile, the method has breakthrough progress in system and continuous pressure measurement. Specifically, the pressure measurement scenes in the method can be generated by associating and selecting different link interfaces, so that the T +0 pressure measurement scene can be written, repeated pressure measurement in the service modification process can be performed again through the scenes, and a large amount of labor is saved. In addition, the data before pressure measurement is manufactured and the data after pressure measurement is cleaned automatically through the related data structure, so that the error rate and the time cost of manual data embedding and data cleaning are effectively reduced. Finally, because the version is selected before the pressure measurement is executed, the result comparison can be performed on the pressure measurement scene based on the version, and the performance optimization effect can be visually displayed.
In this embodiment, the execution subject of the method may be a computing device such as a computer and a server, and is not limited in this embodiment.
In this embodiment, the main body of the method may also be an intelligent device such as a smart phone and a tablet computer, which is not limited in this embodiment.
Therefore, the time cost for manually maintaining the pressure measurement scene can be saved by implementing the pressure measurement method described in the embodiment, so that the average compiling time of a single scene is reduced to be within 0.5 hour from 4 hours; the programming scene of T +0 can be realized, so that the pressure measurement scene can be automatically generated through the ATS after the development is finished, the pressure measurement scene can be repeatedly utilized, and the repeated pressure measurement time of the version is saved; the requirement on the skills of testers can be reduced, so that the testers do not need to manually write the pressure test scripts, and the existing scripts can be simply multiplexed; in addition, the method can save the time for manufacturing data and cleaning data, reduce the error rate of manual number manufacturing and cleaning, and greatly release the labor cost; finally, the method can acquire the manual contrast pressure measurement result after performance tuning, can perform systematic and continuous performance analysis on the manual contrast pressure measurement result, and can periodically archive the pressure measurement result and issue a related pressure measurement report.
Example 2
Referring to fig. 2, fig. 2 is a schematic flow chart of a pressure measurement method according to an embodiment of the present application. The pressure measurement method comprises the following steps:
s201, connecting a content management system to pull server information.
S202, acquiring the pre-configuration information of the intelligent pressure measurement platform according to the server information.
In this embodiment, the pre-configuration information includes subsystem configuration information of the intelligent pressure measurement platform, environment configuration information of the intelligent pressure measurement platform, and version configuration information of the intelligent pressure measurement platform.
S203, generating a pressure measurement scene according to the preset configuration information, and associating the pressure measurement scene with a preset data construction algorithm.
And S204, acquiring a preset original pressure measurement script and script configuration information.
In this embodiment, the script configuration information includes environment configuration information, execution times, execution time, a pressure measurement mode, and a pressure measurement result comparison version;
s205, configuring and debugging the original pressure measurement script according to the script configuration information to obtain a pressure measurement script.
And S206, generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script.
And S207, when the pressure measurement task is executed according to the preset task execution condition, determining a target pressure measurement scene and a target pressure measurement script according to the pressure measurement task.
And S208, carrying out data construction according to a data construction algorithm associated with the target pressure measurement scene to obtain pressure measurement data.
And S209, performing pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result.
S210, performing data cleaning on the pressure measurement data to prevent the used pressure measurement data from influencing normal service test.
And S211, generating and outputting a pressure measurement report according to the pressure measurement result.
In the field of financial science and technology, the method can improve the efficiency of compiling and maintaining the pressure measurement script, reduce the cost of embedding pressure measurement data and reduce the probability of influence on business test caused by pressure measurement of manufactured garbage data. Meanwhile, the method has breakthrough progress in system and continuous pressure measurement. Specifically, the pressure measurement scenes in the method can be generated by associating and selecting different link interfaces, so that the T +0 pressure measurement scene can be written, repeated pressure measurement in the service modification process can be performed again through the scenes, and a large amount of labor is saved. In addition, the data before pressure measurement is manufactured and the data after pressure measurement is cleaned automatically through the related data structure, so that the error rate and the time cost of manual data embedding and data cleaning are effectively reduced. Finally, because the version is selected before the pressure measurement is executed, the result comparison can be performed on the pressure measurement scene based on the version, and the performance optimization effect can be visually displayed.
In this embodiment, the execution subject of the method may be a computing device such as a computer and a server, and is not limited in this embodiment.
In this embodiment, an execution subject of the method may also be an intelligent device such as a smart phone and a tablet computer, which is not limited in this embodiment.
Therefore, the pressure measurement method described in the embodiment can save the time cost for manually maintaining the pressure measurement scene, so that the writing time average of a single scene is reduced to be within 0.5 hour from 4 hours; the programming scene of T +0 can be realized, so that the pressure measurement scene can be automatically generated through the ATS after the development is finished, the pressure measurement scene can be repeatedly utilized, and the repeated pressure measurement time of the version is saved; the requirement on the skills of testers can be reduced, so that the testers do not need to manually write a pressure test script, and the existing script can be simply multiplexed; in addition, the method can save the time for manufacturing data and cleaning data, reduce the error rate of manual number manufacturing and cleaning, and greatly release the labor cost; finally, the method can acquire the manual contrast pressure measurement result after performance tuning, can perform systematic and continuous performance analysis on the manual contrast pressure measurement result, and can periodically archive the pressure measurement result and issue a related pressure measurement report.
Example 3
Please refer to fig. 3, fig. 3 is a schematic structural diagram of a pressure measurement apparatus according to an embodiment of the present disclosure. As shown in fig. 3, the pressure measuring apparatus includes:
a docking unit 310 for docking the content management system to pull the server information;
a scene generating unit 320, configured to generate a pressure measurement scene according to the server information;
the script debugging unit 330 is configured and debugged for a preset original pressure measurement script to obtain a pressure measurement script;
a task generating unit 340, configured to generate a pressure measurement task according to the pressure measurement scenario and the pressure measurement script;
the execution unit 350 is configured to execute the pressure measurement task according to a preset task execution condition to obtain a pressure measurement result;
and a report generating unit 360, configured to generate and output a pressure measurement report according to the pressure measurement result.
In this embodiment, for the explanation of the pressure measurement device, reference may be made to the description in embodiment 1 or embodiment 2, and details are not repeated in this embodiment.
Therefore, the pressure measurement device described in the embodiment can save the time cost for manually maintaining the pressure measurement scene, so that the time average for compiling a single scene is reduced to be within 0.5 hour from 4 hours; the programming scene of T +0 can be realized, so that the pressure measurement scene can be automatically generated through the ATS after the development is finished, the pressure measurement scene can be repeatedly utilized, and the repeated pressure measurement time of the version is saved; the requirement on the skills of testers can be reduced, so that the testers do not need to manually write a pressure test script, and the existing script can be simply multiplexed; in addition, the method can save the time for manufacturing data and cleaning data, reduce the error rate of manual number manufacturing and cleaning, and greatly release the labor cost; finally, the method can acquire the manual contrast pressure measurement result after performance tuning, can perform systematic and continuous performance analysis on the manual contrast pressure measurement result, and can periodically archive the pressure measurement result and issue a related pressure measurement report.
Example 4
Referring to fig. 4, fig. 4 is a schematic structural diagram of a pressure measurement apparatus according to an embodiment of the present disclosure. As shown in fig. 4, the pressure measuring apparatus includes:
a docking unit 310 for docking the content management system to pull the server information;
a scene generating unit 320, configured to generate a pressure measurement scene according to the server information;
the script debugging unit 330 is configured and debugged for a preset original pressure measurement script to obtain a pressure measurement script;
a task generating unit 340, configured to generate a pressure measurement task according to the pressure measurement scenario and the pressure measurement script;
the execution unit 350 is configured to execute the pressure measurement task according to a preset task execution condition to obtain a pressure measurement result;
and a report generating unit 360, configured to generate and output a pressure measurement report according to the pressure measurement result.
As an optional implementation manner, the scene generating unit 320 includes:
an obtaining subunit 321, configured to obtain, according to the server information, pre-configuration information of an intelligent pressure measurement platform, where the pre-configuration information includes subsystem configuration information of the intelligent pressure measurement platform, environment configuration information of the intelligent pressure measurement platform, and version configuration information of the intelligent pressure measurement platform;
and a generating subunit 322, configured to generate a pressure measurement scenario according to the preconfigured information, and associate the pressure measurement scenario with a preset data construction algorithm.
As an optional implementation, the execution unit 350 includes:
the determining subunit 351 is configured to determine, when the pressure measurement task is executed according to preset task execution conditions, a target pressure measurement scene and a target pressure measurement script according to the pressure measurement task;
a data construction subunit 352, configured to perform data construction according to a data construction algorithm associated with the target pressure measurement scenario, so as to obtain pressure measurement data;
and the pressure measurement subunit 353 is used for performing pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result.
As an optional implementation manner, the execution unit 350 further includes:
and a cleaning subunit 354, configured to perform pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result, and then perform data cleaning on the pressure measurement data to prevent the used pressure measurement data from affecting a normal service test.
As an optional implementation, the script debugging unit 330 includes:
the extracting subunit 331 is configured to obtain a preset original pressure measurement script and script configuration information; the script configuration information comprises environment configuration information, execution times, execution time, a pressure measurement mode and a pressure measurement result comparison version;
and the debugging subunit 332 is configured and debugged to the original pressure measurement script according to the script configuration information, so as to obtain a pressure measurement script.
In this embodiment, for the explanation of the pressure measurement device, reference may be made to the description in embodiment 1 or embodiment 2, and details are not repeated in this embodiment.
Therefore, the pressure measurement device described in the embodiment can save the time cost for manually maintaining the pressure measurement scene, so that the time average for compiling a single scene is reduced to be within 0.5 hour from 4 hours; the programming scene of T +0 can be realized, so that the pressure measurement scene can be automatically generated through the ATS after the development is finished, the pressure measurement scene can be repeatedly utilized, and the repeated pressure measurement time of the version is saved; the requirement on the skills of testers can be reduced, so that the testers do not need to manually write a pressure test script, and the existing script can be simply multiplexed; in addition, the method can save the time for manufacturing data and cleaning data, reduce the error rate of manual number manufacturing and cleaning, and greatly release the labor cost; finally, the method can acquire the manual contrast pressure measurement result after performance tuning, can perform systematic and continuous performance analysis on the manual contrast pressure measurement result, and can periodically archive the pressure measurement result and issue a related pressure measurement report.
The embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the pressure measurement method in embodiment 1 or embodiment 2 of the present application.
An embodiment of the present application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the computer program instructions execute the pressure measurement method in embodiment 1 or embodiment 2 of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A pressure measurement method, comprising:
connecting a content management system to pull server information;
generating a pressure measurement scene according to the server information;
configuring and debugging a preset original pressure measurement script to obtain a pressure measurement script;
generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script;
executing the pressure measurement task according to preset task execution conditions to obtain a pressure measurement result;
and generating a pressure measurement report according to the pressure measurement result and outputting the pressure measurement report.
2. The pressure measurement method according to claim 1, wherein the generating a pressure measurement scenario according to the server information includes:
acquiring the pre-configuration information of the intelligent pressure measurement platform according to the server information, wherein the pre-configuration information comprises subsystem configuration information of the intelligent pressure measurement platform, environment configuration information of the intelligent pressure measurement platform and version configuration information of the intelligent pressure measurement platform;
and generating a pressure measurement scene according to the pre-configuration information, and associating the pressure measurement scene with a preset data construction algorithm.
3. The pressure measurement method according to claim 1, wherein the executing the pressure measurement task according to the preset task execution condition to obtain a pressure measurement result comprises:
when the pressure measurement task is executed according to preset task execution conditions, a target pressure measurement scene and a target pressure measurement script are determined according to the pressure measurement task;
carrying out data construction according to a data construction algorithm associated with the target pressure measurement scene to obtain pressure measurement data;
and performing pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result.
4. The pressure measurement method according to claim 3, wherein after the pressure measurement is performed according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result, the method further comprises:
and performing data cleaning on the pressure measurement data to prevent the used pressure measurement data from influencing normal service test.
5. The pressure measurement method according to claim 1, wherein the configuring and debugging a preset original pressure measurement script to obtain a pressure measurement script comprises:
acquiring a preset original pressure measurement script and script configuration information; the script configuration information comprises environment configuration information, execution times, execution time, a pressure measurement mode and a pressure measurement result comparison version;
and configuring and debugging the original pressure measurement script according to the script configuration information to obtain the pressure measurement script.
6. A pressure measurement device, comprising:
the docking unit is used for docking the content management system so as to pull the server information;
the scene generating unit is used for generating a pressure measurement scene according to the server information;
the script debugging unit is used for configuring and debugging a preset original pressure measurement script to obtain a pressure measurement script;
the task generating unit is used for generating a pressure measurement task according to the pressure measurement scene and the pressure measurement script;
the execution unit is used for executing the pressure measurement task according to preset task execution conditions to obtain a pressure measurement result;
and the report generating unit is used for generating and outputting a pressure measurement report according to the pressure measurement result.
7. The pressure measurement device according to claim 6, wherein the scene generation unit includes:
the acquisition subunit is configured to acquire, according to the server information, pre-configuration information of the intelligent pressure measurement platform, where the pre-configuration information includes subsystem configuration information of the intelligent pressure measurement platform, environment configuration information of the intelligent pressure measurement platform, and version configuration information of the intelligent pressure measurement platform;
and the generating subunit is used for generating a pressure measurement scene according to the preset configuration information and associating the pressure measurement scene with a preset data construction algorithm.
8. The pressure measurement device of claim 6, wherein the execution unit comprises:
the determining subunit is used for determining a target pressure measurement scene and a target pressure measurement script according to the pressure measurement task when the pressure measurement task is executed according to preset task execution conditions;
the data construction subunit is used for carrying out data construction according to a data construction algorithm associated with the target pressure measurement scene to obtain pressure measurement data;
and the pressure measurement subunit is used for carrying out pressure measurement according to the pressure measurement data and the target pressure measurement script to obtain a pressure measurement result.
9. An electronic device, comprising a memory for storing a computer program and a processor for executing the computer program to cause the electronic device to perform the pressure measurement method of any one of claims 1 to 5.
10. A readable storage medium having stored thereon computer program instructions which, when read and executed by a processor, perform the pressure measurement method of any one of claims 1 to 5.
CN202211119915.5A 2022-09-14 2022-09-14 Pressure measurement method and device Pending CN115391225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211119915.5A CN115391225A (en) 2022-09-14 2022-09-14 Pressure measurement method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211119915.5A CN115391225A (en) 2022-09-14 2022-09-14 Pressure measurement method and device

Publications (1)

Publication Number Publication Date
CN115391225A true CN115391225A (en) 2022-11-25

Family

ID=84126591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211119915.5A Pending CN115391225A (en) 2022-09-14 2022-09-14 Pressure measurement method and device

Country Status (1)

Country Link
CN (1) CN115391225A (en)

Similar Documents

Publication Publication Date Title
CN104252481B (en) The dynamic check method and apparatus of master-slave database consistency
CN111290956B (en) Brain graph-based test method and device, electronic equipment and storage medium
CN104461903A (en) Method and device for testing client side based on browser
CN110737594A (en) Database standard conformance testing method and device for automatically generating test cases
CN111026647B (en) Method and device for acquiring code coverage rate, computer equipment and storage medium
CN109885474A (en) Test case edit methods and device, terminal and computer readable storage medium
WO2006007588A2 (en) Method and system for test case generation
CN112328499A (en) Test data generation method, device, equipment and medium
CN109101412B (en) Test file generation method, test file generation device, test file testing method, test file testing device, storage medium and computer equipment
CN114141302A (en) Test method of solid state disk and electronic equipment
CN114090582A (en) Method, apparatus, device, storage medium and program product for generating domain model
CN111382198A (en) Data recovery method, device, equipment and storage medium
CN115391225A (en) Pressure measurement method and device
CN116561003A (en) Test data generation method, device, computer equipment and storage medium
CN116010244A (en) Automatic test method, device, electronic equipment and storage medium
CN108287788A (en) A kind of use-case step matching method based on test case, system
CN112101000A (en) Information consistency test method, device, equipment and computer readable storage medium
CN112527557A (en) Data recovery method, device and equipment and computer readable storage medium
CN111881035A (en) Method, device and equipment for acquiring on-line analog data
CN116795723B (en) Chain unit test processing method and device and computer equipment
CN110008114B (en) Configuration information maintenance method, device, equipment and readable storage medium
CN117112291A (en) Data backup method and backup device
CN111338963B (en) Method and device for generating universal test script of system configuration command
CN117112305A (en) Test data recovery method, device, equipment, medium and product
CN116501562A (en) Hard disk testing method, device, 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