CN110069398A - Programmed pressure test control method, device, computer equipment and storage medium - Google Patents

Programmed pressure test control method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110069398A
CN110069398A CN201910198319.2A CN201910198319A CN110069398A CN 110069398 A CN110069398 A CN 110069398A CN 201910198319 A CN201910198319 A CN 201910198319A CN 110069398 A CN110069398 A CN 110069398A
Authority
CN
China
Prior art keywords
test
customized
monkey
application program
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910198319.2A
Other languages
Chinese (zh)
Inventor
褚攀峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910198319.2A priority Critical patent/CN110069398A/en
Publication of CN110069398A publication Critical patent/CN110069398A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

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)

Abstract

The embodiment of the invention discloses a kind of programmed pressure test control method, device, computer equipment and storage medium, include the following steps: to obtain preset test data list, wherein test data list includes at least one customized test object element;Test method and test configurations item in preset Monkey test tool are set according at least one customized test object element;It is tested according to the application package that test method and test configurations item treat test application program, so that Monkey test tool carries out customized test to function corresponding with customized test object element in application package.The present embodiment passes through the test method and test configurations item in setting Monkey test tool, to for the specific function or element progress emphasis test in application program, specific aim test is to find in application program with the presence or absence of performance issue, the time and the wasting of resources that random test consumes are reduced, testing efficiency can be effectively improved.

Description

Programmed pressure test control method, device, computer equipment and storage medium
Technical field
The present embodiments relate to program development techniques field, especially a kind of programmed pressure test control method, device, Computer equipment and storage medium.
Background technique
In the development process of application program, needed to test the performance and stability of application program, example It is such as random usually using interface simulation of the Monkey test tool to application program to the pressure test of the application program in terminal Clicking operation presses operation and finds the application program with the presence or absence of performance issue by highdensity for a long time.Monkey test A kind of means of Android automatic test, Monkey test itself is very simple, be exactly analog subscriber key-press input, It is abnormal to see how long equipment can go out for touch screen input and gesture input etc..
When Monkey program is when simulator or equipment are run, if user triggers such as click, touches, gesture Or some system levels event when, it will generate random pulses, it is possible to random duplicate with Monkey test The application software that method goes Road test to develop.
But existing testing tool is during the test without specific purpose, only to interface into row stochastic Operation often carries out application program can only also find that a small amount of performance in application program is asked after prolonged operation test Topic, time-consuming and testing efficiency is low.
Summary of the invention
The embodiment of the present invention provides a kind of by carrying out emphasis test for different elements to improve the journey of testing efficiency Sequence pressure test control method, device, computer equipment and storage medium.
In order to solve the above technical problems, the technical solution that the embodiment of the invention uses is: providing a kind of journey Sequence pressure test control method, includes the following steps:
Obtain preset test data list, wherein the test data list includes at least one customized test pair Picture dot element;
According at least one described customized test object element, the test side in preset Monkey test tool is set Method and test configurations item;
It is tested according to the application package that the test method and test configurations item treat test application program, with Carry out the Monkey test tool to function corresponding with the customized test object element in the application package Customized test.
Optionally, further include such as following step before the step of acquisition preset test data list:
Obtain preset list of devices, wherein the list of devices include it is corresponding with the application program to be tested to The interface message of measurement equipment;
The Devices to test is loaded according to the interface message and loads the application package of the application program to be tested.
Optionally, described that the Devices to test is loaded according to the interface message and loads the application program to be tested The step of application package, including such as following step:
Judge whether the Devices to test loads success;
When the Devices to test loads successfully, then according to the Bao Mingjia of the application package of the application program to be tested Carry the application package.
Optionally, the application package that test application program is treated according to the test method and test configurations item Tested so that the Monkey test tool in the application package with the customized test object element pair Further include such as following step after the function of answering carries out the step of customized test:
Obtain the test result after the Monkey test tool is completed the application package;
The test result is input in preset test report template and generates test result report and test log.
Optionally, it is described by the test result be input in preset test report template generate test result report with And after the step of test log, including such as following step:
It obtains the Monkey test tool according to the test log application package survey Try abnormal abnormal nodes information;
Analysis is carried out to the test result according to the abnormal nodes information and generates test exception information.
Optionally, the test exception information includes erroneous packets name, type of error, time of occurrence, frequency of occurrence and different Normal details interception.
Optionally, it is described by the test result be input in preset test report template generate test result report with And the step of test log, including such as following step:
The test result is input in preset test report template by thread foundation and generates test result report And the pending task of test log;
Detect the behaviour for being higher than the pending task in the task queue after the store tasks with the presence or absence of priority Make task;
When the task queue there are priority be higher than the pending task operation task when, preferentially execute the behaviour Make readjustment after task is finished to the operation task and executes the pending task.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of programmed pressure test control device, comprising:
First obtains module, for obtaining preset test data list, wherein the test data list includes at least One customized test object element;
First processing module, for preset Monkey to be arranged according at least one described customized test object element Test method and test configurations item in test tool;
First execution module, for according in the Monkey test tool test method and test configurations item it is right The application package of application program to be tested is tested, so that the Monkey test tool is in the application package With the customized test of the customized corresponding function progress of test object element.
Optionally, further includes:
Second obtain module, for obtaining preset list of devices, wherein the list of devices include with it is described to be tested The interface message of the corresponding Devices to test of application program;
Second execution module, for loading the Devices to test according to the interface message and loading the application to be tested The application package of program.
Optionally, further includes:
Judging submodule, for judging whether the Devices to test loads success;
First implementation sub-module is used for when the Devices to test loads successfully, then according to the application program to be tested The packet name of application package load the application package.
Optionally, further includes:
Third obtains module, for obtaining after the Monkey test tool is completed the application package Test result;
Third execution module generates test result for the test result to be input in preset test report template Report and test log.
Optionally, further includes:
Second processing module applies journey to described for obtaining the Monkey test tool according to the test log Sequence packet carries out test and the abnormal abnormal nodes information of test occurs;
4th execution module, it is different for carrying out analysis generation test to the test result according to the abnormal nodes information Normal information.
Optionally, the test exception information includes erroneous packets name, type of error, time of occurrence, frequency of occurrence and different Normal details interception.
Optionally, further includes:
The test result is input to life in preset test report template for establishing by thread by thread submodule At test result report and the pending task of test log;
First processing submodule, is higher than for detecting in the task queue after the store tasks with the presence or absence of priority The operation task of the pending task;
Second implementation sub-module, the operation for being higher than the pending task there are priority when the task queue are appointed When business, preferentially executes readjustment after the operation task is finished to the operation task and execute the pending task.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of computer equipment, including memory and processing Device is stored with computer-readable instruction in the memory, when the computer-readable instruction is executed by the processor, so that The processor executes the step of above procedure pressure test control method.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of storage Jie for being stored with computer-readable instruction Matter, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute above-mentioned journey The step of sequence pressure test control method.
The embodiment of the present invention has the beneficial effect that by obtaining preset test data list, in the test data list Including at least one customized test object element, then according to this, at least one customized test object member is usually arranged Test method and test configurations item in Monkey test tool, further according to the test method in the Monkey test tool And test configurations item is treated the application package of test application program and is tested, so that Monkey test tool answers this Customized test is carried out with function corresponding with the customized test object element in program, thus for the spy in application program Determine function or element carries out emphasis test, specific aim test is to find to reduce in application program with the presence or absence of performance issue The time and the wasting of resources that random test consumes, testing efficiency can be effectively improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the basic procedure schematic diagram of programmed pressure of embodiment of the present invention test control method;
Fig. 2 is the flow diagram that the embodiment of the present invention loads Devices to test and application package;
Fig. 3 is the flow diagram of loading application programs of embodiment of the present invention packet;
Fig. 4 is the flow diagram that the embodiment of the present invention generates test result report;
Fig. 5 is the flow diagram of analysis test exception information of the embodiment of the present invention;
Fig. 6 is the flow diagram that multithreading of the embodiment of the present invention generates test result report and test log;
Fig. 7 is programmed pressure of embodiment of the present invention test control device basic structure schematic diagram;
Fig. 8 is computer equipment of embodiment of the present invention basic structure block diagram.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
In some processes of the description in description and claims of this specification and above-mentioned attached drawing, contain according to Multiple operations that particular order occurs, but it should be clearly understood that these operations can not be what appears in this article suitable according to its Sequence is executed or is executed parallel, and serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, serial number It itself does not represent and any executes sequence.In addition, these processes may include more or fewer operations, and these operations can To execute or execute parallel in order.It should be noted that the description such as " first " herein, " second ", is for distinguishing not Same message, equipment, module etc., does not represent sequencing, does not also limit " first " and " second " and be different type.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can With combine voice, data processing, fax and/or communication ability;PDA (PersonalDigital Assistant, it is personal Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Embodiment 1
It is the basic procedure schematic diagram of the present embodiment programmed pressure test control method referring specifically to Fig. 1, Fig. 1.
As shown in Figure 1, a kind of programmed pressure test control method, includes the following steps:
S1100, preset test data list is obtained, wherein the test data list includes that at least one is customized Test object element;
(when (Application, computer applied algorithm) carries out pressure test, test is first being obtained to application APP Data list, the test data list are systemic presuppositions, include in test data list it is multiple (such as: 2,5 or 10 It is a) customized test object element, customized test object element is component and various interactive actions in application APP, Such as button, text box and the operation such as it is clicking and dragging on, the customized test object element in test data list is preparatory It is arranged or chooses, such as needs to carry out for the text entry operation in the username and password input frame in login interface Test, then using the text entry operation in the username and password input frame in the login interface as the customized test object Element.When implementing, system is provided with internal database, and test data list is stored in the internal database, when using journey When sequence APP carries out pressure test, system can obtain test data list in the internal database,
S1200, it is arranged in preset Monkey test tool according at least one described customized test object element Test method and test configurations item;
After obtaining test data list, according to the customized test object element of at least one of the test data list The test method and test configurations item of Monkey test tool are set, and Monkey test is exactly with some fantastic behaviour It goes to test tested test system as mode, with the stability of test macro.Monkey test is the one of Android automatic test Kind means, Monkey test itself is very simple, is exactly key-press input, touch screen input and the gesture input of analog subscriber Deng it is abnormal seeing how long equipment can go out, when Monkey program is when simulator or equipment are run, if user triggers Such as click, touch, the event of gesture or some system levels when, it will generate random pulses, it is possible to use The Monkey test tool application APP that duplicate method goes Road test to develop at random.When implementing, by right The test method and test configurations item of Monkey test tool are configured, so that being directed to the addition of Monkey test tool should The restrict of at least one customized test object, to carry out stressing point pressure at least one customized test object Test.
S1300, the application package that test application program is treated according to the test method and test configurations item carry out Test, so that the Monkey test tool is to corresponding with the customized test object element in the application package Function carries out customized test.
After the test method and test configurations item being provided in Monkey test tool, the Monkey can be passed through The application package that test tool treats test application program is tested, and application program to be tested is exactly application APP, It is exactly customized test object element for the element captured in the interface of application APP in test process, to capturing Element carry out customized test, and to the element not captured, i.e., customized test object element is removed in application APP Except other elements carry out the original randomness operating pressure test of Monkey test tool, be known as and stress for different members The carry out pressure test of point, energy validity test go out the performance issue in application APP, improve testing efficiency.
It is to survey with username and password input frame in the login interface of application APP and login button when implementing For trying the customized test object element in data list, when carrying out pressure test, it is whole that application APP is applied to user End, user terminal includes but is not limited to smart phone, Intelligent bracelet, plate and other electronic equipments, and tester is applying Username and password input frame in the login interface of program APP inputs user name and login password respectively, and clicks login and press Button, application APP, which jumps to, after server authentication success logins successfully interface.User input user name and login password with And during clicking login button to be logged in, such as application APP is applied in smart phone, smart phone inspection Software collected user couple, and username and password input frame inputs user name and close respectively in the login interface of application APP Code and click login button operation, system are arranged according to the customized test object element of at least one of test data list Test method and test configurations item in Monkey test tool, thus by the Monkey test tool needle to capturing Username and password input frame carry out automatically long-time mass data input operation and user click login button then from It is dynamic to carry out high-frequency clicking operation for a long time, such as in 100,000 tests, username and password input frame is inputted respectively Username and password and the testing time for clicking login button operation are 80,000 times, and are 20,000 times to other functional tests, Targetedly pressure test is carried out to the operation for inputting user name and login password and click login button, and for logging in boundary The element not captured on face, such as to the clicking operation of the sharing button in login interface, pass through Monkey test tool pair The element not captured carries out pressure test using the original randomness operation of Monkey test tool, to application APP Pressure test specific aim is stronger, and specific element carries out specific pressure test operation, improves the performance of discovery application APP The probability of problem effectively reduces the number of useless operation, shortens the testing time, improves testing efficiency.
The present embodiment includes that at least one is customized by obtaining preset test data list, in the test data list Test object element, then according to this, the survey in Monkey test tool is usually arranged at least one customized test object member Method for testing and test configurations item, further according in the Monkey test tool test method and test configurations item to be measured Examination application program application package tested so that Monkey test tool in the application program with the customized survey It tries the corresponding function of object elements and carries out customized test, so that the specific function or element that are directed in application program carry out side Stress test, specific aim test to find in application program with the presence or absence of performance issue, reduce the time that random test consumes with And the wasting of resources, testing efficiency can be effectively improved.
In one alternate embodiment, referring to Fig. 2, Fig. 2 is one embodiment of the invention load Devices to test and application The idiographic flow schematic diagram of program bag.
As shown in Fig. 2, further including such as following step before step 1100:
S1010, preset list of devices is obtained, wherein the list of devices includes and the application program pair to be tested The interface message for the Devices to test answered;
It before testing application package, needs for Devices to test to be attached with test platform, wherein test Platform is the tool for carrying out pressure test to application package, and Devices to test is exactly to be loaded with answering for application program to be tested With the terminal of program bag, by taking Devices to test is mobile phone as an example, mobile phone is connect with test platform, and test platform needs to know in mobile phone Which application program be application program to be tested, include by obtaining list of devices, in the list of devices be loaded with it is to be measured The interface message for trying the Devices to test of application program, when implementing, interface message is that equipment column are pre-written by operator It in table, such as needs to test the XX application program in the first mobile phone, then applies the interface message of first mobile phone and the XX The mark information of program is stored into list of devices, wherein XX indicates the name information of application program, is according to the mark information It is associated with XX application program.
S1020, the Devices to test is loaded according to the interface message and loads the application of the application program to be tested Program bag.
Devices to test is loaded according to the interface message, and loads the application program of application program to be tested in Devices to test Packet, by present procedure pressure test control device be applied to test platform for, test platform by obtain list of devices with Obtain Devices to test interface message, then connect according to the interface message with Devices to test in turn load Devices to test in The application package of test application program, the automatic pressure test realized to application program, improves testing efficiency.
In another alternative embodiment, referring to Fig. 3, Fig. 3 is one embodiment of the invention loading application programs packet Basic procedure schematic diagram.
As shown in figure 3, step S1020 includes such as following step:
S1021, judge whether the Devices to test loads success;
During loading Devices to test according to interface message, can successfully it be sentenced so that whether device under test loads It is disconnected, when implementing, can monitor whether load Devices to test by the monitored data interface of serial ports, such as pass through The monitoring event of eventtype () item serial ports.
S1022, when the Devices to test loads successfully, then according to the application package of the application program to be tested Packet name loads the application package.
It, then can be according to the Bao Mingjia of the application package of application program to be tested when determining that Devices to test loads successfully Application package is carried, and then customized test is carried out to application package, improves testing efficiency.
In one alternate embodiment, referring to Fig. 4, Fig. 4 is that one embodiment of the invention generates test result report Basic procedure schematic diagram.
As shown in figure 4, further including such as following step after step 1300:
S1400, the test result after the Monkey test tool is completed the application package is obtained;
After carrying out customized test to application package by Monkey test tool, test result is obtained, is being implemented When, the life in test result, such as Monkey test tool can be obtained by the config option in Monkey test tool Enable parameter-kill-process-after-error ,-ignore-timeouts ,-ignore-security-exceptions And-v, wherein the effect of-kill-process-after-error is, when Monkey test tool due to a mistake and When stopping, the application program of error will keep operating status, when being provided with this option, it will notice system stops occurring The process of mistake.The effect of-ignore-timeouts is, when any time-out error (such as " Application occurs for application program Not Responding " dialog box) when, Monkey test tool will be out of service, if this option is arranged, Monkey test Tool will continue to send event to system, complete until counting.The effect of-ignore-security-exceptions is, when When licensing error (such as the Activity of one certain license of needs of starting) occurs for application program, Monkey test tool will stop It only runs, if being provided with this option, Monkey test tool will continue to send event to system, complete until counting.And Each-v of the order line of Monkey test tool will increase the rank of feedback information, such as 3-v represent most detailed day Will rank, such as :-v-v-v 100 (number 100: indicates test event number).
S1500, the test result is input to generation test result report and survey in preset test report template Try log.
Obtain test result after, system test result is input in test report template with generate test result report and Test log, when implementing, test report template is systemic presupposition for generating test result report, is surveyed when system obtains When test result, test result report and test log can be generated according to the test report template, facilitate user to check and tested Journey information.
In one alternate embodiment, referring to Fig. 5, Fig. 5 is one embodiment of the invention analysis test exception information Basic procedure schematic diagram.
As shown in figure 5, further including such as following step after step S1500:
S1600, the application package is tested according to the test log acquisition Monkey test tool There is the abnormal abnormal nodes information of test;
After obtaining test result report and test log, it is different that appearance test in test process is obtained according to the test log Normal abnormal nodes information, such as Monkey test tool test process, application are saved in MonkeyScreenLog.Log Fault false information.
S1700, analysis generation test exception information is carried out to the test result according to the abnormal nodes information.
Then analysis is carried out to test result according to abnormal nodes information and generates test exception information, the test is believed extremely Breath includes erroneous packets name, type of error, time of occurrence, frequency of occurrence and the interception of abnormal details, facilitates the later period according to being somebody's turn to do Application program to be tested is analyzed and improved to test exception information, and when implementing, by taking Android platform as an example, Android is flat There may be following four Crash for platform application program: including in App layers Force Close Crash and ANR Crash, Native layers of Tombstone Crash (Native Crash) and Kernel layers of Kernel Panic specifically pay attention to Log file explanation specifically includes:
Anr catalogue: the log derived from mobile phone/data/anr saves relevant information when anr crash occurs;
Dontpanic catalogue: the log derived from mobile phone/data/dontpanic/, when saving generation Kernel Panic Relevant information;
Tombstone catalogue: the log derived from mobile phone/data/tombstones/ saves and Tombstone occurs Error message when Crash;
Dropbox catalogue: the log derived from mobile phone/data/tombstones/, by the portion of dropbox service interception Divide tombstones error message;
Bugreports.log: it is exported from mobile phone data/data/com.android.shell/files/bugreports Log, save pertinent system information when being abnormal, can also be extracted by adb shell bugreport order;
MonkeyScreenLog.Log: saving Monkey test process, application layer error message, and Native occurs When Crash, record is also had in this file.
Hair is navigated in MonkeyScreen.Log journal file search key " Fatal ", " Crash " or " ANR " The detailed stack information of raw Crash, the time of generation problem, process pid etc. are tentatively judged by context.
In one alternate embodiment, referring to Fig. 6, Fig. 6 is that one embodiment of the invention multithreading generates test result The basic procedure schematic diagram of report and test log.
As shown in fig. 6, step S1500 includes such as following step:
S1510, it establishes to be input to generate in preset test report template by the test result by thread and tests knot The pending task of fruit report and test log;
Thread is a single sequential control process in application program.Have in process one it is relatively independent, schedulable Execution unit, be system independently dispatch and assign CPU basic unit instruction operation when program thread.Single Running multiple threads completes different work, referred to as multithreading simultaneously in program.The test result is input to by establishing The pending task of test result report and test log is generated in preset test report template, so that test knot will be generated The operation of fruit and test log and other operation exception multithreadings of other application program carry out simultaneously.
It is higher than described pending with the presence or absence of priority in task queue after S1520, the detection store tasks The operation task of business;
S1530, when the task queue is there are when the operation task that priority is higher than the pending task, it is preferential to execute Readjustment executes the pending task after the operation task is finished to the operation task.
Preferential execution priority is higher than other operation tasks of the pending task, and system operation smoothness can be made not block , such as the operation that customized test is carried out to application package and shows test result is handled in same time system, it is Uniting, it is pending to execute this again after first carrying out the task to the operation that application package carries out customized test and shows test result Task reduces the time that user waits, and improves user experience.
In order to solve the above technical problems, the embodiment of the present invention also provides a kind of programmed pressure test control device.
It is the present embodiment programmed pressure test control device basic structure schematic diagram referring specifically to Fig. 7, Fig. 7.
As shown in fig. 7, a kind of programmed pressure test control device, comprising: first obtains module 2100, first processing module 2200 and first execution module 2300, wherein the first acquisition module 2100 is for obtaining preset test data list, wherein The test data list includes at least one customized test object element;First processing module 2200 is used for according to extremely Test method and test configurations item in preset Monkey test tool is arranged in a few customized test object element; First execution module 2300 is used to treat the application program of test application program according to the test method and test configurations item Packet tested so that the Monkey test tool in the application package with the customized test object element Corresponding function carries out customized test.
The present embodiment includes that at least one is customized by obtaining preset test data list, in the test data list Test object element, then according to this, the survey in Monkey test tool is usually arranged at least one customized test object member Method for testing and test configurations item, further according in the Monkey test tool test method and test configurations item to be measured Examination application program application package tested so that Monkey test tool in the application program with the customized survey It tries the corresponding function of object elements and carries out customized test, so that the specific function or element that are directed in application program carry out side Stress test, specific aim test to find in application program with the presence or absence of performance issue, reduce the time that random test consumes with And the wasting of resources, testing efficiency can be effectively improved.
In some embodiments, programmed pressure test control device further include: second, which obtains module and second, executes mould Block, wherein the second acquisition module is for obtaining preset list of devices, wherein the list of devices include with it is described to be tested The interface message of the corresponding Devices to test of application program;Second execution module is used to be loaded according to the interface message described to be measured Equipment and the application package for loading the application program to be tested.
In some embodiments, programmed pressure test control device further include: judging submodule and first executes submodule Block, wherein judging submodule is for judging whether the Devices to test loads success;First implementation sub-module be used for when it is described to When measurement equipment is loaded successfully, then the application program is loaded according to the packet name of the application package of the application program to be tested Packet.
In some embodiments, programmed pressure test control device further include: third obtains module and third executes mould Block, wherein third obtains module for obtaining the survey after the Monkey test tool is completed the application package Test result;Third execution module is used to for the test result to be input to generation test result report in preset test report template Announcement and test log.
In some embodiments, programmed pressure test control device further include: Second processing module and the 4th executes mould Block, wherein Second processing module is used to obtain the Monkey test tool to the application program according to the test log Packet carries out test and the abnormal abnormal nodes information of test occurs;4th execution module is used for according to the abnormal nodes information to institute It states test result and carries out analysis generation test exception information.
In some embodiments, the test exception information includes erroneous packets name, type of error, time of occurrence, appearance Number and abnormal details interception.
In some embodiments, programmed pressure test control device further include: thread submodule, the first processing submodule With the second implementation sub-module, wherein thread submodule, which is used to establish by thread, is input to preset survey for the test result Try the pending task that test result report and test log are generated in report template;First processing submodule is for detecting institute State the operation task for being higher than the pending task in the task queue after store tasks with the presence or absence of priority;Second executes Submodule is used for when the task queue is there are when the operation task that priority is higher than the pending task, it is preferential execute described in Readjustment executes the pending task after operation task is finished to the operation task.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
In order to solve the above technical problems, the embodiment of the present invention also provides computer equipment.It is this referring specifically to Fig. 8, Fig. 8 Embodiment computer equipment basic structure block diagram.
As shown in figure 8, the schematic diagram of internal structure of computer equipment.As shown in figure 8, the computer equipment includes passing through to be Processor, non-volatile memory medium, memory and the network interface of bus of uniting connection.Wherein, the computer equipment is non-easy The property lost storage medium is stored with operating system, database and computer-readable instruction, can be stored with control information sequence in database Column, when which is executed by processor, may make processor to realize a kind of programmed pressure test control method.It should The processor of computer equipment supports the operation of entire computer equipment for providing calculating and control ability.The computer is set It can be stored with computer-readable instruction in standby memory, when which is executed by processor, may make processing Device executes a kind of programmed pressure test control method.The network interface of the computer equipment is used for and terminal connection communication.Ability Field technique personnel are appreciated that structure shown in figure, only the block diagram of part-structure relevant to application scheme, not The restriction for the computer equipment being applied thereon to application scheme is constituted, specific computer equipment may include than in figure Shown more or fewer components perhaps combine certain components or with different component layouts.
Processor obtains module 2100, first processing module 2200 and for executing in Fig. 7 first in present embodiment One execution module 2300, program code and Various types of data needed for memory is stored with the above-mentioned module of execution.Network interface is used for To the data transmission between user terminal or server.Memory in present embodiment is stored with programmed pressure testing and control dress Program code and data needed for executing all submodules are set, server is capable of the program code of invoking server and data are held The function of all submodules of row.
Computer includes at least one customized survey in the test data list by obtaining preset test data list Object elements are tried, then the test in Monkey test tool is usually arranged at least one customized test object member according to this Method and test configurations item, further according in the Monkey test tool test method and test configurations item to be tested The application package of application program is tested so that Monkey test tool in the application program with the customized test The corresponding function of object elements carries out customized test, so that the specific function or element that are directed in application program are stressed Point test, specific aim test with find in application program to reduce with the presence or absence of performance issue time that random test consumes and The wasting of resources can effectively improve testing efficiency.
The present invention also provides a kind of storage mediums for being stored with computer-readable instruction, and the computer-readable instruction is by one When a or multiple processors execute, so that one or more processors execute any of the above-described embodiment described program pressure test control The step of method processed.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can be magnetic The non-volatile memory mediums such as dish, CD, read-only memory (Read-Only Memory, ROM) or random storage memory Body (Random Access Memory, RAM) etc..
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of programmed pressure test control method, which is characterized in that include the following steps:
Obtain preset test data list, wherein the test data list includes at least one customized test object member Element;
According at least one described customized test object element be arranged the test method in preset Monkey test tool with And test configurations item;
It is tested according to the application package that the test method and test configurations item treat test application program, so that institute Monkey test tool is stated to make function corresponding with the customized test object element in the application package by oneself Justice test.
2. programmed pressure test control method according to claim 1, which is characterized in that described to obtain preset test number Further include such as following step before the step of list:
Obtain preset list of devices, wherein the list of devices includes to be measured sets corresponding with the application program to be tested Standby interface message;
The Devices to test is loaded according to the interface message and loads the application package of the application program to be tested.
3. programmed pressure test control method according to claim 2, which is characterized in that described according to the interface message The step of loading the Devices to test and loading the application package of the application program to be tested, including such as following step:
Judge whether the Devices to test loads success;
When the Devices to test loads successfully, then institute is loaded according to the packet name of the application package of the application program to be tested State application package.
4. programmed pressure test control method according to claim 1, which is characterized in that described according to the test method And test configurations item is treated the application package of test application program and is tested, so that the Monkey test tool pair After the step of function corresponding with the customized test object element carries out customized test in the application package, also Including such as following step:
Obtain the test result after the Monkey test tool is completed the application package;
The test result is input in preset test report template and generates test result report and test log.
5. programmed pressure test control method according to claim 4, which is characterized in that described that the test result is defeated After entering into preset test report template the step of generating test result report and test log, including such as following steps It is rapid:
It is different that test appearance test is carried out to the application package according to the test log acquisition Monkey test tool Normal abnormal nodes information;
Analysis is carried out to the test result according to the abnormal nodes information and generates test exception information.
6. programmed pressure test control method according to claim 5, which is characterized in that the test exception information includes Erroneous packets name, type of error, time of occurrence, frequency of occurrence and abnormal details interception.
7. programmed pressure test control method according to claim 4, which is characterized in that described that the test result is defeated Enter into preset test report template the step of generating test result report and test log, including such as following step:
By thread establish by the test result be input in preset test report template generate test result report and The pending task of test log;
The operation for being higher than the pending task with the presence or absence of priority in the task queue after the store tasks is detected to appoint Business;
When the task queue there are priority be higher than the pending task operation task when, preferentially execute it is described operation appoint Readjustment executes the pending task after business is finished to the operation task.
8. a kind of programmed pressure test control device characterized by comprising
First obtains module, for obtaining preset test data list, wherein the test data list includes at least one Customized test object element;
First processing module, for preset Monkey test to be arranged according at least one described customized test object element Test method and test configurations item in tool;
First execution module, for treating the application program of test application program according to the test method and test configurations item Packet tested so that the Monkey test tool in the application package with the customized test object element Corresponding function carries out customized test.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right It is required that the step of described program pressure test control method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute any one of claims 1 to 7 claim described program pressure such as and survey The step of trying control method.
CN201910198319.2A 2019-03-15 2019-03-15 Programmed pressure test control method, device, computer equipment and storage medium Pending CN110069398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910198319.2A CN110069398A (en) 2019-03-15 2019-03-15 Programmed pressure test control method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910198319.2A CN110069398A (en) 2019-03-15 2019-03-15 Programmed pressure test control method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110069398A true CN110069398A (en) 2019-07-30

Family

ID=67366222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910198319.2A Pending CN110069398A (en) 2019-03-15 2019-03-15 Programmed pressure test control method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110069398A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309622A (en) * 2020-02-27 2020-06-19 中国平安人寿保险股份有限公司 Application program testing method and device, terminal equipment and storage medium
CN111309604A (en) * 2020-02-07 2020-06-19 Tcl移动通信科技(宁波)有限公司 Offline automatic testing method and system, storage medium and mobile terminal
CN112306849A (en) * 2019-07-31 2021-02-02 深圳Tcl数字技术有限公司 Application program testing method and system, intelligent terminal and storage medium
CN113821431A (en) * 2020-12-31 2021-12-21 京东科技控股股份有限公司 Method and device for acquiring test result, electronic equipment and storage medium
CN114265729A (en) * 2021-11-09 2022-04-01 北京云宽志业网络技术有限公司 Pressure testing method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838663A (en) * 2012-11-20 2014-06-04 腾讯科技(深圳)有限公司 Application testing method and device
CN105760301A (en) * 2016-02-24 2016-07-13 惠州Tcl移动通信有限公司 Automatic testing method and system based on Monkey command
CN106383780A (en) * 2016-09-05 2017-02-08 努比亚技术有限公司 Monkey test method and device
CN108647148A (en) * 2018-05-15 2018-10-12 深圳市同维通信技术有限公司 Test method, device, equipment and the storage medium of mobile terminal application program
CN109240928A (en) * 2018-09-13 2019-01-18 广东小天才科技有限公司 A kind of test method, device, equipment and storage medium
CN109359027A (en) * 2018-08-15 2019-02-19 中国平安人寿保险股份有限公司 Monkey test method, device, electronic equipment and computer readable storage medium
CN109388560A (en) * 2018-09-18 2019-02-26 广州小鹏汽车科技有限公司 Stability test method and apparatus are applied based on Monkey

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838663A (en) * 2012-11-20 2014-06-04 腾讯科技(深圳)有限公司 Application testing method and device
CN105760301A (en) * 2016-02-24 2016-07-13 惠州Tcl移动通信有限公司 Automatic testing method and system based on Monkey command
CN106383780A (en) * 2016-09-05 2017-02-08 努比亚技术有限公司 Monkey test method and device
CN108647148A (en) * 2018-05-15 2018-10-12 深圳市同维通信技术有限公司 Test method, device, equipment and the storage medium of mobile terminal application program
CN109359027A (en) * 2018-08-15 2019-02-19 中国平安人寿保险股份有限公司 Monkey test method, device, electronic equipment and computer readable storage medium
CN109240928A (en) * 2018-09-13 2019-01-18 广东小天才科技有限公司 A kind of test method, device, equipment and storage medium
CN109388560A (en) * 2018-09-18 2019-02-26 广州小鹏汽车科技有限公司 Stability test method and apparatus are applied based on Monkey

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306849A (en) * 2019-07-31 2021-02-02 深圳Tcl数字技术有限公司 Application program testing method and system, intelligent terminal and storage medium
CN111309604A (en) * 2020-02-07 2020-06-19 Tcl移动通信科技(宁波)有限公司 Offline automatic testing method and system, storage medium and mobile terminal
CN111309604B (en) * 2020-02-07 2023-10-03 Tcl移动通信科技(宁波)有限公司 Offline automatic test method, system, storage medium and mobile terminal
CN111309622A (en) * 2020-02-27 2020-06-19 中国平安人寿保险股份有限公司 Application program testing method and device, terminal equipment and storage medium
CN113821431A (en) * 2020-12-31 2021-12-21 京东科技控股股份有限公司 Method and device for acquiring test result, electronic equipment and storage medium
CN114265729A (en) * 2021-11-09 2022-04-01 北京云宽志业网络技术有限公司 Pressure testing method and device, storage medium and electronic equipment
CN114265729B (en) * 2021-11-09 2023-03-28 北京云宽志业网络技术有限公司 Pressure testing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110069398A (en) Programmed pressure test control method, device, computer equipment and storage medium
US8533532B2 (en) System identifying and inferring web session events
CN106776280B (en) Configurable performance testing device
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
US8832658B2 (en) Verification framework for business objects
CN111897724B (en) Automatic testing method and device suitable for cloud platform
CN107645562A (en) Data transmission processing method, device, equipment and system
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
CN110275822A (en) Performance test methods, device, equipment and the storage medium of application programming interfaces
CN108845954A (en) Method for testing pressure, system and storage medium
CN104636146A (en) Online visual customizing method and system
US20170371304A1 (en) Method and system for determining mapping of test case(s) with code snippets of computer program
US8250201B2 (en) Servlet monitoring tool
US9892028B1 (en) System and method for debugging of webcasting applications during live events
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN112306837A (en) Cloud pressure testing method and platform, equipment and readable storage medium
CN112463588A (en) Automatic test system and method, storage medium and computing equipment
CN112256406A (en) Operation flow platformization scheduling method
CN114500343A (en) Business chain operation monitoring method and device, equipment, medium and product thereof
CN111240974A (en) Log output method and device, electronic equipment and medium
CN110147314A (en) Test method, device and computer readable storage medium
US20090240987A1 (en) Test amplification for datacenter applications via model checking
Rodrigues et al. Master Apache JMeter-From Load Testing to DevOps: Master performance testing with JMeter
CN106598797B (en) Multi-path IO fault injection method and system and fault management system
CN108427599A (en) Method, apparatus and storage medium is uniformly processed in asynchronous task

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