CN112699044A - Pressure testing method, equipment and storage medium - Google Patents

Pressure testing method, equipment and storage medium Download PDF

Info

Publication number
CN112699044A
CN112699044A CN202110009149.6A CN202110009149A CN112699044A CN 112699044 A CN112699044 A CN 112699044A CN 202110009149 A CN202110009149 A CN 202110009149A CN 112699044 A CN112699044 A CN 112699044A
Authority
CN
China
Prior art keywords
stress test
test script
code
script
pressure
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.)
Granted
Application number
CN202110009149.6A
Other languages
Chinese (zh)
Other versions
CN112699044B (en
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.)
Changsha Daojia Youxiang Home Economics Service Co ltd
Original Assignee
Changsha Daojia Youxiang Home Economics Service 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 Changsha Daojia Youxiang Home Economics Service Co ltd filed Critical Changsha Daojia Youxiang Home Economics Service Co ltd
Priority to CN202110009149.6A priority Critical patent/CN112699044B/en
Publication of CN112699044A publication Critical patent/CN112699044A/en
Application granted granted Critical
Publication of CN112699044B publication Critical patent/CN112699044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the application provides a pressure testing method, equipment and a storage medium. In an embodiment of the present application, a stress test script is executed in a stress test environment; directly downloading codes depended by the pressure test script from a code library to a pressure test environment in the process of executing the pressure test script; and executing the agent on which the stress test script depends in a stress test environment to perform stress testing. According to the pressure testing mode, in the process of executing the pressure testing script, the code dependent on the pressure testing script is directly downloaded from the code library to the pressure testing environment, compared with the process that the code dependent on the pressure testing script is downloaded to the local firstly and then uploaded to the pressure testing environment from the local for pressure testing, the process that the code dependent on the pressure testing script is uploaded to the pressure testing environment from the local can be omitted, the uploading time of the code dependent on the pressure testing script is reduced, the pressure testing time is further reduced, and the pressure testing efficiency is improved.

Description

