CN113220550B - Performance test method and device for flow layout software - Google Patents
Performance test method and device for flow layout software Download PDFInfo
- Publication number
- CN113220550B CN113220550B CN202110500246.5A CN202110500246A CN113220550B CN 113220550 B CN113220550 B CN 113220550B CN 202110500246 A CN202110500246 A CN 202110500246A CN 113220550 B CN113220550 B CN 113220550B
- Authority
- CN
- China
- Prior art keywords
- software
- file
- time stamp
- test
- ith
- 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.)
- Active
Links
- 238000011056 performance test Methods 0.000 title claims abstract description 149
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000012360 testing method Methods 0.000 claims abstract description 129
- 238000012790 confirmation Methods 0.000 claims description 9
- 230000008569 process Effects 0.000 description 10
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3419—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
- G06F11/3423—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time where the assessed time is active or idle time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/805—Real-time
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a method for testing the performance of flow layout software, which comprises the following steps: when the performance test of the first flow format software is started, automatically recording a time stamp of the current moment as a first time stamp; determining a first test file of the first flow format software according to a file path of the first flow format software; opening a first test file through first flow format software, and automatically recording a time stamp of the current moment as a second time stamp when judging that preset key information for indicating that the first test file is completely opened is obtained; and subtracting the first time stamp from the second time stamp to automatically obtain the file opening time of the first flow format software so as to complete the file opening time project in the performance test of the first flow format software. By applying the scheme of the application, the testing efficiency is improved. The application also provides a performance testing device of the stream format software, and the device has corresponding technical effects.
Description
Technical Field
The invention relates to the technical field of software testing, in particular to a method and a device for testing the performance of flow format software.
Background
Currently, when the performance of the flow format software is tested, a manual operation testing mode is generally adopted, and the time consumption of a testing project needs to be recorded in a manual timing mode. The timing mode of manual timing is adopted, so that the error is large, the data is inaccurate, the labor cost is high, and the testing efficiency is low.
In summary, how to effectively perform the performance test of the stream format software and improve the test efficiency is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method and a device for testing the performance of stream format software, so as to effectively test the performance of the stream format software and improve the testing efficiency.
In order to solve the technical problems, the invention provides the following technical scheme:
a performance test method of stream layout software comprises the following steps:
when the performance test of the first flow format software is started, automatically recording a time stamp of the current time as a first time stamp;
determining a first test file of the first flow format software according to the file path of the first flow format software;
opening the first test file through the first flow format software, and automatically recording a time stamp of the current moment as a second time stamp when judging that preset key information for indicating that the first test file is completely opened is obtained;
and subtracting the first time stamp from the second time stamp to automatically obtain the file opening time of the first flow and layout software so as to complete the file opening time project in the performance test of the first flow and layout software.
Preferably, after completing the file open time item in the performance test of the first flow format software, the method further includes:
sequentially carrying out performance tests on K preset items of the first flow format software, and obtaining performance test parameters of each item; k is a positive integer;
when any item in the K items is completed, automatically recording a time stamp of the moment when the item is completed;
determining the test time consumption of each project in the K projects according to the recorded K timestamps and the second timestamp;
and aiming at any item in the K items, taking the test time consumption and the performance test parameters of the item as the obtained performance test result of the item of the first flow format software.
Preferably, after completing the file open time item in the performance test of the first flow format software, the method further includes:
judging whether a difference value obtained by subtracting the first time stamp from the second time stamp is within a preset numerical range;
if not, stopping the performance test of the first flow format software;
and if so, executing the operation of sequentially carrying out the performance test of the preset K items of the first flow format software.
Preferably, after stopping performing the performance test of the first flow layout software, the method further includes:
and outputting the first prompt message.
Preferably, the method further comprises the following steps: simultaneously carrying out performance tests on the 2 nd to Nth stream format software, wherein N is a positive integer not less than 2; and, the performing the performance test of the 2 nd to nth flow layout software includes:
when the performance test of the ith stream format software is started, automatically recording a time stamp of the current moment as an ith initial time stamp;
determining an ith test file of the ith stream layout software according to the file path of the ith stream layout software;
opening the ith test file through the ith streaming format software, and automatically recording a time stamp of the current moment as an ith cut-off time stamp when preset key information for indicating that the ith test file is completely opened is judged to be obtained;
and subtracting the ith starting time stamp from the ith ending time stamp to automatically obtain the file opening time of the ith stream layout software so as to complete a file opening time item in the performance test of the ith stream layout software, wherein i is a positive integer and is more than or equal to 2 and less than or equal to N.
A performance testing apparatus of streaming layout software, comprising:
the starting time stamp recording unit is used for automatically recording the time stamp of the current moment as a first time stamp when the performance test of the first flow format software is started;
the file determining unit is used for determining a first test file of the first flow format software according to the file path of the first flow format software;
a cut-off time stamp recording unit, configured to open the first test file through the first streaming software, and when it is determined that preset key information indicating that the first test file is completely opened is obtained, automatically record a time stamp at a current time, and use the time stamp as a second time stamp;
and the time-consuming confirmation unit is used for subtracting the first time stamp from the second time stamp to automatically obtain the file opening time of the first flow format software so as to finish the file opening time item in the performance test of the first flow format software.
Preferably, the method further comprises the following steps: a performance test parameter obtaining unit and a performance test result obtaining unit;
the performance test parameter acquisition unit is used for sequentially carrying out performance tests on K preset items of the first flow format software after the time-consuming confirmation unit completes a file opening time item in the performance test of the first flow format software, and obtaining performance test parameters of each item; k is a positive integer;
the expiration time stamp recording unit is further configured to: when any item in the K items is completed, automatically recording a time stamp of the moment when the item is completed;
the time-consuming confirmation unit is further configured to: determining the test time consumption of each project in the K projects according to the recorded K timestamps and the second timestamp;
the performance test result obtaining unit is configured to, for any one of the K items, use the test time consumption and the performance test parameters of the item as the obtained performance test result of the item of the first flow-format software.
Preferably, the method further comprises the following steps:
the first judging unit is used for judging whether a difference value obtained by subtracting the first timestamp from the second timestamp is in a preset numerical value range or not after the time-consuming confirming unit finishes a file opening time item in the performance test of the first flow format software;
if not, triggering a stopping unit, wherein the stopping unit is used for stopping the performance test of the first flow format software;
if yes, triggering the performance test parameter acquisition unit to execute the operation of sequentially performing the performance tests of the preset K items of the first flow format software.
Preferably, the method further comprises the following steps:
and the prompt information output unit is used for outputting first prompt information after the stopping unit stops the performance test of the first flow layout software.
Preferably, the method further comprises the following steps: the 2 nd to Nth parallel execution modules are used for simultaneously carrying out performance tests on the 2 nd to Nth flow format software, wherein N is a positive integer not less than 2; and an ith parallel execution module to:
when the performance test of the ith stream format software is started, automatically recording a time stamp of the current time as an ith starting time stamp;
determining an ith test file of the ith stream format software according to the file path of the ith stream format software;
opening the ith test file through the ith streaming format software, and automatically recording a time stamp of the current moment as an ith cut-off time stamp when preset key information for indicating that the ith test file is completely opened is judged to be obtained;
and subtracting the ith starting time stamp from the ith ending time stamp to automatically obtain the file opening time of the ith stream layout software so as to complete a file opening time item in the performance test of the ith stream layout software, wherein i is a positive integer and is more than or equal to 2 and less than or equal to N.
By applying the technical scheme provided by the embodiment of the invention, the performance test of the stream layout software can be automatically carried out. Specifically, when the performance test of the flow format software is considered, the file opening time is usually required to be tested, so that when the performance test of the first flow format software is started, the time stamp of the current moment can be automatically recorded and used as the first time stamp, and then the first test file of the first flow format software is determined according to the file path of the first flow format software. Open first test file through first flow format software to when judging out obtain be used for expressing the preset key information that first test file opened completely, the test of description file opening time has been accomplished, can note the time stamp of current moment automatically this moment, and as the second time stamp, subtract first time stamp with the second time stamp, the file opening time of automatic first flow format software that obtains, thereby this item of file opening time in the capability test of first flow format software has been accomplished. The method and the device can automatically finish the project of the file opening time in the performance test of the flow format software, can automatically obtain the test time consumption of the project, and compared with a manual timing mode, the method and the device have the advantages that the error of the automatic timing mode is smaller, the labor cost is effectively reduced, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an embodiment of a method for testing the performance of flow layout software according to the present invention;
fig. 2 is a schematic structural diagram of a performance testing apparatus for flow layout software according to the present invention.
Detailed Description
The core of the invention is to provide a method for testing the performance of the flow format software, which can automatically complete the project of the file opening time in the performance test of the flow format software, can automatically obtain the test time consumption of the project, and compared with a manual timing mode, the automatic timing mode of the method has smaller error, effectively reduces the labor cost and improves the test efficiency.
In order that those skilled in the art will better understand the disclosure, reference will now be made in detail to the embodiments of the disclosure as illustrated in the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a method for testing performance of a flow layout software according to the present invention, where the method for testing performance of a flow layout software may include the following steps:
step S101: when the performance test of the first flow format software is started, the time stamp of the current moment is automatically recorded and used as the first time stamp.
The first streaming layout software may be any type of streaming software, and may also be any type of layout software. And it is to be understood that any one of the 2 nd to nth stream layout software described in the following embodiments may be any type of stream software, and may also be any type of layout software. Word, WPS, etc. are typical streaming software, PDF, etc. are common layout software.
When the performance test of the first flow format software is started, the time stamp of the current moment can be automatically recorded by the performance test device of the flow format software and used as the first time stamp, and therefore, the first time stamp is the starting time of the performance test of the first flow format software.
Step S102: and determining a first test file of the first flow format software according to the file path of the first flow format software.
Step S102 is performed approximately simultaneously with step S101, that is, while recording the first timestamp, the performance testing apparatus of the streaming format software immediately determines the first test file of the first streaming format software according to the file path of the first streaming format software.
The first test file may be preset and placed in a required file path, and it is understood that the specific configuration and content of the first test file may be set and adjusted according to actual needs, for example, may be set and adjusted according to a specific type of the first flow layout software in actual application. The first test file is a test file used for performing a file open time test of the first flow layout software.
Step S103: and opening the first test file through the first flow format software, and automatically recording a time stamp of the current moment as a second time stamp when judging that preset key information for indicating that the first test file is completely opened is obtained.
After the first test file of the first flow format software is determined according to the file path of the first flow format software, the first test file may be opened through the first flow format software, and it may be understood that the opening time may be affected by the size, format, and other factors of the first test file, and in general, the larger the first test file, the longer the opening time is required.
In the process of opening the first test file through the first flow format software, if the first flow format software completely opens the first test file, the first flow format software may generate preset key information to indicate that the first flow format software completely opens the first test file, and the performance test device of the flow format software may acquire the key information from the first flow format software. The specific format and content of the preset key information can be preset and adjusted through the first flow layout software according to needs, and are generally influenced by factors such as the software type of the first flow layout software.
In the process of opening the first test file through the first flow format software, the performance test device of the flow format software can be in real time, or judge whether preset key information can be obtained from the first flow format software at present according to a preset period, if the preset key information is obtained, the first flow format software is proved to have completely opened the first test file at the moment, therefore, when the preset key information used for representing that the first test file is completely opened is obtained through judgment, the performance test device of the flow format software can automatically record the timestamp at the current moment and serve as the second timestamp.
Step S104: and subtracting the first time stamp from the second time stamp to automatically obtain the file opening time of the first flow format software so as to complete the file opening time project in the performance test of the first flow format software.
After the performance testing device of the flow format software obtains the second timestamp, the first timestamp is automatically subtracted from the second timestamp, the obtained difference is the time consumed for opening the first test file corresponding to the first flow format software, namely the file opening time of the first flow format software, and at the moment, the test of the file opening time item in the performance test of the first flow format software is completed.
In addition, in practical application, different types of stream layout software generally have a file open time item during performance testing, and in practical application, the file open time is a relatively important performance index of many types of stream layout software.
In an embodiment of the present invention, after step S104, the following steps may be further included:
the method comprises the following steps: sequentially carrying out performance tests on K preset items of the first flow format software, and obtaining performance test parameters of the items; k is a positive integer;
step two: when any one of the K items is completed, automatically recording a time stamp of the time when the item is completed;
step three: determining the test time consumption of each project in the K projects according to the recorded K timestamps and the second timestamp;
step four: and regarding any item in the K items, taking the test time consumption and the performance test parameters of the item as the obtained performance test result of the item of the first flow-format software.
In the implementation mode, considering that some types of first flow format software may only need to perform the performance test of the file opening time when performing the performance test of the first flow format software, and some types of first flow format software may also need to perform the performance test of other items, therefore, in the implementation mode, the performance test device of the flow format software can be continuously utilized to automatically perform the performance test of other items, so that the test efficiency is further improved, and the labor cost is saved.
Specifically, after step S104, performance tests of preset K items of the first flow layout software may be sequentially performed, and after the performance test of each item is completed, a performance test parameter of the item is obtained. K is a positive integer, depending on the number of performance test items.
In addition, in the embodiment of the application, when any one of the K items is completed, besides recording the performance test parameters of the item, a time stamp of the time when the item is completed is also automatically recorded, so that the test time consumption of each item in the K items can be determined according to the recorded K time stamps and the second time stamp. For example, K is 2, that is, a timestamp of the time when the 1 st item is completed and a timestamp of the time when the 2 nd item is completed are recorded, and for example, the timestamps are respectively referred to as a timestamp a and a timestamp B, the test elapsed time of the 1 st item can be obtained by subtracting the second timestamp from the timestamp a, and the test elapsed time of the 2 nd item can be obtained by subtracting the timestamp a from the timestamp B.
According to any item in the K items, the test time consumption and the performance test parameters of the item are used as the performance test result of the item of the first flow format software, and the performance test result contains the test time consumption of the item, so that more comprehensive analysis of the performance test result is facilitated. In addition, any item in the performance test can be automatically tested by using the performance test device of the flow format software, and time-consuming calculation is automatically performed, so that the test efficiency is improved, and the labor cost is saved.
In an embodiment of the present invention, after step S104, the method may further include:
judging whether the difference value obtained by subtracting the first time stamp from the second time stamp is in a preset numerical range or not;
if not, stopping the performance test of the first flow format software;
if yes, sequentially performing performance tests on K preset items of the first flow layout software.
In this embodiment, after step S104, it is determined whether a difference obtained by subtracting the first timestamp from the second timestamp is within a preset value range.
If not, the result indicates that the test process of the file opening time item is abnormal or the first flow format software is abnormal, so that in the implementation mode, the performance test of the first flow format software is automatically stopped without performing the test of the subsequent item, and a tester can conveniently find the abnormal condition, process and record the abnormal condition.
Further, in some embodiments, after the performance test of the first flow format software is stopped, the first prompt information may be output, so that the tester can notice the situation in time, and record and process the situation.
Of course, if the difference obtained by subtracting the first timestamp from the second timestamp is within the preset value range, the subsequent performance test items can be continuously executed, that is, the operation of sequentially performing the performance tests on the preset K items of the first flow format software is executed.
In one embodiment of the present invention, the method further comprises: simultaneously carrying out performance tests on the 2 nd to Nth stream format software, wherein N is a positive integer not less than 2; and, the performance test of the 2 nd to Nth flow format software comprises the following steps:
when the performance test of the ith stream format software is started, automatically recording a time stamp of the current time as an ith starting time stamp;
determining an ith test file of the ith stream format software according to the file path of the ith stream format software;
opening an ith test file through ith streaming format software, and automatically recording a time stamp of the current moment as an ith cut-off time stamp when preset key information for indicating that the ith test file is completely opened is judged to be obtained;
and subtracting the ith starting time stamp from the ith ending time stamp to automatically obtain the file opening time of the ith stream format software so as to complete the file opening time item in the performance test of the ith stream format software, wherein i is a positive integer and is more than or equal to 2 and less than or equal to N.
In the embodiment, the performance testing device of the stream layout software is used for simultaneously carrying out automatic performance testing on a plurality of stream layout software, and time consumption calculation of the testing is carried out, so that the testing efficiency is further improved.
Specifically, the performance tests of the 2 nd to nth stream layout software may be performed simultaneously, and when the performance tests of the 2 nd to nth stream layout software are performed, the embodiment is described by taking the performance test process of the ith stream layout software as an example, the ith stream layout software may be any one of the 2 nd to nth stream layout software, which is consistent with the performance test process of the 1 st stream layout software, and therefore, the description is not repeated here.
In addition, the performance testing device of the flow layout software can be compatible in different CPUs and operating system platforms, so that the application occasions of the scheme of the application are improved. In addition, when the performance test of other software except the stream format software is performed, the automatic recording of the test time consumption can be performed by using the performance test device of the stream format software according to the idea of the application.
By applying the technical scheme provided by the embodiment of the invention, the performance test of the stream layout software can be automatically carried out. Specifically, when the performance test of the flow format software is considered, the file opening time is usually required to be tested, so that when the performance test of the first flow format software is started, the time stamp of the current moment can be automatically recorded and used as the first time stamp, and then the first test file of the first flow format software is determined according to the file path of the first flow format software. Opening a first test file through first flow format software, and when judging that the preset key information for representing that the first test file is completely opened is obtained, the test of the file opening time is completed, the time stamp of the current moment can be automatically recorded at the moment, and the second time stamp is used as a second time stamp, subtracting the first time stamp from the second time stamp, automatically obtaining the file opening time of the first flow format software, and completing the project of the file opening time in the performance test of the first flow format software. The method and the device can automatically finish the project of the file opening time in the performance test of the flow format software, can automatically obtain the test time consumption of the project, and compared with a manual timing mode, the method and the device have the advantages that the error of the automatic timing mode is smaller, the labor cost is effectively reduced, and the test efficiency is improved.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a performance testing apparatus for stream layout software, which can be referred to in correspondence with the above. Referring to fig. 2, the performance testing apparatus of the stream layout software may include:
a start time stamp recording unit 201, configured to automatically record a time stamp of the current time as a first time stamp when a performance test of the first flow format software is started;
the file determining unit 202 is configured to determine a first test file of the first flow format software according to a file path of the first flow format software;
an ending time stamp recording unit 203 for opening the first test file through the first streaming software, and automatically recording a time stamp at the current time as a second time stamp when it is judged that preset key information indicating that the first test file is completely opened is obtained;
and the time-consuming confirmation unit 204 is configured to subtract the first time stamp from the second time stamp to automatically obtain the file opening time of the first flow and layout software, so as to complete a file opening time item in the performance test of the first flow and layout software.
In an embodiment of the present invention, the method further comprises: a performance test parameter obtaining unit and a performance test result obtaining unit;
a performance test parameter obtaining unit, configured to perform, after the time-consuming confirmation unit 204 completes a file opening time item in a performance test of the first flow format software, performance tests on preset K items of the first flow format software in sequence, and obtain performance test parameters of each item; k is a positive integer;
an expiration time stamp recording unit 203, further configured to: when any one of the K items is completed, automatically recording a time stamp of the time when the item is completed;
the time-consuming confirmation unit 204 is further configured to: determining the test time consumption of each project in the K projects according to the recorded K timestamps and the second timestamp;
and the performance test result acquisition unit is used for taking the test time consumption and the performance test parameters of the item as the obtained performance test result of the item of the first flow layout software aiming at any item in the K items.
In an embodiment of the present invention, the method further comprises:
a first determining unit, configured to determine, after the time consumption determining unit 204 completes a file opening time item in a performance test of the first flow format software, whether a difference obtained by subtracting the first time stamp from the second time stamp is within a preset value range;
if not, triggering a stopping unit, wherein the stopping unit is used for stopping the performance test of the first flow format software;
if yes, triggering a performance test parameter acquisition unit to execute the operation of sequentially performing performance tests on K preset items of the first flow format software.
In one embodiment of the present invention, the method further comprises:
and the prompt information output unit is used for outputting the first prompt information after the stopping unit stops the performance test of the first flow layout software.
In one embodiment of the present invention, the method further comprises: the 2 nd to Nth parallel execution modules are used for simultaneously carrying out performance tests on the 2 nd to Nth flow format software, wherein N is a positive integer not less than 2; and an ith parallel execution module to:
when the performance test of the ith stream format software is started, automatically recording a time stamp of the current moment as an ith initial time stamp;
determining an ith test file of the ith stream format software according to the file path of the ith stream format software;
opening an ith test file through ith streaming format software, and automatically recording a timestamp of the current moment as an ith cutoff timestamp when preset key information for indicating that the ith test file is completely opened is judged to be obtained;
and subtracting the ith starting timestamp from the ith ending timestamp to automatically obtain the file opening time of the ith stream format software so as to finish the file opening time item in the performance test of the ith stream format software, wherein i is a positive integer and is more than or equal to 2 and less than or equal to N.
It is further 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 phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The principle and the embodiment of the present invention are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (8)
1. A performance test method of stream layout software is characterized by comprising the following steps:
when the performance test of the first flow format software is started, automatically recording a time stamp of the current moment as a first time stamp;
determining a first test file of the first flow format software according to the file path of the first flow format software;
opening the first test file through the first flow format software, and automatically recording a time stamp of the current moment as a second time stamp when judging that preset key information for indicating that the first test file is completely opened is obtained;
subtracting the first time stamp from the second time stamp to automatically obtain the file opening time of the first flow layout software so as to complete a file opening time project in the performance test of the first flow layout software; after the file opening time item in the performance test of the first flow layout software, the method further comprises the following steps:
sequentially carrying out performance tests on K preset projects of the first flow format software, and obtaining performance test parameters of the projects; k is a positive integer;
when any item in the K items is completed, automatically recording a time stamp of the moment when the item is completed;
determining the test time consumption of each project in the K projects according to the recorded K timestamps and the second timestamp;
and aiming at any item in the K items, taking the test time consumption and the performance test parameters of the item as the obtained performance test result of the item of the first flow format software.
2. The method for testing the performance of the flow layout software according to claim 1, further comprising, after completing the file open time item in the performance test of the first flow layout software:
judging whether the difference value obtained by subtracting the first time stamp from the second time stamp is in a preset numerical range or not;
if not, stopping the performance test of the first flow format software;
and if so, executing the operation of sequentially carrying out the performance test of the preset K items of the first flow format software.
3. The method for testing the performance of the flow layout software according to claim 2, further comprising, after stopping the performance test of the first flow layout software:
and outputting the first prompt message.
4. The method for testing the performance of the stream layout software according to any one of claims 1 to 3, further comprising: simultaneously carrying out performance tests on the 2 nd to Nth stream format software, wherein N is a positive integer not less than 2; and, the performing the performance test of the 2 nd to nth flow layout software includes:
when the performance test of the ith stream format software is started, automatically recording a time stamp of the current moment as an ith initial time stamp;
determining an ith test file of the ith stream layout software according to the file path of the ith stream layout software;
opening the ith test file through the ith streaming format software, and automatically recording a time stamp of the current moment as an ith cut-off time stamp when preset key information for indicating that the ith test file is completely opened is judged to be obtained;
and subtracting the ith starting timestamp from the ith ending timestamp to automatically obtain the file opening time of the ith stream format software so as to complete a file opening time item in the performance test of the ith stream format software, wherein i is a positive integer and is more than or equal to 2 and less than or equal to N.
5. A performance testing device for stream layout software is characterized by comprising:
the starting time stamp recording unit is used for automatically recording the time stamp of the current time as the first time stamp when the performance test of the first flow format software is started;
the file determining unit is used for determining a first test file of the first flow format software according to the file path of the first flow format software;
a cut-off time stamp recording unit, configured to open the first test file through the first streaming software, and when it is determined that preset key information indicating that the first test file is completely opened is obtained, automatically record a time stamp at a current time, and use the time stamp as a second time stamp;
the time-consuming confirmation unit is used for subtracting the first timestamp from the second timestamp to automatically obtain the file opening time of the first flow format software so as to finish a file opening time item in the performance test of the first flow format software; the performance testing device of the flow format software further comprises: a performance test parameter acquisition unit and a performance test result acquisition unit;
the performance test parameter acquisition unit is used for sequentially carrying out performance tests on K preset items of the first flow format software after the time-consuming confirmation unit completes a file opening time item in the performance test of the first flow format software, and obtaining performance test parameters of each item; k is a positive integer;
the expiration time stamp recording unit is further configured to: when any item in the K items is completed, automatically recording a time stamp of the moment when the item is completed;
the time-consuming confirmation unit is further configured to: determining the test time consumption of each project in the K projects according to the recorded K timestamps and the second timestamp;
the performance test result obtaining unit is configured to, for any one of the K items, use the test time consumption and the performance test parameters of the item as the obtained performance test result of the item of the first flow-format software.
6. The apparatus for testing performance of stream layout software according to claim 5, further comprising:
the first judging unit is used for judging whether a difference value obtained by subtracting the first timestamp from the second timestamp is in a preset numerical value range or not after the time-consuming confirming unit finishes a file opening time item in the performance test of the first flow format software;
if not, triggering a stopping unit, wherein the stopping unit is used for stopping the performance test of the first flow format software;
and if so, triggering the performance test parameter acquisition unit to execute the operation of sequentially performing the performance tests of the preset K items of the first flow format software.
7. The apparatus for testing performance of stream layout software according to claim 6, further comprising:
and the prompt information output unit is used for outputting first prompt information after the stopping unit stops the performance test of the first flow layout software.
8. The apparatus for testing the performance of the flow layout software according to any of the claims 5 to 7, further comprising: the 2 nd to Nth parallel execution modules are used for simultaneously carrying out performance tests on the 2 nd to Nth flow format software, wherein N is a positive integer not less than 2; and an ith parallel execution module to:
when the performance test of the ith stream format software is started, automatically recording a time stamp of the current time as an ith starting time stamp;
determining an ith test file of the ith stream format software according to the file path of the ith stream format software;
opening the ith test file through the ith streaming format software, and automatically recording a time stamp of the current moment as an ith cut-off time stamp when preset key information for indicating that the ith test file is completely opened is judged to be obtained;
and subtracting the ith starting time stamp from the ith ending time stamp to automatically obtain the file opening time of the ith stream layout software so as to complete a file opening time item in the performance test of the ith stream layout software, wherein i is a positive integer and is more than or equal to 2 and less than or equal to N.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110500246.5A CN113220550B (en) | 2021-05-08 | 2021-05-08 | Performance test method and device for flow layout software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110500246.5A CN113220550B (en) | 2021-05-08 | 2021-05-08 | Performance test method and device for flow layout software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113220550A CN113220550A (en) | 2021-08-06 |
CN113220550B true CN113220550B (en) | 2023-01-17 |
Family
ID=77093839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110500246.5A Active CN113220550B (en) | 2021-05-08 | 2021-05-08 | Performance test method and device for flow layout software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113220550B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955749A (en) * | 2016-05-10 | 2016-09-21 | 北京启明星辰信息安全技术有限公司 | Continuous software project integration method and device |
CN107391373A (en) * | 2017-07-19 | 2017-11-24 | 西安精雕软件科技有限公司 | Automatic performance method of testing based on AutoIT |
CN110175118A (en) * | 2019-05-08 | 2019-08-27 | 重庆八戒电子商务有限公司 | Software performance testing method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775968A (en) * | 2016-11-29 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | A kind of server test method, apparatus and system |
CN107977296A (en) * | 2017-11-20 | 2018-05-01 | 郑州云海信息技术有限公司 | A kind of method, apparatus and medium of NAS storage system performance test |
CN112199282B (en) * | 2020-10-09 | 2023-01-31 | 杭州安恒信息技术股份有限公司 | Fuzzy test method, device and equipment for office software |
CN112559304A (en) * | 2020-10-20 | 2021-03-26 | 深圳市前海手绘科技文化有限公司 | Software performance testing method |
-
2021
- 2021-05-08 CN CN202110500246.5A patent/CN113220550B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105955749A (en) * | 2016-05-10 | 2016-09-21 | 北京启明星辰信息安全技术有限公司 | Continuous software project integration method and device |
CN107391373A (en) * | 2017-07-19 | 2017-11-24 | 西安精雕软件科技有限公司 | Automatic performance method of testing based on AutoIT |
CN110175118A (en) * | 2019-05-08 | 2019-08-27 | 重庆八戒电子商务有限公司 | Software performance testing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113220550A (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111459794A (en) | Communication network testing method, device, computer equipment and storage medium | |
WO2017000424A1 (en) | Protocol detection method and apparatus | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
US20150074648A1 (en) | Software defect verification | |
CN106405286B (en) | The automatic test approach and system of quality monitoring device of electrical energy | |
CN111611172A (en) | Project test defect analysis method, device, equipment and storage medium | |
WO2021169280A1 (en) | Virtual disk check code generation method, apparatus and device, and storage medium | |
CN111104319A (en) | Code coverage rate testing method and device, electronic equipment and storage medium | |
CN115757150A (en) | Production environment testing method, device, equipment and storage medium | |
CN113220550B (en) | Performance test method and device for flow layout software | |
CN107562621A (en) | The method and apparatus for determining manual test use-case and tested code incidence relation | |
CN106294109B (en) | Method and device for acquiring defect code | |
CN116954624B (en) | Compiling method based on software development kit, software development system and server | |
CN106708728B (en) | The method and system of automatic test Android application starting time | |
CN106445812B (en) | Regression test system and regression testing method | |
CN111209180B (en) | Regression testing method and device based on fuzzy matching | |
CN111855743A (en) | Dew point instrument automatic verification system and method | |
CN115794624A (en) | Closed-loop testing method and system for single automation device of intelligent substation | |
CN102096635A (en) | Accurate positioning method for software bug | |
CN111858208B (en) | Standby function testing method, device, equipment and medium of processor chip | |
CN114116522A (en) | Swagger-based method for automatically testing interface | |
CN103746871A (en) | Data validity detection device and detection method | |
CN106941552B (en) | Mobile terminal shutdown performance evaluation method | |
CN101179434B (en) | Automatic time-counting method in network management system | |
CN110795142A (en) | Configuration file generation method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |