CN114942878A - Automatic performance testing method for internet application and related equipment - Google Patents

Automatic performance testing method for internet application and related equipment Download PDF

Info

Publication number
CN114942878A
CN114942878A CN202210316707.8A CN202210316707A CN114942878A CN 114942878 A CN114942878 A CN 114942878A CN 202210316707 A CN202210316707 A CN 202210316707A CN 114942878 A CN114942878 A CN 114942878A
Authority
CN
China
Prior art keywords
test
information
performance
data
performance test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210316707.8A
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.)
China Life Insurance Co ltd
Original Assignee
China Life Insurance 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 China Life Insurance Co ltd filed Critical China Life Insurance Co ltd
Priority to CN202210316707.8A priority Critical patent/CN114942878A/en
Publication of CN114942878A publication Critical patent/CN114942878A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3692Test management for test results analysis

Abstract

The application provides an automatic performance testing method and related equipment for Internet application. The method comprises the following steps: configuring a test scene according to pre-acquired test information of the Internet application, and performing initialization configuration on the test scene to obtain an initialized test scene; automatically executing a pressure test task on the Internet application based on the initialized and configured test scene to obtain performance test data; and performing automatic analysis processing based on the performance test data to obtain performance report data, and automatically generating a performance test result according to the performance test data. The important stage of the performance test is realized automatically, so that the labor input cost is saved, the time spent on developing the performance test by one internet application is reduced, and the efficiency of the performance test is greatly improved.

Description

Automatic performance testing method for internet application and related equipment
Technical Field
The application relates to the technical field of internet, in particular to an automatic performance testing method and related equipment for internet application.
Background
With the rapid development of internet applications and the continuous expansion of network scales, various internet-based applications are emerging continuously, and users put higher requirements on the application performance of the internet. However, it is becoming more and more difficult to ensure that internet applications provide high-quality services continuously for 24 hours, so performance of the internet applications is becoming a key point of attention, and in order to ensure availability and stability of the internet applications, performance tests are required, wherein the performance tests are performed by simulating real service operations in a production environment through a test tool, performing various normal, peak and abnormal load tests on a tested system, and monitoring performance of the tested system under different service and different pressure performance conditions, so as to find out potential performance bottlenecks for analysis and optimization.
Based on the above situation, most software testing work in the prior art can be realized in an automatic manner, while performance testing is performed in a traditional manual manner, and the labor input cost for each stage is quite high, so that a long time is spent on developing performance testing for one application project, and the efficiency of performance testing is greatly reduced.
Disclosure of Invention
In view of the above, an objective of the present invention is to provide an automatic performance testing method for internet applications and related devices, so as to solve the above technical problems.
In view of the above, a first aspect of the present application provides an automated performance testing method for internet applications, including:
configuring a test scene according to pre-acquired test information of the Internet application, and performing initialization configuration on the test scene to obtain an initialized test scene;
automatically executing a pressure test task on the Internet application based on the initialized and configured test scene to obtain performance test data;
and carrying out automatic analysis processing based on the performance test data to obtain performance report data, and automatically generating a performance test result according to the performance test data.
A second aspect of the present application provides an automated performance testing apparatus for internet applications, comprising:
the system comprises an initialization configuration module, a test configuration module and a test configuration module, wherein the initialization configuration module is configured to configure a test scene according to pre-acquired test information of the Internet application and perform initialization configuration on the test scene to obtain an initialized and configured test scene;
the performance testing module is configured to automatically execute a pressure testing task on the Internet application based on the initialized and configured testing scene to obtain performance testing data;
and the performance result acquisition module is configured to perform automatic analysis processing on the basis of the performance test data to obtain performance report data, and automatically generate a performance test result according to the performance test data.
A third aspect of the application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of the first aspect when executing the program.
A fourth aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect.
As can be seen from the above, the method and related device for automatically testing performance of internet applications provided by the present application configure a test scenario according to pre-obtained test information of the internet applications, perform initialization configuration on the test scenario to obtain an initialized test scenario, automatically execute a pressure test task on the internet applications based on the initialized test scenario to obtain performance test data, automatically execute the test scenario according to the initialized test scenario, automatically execute the pressure test task on the internet applications without manual intervention, perform automatic analysis processing based on the performance test data to obtain performance report data, automatically generate the performance report data without manual analysis processing and manual compiling of the performance report data, and automatically generate a performance test result according to the performance test data, the important stage of the performance test is realized automatically, so that the labor input cost is saved, the time spent on developing the performance test by one internet application is reduced, and the efficiency of the performance test is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of an automated performance testing method for Internet applications according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an automated performance testing apparatus for internet applications according to an embodiment of the present application;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to specific embodiments and the accompanying drawings.
It should be noted that technical terms or scientific terms used in the embodiments of the present application should have a general meaning as understood by those having ordinary skill in the art to which the present application belongs, unless otherwise defined. The use of "first," "second," and similar terms in the embodiments of the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
In the related technology, performance requirements research, test script development, test scene design, test scene execution, executor resource allocation, application resource monitoring, test result analysis and the like are performed on performance tests, each stage needs manual intervention to complete performance tests, and the labor input cost for important stages is quite high, so that an internet application project can spend a long time on performance tests, and the efficiency of the performance tests is greatly reduced, for example, in the test scene design stage, scene design is manually performed by combining the peak value of production to application and the actual use condition;
for the test scene execution stage, manually executing the test scene according to a pre-designed test scene for a certain time;
in the stage of allocating the resources of the execution machine, the resources of the execution machine are manually concerned in the process of executing the scene, and if the concurrency of the test transaction and the business processing capacity are large, the resources of the execution machine need to be increased in combination with the actual situation, so that the performance bottleneck of the test tool is avoided. If the resources of the execution machine are insufficient, the execution machine needs to report the application to relevant departments, and the machine is distributed in place to the rear of a test scene to continue performance testing;
for the application resource monitoring stage, the performance of the server resources where the application and the database are located is manually checked by means of a monitoring tool;
and in the test result analysis stage, in the process of executing the scene, manually recording the test scene execution result and the monitoring result of the application resource. Manually comparing the expected performance indexes with the test results, and manually compiling a performance test report.
The embodiment of the disclosure provides an automatic performance testing method for internet application, which configures a test scene according to pre-acquired test information of the internet application, performs initialization configuration on the test scene to obtain an initialized and configured test scene, automatically executes a pressure test task on the internet application based on the initialized and configured test scene to obtain performance test data, automatically executes the test scene according to the initialized and configured test scene, automatically executes the pressure test task on the internet application without manual direct participation to solve the problem of labor input cost of manual pressure test execution, performs automatic analysis processing based on the performance test data, automatically generates performance report data without manual analysis processing and manual compiling of the performance report data, and automatically generates a performance test result according to the performance test data, the performance test data does not need to be counted through different platforms, and the problems that the performance test data is manually recorded, and performance report data is manually compiled after a test conclusion is analyzed are solved. The important stage of the performance test is realized automatically, so that the labor input cost is saved, the time spent on developing the performance test by one internet application is reduced, and the efficiency of the performance test is greatly improved.
As shown in fig. 1, the method of the present embodiment includes:
step 101, configuring a test scene according to pre-acquired test information of the internet application, and performing initialization configuration on the test scene to obtain an initialized test scene.
In the step, the test information is a test script of the internet application to be tested, the commands in the test script correspond to the input data, the operation or various environment settings and the set of expected results, the test scene is configured according to the test script, and the test scene is initialized, so that the performance test efficiency is effectively improved.
And 102, automatically executing a pressure test task on the Internet application based on the initialized and configured test scene to obtain performance test data.
In the step, the test scene is automatically executed according to the test scene subjected to initialization configuration, the pressure measurement task is automatically executed for the Internet application, manual direct participation is not needed, and the problem of labor input cost of manual pressure measurement execution is solved.
And 103, carrying out automatic analysis processing based on the performance test data to obtain performance report data, and automatically generating a performance test result according to the performance test data.
In the step, automatic analysis processing is carried out based on the performance test data, performance report data are automatically generated, manual analysis processing and manual compiling of the performance report data are not needed, performance test results are obtained according to the performance test data, statistics of the performance test data is not needed through different platforms, and the problems that the performance test data are manually recorded and manually compiled after manual analysis processing are not needed are solved.
Through the scheme, the test scene is configured according to the pre-acquired test information of the Internet application, the test scene is initialized and configured to obtain the test scene subjected to the initialization configuration, wherein the test information is the test script of the Internet application to be tested, the command in the test script corresponds to the input data, the operation or various environment settings and the set of expected results, the test scene is configured according to the test script, the test scene is initialized and set, the performance test efficiency is effectively improved, then the pressure test task is automatically executed on the Internet application based on the test scene subjected to the initialization configuration to obtain the performance test data, the test scene is automatically executed according to the test scene subjected to the initialization configuration, the pressure test task is automatically executed on the Internet application without manual direct participation, and the problem of labor input cost of manually executing the pressure test is solved, and finally, automatic analysis processing is carried out based on the performance test data, performance report data is automatically generated, manual analysis processing and manual compiling of the performance report data are not needed, a performance test result is obtained according to the performance test data, statistics on the performance test data through different platforms is not needed, the problem that the performance report data is manually compiled after the performance test data is manually recorded and a test conclusion is analyzed is solved, important stages of the performance test are automatically realized, the manual input cost is saved, the time spent on developing the performance test by using one internet application is reduced, and the efficiency of the performance test is greatly improved.
In some embodiments, in step 101, the initially configuring the test scenario includes:
setting test condition information of the test scene according to the test information, wherein the test condition information comprises at least one of the following:
concurrency information, pressure measurement duration information, expected index information, test warning condition information and termination condition information.
In the above solution, for example, the internet application performs login performance testing corresponding to the access number of the user of the internet application in a certain time period, sets the pressing time duration information of the test scenario as the time of the corresponding time period, which represents the time duration for performing the pressure test, at this time, the access number is concurrency number information, sets concurrency number information according to an actual scenario, the expected index information is evaluation of the application system, performs performance test data analysis through the expected index information, for example, when the login carrying capacity is 2000 people, and when the concurrency number information is 1000, the phenomenon of too high resource utilization rate does not occur, so as to analyze the performance test data, and simultaneously, sets the operation condition for the test scenario through the test warning condition information and the termination condition information.
The method is realized by setting concurrency number information, duration information during pressing, expected index information, test warning condition information and termination condition information for a test scene.
In some embodiments, step 102 comprises:
the method comprises the following steps that a test scene automatically executes a pressure test task on the internet application to obtain performance test data, and comprises the following steps:
step 1021, starting the pressure test task of the internet application based on the test scene subjected to the initialization configuration, and verifying the state parameters of the test scene subjected to the initialization configuration to obtain a verification result.
And step 1022, in response to determining that the verification result is a pass, performing data preparation processing on the test scene subjected to the initialization configuration to obtain data preparation information.
And 1023, automatically constructing executive machine resource information based on the data preparation information, and automatically performing pressure test processing on the internet application based on the executive machine resource information to obtain performance test data.
In the scheme, after the pressure test task is started, the state parameters of the test scene subjected to initialization configuration are checked, after the check is passed, data preparation processing is carried out on the test scene subjected to initialization configuration, data preparation information is obtained, the executive machine resource information is automatically constructed based on the data preparation information, the starting tasks are constructed according to the number and the nodes of the executive machine resources are automatically constructed according to the number of the executive machine resource information set in the test scene subjected to initialization configuration, namely, the starting tasks are constructed according to the number of the executive machine resource information fields in an executive machine resource information file, the executive machine resources are started according to the executive machine resource information, and therefore the problem that the traditional executive machine resources manually add resources according to the actual detection condition to ensure basic resources of performance test is solved, and when the starting of the executive machine resources is overtime or not completely started, the pressure test is finished. When all the execution machine resources are started, a pressure test engine task is created, initial test information of a jmeter tool (pressure test tool) is updated according to a test scene which is initialized and configured in the pressure test engine, so that the initial test information of the jmeter tool (pressure test tool) is consistent with test information of the internet application which is acquired in advance, and then the jmeter tool (pressure test tool) is started to carry out pressure test processing on the internet application to obtain performance test data.
In some embodiments, step 1022, comprises:
and in response to the fact that the verification result is confirmed to be passed, respectively reading the test information and the executive machine resource information which is constructed in advance according to the test information to obtain data preparation information.
In the scheme, the data preparation information is information for creating an engine scheduling record, saving a scheduling plug-in and the like, reading test information in a disk, pre-constructing executive machine resource information according to the test information, detecting a character separation value file required by the test information in a test scene subjected to initialization configuration, and performing file fragmentation processing if the character separation value file exceeds the size.
In some embodiments, step 1023 includes:
and automatically constructing executive machine resource information based on the data preparation information, automatically performing pressure test processing on the Internet application according to the executive machine resource information and pressure test detail request information acquired according to the test information to obtain performance test data, storing the continuously obtained performance test data, and monitoring pressure test state information.
In the scheme, the executive machine resource information is automatically constructed based on the data preparation information, the executive machine resources are automatically distributed according to the executive machine resource information, the internet application is automatically subjected to pressure test processing through the automatically and respectively distributed executive machine resources and the pressure test detail request information, automatic data acquisition is carried out in real time in the pressure test process to obtain real-time performance test data, the continuously obtained real-time performance test data are stored, the pressure test state is monitored, in addition, the pressure test detail request information obtained according to the test information is pushed through a jmeter tool (pressure test tool), wherein the pressure test detail request information is interface access sequence information, and the problems that manual pressure test is carried out, the labor input is high in cost, and the performance test data are counted through different platforms are solved.
In some embodiments, in step 103, performing an automated analysis process based on the performance test data to obtain performance report data includes:
and in response to the fact that the pressure measurement state information is determined to be collected, performing automatic analysis processing according to the performance test data and the pressure measurement detail request information to obtain performance report data.
In the above scheme, when the monitored pressure measurement state is completed, pressure measurement is stopped, the performance test data and the pressure measurement detail request information collected in real time are automatically analyzed and processed to generate performance report data, and finally, pressure measurement in a test scene is completed.
In some embodiments, in step 103, the automatically generating a performance test result according to the performance test data includes:
carrying out automatic comparison analysis processing on the performance test data and the expected index information to obtain a comparison result;
responding to the fact that the comparison result is that the performance test data exceeds the expected index information, and obtaining that the performance test result is a pass;
and in response to determining that the comparison result is that the pressure measurement report data does not exceed the expected index information, obtaining that the performance test result is a fail.
In the scheme, the performance test data is compared with the expected index information, if the performance test data exceeds the expected index information, the pressure test is considered to be passed, the performance test data is indicated to reach the standard by passing, otherwise, the performance test data is not passed and indicated to not reach the standard by not passing.
In addition, performance test data such as performance test results of test scenarios, TPS (Transaction processing systems), response time, success rate, detail information of pressure test requests, resource utilization rate, and the like are displayed in the form of pages.
It should be noted that the method of the embodiment of the present application may be executed by a single device, such as a computer or a server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiment, and the multiple devices interact with each other to complete the method.
It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Based on the same inventive concept, corresponding to the method of any embodiment, the application also provides an automatic performance testing device for the internet application.
Referring to fig. 2, the automated performance testing apparatus for internet applications includes:
the system comprises an initialization configuration module 201, a test scene configuration module and a test result generation module, wherein the initialization configuration module is configured to configure a test scene according to pre-acquired test information of internet application, and perform initialization configuration on the test scene to obtain an initialized test scene;
the performance test module 202 is configured to automatically execute a pressure test task on the internet application based on the initialized and configured test scene to obtain performance test data;
the performance result obtaining module 203 is configured to perform automatic analysis processing based on the performance test data to obtain performance report data, and automatically generate a performance test result according to the performance test data.
In some embodiments, the initialization configuration module 201 is specifically configured to:
setting test condition information of the test scene according to the test information, wherein the test condition information comprises at least one of the following:
concurrency information, pressure measurement duration information, expected index information, test warning condition information and termination condition information.
In some embodiments, the performance testing module 202 includes:
the verification unit is configured to start the pressure test task of the internet application based on the initialized and configured test scene, and verify the state parameters of the initialized and configured test scene to obtain a verification result;
the data preparation unit is configured to perform data preparation processing on the initialized and configured test scene in response to the verification result being determined to be passed, and obtain data preparation information;
and the pressure measurement processing unit is configured to automatically construct executive machine resource information based on the data preparation information, and automatically perform pressure measurement processing on the Internet application based on the executive machine resource information to obtain performance test data.
In some embodiments, the data preparation unit is specifically configured to:
and in response to the fact that the verification result is determined to be passed, respectively reading the test information and the pre-constructed executive machine resource information according to the test information to obtain data preparation information.
In some embodiments, the pressure measurement processing unit is specifically configured to:
and automatically constructing executive machine resource information based on the data preparation information, automatically performing pressure test processing on the Internet application according to the executive machine resource information and pressure test detail request information acquired according to the test information to obtain performance test data, storing the continuously obtained performance test data, and monitoring pressure test state information.
In some embodiments, the performance result obtaining module 203 is specifically configured to:
and in response to the fact that the pressure measurement state information is determined to be collected, performing automatic analysis processing according to the performance test data and the pressure measurement detail request information to obtain performance report data.
In some embodiments, the performance result obtaining module 203 is specifically configured to:
carrying out automatic comparison analysis processing on the performance test data and the expected index information to obtain a comparison result;
responding to the fact that the comparison result is that the performance test data exceeds the expected index information, and obtaining that the performance test result is a pass;
and in response to determining that the comparison result is that the pressure measurement report data does not exceed the expected index information, obtaining that the performance test result is a fail.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations as the present application.
The apparatus of the foregoing embodiment is used to implement the corresponding method for testing automation performance of internet application in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to the method of any embodiment described above, the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the method for testing the automatic performance of the internet application described in any embodiment above is implemented.
Fig. 3 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 301, a memory 302, an input/output interface 303, a communication interface 304, and a bus 305. Wherein the processor 301, the memory 302, the input/output interface 303 and the communication interface 304 are communicatively connected to each other within the device via a bus 305.
The processor 301 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 302 may be implemented in the form of a ROM (Read Only Memory), a RAM (random access Memory), a static storage device, a dynamic storage device, or the like. The memory 302 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 302 and called to be executed by the processor 301.
The input/output interface 303 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 304 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 305 includes a path that transfers information between the various components of the device, such as processor 301, memory 302, input/output interface 303, and communication interface 304.
It should be noted that although the above-mentioned device only shows the processor 301, the memory 302, the input/output interface 303, the communication interface 304 and the bus 305, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
The electronic device of the foregoing embodiment is used for implementing the corresponding automatic performance testing method for internet application in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
Based on the same inventive concept, corresponding to any of the above-described embodiment methods, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method for automated performance testing of internet applications according to any of the above-described embodiments.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The computer instructions stored in the storage medium of the foregoing embodiment are used to enable the computer to execute the method for testing the automation performance of the internet application according to any one of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which are not described herein again.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the context of the present application, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures for simplicity of illustration and discussion, and so as not to obscure the embodiments of the application. Furthermore, devices may be shown in block diagram form in order to avoid obscuring embodiments of the application, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the application are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present application are intended to be included within the scope of the present application.

