CN110597704A - Application program pressure testing method, device, server and medium - Google Patents
Application program pressure testing method, device, server and medium Download PDFInfo
- Publication number
- CN110597704A CN110597704A CN201810610095.7A CN201810610095A CN110597704A CN 110597704 A CN110597704 A CN 110597704A CN 201810610095 A CN201810610095 A CN 201810610095A CN 110597704 A CN110597704 A CN 110597704A
- Authority
- CN
- China
- Prior art keywords
- test
- scene
- specific
- application program
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a pressure test method, a device, a server and a medium of an application program, wherein the method comprises the following steps: executing the UI automation test script to enter a specific test scene of the target application program; carrying out pressure test on a specific test scene by using a random test tool; monitoring whether a current test scene of a target application program is in a specific test scene or not in the pressure test process; and if the current test scene is monitored not to be in the specific test scene, executing the UI automation test script, and re-entering the specific test scene for pressure test. The embodiment of the invention solves the problem that the specific service scene of the application program cannot be subjected to the targeted pressure test in the prior art, and improves the pertinence of the pressure test.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a pressure testing method, a pressure testing device, a pressure testing server and a pressure testing medium for an application program.
Background
The stability of mobile Applications (APPs) can be determined by pressure testing during routine testing work, and defects in the product can be revealed by frequently simulating manual operations during testing.
At present, the stress test method of the mobile application mainly includes the following two methods:
1) the test is performed directly using a random pressure test tool, such as a Moneky tool. The method generates a pseudo-random data sequence, wherein each data corresponds to an event unit, and the random pressure test is realized by injecting the event units into a tested system in sequence.
2) Testing is performed based on page element traversal. The method is used for traversing each page element in the application program according to the sequence, and then traversing and testing the functions of each module in the application program according to the attribute triggering event of the page element.
However, when a random stress test tool is directly used for testing or page elements are traversed in sequence for testing, a targeted stress test on a specific service scene of an application program cannot be realized.
Disclosure of Invention
The embodiment of the invention provides a pressure test method, a pressure test device, a server and a medium of an application program, and aims to solve the problem that a specific service scene of the application program cannot be subjected to targeted pressure test in the prior art.
In a first aspect, an embodiment of the present invention provides a method for testing a stress of an application, where the method includes:
executing the UI automation test script to enter a specific test scene of the target application program;
performing pressure test on the specific test scene by using a random test tool;
monitoring whether the current test scene of the target application program is in the specific test scene or not in the pressure test process;
and if the current test scene is monitored not to be in the specific test scene, executing the UI automation test script, and re-entering the specific test scene for pressure test.
In a second aspect, an embodiment of the present invention further provides an apparatus for testing a stress of an application, where the apparatus includes:
the UI script execution module is used for executing the UI automation test script so as to enter a specific test scene of the target application program;
the pressure testing module is used for carrying out pressure testing on the specific testing scene by utilizing a random testing tool;
the scene monitoring module is used for monitoring whether the current test scene of the target application program is in the specific test scene or not in the pressure test process;
and the scene reentry module is used for executing the UI automation test script and reentering the specific test scene to perform pressure test if the current test scene is monitored not to be in the specific test scene.
In a third aspect, an embodiment of the present invention further provides a server, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the stress testing method for the application program according to any embodiment of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the stress testing method for an application according to any embodiment of the present invention.
According to the embodiment of the invention, the UI automatic test script is executed, a specific test scene of a target application program is entered, and then a random test tool is utilized to perform pressure test on the specific test scene; and in the pressure testing process, monitoring the current testing scene in real time, and if the current testing scene is monitored not to be in the specific testing scene, re-entering the specific testing scene by executing the UI automatic testing script so as to ensure that the specific testing scene is not changed in the testing process. The embodiment of the invention solves the problem that the specific service scene of the application program cannot be subjected to the targeted pressure test in the prior art, and improves the pertinence of the pressure test.
Drawings
Fig. 1 is a flowchart of a method for testing stress of an application according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for testing stress of an application according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a pressure testing apparatus for an application according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for testing stress of an application according to an embodiment of the present invention, where the embodiment is applicable to a case where a stress test of an application is performed, and the method may be performed by a stress testing apparatus of an application, and the apparatus may be implemented in a software and/or hardware manner, and may be integrated in a server. As shown in fig. 1, the method specifically includes:
and S110, executing the UI automation test script to enter a specific test scene of the target application program.
The stress test in this embodiment is mainly directed to a specific scenario of a software program in an application layer, and does not involve a stress test on a server layer, where the specific scenario includes a specific operation scenario of an application program in a mobile terminal such as a mobile phone, a personal computer, and a tablet computer, for example, a specific page or a specific function module.
Considering that the simple application-level random pressure test cannot guarantee the test of a specific page or a specific function module of an application program, especially for a complex application program, if the simple application-level random pressure test is performed, the pressure test duration and the coverage rate of the specific function module cannot be guaranteed, therefore, after a tester sends a packaged test instruction and executes a test case, an automatic script enters a specific test scene of a target application program through an execution UI (User Interface), and then a random test tool is triggered to perform the pressure test on the specific test scene. The packaged test instructions are written in advance by a tester before a stress test is performed, wherein the test instructions include test-related instructions, such as test scenarios, test cases and the like.
Any UI automation test framework may be used in executing the UI automation test script, such as UIAutomator, Robotium, or Monkeyunner, among others. Each test scenario of the application program has a specific program entry, and the scenario is entered by executing the UI automation test script, and elements of a specific page or elements of a specific function module are traversed in a specific order. The UI automation test script is written by a tester in advance based on page elements or module elements included in a specific test scene of a target application program.
And S120, performing pressure test on the specific test scene by using a random test tool.
After the program enters a specific test scene of the target application program, a random test tool can be used for pressure test, wherein the random test tool comprises a pressure test tool Monkey and the like integrated on the application program.
For example, in a project test of an internet company, a specific scenario of an application program, such as a certain newly-online or reconfigured module, is often required to be tested, and many applications of complex business are cooperatively developed by multiple teams, each team needs to perform a stress test on a specific function module in charge in a research and development stage. Based on the technical scheme of the embodiment, the specific test scene of the target application program is entered by executing the UI automatic test script, and then the specific test scene is subjected to pressure test by using the random test tool, so that the specific pressure test on the specific scene can be realized, and the defect that the specific test cannot be realized by only using the random pressure test tool is overcome; meanwhile, the defect that the test of the event state combination cannot be guaranteed when the test is performed based on the traversal of the page elements in the test method based on the UI automation can be overcome, wherein the main reason is that the event state combination is an event which cannot be traversed and triggered according to a sequential traversal mode.
S130, in the pressure testing process, monitoring whether the current testing scene of the target application program is in a specific testing scene.
In the pressure testing process of the specific scene, in order to ensure that the testing program is always executed in the specific testing scene until the testing is finished, the monitoring program can be used for monitoring whether the current testing scene of the target application program is in the specific testing scene in real time. The scene monitoring program and the random testing tool can adopt an asynchronous execution mode in the pressure testing process. After entering a specific test scenario, the random test tool may be executed at the same time as the scenario monitoring, or the scenario monitoring may be started after the random test tool starts executing. The implementation of the scene monitoring can be realized by monitoring through the page dimension of the application program, and taking an Android system as an example, the monitoring can be performed through Activity or a Fragment level in Fragment Activity.
And S140, if the current test scene is not monitored to be in the specific test scene, executing the UI automation test script, and re-entering the specific test scene for pressure test.
And if the current test scene is monitored not to be in the specific test scene in the scene monitoring process, for example, the test tool program jumps and is switched to other test scenes, executing the UI automatic test script so as to re-enter the specific test scene, simultaneously terminating the execution process of the random test tool, and re-utilizing the random test tool to perform pressure test after re-entering the specific test scene. It should be noted that, when the execution process of the random test tool is terminated, the stress test of the application program is not terminated, and the stress test can still be continuously executed as long as the specific test scenario is returned.
Illustratively, a pressure test is performed on a navigation module in a Baidu map application program, if it is monitored in the test process that a test tool program jumps to a location search module, a UI automation test script is executed, a test scene is reset, meanwhile, the current pressure test on the location search module is ended, and after the current pressure test on the navigation module is reentered, the pressure test on the navigation module is continuously executed.
If the current test scene is always in the specific test scene in the scene monitoring process, the random test tool can be continuously executed until the pressure test is finished, and meanwhile, the scene monitoring is finished. Based on real-time cycle monitoring and scene resetting, the pressure test aiming at a specific test scene can be ensured to be successfully completed.
According to the technical scheme, a specific test scene of a target application program is entered by executing a UI automatic test script, and then a random test tool is utilized to perform pressure test on the specific test scene; and in the pressure testing process, monitoring the current testing scene in real time, and if the current testing scene is monitored not to be in the specific testing scene, re-entering the specific testing scene by executing the UI automatic testing script so as to ensure that the specific testing scene is not changed in the testing process. The technical scheme of the embodiment organically integrates random testing, UI automatic testing and scene monitoring to form a complete technical scheme, solves the problem that the specific service scene of the application program cannot be subjected to targeted pressure testing in the prior art, and improves the pertinence of the pressure testing.
Example two
Fig. 2 is a flowchart of a pressure testing method for an application program according to a second embodiment of the present invention, which is further optimized based on the second embodiment. As shown in fig. 2, the method specifically includes:
and S210, executing the UI automation test script to enter a specific test scene of the target application program.
And S220, performing pressure test on the specific test scene by using a random test tool.
And S230, acquiring target activities positioned at the top of the stack in the task stack of the activity component in real time from the running environment of the target application program, wherein the target activities comprise host activities or inheritance of the host activities.
After the application program runs, the system generates a task stack which can be used for recording the activity state, so that whether the current test scenario is in a specific test scenario can be judged by acquiring the information of the stack. The activities recorded in the task stack in the current running environment include host activities or inheritance of host activities, and the activities at the top of the stack can be host activities or inheritance of host activities according to the recorded sequence of the activities.
For example, for the Android system, after the application program runs, a task stack is generated, in which Activity states of the Activity or fragmentation Activity of the application program running, for example, page information displayed by the application program, and the like, are recorded, and the Activity or fragmentation Activity is sequentially arranged in the stack according to the opening order of the Activity or fragmentation Activity. The common Activity can only contain one page, and the fragmentactionity is one kind of Activity and supports management of multiple pages in the Activity. In addition, the Fragment state in the Fragment activity active state may be recorded in the rollback stack.
And S240, judging whether the current test scene is in a specific test scene according to the target activity.
The target activity is an activity representing the current running environment of the application program, the target activity can be compared with the due activity in the specific test scene, and if the target activity acquired in real time is consistent with the due activity in the specific test scene, the current test scene is represented in the specific test scene.
And S250, if the current test scene is not monitored to be in the specific test scene, executing the UI automation test script, and re-entering the specific test scene for pressure test.
On the basis of the above technical solution, optionally, the method further includes: and recording the accumulated time of the pressure test, and stopping the current pressure test until the accumulated time meets the preset scene test time.
The preset scene test time may be preset by a tester, for example, the preset scene test time may be set when a test instruction of the package is written before the test. The specific time length can be set by a tester according to the pressure test requirement so as to ensure the effectiveness of the pressure test.
Optionally, the method further includes:
collecting an operation log of a target application program in a pressure test process;
and analyzing the operation log according to a preset rule and generating a test report.
The log collection and analysis functions are also realized in the pressure test process, and a test report is generated by analyzing the test log. For example, in the monitoring process of the test scenario, the running log of the target application program is recorded at the same time, and after the stress test is completed, the running log is analyzed to generate a test report. The analysis rule of the running log includes analysis by using an existing log analysis tool or analysis by using a database, and the like.
According to the technical scheme, a specific test scene of a target application program is entered by executing a UI automatic test script, and then a random test tool is utilized to perform pressure test on the specific test scene; in the pressure testing process, whether the current testing scene is in a specific testing scene is judged according to the target activity located at the stack top in the real-time acquired running environment, so that the pressure testing in the specific testing scene is ensured to be completed smoothly, the problem that the specific service scene of the application program cannot be subjected to targeted pressure testing in the prior art is solved, and the pertinence of the pressure testing is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a pressure testing apparatus for an application according to a third embodiment of the present invention, which is applicable to a pressure test of an application. The pressure testing device for the application program provided by the embodiment of the invention can execute the pressure testing method for the application program provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 3, the stress test apparatus includes a UI script execution module 310, a stress test module 320, a scene monitoring module 330, and a scene reentry module 340, wherein:
a UI script execution module 310 for executing a UI automation test script to enter a specific test scenario of a target application;
a pressure test module 320, configured to perform a pressure test on a specific test scenario by using a random test tool;
the scene monitoring module 330 is configured to monitor whether a current test scene of the target application is in a specific test scene during the pressure test;
and the scene reentry module 340 is configured to execute the UI automation test script if it is monitored that the current test scene is not in the specific test scene, and reenter the specific test scene for performing the pressure test.
Optionally, the scene monitoring module 330 includes a task activity obtaining unit and a scene determining unit, where:
the task activity acquisition unit is used for acquiring target activities positioned at the top of a stack in a task stack of an activity component in real time from the running environment of a target application program, wherein the target activities comprise host activities or inheritance of the host activities;
and the scene judging unit is used for judging whether the current test scene is in the specific test scene according to the target activity.
Optionally, the pressure testing apparatus further includes:
and the time recording module is used for recording the accumulated time of the pressure test, and stopping the current pressure test until the accumulated time meets the preset scene test time.
Optionally, the pressure testing apparatus further includes:
the log acquisition module is used for acquiring the running log of the target application program in the pressure test process;
and the report generation module is used for analyzing the operation log according to a preset rule and generating a test report.
According to the technical scheme, a specific test scene of a target application program is entered by executing a UI automatic test script, and then a random test tool is utilized to perform pressure test on the specific test scene; and in the pressure testing process, monitoring the current testing scene in real time, and if the current testing scene is monitored not to be in the specific testing scene, re-entering the specific testing scene by executing the UI automatic testing script. The problem that the specific service scene of the application program cannot be subjected to the targeted pressure test in the prior art is solved, and the pertinence of the pressure test is improved.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary server 412 suitable for use in implementing embodiments of the present invention. The server 412 shown in fig. 4 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 4, server 412 is in the form of a general purpose server. Components of server 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Server 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by server 412 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 428 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 430 and/or cache Memory 432. The server 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk Read-Only Memory (CD-ROM), Digital Video disk Read-Only Memory (DVD-ROM) or other optical media may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Storage 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The server 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing terminal, display 424, etc.), with one or more terminals that enable a user to interact with the server 412, and/or with any terminals (e.g., network card, modem, etc.) that enable the server 412 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 422. Further, server 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network such as the Internet) via Network adapter 420. As shown in FIG. 4, network adapter 420 communicates with the other modules of server 412 via bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 412, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by running programs stored in the storage device 428, for example, implementing a stress test method for an application program provided by an embodiment of the present invention, the method including:
executing the UI automation test script to enter a specific test scene of the target application program;
carrying out pressure test on a specific test scene by using a random test tool;
monitoring whether a current test scene of a target application program is in a specific test scene or not in the pressure test process;
and if the current test scene is monitored not to be in the specific test scene, executing the UI automation test script, and re-entering the specific test scene for pressure test.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for testing a stress of an application program provided in the fifth embodiment of the present invention, where the method includes:
executing the UI automation test script to enter a specific test scene of the target application program;
carrying out pressure test on a specific test scene by using a random test tool;
monitoring whether a current test scene of a target application program is in a specific test scene or not in the pressure test process;
and if the current test scene is monitored not to be in the specific test scene, executing the UI automation test script, and re-entering the specific test scene for pressure test.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for stress testing of an application, comprising:
executing the UI automation test script to enter a specific test scene of the target application program;
performing pressure test on the specific test scene by using a random test tool;
monitoring whether the current test scene of the target application program is in the specific test scene or not in the pressure test process;
and if the current test scene is monitored not to be in the specific test scene, executing the UI automation test script, and re-entering the specific test scene for pressure test.
2. The method of claim 1, wherein monitoring whether a current test scenario of a target application is in the particular test scenario comprises:
acquiring target activities positioned at the top of a stack in a task stack of an activity component in real time from a running environment of a target application program, wherein the target activities comprise host activities or inheritance of the host activities;
and judging whether the current test scene is in the specific test scene or not according to the target activity.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and recording the accumulated time of the pressure test, and stopping the current pressure test until the accumulated time meets the preset scene test time.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
collecting an operation log of a target application program in the pressure test process;
and analyzing the running log according to a preset rule and generating a test report.
5. An application stress testing apparatus, comprising:
the UI script execution module is used for executing the UI automation test script so as to enter a specific test scene of the target application program;
the pressure testing module is used for carrying out pressure testing on the specific testing scene by utilizing a random testing tool;
the scene monitoring module is used for monitoring whether the current test scene of the target application program is in the specific test scene or not in the pressure test process;
and the scene reentry module is used for executing the UI automation test script and reentering the specific test scene to perform pressure test if the current test scene is monitored not to be in the specific test scene.
6. The apparatus of claim 5, wherein the scene monitoring module comprises:
the task activity acquisition unit is used for acquiring target activities positioned at the top of a stack in a task stack of an activity component in real time from the running environment of a target application program, wherein the target activities comprise host activities or inheritance of the host activities;
and the scene judging unit is used for judging whether the current test scene is in the specific test scene according to the target activity.
7. The apparatus of claim 5 or 6, further comprising:
and the time recording module is used for recording the accumulated time of the pressure test, and stopping the current pressure test until the accumulated time meets the preset scene test time.
8. The apparatus of claim 5 or 6, further comprising:
the log acquisition module is used for acquiring the running log of the target application program in the pressure test process;
and the report generation module is used for analyzing the running log according to a preset rule and generating a test report.
9. A server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a stress testing method for an application program as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for stress testing of an application program as claimed in any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810610095.7A CN110597704B (en) | 2018-06-13 | 2018-06-13 | Pressure test method, device, server and medium for application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810610095.7A CN110597704B (en) | 2018-06-13 | 2018-06-13 | Pressure test method, device, server and medium for application program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110597704A true CN110597704A (en) | 2019-12-20 |
CN110597704B CN110597704B (en) | 2023-09-26 |
Family
ID=68849563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810610095.7A Active CN110597704B (en) | 2018-06-13 | 2018-06-13 | Pressure test method, device, server and medium for application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110597704B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112100085A (en) * | 2020-11-17 | 2020-12-18 | 深圳市房多多网络科技有限公司 | Android application program stability testing method, device and equipment |
CN112148616A (en) * | 2020-09-30 | 2020-12-29 | 中国民航信息网络股份有限公司 | Performance test management platform |
CN112256552A (en) * | 2020-12-22 | 2021-01-22 | 智道网联科技(北京)有限公司 | Pressure testing method and device for map engine |
CN112732569A (en) * | 2020-12-24 | 2021-04-30 | 广州方硅信息技术有限公司 | Program resource occupation measurement and control and corresponding device, equipment and medium |
CN113448867A (en) * | 2021-07-16 | 2021-09-28 | 谢靖 | Software pressure testing method and device |
CN113986768A (en) * | 2021-11-30 | 2022-01-28 | 中国平安人寿保险股份有限公司 | Application stability testing method, device, equipment and medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009075704A (en) * | 2007-09-19 | 2009-04-09 | Nec Electronics Corp | Test method, test device, and program |
CN102479146A (en) * | 2010-11-30 | 2012-05-30 | 金蝶软件(中国)有限公司 | Scene test monitoring method and device and scene test monitoring system |
CN104346279A (en) * | 2014-10-27 | 2015-02-11 | 百度在线网络技术(北京)有限公司 | Method and device for software testing |
CN104965791A (en) * | 2015-07-20 | 2015-10-07 | 上海斐讯数据通信技术有限公司 | Method for testing Android application |
US9201773B1 (en) * | 2011-05-08 | 2015-12-01 | Panaya Ltd. | Generating test scenario templates based on similarity of setup files |
CN105373474A (en) * | 2015-11-10 | 2016-03-02 | 中国建设银行股份有限公司 | Business system-oriented test method and device |
CN106055451A (en) * | 2016-05-23 | 2016-10-26 | 努比亚技术有限公司 | Information processing method and electronic device |
CN106126418A (en) * | 2016-06-20 | 2016-11-16 | 福建省农村信用社联合社 | A kind of banking terminal automatic test device, system and the method for mechanically-based arm |
CN106649024A (en) * | 2016-09-22 | 2017-05-10 | 微梦创科网络科技(中国)有限公司 | Method and device for real-time monitoring of application performance |
CN106708818A (en) * | 2015-07-17 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Pressure testing method and system |
WO2018014580A1 (en) * | 2016-07-20 | 2018-01-25 | 平安科技(深圳)有限公司 | Data interface test method and apparatus, and server and storage medium |
CN107861862A (en) * | 2017-06-27 | 2018-03-30 | 陆金所(上海)科技服务有限公司 | UI automated testing methods, device and computer-readable recording medium |
US20180121340A1 (en) * | 2015-05-12 | 2018-05-03 | Mineus S.R.O. | Method and System for Automating the Process of Testing of Software Applications |
-
2018
- 2018-06-13 CN CN201810610095.7A patent/CN110597704B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009075704A (en) * | 2007-09-19 | 2009-04-09 | Nec Electronics Corp | Test method, test device, and program |
CN102479146A (en) * | 2010-11-30 | 2012-05-30 | 金蝶软件(中国)有限公司 | Scene test monitoring method and device and scene test monitoring system |
US9201773B1 (en) * | 2011-05-08 | 2015-12-01 | Panaya Ltd. | Generating test scenario templates based on similarity of setup files |
CN104346279A (en) * | 2014-10-27 | 2015-02-11 | 百度在线网络技术(北京)有限公司 | Method and device for software testing |
US20180121340A1 (en) * | 2015-05-12 | 2018-05-03 | Mineus S.R.O. | Method and System for Automating the Process of Testing of Software Applications |
CN106708818A (en) * | 2015-07-17 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Pressure testing method and system |
CN104965791A (en) * | 2015-07-20 | 2015-10-07 | 上海斐讯数据通信技术有限公司 | Method for testing Android application |
CN105373474A (en) * | 2015-11-10 | 2016-03-02 | 中国建设银行股份有限公司 | Business system-oriented test method and device |
CN106055451A (en) * | 2016-05-23 | 2016-10-26 | 努比亚技术有限公司 | Information processing method and electronic device |
CN106126418A (en) * | 2016-06-20 | 2016-11-16 | 福建省农村信用社联合社 | A kind of banking terminal automatic test device, system and the method for mechanically-based arm |
WO2018014580A1 (en) * | 2016-07-20 | 2018-01-25 | 平安科技(深圳)有限公司 | Data interface test method and apparatus, and server and storage medium |
CN106649024A (en) * | 2016-09-22 | 2017-05-10 | 微梦创科网络科技(中国)有限公司 | Method and device for real-time monitoring of application performance |
CN107861862A (en) * | 2017-06-27 | 2018-03-30 | 陆金所(上海)科技服务有限公司 | UI automated testing methods, device and computer-readable recording medium |
Non-Patent Citations (7)
Title |
---|
CHEN LIANG等: "Customer Scenario Focused End-to-End Testing", 《2012 IEEE 23RD INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS》, pages 80 - 81 * |
云智慧: "云智慧压测实战分享之JMeter场景设置与监控", pages 1 - 8, Retrieved from the Internet <URL:《https://zhuanlan.zhihu.com/p/24638248》> * |
吴军等译: "《OS/22.0技术库编程指南 第1卷 控制程序编程接口》", 清华大学出版社, pages: 89 - 90 * |
张国鸣: "基于UML的自动工单系统测试用例研究", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 06, pages 138 - 252 * |
李小军主编: "《智能手机APP软件开发:Android》", 31 January 2015, pages: 62 - 63 * |
陈实: "云计算中基于多租户的策略驱动型软件定义网络应用研究", 《中国优秀硕士学位论文全文数据库 (工程科技Ⅰ辑)》, no. 03, pages 138 - 4377 * |
黄福光: "压力测试SCADA系统", 《中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑)》, no. 04, pages 030 - 25 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148616A (en) * | 2020-09-30 | 2020-12-29 | 中国民航信息网络股份有限公司 | Performance test management platform |
CN112148616B (en) * | 2020-09-30 | 2024-04-26 | 中国民航信息网络股份有限公司 | Performance test management platform |
CN112100085A (en) * | 2020-11-17 | 2020-12-18 | 深圳市房多多网络科技有限公司 | Android application program stability testing method, device and equipment |
CN112100085B (en) * | 2020-11-17 | 2021-03-16 | 深圳市房多多网络科技有限公司 | Android application stability testing method, apparatus and device |
CN112256552A (en) * | 2020-12-22 | 2021-01-22 | 智道网联科技(北京)有限公司 | Pressure testing method and device for map engine |
CN112732569A (en) * | 2020-12-24 | 2021-04-30 | 广州方硅信息技术有限公司 | Program resource occupation measurement and control and corresponding device, equipment and medium |
CN113448867A (en) * | 2021-07-16 | 2021-09-28 | 谢靖 | Software pressure testing method and device |
CN113986768A (en) * | 2021-11-30 | 2022-01-28 | 中国平安人寿保险股份有限公司 | Application stability testing method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN110597704B (en) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110597704B (en) | Pressure test method, device, server and medium for application program | |
CN110457277B (en) | Service processing performance analysis method, device, equipment and storage medium | |
CN107066390B (en) | A dynamic memory leak detection method and system | |
US9355003B2 (en) | Capturing trace information using annotated trace output | |
CN112035354B (en) | Positioning method, device and equipment of risk codes and storage medium | |
US11580228B2 (en) | Coverage of web application analysis | |
CN110633190B (en) | Application program memory monitoring method, device, equipment and storage medium | |
CN110990842A (en) | Recurrence method and device of small probability event, storage medium and electronic equipment | |
CN111274130A (en) | An automated testing method, device, equipment and storage medium | |
CN110727476B (en) | Method, device, equipment and storage medium for generating authorization configuration file | |
CN111309606A (en) | Page exception handling method and device, computer equipment and storage medium | |
CN114238048B (en) | Automatic testing method and system for Web front-end performance | |
CN113590495B (en) | A method, device, equipment and storage medium for determining test coverage | |
CN111741046B (en) | Data reporting method, data acquisition method, device, equipment and medium | |
CN110806981B (en) | Application program testing method, device, equipment and storage medium | |
CN112506782A (en) | Application program testing method, device, equipment and storage medium | |
CN115022201B (en) | Data processing function test method, device, equipment and storage medium | |
CN110716859A (en) | Method for automatically pushing test cases for modified codes and related device | |
CN112861138A (en) | Software security analysis method and analysis device, electronic device, and storage medium | |
CN113760696B (en) | A program problem locating method, device, electronic device and storage medium | |
CN109062797B (en) | Method and device for generating information | |
CN115484200B (en) | Buried point testing method, buried point testing device, server, storage medium and buried point testing system | |
CN113190453B (en) | User interface testing method, device, server and medium | |
CN112988593B (en) | Code analysis method, device, computer equipment and storage medium | |
WO2024066622A1 (en) | Cloud system testing method and apparatus |
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 |