CN104331373A - Monkey test system and method - Google Patents

Monkey test system and method Download PDF

Info

Publication number
CN104331373A
CN104331373A CN201410712955.XA CN201410712955A CN104331373A CN 104331373 A CN104331373 A CN 104331373A CN 201410712955 A CN201410712955 A CN 201410712955A CN 104331373 A CN104331373 A CN 104331373A
Authority
CN
China
Prior art keywords
test
monkey
testing
mobile terminal
daily record
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
CN201410712955.XA
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410712955.XA priority Critical patent/CN104331373A/en
Publication of CN104331373A publication Critical patent/CN104331373A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a Monkey test system and a Monkey test method. The Monkey test system comprises a test setting module for acquiring a test pack mounted on a mobile terminal, setting related test information and generating a corresponding test command; a test execution module which is connected to the test setting module and for testing depending on the test command, and acquiring screenshot information under an abnormal test state when any abnormity is tested; and a test result processing module which is connected to the test execution module and is used for processing a result obtained from test and generating a corresponding test result. The technical scheme of the invention can obtain a final test result through different setting before test and different tests, and can acquire log information of a whole test process and a mobile terminal screenshot in case of abnormity, so as to meet different test requirements and better relieve working strength of a tester.

Description

A kind of Monkey test macro and method
Technical field
The present invention relates to field tests, particularly relate to a kind of Monkey test macro and method.
Background technology
Current is artificially by inputting Monkey instruction in CMD (system command executive) window for the automatic mode that Monkey test and comparison is general, carry out the Monkey test of mobile terminal, or multiple Monkey instruction is pooled together, be written as script to carry out.These methods using Monkey to test are the most frequently used is also the most direct way.There is the research tested about automatic test especially Monkey both at home and abroad, also test script this part is mainly concentrated on, the automatic test of Monkey is completed by Run Script, but, if when having any test request to change, test script must be revised accordingly, then re-starts test.Therefore, in existing visual Monkey method of testing, there is the following problem: function is comprehensive not, existing needs in testing cannot be met, and the information provided after test is also comprehensive not.Specifically comprise: one, arrange in Monkey detecting information, comprehensive test selection is not provided, so that the last batch processing generated is too simple, can not meet complicated test request.Two, test process cannot be checked, also cannot learn state or the progress of test.Three, when occur test make mistakes or the situation of failure time, Log (daily record) information of test process can only be obtained, and do not provide test to make mistakes or failure time mobile terminal screen sectional drawing, be unfavorable for tester's analyzing and positioning test problem.
Given this, the automatic test degree how improving Monkey further becomes those skilled in the art's problem demanding prompt solution with the working strength alleviating tester better.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of Monkey test macro and method, the information that the function that the automatic test for solving Monkey in prior art exists provides after cannot meeting the needs and test showed in testing is comprehensive not problem also.
For achieving the above object and other relevant objects, the invention provides a kind of Monkey test macro, described Monkey test macro comprises: test setting module, for obtaining the mounted test pack of mobile terminal, test relevant information is arranged, and generates corresponding test command; Testing execution module, is connected with described test setting module, for testing according to described test command; When testing appearance and being abnormal, obtain the screen shot image information under test abnormality; Test result processing module, is connected with described testing execution module, processes for the result obtained described test, generates corresponding test report.
Alternatively, described when testing appearance and being abnormal, the specific implementation obtaining the screen shot image information under test abnormality comprises: when key character " CRASH " being detected, determines that test extremely, and obtains screen shot image information.
Alternatively, described test relevant information comprises: at least one in the time interval, number of clicks, seed value, cycle index, test-types, daily record kind; Wherein, described test-types is integrated testability, tests successively, singly wraps test, any one of wrapping in test more; Described daily record kind is any one in logcat daily record, kernel daily record, radio daily record.
Alternatively, described testing execution module is also for showing detecting information in real time or/and testing progress.
Alternatively, described test result processing module is also for sending to related personnel by mail by described test report, and wherein, described test report comprises table with test results or/and mobile terminal performance figure; Described mobile terminal performance figure comprises mobile terminal fault distribution post figure or/and mobile terminal fault distribution pie chart.
Alternatively, described Monkey test macro also comprises user log-in block, for determining the operating right of described user according to the log-on message of user.
The present invention also provides a kind of Monkey method of testing, and described Monkey method of testing comprises: obtain the mounted test pack of mobile terminal, arranges, and generate corresponding test command to test relevant information; Test according to described test command; When testing appearance and being abnormal, obtain the screen shot image information under test abnormality; The result that described test obtains is processed, generates corresponding test report.
Alternatively, described when testing appearance and being abnormal, the specific implementation obtaining the screen shot image information under test abnormality comprises: when key character " CRASH " being detected, determines that test extremely, and obtains screen shot image information.
Alternatively, at least one in the time interval, number of clicks, seed value, cycle index, test-types, daily record kind; Wherein, described test-types is integrated testability, tests successively, singly wraps test, any one of wrapping in test more; Described daily record kind is any one in logcat daily record, kernel daily record, radio daily record.
Alternatively, described Monkey method of testing also comprises and shows detecting information in real time or/and testing progress.
Alternatively, described Monkey method of testing also comprises, by mail, described test report is sent to related personnel, and wherein, described test report comprises test result form or/and mobile terminal performance figure; Described mobile terminal performance figure comprises mobile terminal fault distribution post figure or/and mobile terminal fault distribution pie chart.
Alternatively, described Monkey method of testing also comprises the operating right determining described user according to the log-on message of user.
As mentioned above, a kind of Monkey test macro of the present invention and method, there is following beneficial effect: by the setting before different tests, carry out different tests, draw final test result, and the mobile terminal screen sectional drawing obtained when testing omnidistance Log (daily record) information and extremely occur, can meet the working strength that various test request also can alleviate tester well.Technical scheme of the present invention possesses following functions: 1. achieve login feature, this ensure that the private ownership of instrument, only knows that the personnel of password just can use this instrument; 2. achieve mounted bag in Real-time Obtaining mobile terminal, provide the convenience of test, facilitate the bag in Real-time Obtaining mobile terminal; 3. provide multiple Monkey to test, comprise singly wrap test, wrap test more, test successively, integrated testability, meet the demand of various test; 4. provide the setting of multiple test parameter, provide diversified test environment, meet diversified testing requirement further; 5. provide the output of test process and the real-time monitoring of test mode, progress and the state of test can be understood so very intuitively.6. achieve if there is exception in test process, can mobile terminal sectional drawing be given and be uploaded to PC (computer), so to a great extent, provide the information of more exceptions about test, make the result of testing have more cogency.7. achieve generation and the transmission of test report, not only save the finishing time of test report like this, and make test result to be sent in the hand of related personnel in time.
Accompanying drawing explanation
Fig. 1 is shown as the test environment schematic diagram of an embodiment of Monkey test macro of the present invention.
Fig. 2 is shown as the module diagram of an embodiment of Monkey test macro of the present invention.
Fig. 3 is shown as the interface schematic diagram of an embodiment of Monkey test macro of the present invention.
Fig. 4 is shown as the test report schematic diagram of an embodiment of Monkey test macro of the present invention.
Fig. 5 is shown as the test report schematic diagram of an embodiment of Monkey test macro of the present invention.
Fig. 6 is shown as the interface schematic diagram of an embodiment of Monkey test macro of the present invention.
Fig. 7 is shown as the interface schematic diagram of an embodiment of Monkey test macro of the present invention.
Fig. 8 is shown as the schematic flow sheet of an embodiment of Monkey method of testing of the present invention.
Fig. 9 is shown as the schematic flow sheet of an embodiment of Monkey method of testing of the present invention.
Figure 10 is shown as the schematic flow sheet of an embodiment of Monkey method of testing of the present invention.
Figure 11 is shown as the schematic flow sheet of an embodiment of Monkey method of testing of the present invention.
Element numbers explanation
1 Monkey test macro
11 test setting modules
12 testing execution module
13 test result processing modules
S1 ~ S3 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The invention provides a kind of Monkey test macro.Described Monkey test macro is applied in the test of mobile terminal.Described mobile terminal comprises mobile phone.In one embodiment, the test environment of described Monkey test macro as shown in Figure 1, Monkey instrument (i.e. Monkey test macro) is carried in the upper operation of PC (computer), and user carrys out the operation of control Monkey instrument by control PC (computer).After PC (computer) sends instruction to mobile terminal, mobile terminal (mobile phone) automatically performs corresponding operation, and the operating result recorded is sent to PC (computer).In one embodiment, as shown in Figure 2, described Monkey test macro 1 comprises test setting module 11, test result processing module 13 and described testing execution module 12.Wherein:
Test setting module 11, for obtaining the mounted test pack of mobile terminal, arranges test relevant information, and generates corresponding test command.Particularly, described test relevant information comprises: at least one in the time interval, number of clicks, seed value, cycle index.Wherein, the seed value parameter of test, be that the cycle tests in order to produce in twice test is the same, thus produce identical exception, with the reproduction facilitating test abnormal, and the tracking etc. of problem.In one embodiment, described test setting module 11 uses the IO of java to flow, and carries out the input reading of data and the importing of BAT script.User inputs data by JTextField: use JAVA order cycleNumber.getText (), interval.getText (), seedNumber.getText (), clicknumber.getText () obtains testing time respectively, number of clicks, click speed, number of clicks.Import above four parameters into function respectively, data write-in functions is carried out in this function effect, cycleNumber.getText (), interval.getText (), seedNumber.getText (), clicknumber.getText () four acquired value represent respectively: a, b, Seeds, Clicks.Four parameter values are put into test function public void test (String a, String b, String Seeds, String Clicks) { } and carry out function operation.In Test function, call wtriterBeginBat () function operation, wtriterBeginBat () function particular content and function as follows: one, use this order first to define bat file String filePath=deposited " D: XXX.bat "; Two, then define a@echo off as form read statement String batBegin="@echo off "; Three, import the order of cycleNumber.getText (), be meant to arrange execution number of times, cycleNumber is exactly the numeral that user inputs, and writes adb shell monkey successively in order; SeedNumber.getText () value;--throttle; In clicknumber.getText () value etc. carries out being written to " D: XXX.bat " file, finally write | find " CRASH ".The command format example finally obtained is as follows: adb shell monkey-p com.android.settings-s 10--throttle 20-v 1000|find " CRASH ".Use this order to be formed and perform master routine order: wherein 10 represent the step method that seed tests, and are random number unit with 10.The 20 midfeather times representing each random number button, in units of millisecond.1000 represent the touch potential in each test module, are 1000 times.| the representative of find " CRASH " method in testing, if find the meaning of " CRASH ", is meant to the function found of makeing mistakes, can intercepts problem when makeing mistakes.
In one embodiment, described test relevant information also comprises test-types, and described test-types is integrated testability, tests successively, singly wraps test, any one of wrapping in test more.Wherein, during integrated testability, be that row stochastic test is entered to all bags in mobile terminal; When testing successively, it is the test bag selected in mobile terminal being carried out to order; During many bag tests, be that row stochastic test is entered to the bag selected in mobile terminal; Singly wrap test, after selecting the bag that will test exactly, carry out the test to this bag.
In one embodiment, described test relevant information comprises LOG kind, and described LOG (i.e. daily record) kind is any one in logcat daily record, kernel daily record, radio daily record.Can be managed by different LOG (this day extremely) administrative units.Save the detecting information obtained in test in daily record, the detecting information content that different daily record kinds comprises is different.
In one embodiment, the main interface of Monkey test macro 1 as shown in Figure 3.Wherein, test relevant information and comprise the time interval, number of clicks, seed value, cycle index; The time interval, number of clicks, seed value, cycle index are arranged by filling in related data.Test relevant information also comprises test-types and LOG kind, and test-types and LOG kind by selecting one to arrange in the type enumerated or kind.
Testing execution module 12 is connected with described test setting module 11, for testing according to described test command; When testing appearance and being abnormal, obtain the screen shot image information under test abnormality.In one embodiment, described when testing appearance and being abnormal, the specific implementation obtaining the screen shot image information under test abnormality comprises: when key character " CRASH " being detected, determines that test extremely, and obtains screen shot image information.In one embodiment, by order thread startup optimization BAT script MyThread3run=new MyThread3 ().The execution of BAT script is carried out in MyThread3 () thread dispatching to issue orders. starts: String [] cmd=new String [] { " cmd.exe ", "/C ", " D: XXX.bat " }.In one embodiment, by adb shell monkey-p com.android.settings-s 10--throttle 20-v 1000|find " CRASH " | find " CRASH " order realizes.Its concrete principle is in this order of operation, if there is " CRASH " in key character, illustrate in test and run into collapse, judged by if%ERRORLEVEL%==0, meeting action command adb shell/system/bin/screencap-p/sdcard/screenshot.png sectional drawing function, and this sectional drawing is exported in computer this locality, name with the time that fault occurs, and continuation execution adb shell monkey-p com.android.settings-s 10--throttle 20-v 1000 tests.
Alternatively, described testing execution module is also for showing detecting information in real time or/and testing progress.In one embodiment, the test log (LOG or log) exported in real time at specified window when detecting information comprises test is or/and export current test result statistical information.
Test result processing module 13 is connected with described testing execution module 12, processes for the result obtained described test, generates corresponding test report.Particularly, described test report comprises table with test results or/and mobile terminal performance figure.In one embodiment, described test report comprises table with test results.The main contents of described table with test results comprise test result, analysis etc. of whether occurring abnormal, abnormal shot image information, this bag in the title of test pack, test.The content of concrete table with test results is as shown in the table:
Described mobile terminal performance figure comprises mobile terminal fault distribution post figure or/and mobile terminal fault distribution pie chart.Described mobile terminal performance figure is the final report of the performance to mobile terminal version.Mainly for test result, analyze, by the performance of the embodiment mobile terminal version of the formal intuition of chart.In one embodiment, described mobile terminal fault distribution post figure is fault of mobile phone distribution post figure, as shown in Figure 4, can embody at fault of mobile phone distribution post figure the distribution that abnormal number occurs each bag intuitively.In one embodiment, described mobile terminal fault distribution pie chart is fault of mobile phone distribution pie chart, as shown in Figure 5, and the number percent of the fault distribution that can visually see at fault of mobile phone distribution pie chart, thus the performance analyzing which bag is relatively stable, easily go wrong when which bag is tested.
In one embodiment, described test result processing module is also for sending to related personnel by mail by described test report.Particularly, described test result processing module, test report, sends to relevant staff by the form of mail, comprises development group member and test group membership etc.In one embodiment, the surface chart of described transmission mail as shown in Figure 6, needs the people sent by selection, and selects the report needing transmission, sends to the people specified.When sending successfully, can eject and send successful prompting frame, just knowing that report has successfully sent.When sending unsuccessfully, can eject and send failed prompting frame.At this moment, need to resend report.
In one embodiment, described Monkey test macro also comprises user log-in block, for determining the operating right of described user according to the log-on message of user.In one embodiment, the interface of described user log-in block as shown in Figure 7, after described user log-in block mainly inputs username and password, the username and password pre-set with Monkey test macro is compared, if consistent, then login successfully, jump to the main interface of test by login interface; If log in unsuccessful, then can eject a prompting frame, prompting: " user name or Password Input mistake, please re-enter! ", at this moment again must log in, until username and password input is correct, just can login successfully.
The present invention also provides a kind of Monkey method of testing.In one embodiment, as shown in Figure 8, described Monkey method of testing comprises:
Step S1, obtains the mounted test pack of mobile terminal, arranges, and generate corresponding test command to test relevant information.Particularly, described test relevant information comprises: at least one in the time interval, number of clicks, seed value, cycle index.Wherein, the seed value parameter of test, be that the cycle tests in order to produce in twice test is the same, thus produce identical exception, with the reproduction facilitating test abnormal, and the tracking etc. of problem.In one embodiment, by using the IO stream of java, the input reading of data and the importing of BAT script is carried out.User inputs data by JTextField: use JAVA order cycleNumber.getText (), interval.getText (), seedNumber.getText (), clicknumber.getText () obtains testing time respectively, number of clicks, click speed, number of clicks.Import above four parameters into function respectively, data write-in functions is carried out in this function effect, cycleNumber.getText (), interval.getText (), seedNumber.getText (), clicknumber.getText () four acquired value represent respectively: a, b, Seeds, Clicks.Four parameter values are put into test function public void test (String a, String b, String Seeds, String Clicks) { } and carry out function operation.In Test function, call wtriterBeginBat () function operation, wtriterBeginBat () function particular content and function as follows: one, use this order first to define bat file String filePath=deposited " D: XXX.bat "; Two, then define a@echo off as form read statement String batBegin="@echo off "; Three, import the order of cycleNumber.getText (), be meant to arrange execution number of times, cycleNumber is exactly the numeral that user inputs, and writes adb shell monkey successively in order; SeedNumber.getText () value;--throttle; In clicknumber.getText () value etc. carries out being written to " D: XXX.bat " file, finally write | find " CRASH ".The command format example finally obtained is as follows: adb shell monkey-p com.android.settings-s 10--throttle 20-v 1000|find " CRASH ".Use this order to be formed and perform master routine order: wherein 10 represent the step method that seed tests, and are random number unit with 10.The 20 midfeather times representing each random number button, in units of millisecond.1000 represent the touch potential in each test module, are 1000 times.| the representative of find " CRASH " method in testing, if find the meaning of " CRASH ", is meant to the function found of makeing mistakes, can intercepts problem when makeing mistakes.
In one embodiment, described test relevant information also comprises test-types, and described test-types is integrated testability, tests successively, singly wraps test, any one of wrapping in test more.Wherein, during integrated testability, be that row stochastic test is entered to all bags in mobile terminal; When testing successively, it is the test bag selected in mobile terminal being carried out to order; During many bag tests, be that row stochastic test is entered to the bag selected in mobile terminal; Singly wrap test, after selecting the bag that will test exactly, carry out the test to this bag.In one embodiment, described test relevant information comprises daily record (LOG) kind, and described daily record (LOG) kind is any one in logcat daily record, kernel daily record, radio daily record.
In one embodiment, as shown in Figure 9, the main step of described single bag test comprises the following steps: first, click the button obtaining bag name in the main interface of test; Then judge whether to obtain successfully, when obtaining unsuccessfully, can point out: " reconnecting mobile phone; obtain ", at this moment, user only reconnects mobile phone again, until mobile phone and PC (computer) successful connection, till can not ejecting prompting frame again when obtaining bag name, when obtaining successfully, just can there is the title of all bags installed in mobile phone in the selective listing frame of test pack name.Then, the title of the bag that will test is selected in the selective listing frame of test pack name, select again " singly wrapping test ", at this moment, can judge whether the quantity of the bag selected is 1, if be 1, then singly can wrap test, if quantity is not 1, so will eject a prompting frame: " 1 bag please be select singly to wrap test ", until the title quantity of the bag selected is 1.Subsequently select the parameters tested, comprise the time interval, cycle index, number of clicks and seed value (this parameter is used to reappear identical test process, abnormal to obtain identical test, be convenient to tracing problem based), if these parameters are not arranged, also be fine, directly Use Defaults and also can test.Finally, selecting, comprise logcat, kernel, radio tri-kinds of Log (daily record) types to Log (daily record) type captured, if unselected words, is capture logcat this Log (daily record) type under acquiescence.A few like this step is got off, and just can carry out list bag and test, and in test is carried out, can export the process of checking test by test.After last test terminates, can test result be checked, comprise sectional drawing during Log (daily record) and the exception of test crawl.
In one embodiment, as shown in Figure 10, described integrated testability, that Monkey test is carried out to mounted bags all on mobile phone, step and single bag test of operation are much the same, and different place is in integrated testability, does not need the step of carrying out the quantity selected bag and judge bag, but directly select integrated testability, then carry out Monkey test.First, in the main interface of test, click the button obtaining bag name; Then judge whether to obtain successfully, when obtaining unsuccessfully, can point out: " reconnecting mobile phone; obtain ", at this moment, user only reconnects mobile phone again, until mobile phone and PC (computer) successful connection, till can not ejecting prompting frame again when obtaining bag name, when obtaining successfully, just can there is the title of all bags installed in mobile phone in the selective listing frame of test pack name.Then, " integrated testability " is selected.Subsequently select the parameters tested, comprise the time interval, cycle index, number of clicks and seed value (this parameter is used to reappear identical test process, abnormal to obtain identical test, be convenient to tracing problem based), if these parameters are not arranged, also be fine, directly Use Defaults and also can test.Finally, selecting, comprise logcat, kernel, radio tri-kinds of Log (daily record) types to Log (daily record) type captured, if unselected words, is capture logcat this Log (daily record) type under acquiescence.A few like this step is got off, and just can carry out list bag and test, and in test is carried out, can export the process of checking test by test.After last test terminates, can test result be checked, comprise sectional drawing during Log (daily record) and the exception of test crawl.
Step S2, tests according to described test command; When testing appearance and being abnormal, obtain the screen shot image information under test abnormality.In one embodiment, described when testing appearance and being abnormal, the specific implementation obtaining the screen shot image information under test abnormality comprises: when key character " CRASH " being detected, determines that test extremely, and obtains screen shot image information.In one embodiment, by order thread startup optimization BAT script MyThread3run=new MyThread3 ().The execution of BAT script is carried out in MyThread3 () thread dispatching to issue orders. starts: String [] cmd=new String [] { " cmd.exe ", "/C ", " D: XXX.bat " }.In one embodiment, by adb shell monkey-pcom.android.settings-s 10--throttle 20-v 1000|find " CRASH " | find " CRASH " order realizes.Its concrete principle is in this order of operation, if there is " CRASH " in key character, illustrate in test and run into collapse, judged by if%ERRORLEVEL%==0, meeting action command adb shell/system/bin/screencap-p/sdcard/screenshot.png sectional drawing function, and this sectional drawing is exported in computer this locality, name with the time that fault occurs, and continuation execution adb shell monkey-p com.android.settings-s 10--throttle 20-v 1000 tests.In one embodiment, described Monkey method of testing also comprises and shows detecting information in real time or/and testing progress.The test log (LOG or log) exported in real time at specified window when detecting information comprises test is or/and export current test result statistical information.
Step S3, processes the result that described test obtains, and generates corresponding test report.Particularly, described test report comprises table with test results or/and mobile terminal performance figure.In one embodiment, described test report comprises table with test results.The main contents of described table with test results comprise test result, analysis etc. of whether occurring abnormal, abnormal shot image information, this bag in the title of test pack, test.The content of concrete table with test results is as shown in the table:
Described mobile terminal performance figure comprises mobile terminal fault distribution post figure or/and mobile terminal fault distribution pie chart.Described mobile terminal performance figure is the final report of the performance to mobile terminal version.Mainly for test result, analyze, by the performance of the embodiment mobile terminal version of the formal intuition of chart.In one embodiment, described mobile terminal fault distribution post figure is fault of mobile phone distribution post figure, as shown in Figure 4, can embody at fault of mobile phone distribution post figure the distribution that abnormal number occurs each bag intuitively.In one embodiment, described mobile terminal fault distribution pie chart is fault of mobile phone distribution pie chart, as shown in Figure 5, and the number percent of the fault distribution that can visually see at fault of mobile phone distribution pie chart, thus the performance analyzing which bag is relatively stable, easily go wrong when which bag is tested.
In one embodiment, described Monkey method of testing also comprises, by mail, described test report is sent to related personnel.Particularly, described test result processing module, test report, sends to relevant staff by the form of mail, comprises development group member and test group membership etc.In one embodiment, by selecting the people needing to send, and the report selecting needs to send, send to the people specified.When sending successfully, can eject and send successful prompting frame, just knowing that report has successfully sent.When sending unsuccessfully, can eject and send failed prompting frame.At this moment, need to resend report.
In one embodiment, described Monkey method of testing determines the operating right of described user according to the log-on message of user.In one embodiment, as shown in figure 11, after input username and password, compare with the username and password pre-set, if unanimously, then login successfully, jump to the main interface of test by login interface; If log in unsuccessful, then can eject a prompting frame, prompting: " user name or Password Input mistake, please re-enter! ", at this moment again must log in, until username and password input is correct, just can login successfully.
In sum, a kind of Monkey test macro of the present invention and method, there is following beneficial effect: by the setting before different tests, carry out different tests, draw final test result, and the mobile terminal screen sectional drawing obtained when testing omnidistance Log (daily record) information and extremely occur, can meet the working strength that various test request also can alleviate tester well.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (12)

1. a Monkey test macro, is characterized in that, described Monkey test macro comprises:
Test setting module, for obtaining the mounted test pack of mobile terminal, arranging test relevant information, and generating corresponding test command;
Testing execution module, is connected with described test setting module, for testing according to described test command; When testing appearance and being abnormal, obtain the screen shot image information under test abnormality;
Test result processing module, is connected with described testing execution module, processes for the result obtained described test, generates corresponding test report.
2. Monkey test macro according to claim 1, it is characterized in that: described when testing appearance and being abnormal, the specific implementation obtaining the screen shot image information under test abnormality comprises: when key character " CRASH " being detected, determines that test is abnormal, and obtains screen shot image information.
3. Monkey test macro according to claim 1, is characterized in that: described test relevant information comprises: at least one in the time interval, number of clicks, seed value, cycle index, test-types, daily record kind; Wherein, described test-types is integrated testability, tests successively, singly wraps test, any one of wrapping in test more; Described daily record kind is any one in logcat daily record, kernel daily record, radio daily record.
4. Monkey test macro according to claim 1, is characterized in that: described testing execution module is also for showing detecting information in real time or/and testing progress.
5. Monkey test macro according to claim 1, it is characterized in that: described test result processing module is also for sending to related personnel by mail by described test report, wherein, described test report comprises table with test results or/and mobile terminal performance figure; Described mobile terminal performance figure comprises mobile terminal fault distribution post figure or/and mobile terminal fault distribution pie chart.
6. Monkey test macro according to claim 1, is characterized in that: described Monkey test macro also comprises user log-in block, for determining the operating right of described user according to the log-on message of user.
7. a Monkey method of testing, is characterized in that: described Monkey method of testing comprises:
Obtain the mounted test pack of mobile terminal, test relevant information is arranged, and generates corresponding test command;
Test according to described test command; When testing appearance and being abnormal, obtain the screen shot image information under test abnormality;
The result that described test obtains is processed, generates corresponding test report.
8. Monkey method of testing according to claim 7, it is characterized in that: described when testing appearance and being abnormal, the specific implementation obtaining the screen shot image information under test abnormality comprises: when key character " CRASH " being detected, determines that test is abnormal, and obtains screen shot image information.
9. Monkey method of testing according to claim 7, is characterized in that: described test relevant information comprises: at least one in the time interval, number of clicks, seed value, cycle index, test-types, daily record kind; Wherein, described test-types is integrated testability, tests successively, singly wraps test, any one of wrapping in test more; Described daily record kind is any one in logcat daily record, kernel daily record, radio daily record.
10. Monkey method of testing according to claim 7, is characterized in that: described Monkey method of testing also comprises and shows detecting information in real time or/and testing progress.
11. Monkey method of testings according to claim 7, it is characterized in that: described Monkey method of testing also comprises, by mail, described test report sent to related personnel, and wherein said test report comprises test result form or/and mobile terminal performance figure; Described mobile terminal performance figure comprises mobile terminal fault distribution post figure or/and mobile terminal fault distribution pie chart.
12. Monkey method of testings according to claim 7, is characterized in that: described Monkey method of testing also comprises the operating right determining described user according to the log-on message of user.
CN201410712955.XA 2014-11-28 2014-11-28 Monkey test system and method Pending CN104331373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410712955.XA CN104331373A (en) 2014-11-28 2014-11-28 Monkey test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410712955.XA CN104331373A (en) 2014-11-28 2014-11-28 Monkey test system and method