Claims (10)

1. An automated performance testing method for internet applications, comprising:
configuring a test scene according to pre-acquired test information of the Internet application, and performing initialization configuration on the test scene to obtain an initialized test scene;
automatically executing a pressure test task on the Internet application based on the initialized and configured test scene to obtain performance test data;
and carrying out automatic analysis processing based on the performance test data to obtain performance report data, and automatically generating a performance test result according to the performance test data.
2. The method of claim 1, wherein the initially configuring the test scenario comprises:
setting test condition information of the test scene according to the test information, wherein the test condition information comprises at least one of the following:
concurrency information, pressure measurement duration information, expected index information, test warning condition information and termination condition information.
3. The method of claim 1, wherein automatically performing a pressure test task on the internet application based on the initialized and configured test scenario to obtain performance test data comprises:
starting the pressure measurement task of the Internet application based on the test scene subjected to the initialization configuration, and verifying the state parameters of the test scene subjected to the initialization configuration to obtain a verification result;
in response to the fact that the verification result is determined to be passed, performing data preparation processing on the test scene subjected to initialization configuration to obtain data preparation information;
and automatically constructing the resource information of the execution machine based on the data preparation information, and automatically carrying out pressure test processing on the Internet application based on the resource information of the execution machine to obtain performance test data.
4. The method of claim 3, wherein performing a data preparation process in response to determining that the verification result is a pass, resulting in data preparation information, comprises:
and in response to the fact that the verification result is determined to be passed, respectively reading the test information and the pre-constructed executive machine resource information according to the test information to obtain data preparation information.
5. The method of claim 4, wherein the automatically constructing of the execution machine resource information based on the data preparation information and the automatically performing of the pressure test processing on the internet application based on the execution machine resource information to obtain the performance test data comprises:
and automatically constructing the resource information of an execution machine based on the data preparation information, automatically carrying out pressure test processing on the Internet application according to the resource information of the execution machine and the pressure test detail request information obtained according to the test information to obtain performance test data, storing the continuously obtained performance test data, and monitoring pressure test state information.
6. The method of claim 5, wherein said performing an automated analysis process based on said performance test data to obtain performance report data comprises:
and in response to the fact that the pressure measurement state information is determined to be collected, performing automatic analysis processing according to the performance test data and the pressure measurement detail request information to obtain performance report data.
7. The method of claim 2, wherein automatically generating performance test results from the performance test data comprises:
carrying out automatic comparison analysis processing on the performance test data and the expected index information to obtain a comparison result;
responding to the fact that the comparison result is that the performance test data exceeds the expected index information, and obtaining that the performance test result is a pass;
and in response to determining that the comparison result is that the pressure measurement report data does not exceed the expected index information, obtaining that the performance test result is a fail.
8. An automated performance testing apparatus for internet applications, comprising:
the system comprises an initialization configuration module, a test configuration module and a test configuration module, wherein the initialization configuration module is configured to configure a test scene according to pre-acquired test information of the Internet application and perform initialization configuration on the test scene to obtain an initialized and configured test scene;
the performance testing module is configured to automatically execute a pressure testing task on the Internet application based on the initialized and configured testing scene to obtain performance testing data;
and the performance result acquisition module is configured to perform automatic analysis processing based on the performance test data to obtain performance report data, and automatically generate a performance test result according to the performance test data.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202210316707.8A 2022-03-28 2022-03-28 Automatic performance testing method for internet application and related equipment Pending CN114942878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210316707.8A CN114942878A (en) 2022-03-28 2022-03-28 Automatic performance testing method for internet application and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210316707.8A CN114942878A (en) 2022-03-28 2022-03-28 Automatic performance testing method for internet application and related equipment