Pressure testing method, equipment and storage medium
Technical Field
The present disclosure relates to the field of software testing technologies, and in particular, to a pressure testing method, device and storage medium.
Background
The pressure test can simulate the software and hardware environment of practical application and the system load of a user in the using process, and run a pressure test script for a long time or an ultra-heavy load to test the performance of an application program.
During the development process of the stress test script, the existing code base is often relied on, so that the development workload can be reduced. When the pressure test is carried out, the code on which the pressure test script depends needs to be downloaded locally from the code library, and then the written pressure test script and the dependency package are manually uploaded to a pressure test environment for pressure test, so that the whole process consumes a long time and the pressure test efficiency is low.
Disclosure of Invention
Aspects of the present disclosure provide a pressure testing method, device and storage medium, which are used to shorten a pressure testing time and improve a pressure testing efficiency.
The embodiment of the application provides a pressure testing method, which is suitable for computer equipment and comprises the following steps:
acquiring a pressure test script;
executing the stress test script in a stress test environment;
downloading the code depended by the pressure test script from a code library to the pressure test environment in the process of executing the pressure test script;
executing code on which the stress test script depends in the stress test environment to perform a stress test.
An embodiment of the present application further provides a computer device, including: a memory and a processor; wherein the memory is used for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the steps in the pressure testing method described above.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described stress testing method.
In an embodiment of the present application, a stress test script is executed in a stress test environment; directly downloading codes depended by the pressure test script from a code library to a pressure test environment in the process of executing the pressure test script; and executing the agent on which the stress test script depends in a stress test environment to perform stress testing. According to the pressure testing mode, in the process of executing the pressure testing script, the code dependent on the pressure testing script is directly downloaded from the code library to the pressure testing environment, compared with the process that the code dependent on the pressure testing script is downloaded to the local firstly and then uploaded to the pressure testing environment from the local for pressure testing, the process that the code dependent on the pressure testing script is uploaded to the pressure testing environment from the local can be omitted, the uploading time of the code dependent on the pressure testing script is reduced, the pressure testing time is further reduced, and the pressure testing efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart of a pressure testing method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a computer 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 technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Aiming at the technical problems of long time consumption and low efficiency of the existing pressure test, the embodiment of the application provides a solution, and the basic idea is as follows: executing a stress test script in a stress test environment; directly downloading codes depended by the pressure test script from a code library to a pressure test environment in the process of executing the pressure test script; and executing the agent on which the stress test script depends in a stress test environment to perform stress testing. According to the pressure testing mode, in the process of executing the pressure testing script, the code dependent on the pressure testing script is directly downloaded from the code library to the pressure testing environment, compared with the process that the code dependent on the pressure testing script is downloaded to the local firstly and then uploaded to the pressure testing environment from the local for pressure testing, the process that the code dependent on the pressure testing script is uploaded to the pressure testing environment from the local can be omitted, the uploading time of the code dependent on the pressure testing script is reduced, the pressure testing time is further reduced, and the pressure testing efficiency is improved.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be noted that: like reference numerals refer to like objects in the following figures and embodiments, and thus, once an object is defined in one figure or embodiment, further discussion thereof is not required in subsequent figures and embodiments.
Fig. 1 is a schematic flow chart of a pressure testing method according to an embodiment of the present disclosure. As shown in fig. 1, the method includes:
101. and acquiring a pressure test script.
102. The stress test script is executed in a stress test environment.
103. In the process of executing the stress test script, the code depended by the stress test script is downloaded from the code base to the stress test environment.
104. Code on which the stress test script depends is executed in a stress test environment to perform a stress test.
In the process of program development, in order to reduce the development workload, a developer can refer to source code developed by others in the development process, and this reference relationship, which may also be referred to as a dependency relationship, is to implement the function of the program developed by the developer depending on the source code developed by others. For example, source code in a code library may be referenced, and so on. In this embodiment, the pressure test script refers to a script for performing a pressure test on software to be tested. The software to be tested can be APP, a client, an applet or a Web page and the like.
The pressure test script can be a script which does not depend on codes developed by others, and can also be a script which depends on codes developed by others. Aiming at the pressure test script which does not depend on codes developed by others, the pressure test script can be directly uploaded to a pressure test environment for pressure test. Therefore, the process of performing stress test on the stress test script which depends on codes developed by others is described in the embodiment of the application.
In step 101, a stress test script may be obtained. Optionally, the script uploaded to the stress test environment may be obtained as the stress test script in response to an upload operation for the test script. The pressure test environment may be a software environment simulating a production environment of the software to be tested.
In this embodiment, the computer device may provide a human-machine interaction interface, which may include an upload control. The user can upload the pressure test script to the pressure test environment through the upload control. Correspondingly, a file selection interface can be displayed in response to the triggering operation aiming at the uploading control; and responding to the selection operation of the file, and taking the code in the selected text as a stress test script.
Further, in step 102, a stress test script may be executed in a stress test environment.
Optionally, a Git project corresponding to the pressure test script can be generated by using the pressure test script; and integrating the Git engineering corresponding to the pressure test script to a Jenkins platform. Integration of different Git engineering and pressure test scripts can be realized in the Jenkins platform. In this embodiment, the Jenkins platform is in communication with the pressure test environment. Correspondingly, the Git project corresponding to the pressure test script can be transmitted into a pressure test environment through a Jenkins platform; further, in response to an execution event for the stress test script, a Git project corresponding to the stress test script may be executed in the stress test environment to execute the stress test script.
In the embodiment of the present application, a specific implementation form of the execution event is not limited. In some embodiments, a human-machine interface may be provided. The interface may include a launch control. The user can trigger the running control to control the execution of the code. Accordingly, in response to an execution event generated by a trigger operation for the running control, a Git project corresponding to the stress test script can be executed in the stress test environment, so that the stress test script can be executed in the stress test environment.
Further, in step 103, during the process of executing the stress test script, the code on which the stress test script depends may be downloaded from the code library to the stress test environment. Next, in step 104, the code on which the stress test script depends is executed in the stress test environment to perform the stress test.
In the embodiment of the present application, the deployment location of the code library is not limited. Optionally, the device deploying the code library and the computer device executing the stress testing method are in the same intranet environment. Therefore, when the code dependent on the pressure test script is downloaded from the code library, the code downloading speed can be increased, and the pressure test efficiency can be further improved.
In this embodiment, a stress test script may be executed in a stress test environment; directly downloading codes depended by the pressure test script from a code library to a pressure test environment in the process of executing the pressure test script; and executing code on which the stress test script depends in a stress test environment to perform a stress test. According to the pressure testing mode, in the process of executing the pressure testing script, the code dependent on the pressure testing script is directly downloaded from the code library to the pressure testing environment, compared with the process that the code dependent on the pressure testing script is downloaded to the local firstly and then uploaded to the pressure testing environment from the local for pressure testing, the process that the code dependent on the pressure testing script is uploaded to the pressure testing environment from the local can be omitted, the uploading time of the code dependent on the pressure testing script is reduced, the pressure testing time is further reduced, and the pressure testing efficiency is improved.
Particularly, for the case that the code that the pressure test script depends on is large, for example, the code that some pressure test scripts depend on may be tens of M or even hundreds of M, by using the scheme that the code that the pressure test script depends on is downloaded to the local first and then uploaded to the pressure test environment from the local for pressure test, the process of uploading the code that the pressure test script depends on to the pressure test environment takes a long time, resulting in low pressure test efficiency. In the pressure testing mode provided by the embodiment, in the process of executing the pressure testing script, the code dependent on the pressure testing script is directly downloaded from the code library to the pressure testing environment, so that the uploading time of the code dependent on the pressure testing script is reduced, the pressure testing time is further reduced, and the pressure testing efficiency is improved.
Optionally, in the process of executing the pressure test script, the function name to be called may be obtained when the pressure test script is executed to the code in the code library that needs to be called; and provides the function name to be called to the code library. Correspondingly, the code library can acquire the code corresponding to the name of the function to be called and return the acquired code corresponding to the function to be called to the computer equipment executing the stress test script.
Further, aiming at the computer equipment executing the pressure test script, a code corresponding to the function name to be called can be obtained and used as a code on which the pressure test script depends; and the code on which the stress test script depends is downloaded to the stress test environment.
The pressure testing method provided by the embodiment of the application can be suitable for carrying out pressure testing on the bottom layer interface. The underlying interface may be a DSF interface, a DUBBO interface, or an HTTP interface, etc., but is not limited thereto.
Correspondingly, in the process of executing the stress test script, the number of concurrent requests of the user, the execution test time and the starting and inhibiting elements of the request of the bottom layer interface can be controlled, so that the stress test can be carried out on the bottom layer interface. Wherein, the start and inhibit elements requested by the underlying interface can be understood as: conditions for enabling the underlying interface request and conditions for disabling the underlying interface request, etc.
Further, test result data of the pressure test can be acquired. Optionally, a visual data billboard reflecting the test result can be generated according to the test result data; and the visual data billboard is displayed to display the test result visually, which is helpful for users to know the test result visually. Wherein, visual data billboard is: a billboard that displays data in a form that facilitates direct visualization. Alternatively, the visual data billboard can be a graphical billboard, a list billboard, and the like, but is not limited thereto. The graphical board can be a graph board, a histogram board, a pie board, and the like.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subject of steps 101 and 102 may be device a; for another example, the execution subject of step 101 may be device a, and the execution subject of step 102 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 101, 102, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described stress testing method.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 2, the computer apparatus includes: a memory 20a and a processor 20 b; the memory 20a is used for storing computer programs.
The processor 20b is coupled to the memory 20a for executing a computer program for: acquiring a pressure test script; executing a stress test script in a stress test environment; during the process of executing the stress test script, downloading the code depended by the stress test script from the code library to the stress test environment through the communication component 20 c; and executing code on which the stress test script depends in a stress test environment to perform a stress test.
Optionally, the device deploying the code library is in the same intranet environment as the computer device.
In some embodiments, the processor 20bb, when executing the stress test script in the stress test environment, is specifically configured to: generating a Git project corresponding to the pressure test script by using the pressure test script; integrating the Git engineering corresponding to the pressure test script to a Jenkins platform; transmitting the Git project corresponding to the pressure test script into a pressure test environment through a Jenkins platform; and responding to the execution event aiming at the stress test script, and executing the Git project corresponding to the stress test script in the stress test environment so as to execute the stress test script.
Optionally, when the processor 20b executes the Git project corresponding to the stress test script in the stress test environment, the processor is specifically configured to: and responding to an execution event generated by the trigger operation for the control running on the screen 20d, and executing the Git project corresponding to the stress test script in the stress test environment.
In other embodiments, the processor 20b, when downloading the code on which the stress test script depends from the code library to the stress test environment, is specifically configured to: acquiring a function name to be called under the condition that the pressure test script is executed to a code in a code library needing to be called; providing the function name to be called to the code library through the communication component 20c, so that the code library returns the code corresponding to the function name to be called; acquiring a code corresponding to the function name to be called as a code on which the pressure test script depends through the communication component 20 c; and the code on which the stress test script depends is downloaded to the stress test environment.
In still other embodiments, the processor 20b is further configured to: and in the process of executing the stress test script, controlling the number of concurrent requests of a user, the execution test time and the starting and prohibiting elements of the requests of the bottom layer interface so as to perform stress test on the bottom layer interface.
Optionally, the underlying interface is a DSF interface, a DUBBO interface, or an HTTP interface.
Optionally, the processor 20b is further configured to: acquiring test result data of a pressure test; generating a visual data billboard reflecting the test result according to the test result data; and displays a visual data billboard on the screen 20 d.
In some optional embodiments, as shown in fig. 2, the computer device may further include: power supply 20e, audio 20f, etc. Only some of the components shown in fig. 2 are schematically depicted, and it is not meant that the computer device must include all of the components shown in fig. 2, nor that the computer device only includes the components shown in fig. 2.
In embodiments of the present application, the memory is used to store computer programs and may be configured to store other various data to support operations on the device on which it is located. Wherein the processor may execute a computer program stored in the memory to implement the corresponding control logic. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In the embodiments of the present application, the processor may be any hardware processing device that can execute the above described method logic. Alternatively, the processor may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), or a Micro Controller Unit (MCU); programmable devices such as Field-Programmable Gate arrays (FPGAs), Programmable Array Logic devices (PALs), General Array Logic devices (GAL), Complex Programmable Logic Devices (CPLDs), etc. may also be used; or Advanced Reduced Instruction Set (RISC) processors (ARM), or System On Chips (SOC), etc., but is not limited thereto.
In embodiments of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may also be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In the embodiment of the present application, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
In embodiments of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
In embodiments of the present application, the audio component may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals. For example, for devices with language interaction functionality, voice interaction with a user may be enabled through an audio component, and so forth.
The computer device provided by the embodiment can execute the pressure test script in the pressure test environment; directly downloading codes depended by the pressure test script from a code library to a pressure test environment in the process of executing the pressure test script; and executing the agent on which the stress test script depends in a stress test environment to perform stress testing. According to the pressure testing mode, in the process of executing the pressure testing script, the code dependent on the pressure testing script is directly downloaded from the code library to the pressure testing environment, compared with the process that the code dependent on the pressure testing script is downloaded to the local firstly and then uploaded to the pressure testing environment from the local for pressure testing, the process that the code dependent on the pressure testing script is uploaded to the pressure testing environment from the local can be omitted, the uploading time of the code dependent on the pressure testing script is reduced, the pressure testing time is further reduced, and the pressure testing efficiency is improved.
It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, 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 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. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A pressure testing method is suitable for computer equipment and is characterized by comprising the following steps:
acquiring a pressure test script;
executing the stress test script in a stress test environment;
downloading the code depended by the pressure test script from a code library to the pressure test environment in the process of executing the pressure test script;
executing code on which the stress test script depends in the stress test environment to perform a stress test.
2. The method of claim 1, wherein executing the stress test script in a stress test environment comprises:
generating a Git project corresponding to the pressure test script by using the pressure test script;
integrating the Git engineering corresponding to the pressure test script to a Jenkins platform;
transmitting the Git project corresponding to the pressure test script into the pressure test environment through the Jenkins platform;
and responding to an execution event aiming at the stress test script, and executing the Git project corresponding to the stress test script in the stress test environment so as to execute the stress test script.
3. The method according to claim 2, wherein the executing the Git project corresponding to the stress test script in the stress test environment in response to the execution event for the stress test script comprises:
and responding to an execution event generated by the trigger operation aiming at the running control, and executing the Git project corresponding to the stress test script in the stress test environment.
4. The method according to claim 1, wherein downloading the code on which the stress test script depends from a code library into the stress test environment during the execution of the stress test script comprises:
acquiring a function name to be called under the condition that the pressure test script is executed to a code in a code library needing to be called;
providing the function name to be called to the code base so that the code base returns a code corresponding to the function name to be called;
acquiring a code corresponding to the function name to be called as a code on which the pressure test script depends;
downloading code on which the stress test script depends into the stress test environment.
5. The method of claim 1, further comprising:
and in the process of executing the stress test script, controlling the number of concurrent requests of a user, the execution test time and the starting and prohibiting elements of the requests of the bottom layer interface so as to perform stress test on the bottom layer interface.
6. The method of claim 4, further comprising:
acquiring test result data of a pressure test;
generating a visual data billboard reflecting the test result according to the test result data; and displaying the visual data billboard.
7. The method of claim 5, wherein the underlying interface is a DSF interface, a DUBBO interface, or an HTTP interface.
8. The method according to any of claims 1-7, wherein the device deploying the codebase is in the same intranet environment as the computer device.
9. A computer device, comprising: a memory and a processor; wherein the memory is used for storing a computer program;
the processor is coupled to the memory for executing the computer program for performing the steps of the method of any of claims 1-8.
10. A computer-readable storage medium having stored thereon computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 1-8.
CN202110009149.6A 2021-01-05 2021-01-05 Pressure testing method, equipment and storage medium Active CN112699044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110009149.6A CN112699044B (en) 2021-01-05 2021-01-05 Pressure testing method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110009149.6A CN112699044B (en) 2021-01-05 2021-01-05 Pressure testing method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112699044A true CN112699044A (en) 2021-04-23
CN112699044B CN112699044B (en) 2023-02-24

