CN109828910A - Method and device, the computer equipment, storage medium of monkey test - Google Patents

Method and device, the computer equipment, storage medium of monkey test Download PDF

Info

Publication number
CN109828910A
CN109828910A CN201811601397.4A CN201811601397A CN109828910A CN 109828910 A CN109828910 A CN 109828910A CN 201811601397 A CN201811601397 A CN 201811601397A CN 109828910 A CN109828910 A CN 109828910A
Authority
CN
China
Prior art keywords
test
monkey
test object
program
app
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
CN201811601397.4A
Other languages
Chinese (zh)
Inventor
王翼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811601397.4A priority Critical patent/CN109828910A/en
Publication of CN109828910A publication Critical patent/CN109828910A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a kind of method and devices of monkey test, computer equipment, storage medium.On the one hand, this method comprises: connecting multiple test objects;Monkey test command is sent to the multiple test object, the multiple test object is triggered and concurrently executes monkey test program, wherein the monkey test command carries the monkey test program;Receive multiple running logs that the multiple test object generates after executing the monkey test program.Through the invention, the too low technical problem of progress monkey testing time-effectiveness rate in the prior art is solved.

Description

Method and device, the computer equipment, storage medium of monkey test
[technical field]
The present invention relates to computer field more particularly to a kind of method and device of monkey test, computer equipment, deposit Storage media.
[background technique]
In the prior art, application software (app) can all carry out monkey survey in R&D process, or before publication Examination, also someone is called test of making fun, and exactly goes to test tested test system with some fantastic modes of operation, with test macro Stability.
In the prior art, Monkey test program is usually built in the operating system or software of terminal, is dispatched from the factory in terminal Or before software publication, when first time normal use operating system or software, Monkey test program can be triggered first and is completed Test can be used normally, system is automatically deleted Monkey test program, if test crash, returns if test passes through Factory repairs or debugs again.Lead to monkey testing scheme in the prior art so every time and can only test an equipment or An app is tested, centralized management is unable to, testing efficiency is too low, and test speed is too slow.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
[summary of the invention]
In view of this, the embodiment of the invention provides a kind of method and devices of monkey test, computer equipment, storage Medium.
On the one hand, the embodiment of the invention provides a kind of methods of monkey test, which comprises connects multiple surveys Try object;Monkey test command is sent to the multiple test object, the multiple test object is triggered and concurrently executes Monkey test program, wherein the monkey test command carries the monkey test program;Receive the multiple test Multiple running logs that object generates after executing the monkey test program.
Optionally, connecting multiple test objects includes at least one of: connecting multiple test terminals, wherein each survey Examination terminal is a test object;Connect multiple application software app in a test terminal, wherein each app is a survey Try object.
Optionally, it triggers the multiple test object and concurrently executes monkey test program and include: triggering and be pre-created Control coordinate database, wherein the control coordinate database is stored with where multiple control coordinates and each control coordinate The mark of display interface generates a pseudo- incoming event when each control coordinate is triggered;From the control coordinate database At least one control coordinate corresponding to the mark of the test object current display interface is chosen, to the multiple test object The control coordinate is sent, so that control coordinate described in the multiple test object parallel trigger, and respond each control coordinate Generated puppet incoming event;Judge whether the test object errored response occurs;It is rung when mistake occurs in the test object At once, the monkey test that the pseudo- incoming event of the last one responded before test object errored response in storehouse is called is captured Program.
It optionally, is to trigger the multiple survey in a multiple app tested in terminal in the multiple test object Examination object concurrency executes monkey test program: concurrently executing monkey according to the carrying threshold value determination of the test terminal The carrying number of the app of test program;Determine that the multiple app executes the execution of monkey test program according to pre-set priority Sequentially;Sequence is executed according to described, selection is no more than the app of the carrying number every time, concurrently executes monkey test program.
Optionally, the multiple operations generated after executing the monkey test program in the multiple test object of reception After log, the method also includes at least one of: multiple running logs that the multiple test object is generated are sorted out It is stored in file corresponding with each test object;Multiple running logs classification that the multiple test object generates is deposited In the corresponding file of each monkey test program of Chu Yu.
Optionally, sending monkey test command to the multiple test object includes: the multiple test object of search Identification information, wherein the identification information includes following one: device number, developer's title, app title;According to each survey The identification information for trying object sends monkey test command to the multiple test object.
Optionally, the multiple operations generated after executing the monkey test program in the multiple test object of reception After log, the method also includes: the multiple running log is stored, and exists in the multiple running log and includes When the specified running log of the test result of errored response, the specified running log is navigated to.
On the other hand, the embodiment of the invention provides a kind of device of monkey test, described device includes: connection mould Block, for connecting multiple test objects;Trigger module, for sending monkey test command, touching to the multiple test object Sending out test object the multiple concurrently executes monkey test program, wherein described in the monkey test command carries Monkey test program;Receiving module, it is raw after executing the monkey test program for receiving the multiple test object At multiple running logs.
Optionally, the link block includes at least one of: the first connection unit, for connecting multiple tests eventually End, wherein each test terminal is a test object;Second connection unit, it is multiple in a test terminal for connecting Application software app, wherein each app is a test object.
Optionally, the trigger module includes: trigger unit, for triggering the control coordinate database being pre-created, In, the control coordinate database is stored with the mark of the display interface where multiple control coordinates and each control coordinate, often A pseudo- incoming event is generated when a control coordinate is triggered;Transmission unit, for being chosen from the control coordinate database At least one control coordinate corresponding to the mark of the test object current display interface is sent to the multiple test object The control coordinate, so that control coordinate described in the multiple test object parallel trigger, and respond each control coordinate and produced Raw pseudo- incoming event;Judging unit, for judging whether the test object errored response occurs;Capturing unit, for working as When errored response occurs in the test object, the last one the puppet input responded before test object errored response in storehouse is captured The monkey test program that event is called.
It optionally, is the trigger module packet in a multiple app tested in terminal in the multiple test object It includes: the first determination unit, for determining the app for concurrently executing monkey test program according to the carrying threshold value of the test terminal Carrying number;Second determination unit, for determining that the multiple app executes monkey test program according to pre-set priority Execute sequence;Trigger unit, for executing sequence according to described, selection is no more than the app of the carrying number every time, concurrently holds Row monkey test program.
Optionally, described device further includes at least one of: the first memory module, for receiving in the receiving module The multiple test object is after the multiple running logs generated after executing the monkey test program, by the multiple survey Multiple running log classified and storeds of object generation are tried in file corresponding with each test object;Second memory module, For receiving multiple fortune that the multiple test object generates after executing the monkey test program in the receiving module After row log, multiple running log classified and storeds that the multiple test object is generated with each monkey test program In corresponding file.
Optionally, the trigger module includes: search unit, for searching for the identification information of the multiple test object, Wherein, the identification information includes following one: device number, developer's title, app title;Transmission unit, for according to each The identification information of test object sends monkey test command to the multiple test object.
Optionally, described device further include: processing module, for receiving the multiple test object in the receiving module After the multiple running logs generated after executing the monkey test program, the multiple running log, Yi Ji are stored When there is the specified running log of the test result including errored response in the multiple running log, the specified fortune is navigated to Row log.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described Step in embodiment of the method.
Through the invention, after connecting multiple test objects, monkey test command, touching are sent to multiple test objects Sending out test object multiple concurrently executes monkey test program, concurrently can carry out monkey test to test object, solve It is in the prior art to carry out the too low technical problem of monkey testing time-effectiveness rate, greatly improve the work effect of monkey test Rate, test speed is faster.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of hardware block diagram of the mobile terminal of monkey test of the embodiment of the present invention;
Fig. 2 is the flow chart of the method for monkey test according to an embodiment of the present invention;
Fig. 3 is the schematic diagram that controlling terminal connects multiple test terminals in the embodiment of the present invention;
Fig. 4 is the flow chart that the embodiment of the present invention triggers that multiple test objects concurrently execute monkey test program;
Fig. 5 is the structural block diagram of the device of monkey test according to an embodiment of the present invention.
[specific embodiment]
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of mobile end of monkey test of the embodiment of the present invention The hardware block diagram at end.As shown in Figure 1, mobile terminal 10 may include one or more (only showing one in Fig. 1) processing Device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.) and Memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the transmission device for communication function 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, simultaneously The structure of above-mentioned mobile terminal is not caused to limit.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 or less Component, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair The corresponding computer program of method of monkey test in bright embodiment, processor 102 are stored in memory 104 by operation Interior computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 can Including high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or Other non-volatile solid state memories of person.In some instances, memory 104 can further comprise remote relative to processor 102 The memory of journey setting, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as RF) module is used to wirelessly be communicated with internet.
A kind of method of monkey test is provided in the present embodiment, and Fig. 2 is monkey according to an embodiment of the present invention The flow chart of the method for test, as shown in Fig. 2, the process includes the following steps:
Step S202 connects multiple test objects;
Step S204 sends monkey test command to multiple test objects, triggers multiple test objects and concurrently execute Monkey test program, wherein monkey test command carries monkey test program;
Step S206 receives multiple running logs that multiple test objects generate after executing monkey test program.
Scheme through this embodiment sends monkey to multiple test objects and surveys after connecting multiple test objects Examination order, triggers multiple test objects and concurrently executes monkey test program, concurrently can carry out monkey survey to test object Examination solves the too low technical problem of progress monkey testing time-effectiveness rate in the prior art, greatly improves monkey test Working efficiency, test speed is faster.
The executing subject of the present embodiment can be server or terminal, such as mobile terminal, web terminal etc., apply It executes on the server, the test terminal where test object is connected to server, and channel mode is unlimited, can be wired side Formula is also possible to wireless mode, as long as can make to test terminal attaches server, server can connect user circle Face, the user interface may operate in the controlling terminal connecting with server, for interacting with tester, show phase Test pictures are closed, Fig. 3 is the schematic diagram that controlling terminal connects multiple test terminals in the embodiment of the present invention.
In the present embodiment, the multiple test objects of connection in the present embodiment include at least one of: connecting multiple surveys Try terminal, wherein each test terminal is a test object;Multiple application software app in a test terminal are connected, In, each app is a test object.
The test object of multiple monkey tests can also correspond to a survey other than it can correspond to multiple test terminals Try multiple app (application program) of terminal.One test object, which can be a test terminal, (can be the hardware of test terminal The app run in either operating system, or test terminal), the device number of each test terminal can be used as identification mark Know, the one or more app to be tested of operation, the title (or developer etc.) of each app can be made in each test terminal For identification marking;In multiple app in the case where the same monkey test program can be used being tested, multiple tests pair As the multiple app for being also possible to run in a test terminal.
Optionally, sending monkey test command to multiple test objects includes: the mark letter for searching for multiple test objects Breath, wherein identification information includes following one: device number, developer's title, app title;According to the mark of each test object Information sends monkey test command to multiple test objects.It is connected, be may be implemented point by the identification information of test object The monkey of class is tested.
In the present embodiment, trigger multiple test objects concurrently execute monkey test program need it is preparatory in locally triggering The control coordinate database of creation, Fig. 4 are that the multiple test objects of triggering of the embodiment of the present invention concurrently execute monkey test program Flow chart, trigger multiple test objects and concurrently execute monkey test program and include:
Step S402 triggers the control coordinate database being pre-created, wherein control coordinate database is stored with multiple controls The mark of display interface where part coordinate and each control coordinate generates a pseudo- input thing when each control coordinate is triggered Part;
Step S404 chooses corresponding to the mark of test object current display interface at least from control coordinate database One control coordinate sends control coordinate to multiple test objects, so that multiple test object parallel trigger control coordinates, and ring Answer puppet incoming event caused by each control coordinate;
It is (reactionless to be equal to what default response was not inconsistent if sudden strain of a muscle is moved back to judge whether test object errored response occurs by step S406 Phenomenon);
Step S408 is captured in storehouse and is responded before test object errored response when errored response occurs in test object The monkey test program that is called of the last one pseudo- incoming event.The application program is bug program, is needed on app It is repaired.
The application program that Monkey is called is the program that may operate in simulator or in physical device, it is to system Random pseudo- incoming event stream (such as input of key-press input, touch screen and gesture input) is sent, is realized to being developed Application program carries out stability test.
It optionally, is to trigger multiple test objects simultaneously in a multiple app tested in terminal in multiple test objects Hair executes monkey test program:
S11 determines the carrying number for concurrently executing the app of monkey test program according to the carrying threshold value of test terminal;
S12 determines that multiple app executed monkey test programs executes sequence according to pre-set priority;
S13, according to execution sequence, selection is no more than the app of carrying number every time, concurrently executes monkey test program.
Since when multiple test terminals execute monkey test command parallel, each test terminal only carries out one Monkey test command, each terminal do not carry burden, therefore can multiple test terminal concurrences execution.And it is tested at one When executing multiple monkey test commands in terminal parallel (each app is a test object), certain carrying can be set Amount, and the priority of difference monkey test command, the significance level tested according to the significance level or monkey of app Carry out parallel processing in batches as priority, every a batch is parallel to execute monkey test command.In multiple monkey test commands point When not corresponding to different app, app can be adapted to according to the identification information of app, each monkey test command also carries one The app identification information being adapted to it.
It is raw after executing monkey test program receiving multiple test objects in the optional embodiment of the present embodiment At multiple running logs after, further include at least one of: multiple running logs that multiple test objects are generated are sorted out It is stored in file corresponding with each test object;Multiple running log classified and storeds that multiple test objects are generated exist In file corresponding with each monkey test program.
It is raw after executing monkey test program receiving multiple test objects in the optional embodiment of the present embodiment At multiple running logs after, further includes: store multiple running logs, and in multiple running logs exist include mistake When the specified running log of the test result of response, specified running log is navigated to.
For each test object (such as app), each monkey test can all generate a running log, the fortune Row log is used to record the operational process and test result that the app carries out a monkey test.It was tested carrying out monkey Cheng Zhong, while monkey log information is recorded, local log file is written, then (e.g., outgoing interface is called by algorithm Outlook mail interface), journal file is periodically sent to specified mailbox by mail, logs all so is all stored In server, while can also be stored in the terminal where app.
Since journal file is sent to server by app, batch can be requested to look into directly in controlling terminal The journal file for seeing each APP can also arrive the local of the place APP terminal when checking unsuccessfully to check.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Additionally provide a kind of device of monkey test in the present embodiment, the device is for realizing above-described embodiment and excellent Embodiment is selected, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module " Software and/or hardware combination.Although device described in following embodiment is preferably realized with software, hardware, Or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 5 is the structural block diagram of the device of monkey test according to an embodiment of the present invention, as shown in figure 5, the device packet It includes:
Link block 50, for connecting multiple test objects;
Trigger module 52 triggers the multiple test for sending monkey test command to the multiple test object Object concurrency executes monkey test program, wherein the monkey test command carries the monkey test program;
Receiving module 54 is generated for receiving the multiple test object after executing the monkey test program more A running log.
Optionally, the link block includes at least one of: the first connection unit, for connecting multiple tests eventually End, wherein each test terminal is a test object;Second connection unit, it is multiple in a test terminal for connecting Application software app, wherein each app is a test object.
Optionally, the trigger module includes: trigger unit, for triggering the control coordinate database being pre-created, In, the control coordinate database is stored with the mark of the display interface where multiple control coordinates and each control coordinate, often A pseudo- incoming event is generated when a control coordinate is triggered;Transmission unit, for being chosen from the control coordinate database At least one control coordinate corresponding to the mark of the test object current display interface is sent to the multiple test object The control coordinate, so that control coordinate described in the multiple test object parallel trigger, and respond each control coordinate and produced Raw pseudo- incoming event;Judging unit, for judging whether the test object errored response occurs;Capturing unit, for working as When errored response occurs in the test object, the last one the puppet input responded before test object errored response in storehouse is captured The monkey test program that event is called.
It optionally, is the trigger module packet in a multiple app tested in terminal in the multiple test object It includes: the first determination unit, for determining the app for concurrently executing monkey test program according to the carrying threshold value of the test terminal Carrying number;Second determination unit, for determining that the multiple app executes monkey test program according to pre-set priority Execute sequence;Trigger unit, for executing sequence according to described, selection is no more than the app of the carrying number every time, concurrently holds Row monkey test program.
Optionally, described device further includes at least one of: the first memory module, for receiving in the receiving module The multiple test object is after the multiple running logs generated after executing the monkey test program, by the multiple survey Multiple running log classified and storeds of object generation are tried in file corresponding with each test object;Second memory module, For receiving multiple fortune that the multiple test object generates after executing the monkey test program in the receiving module After row log, multiple running log classified and storeds that the multiple test object is generated with each monkey test program In corresponding file.
Optionally, the trigger module includes: search unit, for searching for the identification information of the multiple test object, Wherein, the identification information includes following one: device number, developer's title, app title;Transmission unit, for according to each The identification information of test object sends monkey test command to the multiple test object.
Optionally, described device further include: processing module, for receiving the multiple test object in the receiving module After the multiple running logs generated after executing the monkey test program, the multiple running log, Yi Ji are stored When there is the specified running log of the test result including errored response in the multiple running log, the specified fortune is navigated to Row log.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 3
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S1 connects multiple test objects;
S2 sends monkey test command to the multiple test object, triggers the multiple test object and concurrently execute Monkey test program, wherein the monkey test command carries the monkey test program;
S3 receives multiple running logs that the multiple test object generates after executing the monkey test program.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 connects multiple test objects;
S2 sends monkey test command to the multiple test object, triggers the multiple test object and concurrently execute Monkey test program, wherein the monkey test command carries the monkey test program;
S3 receives multiple running logs that the multiple test object generates after executing the monkey test program.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of method of monkey test, which is characterized in that the described method includes:
Connect multiple test objects;
Monkey test command is sent to the multiple test object, the multiple test object is triggered and concurrently executes monkey survey Try program, wherein the monkey test command carries the monkey test program;
Receive multiple running logs that the multiple test object generates after executing the monkey test program.
2. the method according to claim 1, wherein connecting multiple test objects includes at least one of:
Connect multiple test terminals, wherein each test terminal is a test object;
Connect multiple application software app in a test terminal, wherein each app is a test object.
3. the method according to claim 1, wherein triggering the multiple test object concurrently executes monkey survey Trying program includes:
Trigger the control coordinate database that is pre-created, wherein the control coordinate database be stored with multiple control coordinates and The mark of display interface where each control coordinate generates a pseudo- incoming event when each control coordinate is triggered;
At least one corresponding to the mark of the test object current display interface is chosen from the control coordinate database Control coordinate sends the control coordinate to the multiple test object, so that described in the multiple test object parallel trigger Control coordinate, and respond puppet incoming event caused by each control coordinate;
Judge whether the test object errored response occurs;
When errored response occurs in the test object, the last one responded before test object errored response in storehouse is captured The monkey test program that pseudo- incoming event is called.
4. the method according to claim 1, wherein being in a test terminal in the multiple test object Multiple app when, trigger the multiple test object and concurrently execute monkey test program and include:
The carrying number for concurrently executing the app of monkey test program is determined according to the carrying threshold value of the test terminal;
Determine that the multiple app executed monkey test program executes sequence according to pre-set priority;
Sequence is executed according to described, selection is no more than the app of the carrying number every time, concurrently executes monkey test program.
5. the method according to claim 1, wherein receiving the multiple test object described in the execution After the multiple running logs generated after monkey test program, the method also includes at least one of:
Multiple running log classified and storeds that the multiple test object is generated are in file corresponding with each test object In;
Multiple running log classified and storeds that the multiple test object is generated are corresponding with each monkey test program In file.
6. the method according to claim 1, wherein sending monkey test command to the multiple test object Include:
Search for the identification information of the multiple test object, wherein the identification information includes following one: device number, exploitation Quotient's title, app title;
Monkey test command is sent to the multiple test object according to the identification information of each test object.
7. the method according to claim 1, wherein receiving the multiple test object described in the execution After the multiple running logs generated after monkey test program, the method also includes:
The multiple running log is stored, and there is the test result including errored response in the multiple running log When specified running log, the specified running log is navigated to.
8. a kind of device of monkey test, which is characterized in that described device includes:
Link block, for connecting multiple test objects;
Trigger module triggers the multiple test object simultaneously for sending monkey test command to the multiple test object Hair executes monkey test program, wherein the monkey test command carries the monkey test program;
Receiving module, the multiple operations generated after executing the monkey test program for receiving the multiple test object Log.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is located The step of reason device realizes method described in any one of claims 1 to 7 when executing.
CN201811601397.4A 2018-12-26 2018-12-26 Method and device, the computer equipment, storage medium of monkey test Pending CN109828910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811601397.4A CN109828910A (en) 2018-12-26 2018-12-26 Method and device, the computer equipment, storage medium of monkey test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811601397.4A CN109828910A (en) 2018-12-26 2018-12-26 Method and device, the computer equipment, storage medium of monkey test

Publications (1)

Publication Number Publication Date
CN109828910A true CN109828910A (en) 2019-05-31

Family

ID=66861236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811601397.4A Pending CN109828910A (en) 2018-12-26 2018-12-26 Method and device, the computer equipment, storage medium of monkey test

Country Status (1)

Country Link
CN (1) CN109828910A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342672A (en) * 2021-06-25 2021-09-03 上海闻泰信息技术有限公司 Monkey testing method and apparatus for terminal equipment
CN114168476A (en) * 2021-12-10 2022-03-11 惠州Tcl移动通信有限公司 Automatic testing method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419727A (en) * 2011-09-30 2012-04-18 宇龙计算机通信科技(深圳)有限公司 Automatic test method and device
CN103577313A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Mobile terminal application program testing method and device
CN104050075A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Test method and device for Andriod application program
CN105094783A (en) * 2014-05-19 2015-11-25 腾讯科技(深圳)有限公司 Method and device for testing Android application stability
CN105512023A (en) * 2014-09-26 2016-04-20 腾讯科技(深圳)有限公司 Method and device for Monkey testing
CN105550117A (en) * 2016-01-22 2016-05-04 上海斐讯数据通信技术有限公司 Method for testing running frame rate of application programs and mobile terminal
CN106469113A (en) * 2015-08-18 2017-03-01 腾讯科技(深圳)有限公司 Applied program testing method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419727A (en) * 2011-09-30 2012-04-18 宇龙计算机通信科技(深圳)有限公司 Automatic test method and device
CN103577313A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Mobile terminal application program testing method and device
CN104050075A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Test method and device for Andriod application program
CN105094783A (en) * 2014-05-19 2015-11-25 腾讯科技(深圳)有限公司 Method and device for testing Android application stability
CN105512023A (en) * 2014-09-26 2016-04-20 腾讯科技(深圳)有限公司 Method and device for Monkey testing
CN106469113A (en) * 2015-08-18 2017-03-01 腾讯科技(深圳)有限公司 Applied program testing method and system
CN105550117A (en) * 2016-01-22 2016-05-04 上海斐讯数据通信技术有限公司 Method for testing running frame rate of application programs and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342672A (en) * 2021-06-25 2021-09-03 上海闻泰信息技术有限公司 Monkey testing method and apparatus for terminal equipment
CN113342672B (en) * 2021-06-25 2022-06-03 上海闻泰信息技术有限公司 Monkey testing method and apparatus for terminal equipment
CN114168476A (en) * 2021-12-10 2022-03-11 惠州Tcl移动通信有限公司 Automatic testing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102402481B (en) The fuzz testing of asynchronous routine code
CN105205006B (en) Multi-platform universal testing method, device and system
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN109726071A (en) System failure processing method, device, equipment and storage medium
CN110493812A (en) Processing method, device, system, processor and the main control device of distribution test
CN107861864A (en) Automated testing method, system and computer-readable recording medium
CN110032507A (en) Applied program testing method, device, system, electronic equipment and storage medium
CN112114892A (en) Deep learning model obtaining method, loading method and selecting method
CN112737856B (en) Link tracking method and device, storage medium and electronic device
CN106980571A (en) The construction method and equipment of a kind of test use cases
CN109324962A (en) A kind of test method and equipment of the application program based on cloud internet of things technology
CN105579976B (en) Webpage automated testing method and device
CN109828910A (en) Method and device, the computer equipment, storage medium of monkey test
CN109408309A (en) The test method and device of multiple terminals
CN108108296A (en) A kind of cloud test method, server and client
CN109614164A (en) Realize plug-in unit configurable method, apparatus, equipment and readable storage medium storing program for executing
CN106201852A (en) A kind of distributed test method and test system
CN110489347A (en) Method for edition management, device, equipment and readable storage medium storing program for executing based on GIT
CN110515676A (en) Interface integration method, device, equipment and storage medium
CN110083529A (en) Automated testing method, device, medium and electronic equipment
CN109634838A (en) Position method, apparatus, storage medium and the electronic equipment of application failure
CN109885473A (en) Automated testing method and device, terminal and computer readable storage medium
CN109783363A (en) A kind of anomalous event analogy method and device and computer equipment
CN109032956A (en) A kind of interface test method and device
CN106302011A (en) Method of testings based on multiterminal and terminal

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