Publications (1)

Publication Number Publication Date
CN114942878A true CN114942878A (en) 2022-08-26

Family

ID=82905744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210316707.8A Pending CN114942878A (en) 2022-03-28 2022-03-28 Automatic performance testing method for internet application and related equipment

Country Status (1)

Country Link
CN (1) CN114942878A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115248782A (en) * 2022-09-22 2022-10-28 中邮消费金融有限公司 Automatic testing method and device and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115248782A (en) * 2022-09-22 2022-10-28 中邮消费金融有限公司 Automatic testing method and device and computer equipment
CN115248782B (en) * 2022-09-22 2022-12-23 中邮消费金融有限公司 Automatic testing method and device and computer equipment

Similar Documents

Publication Publication Date Title
CN108717393A (en) A kind of applied program testing method and mobile terminal
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN110968495A (en) Container cloud platform performance evaluation method and device
CN110647471A (en) Interface test case generation method, electronic device and storage medium
CN112463568A (en) Service simulation test method and device and electronic equipment
CN112817866A (en) Recording playback method, device, system, computer equipment and storage medium
CN112256944A (en) Automatic website data crawling method based on JMeter
CN117215910A (en) Interface test frame generation method, test method, electronic device and storage medium
CN114942878A (en) Automatic performance testing method for internet application and related equipment
US20130318499A1 (en) Test script generation
CN112486589A (en) System configuration item management method and device, electronic equipment and storage medium
CN112817869A (en) Test method, test device, test medium, and electronic apparatus
CN114764296A (en) Machine learning model training method and device, electronic equipment and storage medium
JP2016514326A (en) Method and system for analyzing a trace timeline of computer system activity
CN115248782B (en) Automatic testing method and device and computer equipment
CN115034164A (en) Verification method, electronic device, and storage medium
CN114265737A (en) System migration integrity detection method and device and electronic equipment
CN104239199A (en) Virtual robot generation method, automatic test method and related device
CN113127369A (en) Processing method and device for execution script
CN112380115A (en) Regression testing method and device, electronic equipment and storage medium
CN112527584A (en) Software efficiency improving method and system based on script compiling and data acquisition
CN105988917A (en) Method and device for obtaining abnormal information
CN112333294A (en) Log merging method, device, medium and equipment
CN109901990B (en) Method, device and equipment for testing service system
CN114741325B (en) Recording method and device of test script for application system test

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