Publications (1)

Publication Number Publication Date
CN104331373A true CN104331373A (en) 2015-02-04

Family

ID=52406105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410712955.XA Pending CN104331373A (en) 2014-11-28 2014-11-28 Monkey test system and method

Country Status (1)

Country Link
CN (1) CN104331373A (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653452A (en) * 2015-12-30 2016-06-08 北京金山安全软件有限公司 Method and device for testing application program
CN105760301A (en) * 2016-02-24 2016-07-13 惠州Tcl移动通信有限公司 Automatic testing method and system based on Monkey command
CN106095682A (en) * 2016-06-15 2016-11-09 浪潮软件集团有限公司 Android application stability test method for simulating complex network
CN106294122A (en) * 2016-07-20 2017-01-04 苏州博众精工科技有限公司 The software test platform of a kind of standard and method of testing thereof
CN106383780A (en) * 2016-09-05 2017-02-08 努比亚技术有限公司 Monkey test method and device
CN107168878A (en) * 2017-05-22 2017-09-15 网易有道信息技术(北京)有限公司 A kind of method tested application program, device and medium
CN107247637A (en) * 2017-07-27 2017-10-13 广州云测信息技术有限公司 A kind of APP fault determination methods and device
CN107315688A (en) * 2017-06-30 2017-11-03 南昌与德通讯技术有限公司 A kind of Monkey method of testings and device
CN107423207A (en) * 2016-05-24 2017-12-01 展讯通信(天津)有限公司 System compatibility automated testing method and device
CN107678940A (en) * 2017-08-30 2018-02-09 苏州朗动网络科技有限公司 Automation exploratory testing method and system based on Android APP
CN108062276A (en) * 2017-12-19 2018-05-22 北京小度信息科技有限公司 The generation method and device of test case and the generation method and device of test report
CN108595343A (en) * 2018-06-04 2018-09-28 北京汉能光伏投资有限公司 The test method and device of application program
CN108647148A (en) * 2018-05-15 2018-10-12 深圳市同维通信技术有限公司 Test method, device, equipment and the storage medium of mobile terminal application program
CN108984363A (en) * 2018-05-23 2018-12-11 福建天泉教育科技有限公司 A kind of method and system of concurrent testing
CN109302522A (en) * 2018-09-11 2019-02-01 北京京东金融科技控股有限公司 Test method, device and computer system and medium
CN109614278A (en) * 2018-10-16 2019-04-12 深圳壹账通智能科技有限公司 The method, apparatus and terminal of positioning problems in automatic test course
CN110515794A (en) * 2019-07-26 2019-11-29 Oppo广东移动通信有限公司 Log information grasping means, device, electronic equipment and storage medium
CN110795330A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Monkey pressure testing method and device
CN111125654A (en) * 2019-12-20 2020-05-08 珠海金山网络游戏科技有限公司 Method and device for automatically logging in client based on log file and readable medium
CN111309604A (en) * 2020-02-07 2020-06-19 Tcl移动通信科技(宁波)有限公司 Offline automatic testing method and system, storage medium and mobile terminal
CN111651359A (en) * 2020-06-08 2020-09-11 北京首汽智行科技有限公司 APP stability test method
CN111694744A (en) * 2020-06-11 2020-09-22 安然 Test open method based on monkey source code
CN111950743A (en) * 2020-07-08 2020-11-17 北京思特奇信息技术股份有限公司 Method and system for solving fault work order of mobile terminal
CN113821431A (en) * 2020-12-31 2021-12-21 京东科技控股股份有限公司 Method and device for acquiring test result, electronic equipment and storage medium
CN114268569A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Configurable network operation, maintenance, acceptance and test method and device

Citations (6)

* 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
CN103049371A (en) * 2012-11-07 2013-04-17 青岛海信传媒网络技术有限公司 Testing method and testing device of Android application programs
CN103577313A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Mobile terminal application program testing method and device
CN103942146A (en) * 2014-04-22 2014-07-23 上海斐讯数据通信技术有限公司 Visual Monkey test method and device
CN104050075A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Test method and device for Andriod application program
CN104063324A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for Monkey test

Patent Citations (6)

* 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
CN103049371A (en) * 2012-11-07 2013-04-17 青岛海信传媒网络技术有限公司 Testing method and testing device of Android application programs
CN104050075A (en) * 2013-03-11 2014-09-17 百度国际科技(深圳)有限公司 Test method and device for Andriod application program
CN103942146A (en) * 2014-04-22 2014-07-23 上海斐讯数据通信技术有限公司 Visual Monkey test method and device
CN104063324A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for Monkey test

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
施懿民: "《Android应用测试与调试实战》", 30 April 2014, 机械工业出版社 *

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653452A (en) * 2015-12-30 2016-06-08 北京金山安全软件有限公司 Method and device for testing application program
CN105760301A (en) * 2016-02-24 2016-07-13 惠州Tcl移动通信有限公司 Automatic testing method and system based on Monkey command
CN105760301B (en) * 2016-02-24 2019-07-09 惠州Tcl移动通信有限公司 A kind of automated testing method and system based on Monkey order
CN107423207A (en) * 2016-05-24 2017-12-01 展讯通信(天津)有限公司 System compatibility automated testing method and device
CN106095682A (en) * 2016-06-15 2016-11-09 浪潮软件集团有限公司 Android application stability test method for simulating complex network
CN106294122B (en) * 2016-07-20 2019-02-01 博众精工科技股份有限公司 A kind of software test platform and its test method of standard
CN106294122A (en) * 2016-07-20 2017-01-04 苏州博众精工科技有限公司 The software test platform of a kind of standard and method of testing thereof
CN106383780A (en) * 2016-09-05 2017-02-08 努比亚技术有限公司 Monkey test method and device
CN107168878A (en) * 2017-05-22 2017-09-15 网易有道信息技术(北京)有限公司 A kind of method tested application program, device and medium
CN107168878B (en) * 2017-05-22 2020-06-09 网易有道信息技术(北京)有限公司 Method, device and medium for testing application program
CN107315688A (en) * 2017-06-30 2017-11-03 南昌与德通讯技术有限公司 A kind of Monkey method of testings and device
CN107247637A (en) * 2017-07-27 2017-10-13 广州云测信息技术有限公司 A kind of APP fault determination methods and device
CN107678940A (en) * 2017-08-30 2018-02-09 苏州朗动网络科技有限公司 Automation exploratory testing method and system based on Android APP
CN108062276A (en) * 2017-12-19 2018-05-22 北京小度信息科技有限公司 The generation method and device of test case and the generation method and device of test report
CN108647148A (en) * 2018-05-15 2018-10-12 深圳市同维通信技术有限公司 Test method, device, equipment and the storage medium of mobile terminal application program
CN108984363A (en) * 2018-05-23 2018-12-11 福建天泉教育科技有限公司 A kind of method and system of concurrent testing
CN108984363B (en) * 2018-05-23 2022-08-30 福建天泉教育科技有限公司 Parallel test method and system
CN108595343A (en) * 2018-06-04 2018-09-28 北京汉能光伏投资有限公司 The test method and device of application program
CN110795330A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Monkey pressure testing method and device
CN109302522A (en) * 2018-09-11 2019-02-01 北京京东金融科技控股有限公司 Test method, device and computer system and medium
CN109614278A (en) * 2018-10-16 2019-04-12 深圳壹账通智能科技有限公司 The method, apparatus and terminal of positioning problems in automatic test course
CN110515794A (en) * 2019-07-26 2019-11-29 Oppo广东移动通信有限公司 Log information grasping means, device, electronic equipment and storage medium
CN111125654A (en) * 2019-12-20 2020-05-08 珠海金山网络游戏科技有限公司 Method and device for automatically logging in client based on log file and readable 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
CN111651359A (en) * 2020-06-08 2020-09-11 北京首汽智行科技有限公司 APP stability test method
CN111694744A (en) * 2020-06-11 2020-09-22 安然 Test open method based on monkey source code
CN111950743A (en) * 2020-07-08 2020-11-17 北京思特奇信息技术股份有限公司 Method and system for solving fault work order of mobile terminal
CN114268569A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Configurable network operation, maintenance, acceptance and test method and device
CN114268569B (en) * 2020-09-16 2023-10-31 中盈优创资讯科技有限公司 Configurable network operation and maintenance acceptance test method and device
CN113821431A (en) * 2020-12-31 2021-12-21 京东科技控股股份有限公司 Method and device for acquiring test result, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104331373A (en) Monkey test system and method
CN109302522B (en) Test method, test device, computer system, and computer medium
CN108959068B (en) Software interface testing method, device and storage medium
CN104407980B (en) Mobile solution automatic test device and method
US8645912B2 (en) System and method for use in replaying software application events
US8589886B2 (en) System and method for automatic hardware and software sequencing of computer-aided design (CAD) functionality testing
CN106649107B (en) Automatic testing method and device for stability of android system
CN101710352B (en) Method, system and graphical user interface for configuring simulator and simulating a plurality of devices
US20130263090A1 (en) System and method for automated testing
CN103049371A (en) Testing method and testing device of Android application programs
WO2019000551A1 (en) Vr integrated machine testing tool and method therefor
CN108595343A (en) The test method and device of application program
CN108830383B (en) Method and system for displaying machine learning modeling process
WO2021129335A1 (en) Operation monitoring method and apparatus, operation analysis method and apparatus
CN105786695A (en) Data test method and system
CN104820565B (en) Slide command processing method and terminal
WO2016015220A1 (en) Executable code abnormality detection
CN114546738A (en) Server general test method, system, terminal and storage medium
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN112416676A (en) Testing tool applied to testing chip
CN112433948A (en) Simulation test system and method based on network data analysis
CN106528429A (en) UI testing method and device
CN105138458A (en) Method and system for recording automatic testing scripts by combining intelligent terminal and computer terminal
CN106383765A (en) Data monitoring method and apparatus
CN105339974B (en) Analog sensor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150204