Family

ID=75514780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110009149.6A Active CN112699044B (en) 2021-01-05 2021-01-05 Pressure testing method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112699044B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220586A (en) * 2021-05-31 2021-08-06 五八到家有限公司 Automatic interface pressure test execution method, device and system
CN114003442A (en) * 2021-09-26 2022-02-01 苏州浪潮智能科技有限公司 Pressure testing method, device, equipment and medium for ARM server

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137170A (en) * 2007-09-04 2008-03-05 深圳市中兴移动通信有限公司 Software automatic testing instrument and method of embedded equipment
US7721265B1 (en) * 2003-11-10 2010-05-18 Cisco Technology, Inc. Source code debugging method and apparatus for use in script testing environment
US20100251032A1 (en) * 2009-03-30 2010-09-30 Macary John S System for providing performance testing information to users
CN102567516A (en) * 2011-12-28 2012-07-11 华为技术有限公司 Script loading method and device
CN104503784A (en) * 2014-12-16 2015-04-08 珠海金山网络游戏科技有限公司 Method and system for controlling micro-client downloading by using script
CN105320589A (en) * 2014-07-14 2016-02-10 上海计算机软件技术开发中心 Automatic analysis system for testing scripts in cloud testing environments and realization method thereof
CN106201862A (en) * 2015-05-25 2016-12-07 阿里巴巴集团控股有限公司 Web services method for testing pressure and device
CN107992422A (en) * 2017-12-08 2018-05-04 郑州云海信息技术有限公司 A kind of ameliorative way and device of software compatibility test
CN109446047A (en) * 2018-10-30 2019-03-08 武汉斗鱼网络科技有限公司 Testing Platform script storage method, device, equipment and storage medium
CN109522173A (en) * 2018-11-02 2019-03-26 郑州云海信息技术有限公司 A kind of OPA network card testing method, device, terminal and storage medium
CN110109817A (en) * 2019-03-13 2019-08-09 深圳壹账通智能科技有限公司 Automatic interface testing method, device, equipment and storage medium
CN110362294A (en) * 2019-05-27 2019-10-22 深圳壹账通智能科技有限公司 Development task executes method, apparatus, electronic equipment and storage medium
CN110659022A (en) * 2019-08-19 2020-01-07 浙江邦盛科技有限公司 Method for automatically calling Python script based on Java

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7721265B1 (en) * 2003-11-10 2010-05-18 Cisco Technology, Inc. Source code debugging method and apparatus for use in script testing environment
CN101137170A (en) * 2007-09-04 2008-03-05 深圳市中兴移动通信有限公司 Software automatic testing instrument and method of embedded equipment
US20100251032A1 (en) * 2009-03-30 2010-09-30 Macary John S System for providing performance testing information to users
CN102567516A (en) * 2011-12-28 2012-07-11 华为技术有限公司 Script loading method and device
CN105320589A (en) * 2014-07-14 2016-02-10 上海计算机软件技术开发中心 Automatic analysis system for testing scripts in cloud testing environments and realization method thereof
CN104503784A (en) * 2014-12-16 2015-04-08 珠海金山网络游戏科技有限公司 Method and system for controlling micro-client downloading by using script
CN106201862A (en) * 2015-05-25 2016-12-07 阿里巴巴集团控股有限公司 Web services method for testing pressure and device
CN107992422A (en) * 2017-12-08 2018-05-04 郑州云海信息技术有限公司 A kind of ameliorative way and device of software compatibility test
CN109446047A (en) * 2018-10-30 2019-03-08 武汉斗鱼网络科技有限公司 Testing Platform script storage method, device, equipment and storage medium
CN109522173A (en) * 2018-11-02 2019-03-26 郑州云海信息技术有限公司 A kind of OPA network card testing method, device, terminal and storage medium
CN110109817A (en) * 2019-03-13 2019-08-09 深圳壹账通智能科技有限公司 Automatic interface testing method, device, equipment and storage medium
CN110362294A (en) * 2019-05-27 2019-10-22 深圳壹账通智能科技有限公司 Development task executes method, apparatus, electronic equipment and storage medium
CN110659022A (en) * 2019-08-19 2020-01-07 浙江邦盛科技有限公司 Method for automatically calling Python script based on Java

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220586A (en) * 2021-05-31 2021-08-06 五八到家有限公司 Automatic interface pressure test execution method, device and system
CN114003442A (en) * 2021-09-26 2022-02-01 苏州浪潮智能科技有限公司 Pressure testing method, device, equipment and medium for ARM server
CN114003442B (en) * 2021-09-26 2023-09-12 苏州浪潮智能科技有限公司 Pressure test method, device, equipment and medium of ARM server

Also Published As

Publication number Publication date
CN112699044B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
US20220318945A1 (en) Optimizing compilation of shaders
EP3333704A1 (en) Method and apparatus for repairing kernel vulnerability
CN112699044B (en) Pressure testing method, equipment and storage medium
CN110134386B (en) Program editing method and device
CN110083543B (en) Regression testing method, device, electronic equipment and storage medium
CN108964968B (en) Service access management method and system in container cloud environment
US9430207B1 (en) Automated cross-platform native mobile application generation with cloud driven user interface and workflow synthesis
US20200310789A1 (en) Method for creating hyperledger fabric network, controller and storage medium
CN111459818B (en) Visual test method and device
CN112347404A (en) SPA page rendering method, device and system and storage medium
CN111475142A (en) Method, device and equipment for generating applet file package
CN112346965B (en) Test case distribution method, device and storage medium
CN113254331A (en) Model test method, device, storage medium and program product
CN113419941A (en) Evaluation method and apparatus, electronic device, and computer-readable storage medium
CN114840214A (en) Program compiling and starting method, device and storage medium
CN114356434B (en) Page loading method, device, apparatus, storage medium and program product
CN114996134A (en) Containerized deployment method, electronic equipment and storage medium
US20210097787A1 (en) Information presentation method and apparatus
CN112764796A (en) Installation package generation system
CN114764296A (en) Machine learning model training method and device, electronic equipment and storage medium
CN111435328B (en) Application testing method and device, electronic equipment and readable storage medium
CN112069057A (en) Code testing method, device, apparatus and storage medium
CN112346761A (en) Front-end resource online method, equipment, system and storage medium
CN112069503A (en) Task management method, device and storage medium
CN112799946A (en) Method, equipment and storage medium for embedding points and collecting data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant