CN116719745A - Performance test method, device, equipment and storage medium based on time sequence - Google Patents

Performance test method, device, equipment and storage medium based on time sequence Download PDF

Info

Publication number
CN116719745A
CN116719745A CN202310884326.4A CN202310884326A CN116719745A CN 116719745 A CN116719745 A CN 116719745A CN 202310884326 A CN202310884326 A CN 202310884326A CN 116719745 A CN116719745 A CN 116719745A
Authority
CN
China
Prior art keywords
data
request
preset
software
time sequence
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
CN202310884326.4A
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.)
Zhejiang Bangsheng Technology Co ltd
Original Assignee
Zhejiang Bangsheng Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Bangsheng Technology Co ltd filed Critical Zhejiang Bangsheng Technology Co ltd
Priority to CN202310884326.4A priority Critical patent/CN116719745A/en
Publication of CN116719745A publication Critical patent/CN116719745A/en
Pending legal-status Critical Current

Links

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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a performance test method, a device, equipment and a storage medium based on time sequence, which relate to the field of software performance test and comprise the following steps: acquiring an initial test request for software to be tested, and converting the initial test request into request data in a preset format based on the preset format; triggering a preset data distribution service to determine the time sequence of the request data, and sending the request data to a message queue based on the time sequence of the request data; determining a data consumption interface according to a preset data distribution service, so as to consume the request data in the message queue through the data consumption interface, storing the generated consumption data into a preset bounded queue, and generating a current test request; and performing performance test on the software to be tested based on the current test request, and generating a performance test result corresponding to the software to be tested. Therefore, the time sequence of the pressure test request can be ensured according to the bounded queue, and the accuracy of the software performance test is further ensured.

Description

Performance test method, device, equipment and storage medium based on time sequence
Technical Field
The present application relates to the field of software performance testing, and in particular, to a performance testing method, apparatus, device and storage medium based on time sequence.
Background
With the rapid development of internet technology, the transaction scene is more and more complex, the mobile payment wind control demands are more and more, and the requirements on the performance of the internet server software system are higher and more. The current mobile payment scene payment occurs according to time sequence, the performance is simply pressed and tested, the service correctness cannot be ensured, and the time sequence and the performance are required to be simultaneously ensured to be pressed and tested.
In the prior art, when the performance test of the wind control system software is performed, a developer writes a service request used in the test according to experience, and then the software performance test system sends the written service request to the tested software system for performing the software performance test. Because service requests written by developers cannot guarantee the flow time sequence of the requests, the service requests received when the tested software runs on line truly cannot be completely covered, performance problems possibly occurring when the tested software runs on line truly cannot be obtained when the software performance is tested, and therefore the result of the software performance test is inaccurate.
Disclosure of Invention
Accordingly, the present application is directed to a performance testing method, apparatus, device and storage medium based on time sequence, which can ensure time sequence of a pressure test request based on bounded queues under the premise of concurrent pressure test, thereby ensuring accuracy of software performance test. The specific scheme is as follows:
in a first aspect, the application discloses a performance testing method based on time sequence, which is applied to pressure testing software and comprises the following steps:
acquiring an initial test request aiming at software to be tested, and converting the initial test request into request data in a preset format based on the preset format;
triggering a preset data distribution service to determine the time sequence of the request data, and sending the request data to a message queue based on the time sequence of the request data;
determining a data consumption interface according to the preset data distribution service, so as to consume the request data in the message queue through the data consumption interface, storing the generated consumption data into a preset bounded queue, and generating a current test request;
and performing performance test on the software to be tested based on the current test request, and generating a performance test result corresponding to the software to be tested.
Optionally, before the obtaining the initial test request for the software to be tested and converting the initial test request into the request data in the preset format based on the preset format, the method further includes:
and determining that the preset format of the initial test request is a character separation value format or an excel format, so that the initial test request is converted based on the character separation value format or the excel format.
Optionally, the obtaining an initial test request for the software to be tested, and converting the initial test request into the request data in the preset format based on the preset format includes:
acquiring an initial test request aiming at the software to be tested, and judging whether the initial test request is successfully acquired or not so as to generate a corresponding judgment result;
and if the judging result represents that the initial test request is successfully obtained, performing data conversion operation on the initial test request based on a preset format so as to convert the initial test request into request data in the preset format through the data conversion operation.
Optionally, the triggering the preset data distribution service to determine the time sequence of the request data and send the request data to a message queue based on the time sequence of the request data includes:
triggering a preset data distribution service, and performing time sequence determining operation on the request data based on the data distribution service to obtain the generation time sequence of the request data;
the request data is sent to a message queue based on the determined generation time sequence.
Optionally, the determining a data consumption interface according to the preset data distribution service to consume the request data in the message queue through the data consumption interface, storing the generated consumption data to a preset bounded queue, and generating a current test request includes:
determining a hypertext transfer protocol interface corresponding to the data distribution service, and determining a data format requirement of the hypertext transfer protocol interface through the data distribution service;
carrying out batch consumption on the request data in the corresponding format in the message queue through the hypertext transfer protocol interface according to the data format requirement and the time sequence, and storing the generated consumption data to a preset bounded queue based on the consumption sequence of the request data;
and generating a current test request based on the consumption data stored in the preset bounded queue.
Optionally, the performance testing method based on time sequence further includes:
judging whether to trigger the capacity expansion operation, and if so, switching the data format requirement of the hypertext transfer protocol interface based on the preset data distribution service.
Optionally, the performing performance test on the software to be tested based on the current test request, and generating a performance test result corresponding to the software to be tested, including:
and sending the current test request to a local preset pressure test interface, performing performance test on the software to be tested based on the current test request through the preset pressure test interface, and generating a visual parameter report and a data aggregation report corresponding to the software to be tested.
In a second aspect, the present application discloses a performance testing device based on time sequence, which is applied to pressure testing software, and includes:
the initial request conversion module is used for acquiring an initial test request for the software to be tested and converting the initial test request into request data in a preset format based on the preset format;
the data sending module is used for triggering a preset data distribution service to determine the time sequence of the request data and sending the request data to a message queue based on the time sequence of the request data;
the test request generation module is used for determining a data consumption interface according to the preset data distribution service so as to consume the request data in the message queue through the data consumption interface, storing the generated consumption data into a preset bounded queue and generating a current test request;
and the performance test module is used for performing performance test on the software to be tested based on the current test request and generating a performance test result corresponding to the software to be tested.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and a processor for executing the computer program to implement the aforementioned performance test method based on time sequence.
In a fourth aspect, the present application discloses a computer readable storage medium storing a computer program which, when executed by a processor, implements the aforementioned performance testing method based on time sequence.
In the method, an initial test request for software to be tested is firstly obtained, the initial test request is converted into request data in a preset format based on the preset format, then a preset data distribution service is triggered to determine the time sequence of the request data, the request data is sent to a message queue based on the time sequence of the request data, a data consumption interface is determined according to the preset data distribution service, the request data in the message queue is consumed through the data consumption interface, the generated consumption data is stored in a preset bounded queue, a current test request is generated, finally, performance test is performed on the software to be tested based on the current test request, and a performance test result corresponding to the software to be tested is generated. Therefore, according to the performance testing method based on the time sequence, after the testing request is received, the testing request can be converted into the request data in the preset format, the time sequence of the request data is determined through triggering the data distribution service, the request data is accumulated in the message queue according to the determined time sequence, so that the consumption interface is convenient to consume, the consumption interface generates consumption data through the consumption request data, the consumption data is stored in the bounded queue, the testing request is generated, and finally, the performance of the software to be tested is tested according to the testing request, so that the time sequence of the pressure testing request can be ensured according to the bounded queue, and the accuracy of the performance testing of the software is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a performance testing method based on time sequence provided by the application;
FIG. 2 is a timing chart of a performance testing method based on timing performance according to the present application;
FIG. 3 is a schematic diagram of a performance testing apparatus based on time sequence according to the present application;
fig. 4 is a block diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the prior art, when the performance test of the wind control system software is performed, a developer writes a service request used in the test according to experience, and then the software performance test system sends the written service request to the tested software system for performing the software performance test. Because service requests written by developers cannot guarantee the flow time sequence of the requests, the service requests received when the tested software runs on line truly cannot be completely covered, performance problems possibly occurring when the tested software runs on line truly cannot be obtained when the software performance is tested, and therefore the result of the software performance test is inaccurate.
In order to solve the technical problems, the application discloses a performance testing method, device, equipment and storage medium based on time sequence, which can ensure the time sequence of a pressure testing request on the premise of concurrent pressure testing according to a bounded queue, thereby ensuring the accuracy of software performance testing.
Referring to fig. 1, the embodiment of the application discloses a performance testing method based on time sequence, which is applied to pressure testing software and comprises the following steps:
step S11, an initial test request for the software to be tested is obtained, and the initial test request is converted into request data in a preset format based on the preset format.
In this embodiment, obtaining an initial test request for software to be tested, and converting the initial test request into request data in a preset format based on the preset format includes: acquiring an initial test request aiming at the software to be tested, and judging whether the initial test request is successfully acquired or not so as to generate a corresponding judgment result; and if the judging result represents that the initial test request is successfully obtained, performing data conversion operation on the initial test request based on a preset format so as to convert the initial test request into request data in the preset format through the data conversion operation. That is, the pressure test software needs to start the time sequence performance test flow after receiving the test request, so that the pressure test software needs to first determine whether an initial test request for the software to be tested, that is, a service request, is received, and if the initial test request is successfully received, the obtained initial test request needs to be converted into request data in a preset format.
It should be noted that, before obtaining an initial test request for the software to be tested and converting the initial test request into the request data in the preset format based on the preset format, the method further includes: and determining that the preset format of the initial test request is a character separation value format or an excel format, so that the initial test request is converted based on the character separation value format or the excel format. That is, the preset format required to convert the initial test request is a csv (common-Separated Values) format or an excel format, so that when the received initial test request is converted into data, the initial test request can be converted into corresponding request data according to the preset data format, that is, the csv format or the excel format.
Step S12, triggering a preset data distribution service to determine the time sequence of the request data, and sending the request data to a message queue based on the time sequence of the request data.
In this embodiment, triggering a preset data distribution service to determine the time sequence of the request data, and sending the request data to a message queue based on the time sequence of the request data includes: triggering a preset data distribution service, and performing time sequence determining operation on the request data based on the data distribution service to obtain the generation time sequence of the request data; the request data is sent to a message queue based on the determined generation time sequence. That is, the timing of the request data needs to be determined by triggering the data distribution service, that is, determining the time generation sequence of the request data, and then, based on the determined timing, the request data converted into excel or csv format is sent to the message queue. The bounded queues in the pressure test software are used for controlling consumption data and overall time sequence, the smaller the bounded queues are, the higher the time sequence is, the lower the pressure of the pressure test software is, and if the queues are larger, the larger the pressure of the pressure test software is, the worse the time sequence is required.
And step S13, determining a data consumption interface according to the preset data distribution service so as to consume the request data in the message queue through the data consumption interface, storing the generated consumption data into a preset bounded queue, and generating a current test request.
In this embodiment, determining a data consumption interface according to the preset data distribution service to consume the request data in the message queue through the data consumption interface, storing the generated consumption data in a preset bounded queue, and generating a current test request, where the determining includes: determining a hypertext transfer protocol interface corresponding to the data distribution service, and determining a data format requirement of the hypertext transfer protocol interface through the data distribution service; carrying out batch consumption on the request data in the corresponding format in the message queue through the hypertext transfer protocol interface according to the data format requirement and the time sequence, and storing the generated consumption data to a preset bounded queue based on the consumption sequence of the request data; and generating a current test request based on the consumption data stored in the preset bounded queue. That is, for the request data sent to the consumption queue, consumption is required through a hypertext transfer protocol interface, that is, an http (Hypertext Transfer Protocol ) interface, and the determination of the http interface is determined through a data distribution service, the http interface for consumption is required to be determined through the data distribution service, then the request data in the message queue is consumed in batches through the http interface, the generated consumption data is stored in a bounded queue of the pressure test software according to the order of the consumption request data, and then a current test request is generated according to the consumption data in the bounded queue, so that the performance test is performed on the software to be tested according to the current test request.
It should be noted that the performance testing method based on time sequence further includes: judging whether to trigger the capacity expansion operation, and if so, switching the data format requirement of the hypertext transfer protocol interface based on the preset data distribution service. That is, if the pressure test software needs to perform the capacity expansion operation, the data format requirement of the http interface needs to be switched based on the data distribution service, in the data distribution service, because the message queue has time sequence, when batch consumption is performed on the request data, the request data can be distributed to the pressure test software according to the time sequence, but when the pressure test software performs the transverse capacity expansion, the time sequence guarantee can gradually decrease along with the increase of the nodes, the bounded queue in the pressure test software can maximally guarantee the whole time sequence, the transverse capacity expansion of the pressure test software is supported, the dynamic capacity expansion and contraction are supported, the natural idempotency is supported, that is, the consumption of the data cannot be repeated, the data cannot be lost without any reason, the data distribution can be expanded into any data source, the access mode can be dynamically switched, that is, the data format requirement is, for example, the csv format is switched into the excel mode. This ensures the timeliness of the request and the lateral capacity expansion capability.
And step S14, performing performance test on the software to be tested based on the current test request, and generating a performance test result corresponding to the software to be tested.
In this embodiment, performing a performance test on the software to be tested based on the current test request, and generating a performance test result corresponding to the software to be tested, including: and sending the current test request to a local preset pressure test interface, performing performance test on the software to be tested based on the current test request through the preset pressure test interface, and generating a visual parameter report and a data aggregation report corresponding to the software to be tested. That is, after the current test request is generated, performance test is required to be performed on the software to be tested according to the current test request through a preset pressure test interface so as to determine time sequence performance of the software to be tested, and a visual parameter report and a data aggregation report can be generated based on a test result so as to perform visual display on the time sequence performance of the software to be tested through the visual parameter report, and data display is performed on the time sequence performance of the software to be tested through the data aggregation report.
It can be seen that in this embodiment, an initial test request for software to be tested is first obtained, the initial test request is converted into request data in a preset format based on the preset format, then a preset data distribution service is triggered to determine the time sequence of the request data, the request data is sent to a message queue based on the time sequence of the request data, a data consumption interface is determined according to the preset data distribution service, so that the request data in the message queue is consumed through the data consumption interface, the generated consumption data is stored in a preset bounded queue, a current test request is generated, finally performance test is performed on the software to be tested based on the current test request, and a performance test result corresponding to the software to be tested is generated. Therefore, according to the performance test method based on time sequence, after the test request is received, the test request can be converted into the request data in the preset format, the time sequence of the request data is determined through triggering the data distribution service, the request data is accumulated in the message queue according to the determined time sequence, so that the consumption interface is convenient to consume, the consumption interface generates consumption data through the consumption request data, the consumption data is stored in the bounded queue, the test request is generated, and finally, the performance test is carried out on the software to be tested according to the test request, so that the time sequence of the pressure test request can be ensured according to the bounded queue, the wind control transaction field is further ensured, and the time sequence rationality of transaction flow is ensured.
Referring to fig. 2, the embodiment of the application discloses a performance testing method based on time sequence, which comprises the following steps:
the method comprises the steps of performing time sequence performance test on software to be tested, firstly obtaining a service request generated by the software to be tested, namely an initial test request, which is obtained by an online software system, wherein the service request generated by the software to be tested can be different test requests generated by multi-end software to be tested, then converting the received initial test request into request data in csv format or excel format, using the converted request data as a message middleware or other data source carrier, determining the time sequence of the request data by triggering a data distribution service, then sending the request data converted into excel or csv format into a message queue based on the determined time sequence, determining an http interface for consumption by the data distribution service, then performing batch consumption on the request data in the message queue through the http interface, storing the generated consumption data into a bounded queue of the pressure test software according to the sequence of the consumption request data, and then generating a current test request according to the consumption data in the bounded queue, so as to perform performance test on the software to be tested according to the current test request. It should be noted that the pressure test software includes, but is not limited to, pressure test software such as jmeter, loaderRunner, etc. After the current test request is generated, performance test is required to be performed on the software to be tested according to the current test request through a preset pressure test interface so as to determine time sequence performance of the software to be tested, and a data report can be generated based on a test result. Therefore, on the premise of ensuring the concurrent pressure measurement of the multi-pressure measurement service or tool, the whole pressure measurement request time sequence is still ensured.
Referring to fig. 3, an embodiment of the application discloses a performance testing device based on time sequence, which is applied to pressure testing software and comprises:
the initial request conversion module 11 is configured to obtain an initial test request for software to be tested, and convert the initial test request into request data in a preset format based on the preset format;
a data transmitting module 12, configured to trigger a preset data distribution service to determine a time sequence of the request data, and transmit the request data to a message queue based on the time sequence of the request data;
a test request generation module 13, configured to determine a data consumption interface according to the preset data distribution service, so as to consume the request data in the message queue through the data consumption interface, store the generated consumption data into a preset bounded queue, and generate a current test request;
and the performance test module 14 is configured to perform a performance test on the software to be tested based on the current test request, and generate a performance test result corresponding to the software to be tested.
It can be seen that in this embodiment, an initial test request for software to be tested is first obtained, the initial test request is converted into request data in a preset format based on the preset format, then a preset data distribution service is triggered to determine the time sequence of the request data, the request data is sent to a message queue based on the time sequence of the request data, a data consumption interface is determined according to the preset data distribution service, so that the request data in the message queue is consumed through the data consumption interface, the generated consumption data is stored in a preset bounded queue, a current test request is generated, finally performance test is performed on the software to be tested based on the current test request, and a performance test result corresponding to the software to be tested is generated. Therefore, according to the performance testing method based on the time sequence, after the testing request is received, the testing request can be converted into the request data in the preset format, the time sequence of the request data is determined through triggering the data distribution service, the request data is accumulated in the message queue according to the determined time sequence, so that the consumption interface is convenient to consume, the consumption interface generates consumption data through the consumption request data, the consumption data is stored in the bounded queue, the testing request is generated, and finally, the performance of the software to be tested is tested according to the testing request, so that the time sequence of the pressure testing request can be ensured according to the bounded queue, and the accuracy of the performance testing of the software is ensured.
In some embodiments, the performance testing apparatus based on time sequence may further include:
and the format determining unit is used for determining that the preset format for converting the initial test request is a character separation value format or an excel format so as to convert the initial test request based on the character separation value format or the excel format.
In some embodiments, the initial request conversion module 11 may specifically include:
the request acquisition judging unit is used for acquiring an initial test request aiming at the software to be tested and judging whether the initial test request is successfully acquired or not so as to generate a corresponding judging result;
and the request conversion unit is used for carrying out data conversion operation on the initial test request based on a preset format if the judging result represents that the initial test request is successfully acquired, so that the initial test request is converted into request data in the preset format through the data conversion operation.
In some embodiments, the data sending module 12 may specifically include:
a time sequence determining unit, configured to trigger a preset data distribution service, and perform a time sequence determining operation on the request data based on the data distribution service, so as to obtain a generation time sequence of the request data;
and the data sending unit is used for sending the request data to a message queue based on the determined generation time sequence.
In some embodiments, the test request generating module 13 may specifically include:
an interface determining unit, configured to determine a hypertext transfer protocol interface corresponding to the data distribution service, and determine a data format requirement of the hypertext transfer protocol interface through the data distribution service;
the data consumption unit is used for carrying out batch consumption on the request data in the corresponding format in the message queue according to the data format requirement and the time sequence through the hypertext transfer protocol interface, and storing the generated consumption data into a preset bounded queue based on the consumption sequence of the request data;
and the test request generation unit is used for generating a current test request based on the consumption data stored in the preset bounded queue.
In some embodiments, the performance testing apparatus based on time sequence may further include:
and the data format switching unit is used for judging whether to trigger the capacity expansion operation, and if the capacity expansion operation is triggered, the data format requirement of switching the hypertext transfer protocol interface based on the preset data distribution service is met.
In some embodiments, the performance testing module 14 may specifically include:
and the performance test unit is used for sending the current test request to a local preset pressure test interface, performing performance test on the software to be tested based on the current test request through the preset pressure test interface, and generating a visual parameter report and a data aggregation report corresponding to the software to be tested.
Further, the embodiment of the present application further discloses an electronic device, and fig. 4 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the diagram is not to be considered as any limitation on the scope of use of the present application.
Fig. 4 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the performance testing method based on time sequence disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the time-series based performance testing method performed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the previously disclosed performance testing method based on timeliness. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
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 elements and steps are described above generally in terms of functionality in order to clearly illustrate the 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 solution. 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 application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined rather broadly the more detailed description of the application in order that the detailed description of the application that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A performance testing method based on time sequence, which is applied to pressure testing software, comprising:
acquiring an initial test request aiming at software to be tested, and converting the initial test request into request data in a preset format based on the preset format;
triggering a preset data distribution service to determine the time sequence of the request data, and sending the request data to a message queue based on the time sequence of the request data;
determining a data consumption interface according to the preset data distribution service, so as to consume the request data in the message queue through the data consumption interface, storing the generated consumption data into a preset bounded queue, and generating a current test request;
and performing performance test on the software to be tested based on the current test request, and generating a performance test result corresponding to the software to be tested.
2. The performance testing method based on time sequence according to claim 1, wherein before obtaining an initial test request for the software to be tested and converting the initial test request into the request data in the preset format based on the preset format, further comprises:
and determining that the preset format of the initial test request is a character separation value format or an excel format, so that the initial test request is converted based on the character separation value format or the excel format.
3. The performance testing method based on time sequence according to claim 1, wherein the obtaining an initial test request for the software to be tested and converting the initial test request into the request data in the preset format based on the preset format comprises:
acquiring an initial test request aiming at the software to be tested, and judging whether the initial test request is successfully acquired or not so as to generate a corresponding judgment result;
and if the judging result represents that the initial test request is successfully obtained, performing data conversion operation on the initial test request based on a preset format so as to convert the initial test request into request data in the preset format through the data conversion operation.
4. The timing based performance testing method of claim 1, wherein the triggering a preset data distribution service to determine the timing of the request data and sending the request data to a message queue based on the timing of the request data comprises:
triggering a preset data distribution service, and performing time sequence determining operation on the request data based on the data distribution service to obtain the generation time sequence of the request data;
the request data is sent to a message queue based on the determined generation time sequence.
5. The performance testing method according to any one of claims 1 to 4, wherein determining a data consumption interface according to the preset data distribution service to consume the request data in the message queue through the data consumption interface, saving the generated consumption data to a preset bounded queue, and generating a current test request, includes:
determining a hypertext transfer protocol interface corresponding to the data distribution service, and determining a data format requirement of the hypertext transfer protocol interface through the data distribution service;
carrying out batch consumption on the request data in the corresponding format in the message queue through the hypertext transfer protocol interface according to the data format requirement and the time sequence, and storing the generated consumption data to a preset bounded queue based on the consumption sequence of the request data;
and generating a current test request based on the consumption data stored in the preset bounded queue.
6. The performance testing method based on time sequence according to claim 5, further comprising:
judging whether to trigger the capacity expansion operation, and if so, switching the data format requirement of the hypertext transfer protocol interface based on the preset data distribution service.
7. The performance testing method based on time sequence according to claim 1, wherein the performance testing the software to be tested based on the current test request and generating a performance test result corresponding to the software to be tested comprises:
and sending the current test request to a local preset pressure test interface, performing performance test on the software to be tested based on the current test request through the preset pressure test interface, and generating a visual parameter report and a data aggregation report corresponding to the software to be tested.
8. A performance testing device based on time sequence, which is applied to pressure testing software, comprising:
the initial request conversion module is used for acquiring an initial test request for the software to be tested and converting the initial test request into request data in a preset format based on the preset format;
the data sending module is used for triggering a preset data distribution service to determine the time sequence of the request data and sending the request data to a message queue based on the time sequence of the request data;
the test request generation module is used for determining a data consumption interface according to the preset data distribution service so as to consume the request data in the message queue through the data consumption interface, storing the generated consumption data into a preset bounded queue and generating a current test request;
and the performance test module is used for performing performance test on the software to be tested based on the current test request and generating a performance test result corresponding to the software to be tested.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the time-sequential based performance testing method of any one of claims 1 to 7.
10. A computer readable storage medium for storing a computer program which, when executed by a processor, implements the time-sequential performance testing method of any one of claims 1 to 7.
CN202310884326.4A 2023-07-18 2023-07-18 Performance test method, device, equipment and storage medium based on time sequence Pending CN116719745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310884326.4A CN116719745A (en) 2023-07-18 2023-07-18 Performance test method, device, equipment and storage medium based on time sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310884326.4A CN116719745A (en) 2023-07-18 2023-07-18 Performance test method, device, equipment and storage medium based on time sequence

Publications (1)

Publication Number Publication Date
CN116719745A true CN116719745A (en) 2023-09-08

Family

ID=87864594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310884326.4A Pending CN116719745A (en) 2023-07-18 2023-07-18 Performance test method, device, equipment and storage medium based on time sequence

Country Status (1)

Country Link
CN (1) CN116719745A (en)

Similar Documents

Publication Publication Date Title
CN111475298A (en) Task processing method, device, equipment and storage medium
CN110781013B (en) Gray scale publishing method, device, equipment and medium
CN111314433B (en) Message transmission method and device and electronic equipment
EP4195744A1 (en) Measurement method and device, communication node, and storage medium
CN116719745A (en) Performance test method, device, equipment and storage medium based on time sequence
CN110825603A (en) Page first loading time determining method and device, electronic equipment and storage medium
CN115576791A (en) Dynamic adjustment method and device for pressure measurement thread, electronic equipment and storage medium
CN115119081A (en) Data reading method and device, front-end equipment and storage medium
CN103024097A (en) Method, device and system for detecting network address translation server aging time
CN109561457B (en) Method, device and system for optimizing client network
TW202215262A (en) Reverse proxy method and storage device with delay sensing and load balancing
CN112104980B (en) Method and device for assisting in positioning terminal
CN112597019A (en) Front-end code debugging method, device, system and medium
CN116894538B (en) Node carbon emission information generation method and device, electronic equipment and medium
CN109495473A (en) Realize method, apparatus, equipment and storage medium that application system single-point is nullified
US20230267060A1 (en) Performance testing method and apparatus, and storage medium
CN115442255B (en) Ethernet detection method, system, device, electronic equipment and storage medium
CN116303173B (en) Method, device and system for reducing RDMA engine on-chip cache and chip
CN113378041B (en) Prompt message pushing method, device, electronic equipment and computer readable medium
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN114629821B (en) Internet of things consumption data generation method, device, equipment and medium
CN116366477A (en) Train network communication signal detection method, device, equipment and storage medium
CN117201596A (en) Edge service access method and device, electronic equipment and readable storage medium
CN113934732A (en) User portrait data processing method and device, storage medium and electronic equipment
CN114253859A (en) Message middleware pressure test method, device and system

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