CN106155907A - A kind of automated testing method, device and computing device - Google Patents

A kind of automated testing method, device and computing device Download PDF

Info

Publication number
CN106155907A
CN106155907A CN201610521151.0A CN201610521151A CN106155907A CN 106155907 A CN106155907 A CN 106155907A CN 201610521151 A CN201610521151 A CN 201610521151A CN 106155907 A CN106155907 A CN 106155907A
Authority
CN
China
Prior art keywords
test
command
mobile terminal
order
test command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610521151.0A
Other languages
Chinese (zh)
Other versions
CN106155907B (en
Inventor
潘加旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ruide Baocheng Technology Co.,Ltd.
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201610521151.0A priority Critical patent/CN106155907B/en
Publication of CN106155907A publication Critical patent/CN106155907A/en
Application granted granted Critical
Publication of CN106155907B publication Critical patent/CN106155907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses a kind of automated testing method, perform in computing device, the method includes: sets up described computing device with at least one tested mobile terminal and is connected;Judge whether to reach the scheduled time, if so, then: the test object of tested mobile terminal is updated to latest edition;Obtain the first test command of storage in the first file, the test command that described first test command is made mistakes for test object in last automatic test course;Obtaining the second test command of storage in the second file, described second test command is the test command arranging for this automatic test;Described test object performs described first test command and the second test command;Record test case;Generate test report according to described test case, described test report is sent to related personnel by mail.Use the automatic test device of above-mentioned application automated testing method and the computing device comprising above-mentioned automatic test device additionally, the invention also discloses.

Description

A kind of automated testing method, device and computing device
Technical field
The present invention relates to mobile terminal test field, particularly relate to a kind of automated testing method, device and computing device.
Background technology
With development and the maturation of mobile communication technology, the application of various mobile terminals and operating system emerge in an endless stream.For Ensure that application and operating system can normally work, need to test it before issue.Monkey test is a kind of normal Method of testing.Existing Monkey test needs to be connected PC end with mobile terminal, is then come by CMD order at PC end Perform test.In this method, perform test, analyze test result, test result is fed back to research staff etc. be required to hand Dynamic execution, needs manual intervention more, complex operation, inefficiency.
For disadvantages described above, existing processing method can build Monkey in PC system and perform system, and this is in certain journey The execution of Monkey test is facilitated on degree.But the method only simplifies the structure to Monkey test command, at test process Need nonetheless remain for tester to manually perform, and feedback test result.Whole testing process automates not, and inefficiency is right The displaying of test result is also not prompt enough and directly perceived.
Content of the invention
To this end, the present invention provides a kind of automated testing method, device and computing device, to try hard to solve or at least slow Solve the problem existing above.
According to an aspect of the present invention, provide a kind of automated testing method, perform in computing device, the method bag Include: described computing device is set up with at least one tested mobile terminal and is connected;Judge whether to reach the scheduled time, if so, then: The test object of tested mobile terminal is updated to latest edition;Obtain the first test command of storage in the first file, described The test command that first test command is made mistakes for test object in last automatic test course;Obtain in the second file and store The second test command, described second test command for for this automatic test arrange test command;Right in described test Perform described first test command and the second test command as upper;Record test case;Generate test according to described test case Described test report is sent to related personnel by report by mail.
Alternatively, in the automated testing method according to the present invention, the scheduled time is point in evening 12.
Alternatively, in the automated testing method according to the present invention, test object includes application and operating system.
Alternatively, in the automated testing method according to the present invention, the test object of tested mobile terminal is updated to The step of latest edition includes: judge that the version number of described test object and the version number of the latest edition of storage in server are No identical, if it is different, then: if test object is application, then the described application by adb order unloading legacy version, from server Place obtains the installation kit of the latest edition of described application, and the installation kit by described latest edition is attached to described tested mobile whole End;If test object is operating system, then by adb order, the OTA upgrade file of described operating system is copied to tested shifting In dynamic terminal, described operating system is upgraded.
Alternatively, in the automated testing method according to the present invention, described tested mobile terminal performs described The step of one test command and the second test command includes: described first test command and described second test command are stored in and are treated Survey order array;For each order to be measured in order array to be measured, choose a tested shifting being currently not carried out test Dynamic terminal, performs this order to be measured on the test object of this tested mobile terminal.
Alternatively, in the automated testing method according to the present invention, the step of record test case includes: be test day Will and record screen video specify storing path in the server;Opening daily record monitor process and record screen process, described daily record is monitored Process is adapted for listening for test log, and described record screen process is suitable to the screen to tested mobile terminal for the time at each interval and carries out Video recording;When described daily record monitor process listens to the information that described test object is made mistakes in test log, record is tested The test log of object error message stores to described server with the record screen video that have recorded the test object scene of makeing mistakes Storing path, and store the order to be measured making test object make mistakes to described first file.
Alternatively, in the automated testing method according to the present invention, the first interval time was 3 minutes.
Alternatively, in the automated testing method according to the present invention, test report is html form.
Alternatively, in the automated testing method according to the present invention, test report includes testing when object is made mistakes Test log link and record screen video link.
According to an aspect of the present invention, provide a kind of automatic test device, reside in computing device, this device bag Include: time block, be suitable to judge whether to reach the scheduled time, if so, then automatically build test environment, start automatic test mistake Journey;More new module, is suitable to the test object of tested mobile terminal is updated to latest edition;Test module, is suitable to obtain first First test command of storage in file and the second test command of storage in the second file, and perform on described test object Described first test command and the second test command, wherein, described first test command is in last automatic test course The test command that test object is made mistakes, described second test command is the test command arranging for this automatic test;Record Module, is suitable to record test case;Feedback module, is suitable to generate test report according to described test case, by described test report Accuse and sent to related personnel by mail.
Alternatively, in the automatic test device according to the present invention, time block is further adapted for setting the described scheduled time It is set to point in evening 12.
Alternatively, in the automatic test device according to the present invention, test object includes application and operating system.
Alternatively, in the automatic test device according to the present invention, more new module is further adapted for: judge described test Whether the version number of object is identical with the version number of the latest edition of storage in server, if it is different, then: if test object is for answering With then the described application by adb order unloading legacy version, obtains the installation of the latest edition of described application at server Wrap, and the installation kit by described latest edition is attached to described tested mobile terminal;If test object is operating system, then pass through Adb order is copied to the OTA upgrade file of described operating system in tested mobile terminal, rises described operating system Level.
Alternatively, in the automatic test device according to the present invention, test module is further adapted for: survey described first Examination order and described second test command are stored in order array to be measured;For each order to be measured in order array to be measured, Choose a tested mobile terminal being currently not carried out test, the test object of this tested mobile terminal performs this life to be measured Order.
Alternatively, in the automatic test device according to the present invention, logging modle is further adapted for: for test log and Record screen video specifies storing path in the server;Open daily record monitor process and record screen process, described daily record monitor process Being adapted for listening for test log, described record screen process is suitable to the screen to tested mobile terminal for the time at each interval and records Picture;When described daily record monitor process listens to the information that described test object is made mistakes in test log, it is right to test record As the test log of error message stores the guarantor to described server with the record screen video that have recorded the test object scene of makeing mistakes Deposit path, and store the order to be measured making test object make mistakes to described first file.
Alternatively, in the automatic test device according to the present invention, the first interval time was 3 minutes.
Alternatively, in the automatic test device according to the present invention, test report is html form.
Alternatively, in the automatic test device according to the present invention, test report includes testing when object is made mistakes Test log link and record screen video link.
According to an aspect of the present invention, a kind of computing device is provided, including as above automatic test device.
The technical scheme that the present invention provides achieves the automation of Monkey test, timing every day can perform test and remember Record test case.After test terminates, generate test report according to test case, and test report is sent to phase by mail Close research staff.This programme decreases the manual intervention in test process, has saved human cost, drastically increases test effect Rate.Additionally, test report includes test log link and the record screen video link made mistakes, related research staff can pass through a little The mode hitting link is directly viewable test log when makeing mistakes and record screen video, it is simple to positions mistake, improves research and development Personnel solve the efficiency of problem.
Brief description
In order to realize above-mentioned and related purpose, herein in conjunction with explained below and accompanying drawing, some illustrative side is described Face, these aspects indicate the various modes that can put into practice principles disclosed herein, and all aspects and equivalence aspect thereof In the range of being intended to fall under theme required for protection.By reading in conjunction with the accompanying detailed description below, the disclosure above-mentioned And other purposes, feature and advantage will be apparent from.Throughout the disclosure, identical reference generally refers to identical Parts or element.
Fig. 1 shows the structure of the computing device 100 including automatic test device according to an embodiment of the invention Figure;
Fig. 2 shows the structure chart of automatic test device 200 according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of the mail including test report according to an embodiment of the invention;
Fig. 4 shows the flow chart of automated testing method 400 according to an embodiment of the invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to be able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Fig. 1 shows the structure of the computing device 100 including automatic test device according to an embodiment of the invention Figure.As it is shown in figure 1, computing device 100 includes system storage 106, the 120th, system storage 106 can include operating system One or more application 122 and routine data 126.In some embodiments, 122 are applied to may be arranged in operation system Routine data 126 is utilized to operate on system.In the present invention, 122 are applied can be configured to include automatic test device 200.According to a kind of embodiment, automatic test device 200 can be the continuous integration system built by Jenkins.Automatically Change test device 200 and can run Monkey test with self-timing, and automatically update test object, when mistake (Bug) occurs, Automatically test log when makeing mistakes and record screen video are uploaded onto the server.After test terminates, generate according to test case and survey Examination report, and test report is sent to related research staff by mail.Test report includes the test log chain made mistakes Connect and record screen video link, related research staff can be directly viewable by way of clickthrough test log when makeing mistakes and Record screen video.Automatic test device 200 decreases the manual intervention in test process, has saved human cost, greatly carries High testing efficiency, meanwhile, also allows for positioning mistake, improves research staff and solve the efficiency of problem.
Fig. 2 shows the structure chart of automatic test device 200 according to an embodiment of the invention.As in figure 2 it is shown, from Dynamicization test device 200 includes that the 220th, time block the 210th, more new module tests module the 230th, logging modle 240 and feedback module 250。
Time block 210 is suitable to judge whether to reach the scheduled time, if so, then automatically builds test environment, starts automatically Change test process.According to a kind of embodiment, automatic test device 200 is the continuous integration system built by Jenkins, fixed When module 210 by arrange the Build periodically parameter in Jenkins system realize timing build.According to one Embodiment, the scheduled time can be set to some every night 12 by time block 210, then at 12 in every evening will build automatically Test environment simultaneously opens automatic test course.Certainly, in other examples, time block 210 can also use other Implementation, the scheduled time, the present invention was to the specific implementation of time block and pre-it can also be provided that other numerical value The setting of the value fixed time is simultaneously unrestricted.
More new module 220 is suitable to the test object of tested mobile terminal is updated to latest edition.According to a kind of embodiment, Automatic test device 200 is the continuous integration system built by Jenkins, and more new module 220 passes through Subversion Plugin plug-in unit carrys out the version of configuration testing object download address in the server.When test tested mobile terminal being detected When the version number of object is different from the latest edition number of storage in server, at the download address having configured, download latest edition Installation file, update the version of test object in tested mobile terminal.Test object can be mobile terminal application or behaviour Make system.When testing object for application, more new module 220 is by the application of adb order unloading legacy version, from the clothes having configured Obtain the installation kit of this application latest edition at business device download address, and the installation kit of latest edition is attached to tested mobile whole End.When testing object and being operating system, more new module 220 obtains this operating system at the server download address having configured OTA upgrade file, be copied to this OTA upgrade file in tested mobile terminal by adb order, operating system risen Level.
Test module 230 is suitable to perform test command on test object, i.e. performs concrete test process.Test module 230 can be one of Jenkins system module, it is also possible to be a Jenkins system call for performing Monkey The application program of test.When testing module 230 and being the application program that performs Monkey test, more new module 220 also may be used By the corresponding download address of Subversion this application program of Plugin plug-in card configuration, to perform automatic test each When, by the application program update of this execution Monkey test to latest edition.
In each automatic test, first test module 230 obtains test command from the text of computing device. Specifically, test module 230 and obtain the second survey of storage in the first test command storing in the first file and the second file Examination order, and perform described first test command and the second test command on test object.Wherein, the first test command is upper Testing the test command that object is made mistakes in automatic test course, the second test command is for arranging for this automatic test Test command.It is to say, for each automatic test, the test command of execution include the test command made mistakes last time and This test command arranging.In each automatic test, test object is all updated to latest edition, and what last time made mistakes Test command is to be drawn by the test object of legacy version, therefore, performs the first test command and in each automatic test Whether the test object that the scheme of two test commands can detect redaction there is also produced problem in legacy version.
According to a kind of embodiment, the entitled errorcommand.txt's that the first file can be stored in computing device Text, this document is for storage the first test command, the survey that in i.e. last automatic test course, test object is made mistakes Examination order.According to the test result of last automatic test, errorcommand.txt may have one or more the first Test command, certainly, errorcommand.txt file is likely to as sky.Second file can be stored in computing device The text of entitled monkeycommand.txt, this document, for storage the second test command, is this automatic test The test command arranging.Second test command is set by tester, can have one or more, Monkeycommand.txt typically will not be sky.
According to a kind of embodiment, test module 230 can perform the described first survey according to following steps on test object Examination order and the second test command:
First, test module 230 from the first file, obtain the first test command, from the second file, obtain the second test Order, and the first test command and the second test command are stored in order array to be measured.Subsequently, the first file is emptied.For example, One file includes the first test command the 1st, 2, and the second file includes the second test command 3~10, then in order array D to be measured Including 10 orders to be measured, order 1~10 respectively to be measured, order array D=i.e. to be measured [order 1 to be measured, order to be measured 2 ..., order 10 to be measured].
Then, obtain the number of the tested mobile terminal being currently connected to computing device, and obtain each tested mobile terminal ID.For each order to be measured in order array to be measured, choose a tested mobile terminal being currently not carried out test, The test object of this tested mobile terminal performs this order to be measured.Owing to the first test command is last automatic test During the Monkey test command that performed, therefore the first test command includes seed value, can directly be performed. That is, when order to be measured is the first test command, this order to be measured can directly be held on the test object of tested mobile terminal OK.Second test command is the test command for this test setting, is not yet performed, therefore does not all wrap in the second test command Include seed value.When order to be measured is the second test command, first test module 230 is that this order interpolation to be measured is random Then the order to be measured that with the addition of seed value is performed on the test object of tested mobile terminal by seed value again.Often perform one This order to be measured is deleted from order array to be measured by bar order to be measured.When order array to be measured is for sky, automatic test mistake Journey terminates.
For example, order array D=to be measured [order 1 to be measured, to be measured order 2 ..., to be measured order 10], have 6 tested movements Terminal is connected to computing device, and the ID of tested mobile terminal is respectively 1~6.When the initial time that automatic test course starts, Tested mobile terminal 1~6 is in idle condition, is i.e. all not carried out test.Test module 230 by be measured order 1 distribute to by Survey mobile terminal 1, on the test object of tested mobile terminal, i.e. perform order 1 to be measured.If order 1 to be measured is the first test life Order, then it can directly perform on the test object of tested mobile terminal 1;If order 1 to be measured is the second test command, then survey First die trial block 230 adds a random seed value for it, then will with the addition of the order to be measured 1 of seed value in tested shifting again Perform on the test object of dynamic terminal 1.Subsequently, order 1 to be measured is deleted from order array D to be measured.So, command number to be measured Group D also has 9 orders to be measured, order 2~10 respectively to be measured.The like, test module 230 is then by order 2 to be measured ~6 are respectively allocated to tested mobile terminal 2~6, i.e. perform life to be measured on the test object of tested mobile terminal 2~6 respectively Make 2~6, and order 2~6 to be measured is deleted from order array D to be measured.At this moment, all of tested mobile terminal is all performing Test.Whether test module 230 can open a process, monitor and have tested mobile terminal idle.If listening to certain quilt After surveying the mobile terminal free time, then further order 7 to be measured is distributed to the tested mobile terminal of this free time, tested mobile whole at this Order 7 to be measured is performed on the test object of end.For example, tested mobile terminal 3 is initially completed the test of order 3 to be measured, enters sky Not busy state, then test module 230 is following distributes to tested mobile terminal 3 by order 7 to be measured.When in order array D to be measured After all orders to be measured are both assigned to tested mobile terminal execution, order array D to be measured is sky, this automatic test course Terminate.
Logging modle 240 is suitable to record test case.According to a kind of embodiment, remembered by test log and record screen video Record test case.Automatic test device 200 is the continuous integration system built by Jenkins, starts at automatic test Before, logging modle 240 uses Publish Over CIFS plug-in unit to be test log and record screen video appointment in the server Storing path.At the initial time that automatic test starts, logging modle 240 opens daily record monitor process and record screen process.Its In, daily record monitor process is adapted for listening for test log, record screen process be suitable at each interval the time to tested mobile terminal Screen is recorded a video.According to a kind of embodiment, the first interval time was 3 minutes, i.e. every 3 minutes screens to tested mobile terminal Curtain record a video, that is, each record screen video when a length of 3 minutes.Certainly, may be also configured to other the first interval time Numerical value, the setting to the first interval time for the present invention does not limits.
When daily record monitor process listens to the information that described test object is made mistakes in test log, it is right to test record As the test log of error message stores to the server setting with the record screen video that have recorded the test object scene of makeing mistakes Storing path, and store the order to be measured making test object make mistakes to the first file.So, at upper once automatic test During, equally perform the order in the first file, i.e. test this order to be measured making test object make mistakes, with detection Whether the test object of redaction there is also produced problem in legacy version.
Feedback module 250 is suitable to generate test report according to the test case that logging modle 240 records, and by test report Sent to related research staff by mail.According to a kind of embodiment, automatic test device 200 is to be taken by Jenkins The continuous integration system built, feedback module 250 is the Email Extension Plugin plug-in unit of Jenkins system, Ke Yisheng Become the test report of html form, and by mail, this test report is sent to research staff.Specifically, Email Extension Plugin plug-in unit can be according to the html template setting, in the test log to logging modle 240 record Critical field filters, and generates the test report of html form, and by mail, this test report is sent to research staff. Test report includes testing test log link when object is made mistakes and record screen video link, and research staff can be by clicking on The mode of link is directly viewable test log when makeing mistakes and record screen video, it is simple to positions mistake, improves research and development people Member solves the efficiency of problem.According to a kind of embodiment, if clicking on record screen video link, then directly play this video;Survey if clicking on Examination daily record link, then be downloaded to this test log.
Fig. 3 shows the schematic diagram of the mail including test report according to an embodiment of the invention.As it is shown on figure 3, Test report includes the information such as test object version number, tested mobile terminal ID, order to be measured and concrete test case. 13rd, 10th, 6th, order to be measured 21 all make test object make mistakes, and can be linked and record screen video link by hit testing daily record and fetch and look into Find out the test log staggered the time and record screen video details.
Fig. 4 shows the flow chart of automated testing method 400 according to an embodiment of the invention, and the method is calculating Equipment performs.As shown in Figure 4, the method starts from step S410.
In step S410, computing device is set up with at least one tested mobile terminal and is connected.Establishment of connection is permissible It by modes such as data wire, WIFI, bluetooths, but is not limited to this.According to a kind of embodiment, also need to upon establishment of a connection obtain respectively The ID of tested mobile terminal, to facilitate in subsequent automated test process as each tested mobile terminal distribution order to be measured.
Subsequently, in the step s 420, it may be judged whether reach the scheduled time, if so, then further step S430.Step S420 can realize that timing automaticization is tested.
Subsequently, in step S430, the test object of tested mobile terminal is updated to latest edition.Concrete is updated Journey is referred to the aforementioned description to more new module 220, and here is omitted.
Subsequently, in step S430~S450, obtain the first test command of storage in the first file, obtain the second file Second test command of middle storage, and perform the first test command and the second test command on test object.Pass through step S430~S450, for each automatic test, the test command of execution includes test command and this setting makeing mistakes last time Test command, whether the test object that the program can detect redaction there is also produced problem in legacy version.According to one Plant embodiment, the concrete execution process of the first test command and the second test command can be realized by order array to be measured, That is, the first test command and the second test command are stored in order array to be measured;Each in order array to be measured is treated Survey order, choose a tested mobile terminal being currently not carried out test, the test object of this tested mobile terminal performs This order to be measured.Concrete execution process is referred to the aforementioned description to test module 230, and here is omitted.
Subsequently, in step S460, test case is recorded.According to a kind of embodiment, by test log and record screen video Record test case.It before automatic test starts, is test log and record screen video appointment preservation in the server Path.At the initial time that automatic test starts, open daily record monitor process and record screen process, wherein, daily record monitor process Being adapted for listening for test log, record screen process is suitable to the screen to tested mobile terminal for the time at each interval and records a video.Root According to a kind of embodiment, the first interval time was 3 minutes.When daily record monitor process listens to described test object in test log During the information made mistakes, the test log of record test object error message and the record screen that have recorded the test object scene of makeing mistakes are regarded Frequency stores the storing path to the server setting, and stores the order to be measured making test object make mistakes to the first literary composition Part.So, in upper once automatic test course, equally performing the order in the first file, i.e. testing this makes survey The order to be measured that examination object is made mistakes, whether the test object to detect redaction there is also produced problem in legacy version.
Subsequently, in step S470, generate test report according to test case, test report is sent to phase by mail Pass personnel.According to a kind of embodiment, test report is html form, and test report includes testing test day when object is made mistakes Will link and record screen video link, research staff can be directly viewable by way of clickthrough test log when makeing mistakes and Record screen video, it is simple to mistake is positioned, improves research staff and solve the efficiency of problem.
The technical scheme that the present invention provides achieves the automation of Monkey test, timing every day can perform test and remember Record test case.After test terminates, generate test report according to test case, and test report is sent to phase by mail Close research staff.This programme decreases the manual intervention in test process, has saved human cost, drastically increases test effect Rate.Additionally, test report includes test log link and the record screen video link made mistakes, related research staff can pass through a little The mode hitting link is directly viewable test log when makeing mistakes and record screen video, it is simple to positions mistake, improves research and development Personnel solve the efficiency of problem.
Automated testing method described in A6:A5, wherein, the step of described record test case includes: be test log Specify storing path in the server with record screen video;Open daily record monitor process and record screen process, described daily record monitor into Journey is adapted for listening for test log, and described record screen process is suitable to the screen to tested mobile terminal for the time at each interval and records Picture;When described daily record monitor process listens to the information that described test object is made mistakes in test log, it is right to test record As the test log of error message stores the guarantor to described server with the record screen video that have recorded the test object scene of makeing mistakes Deposit path, and store the order to be measured making test object make mistakes to described first file.Automatic test side described in A7:A6 Method, wherein, described first interval time is 3 minutes.Automated testing method described in A8:A1, wherein, described test report is Html form.Automated testing method described in A9:A1, wherein, described test report includes testing survey when object is made mistakes Examination daily record link and record screen video link.
Automatic test device described in B14:B10, wherein, described test module is further adapted for: survey described first Examination order and described second test command are stored in order array to be measured;For each order to be measured in order array to be measured, Choose a tested mobile terminal being currently not carried out test, the test object of this tested mobile terminal performs this life to be measured Order.Automatic test device described in B15:B14, wherein, described logging modle is further adapted for: regard with record screen for test log Frequency specifies storing path in the server;Opening daily record monitor process and record screen process, described daily record monitor process is suitable to prison Listening test log, described record screen process is suitable to the screen to tested mobile terminal for the time at each interval and records a video;Work as institute State daily record monitor process when listening to the information that described test object is made mistakes in test log, object is tested in record and makes mistakes letter The test log of breath stores the storing path to described server with the record screen video that have recorded the test object scene of makeing mistakes, and Store the order to be measured making test object make mistakes to described first file.Automatic test device described in B16:B15, its In, described first interval time is 3 minutes.Automatic test device described in B17:B10, wherein, described test report is Html form.Automatic test device described in B18:B10, wherein, described test report includes testing when object is made mistakes Test log link and record screen video link.
In specification mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, knot Structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.But, the method for the disclosure should be construed to reflect an intention that i.e. required guarantor The application claims protecting is than the feature more features being expressly recited in each claim.More precisely, as following As claims are reflected, inventive aspect is all features less than single embodiment disclosed above.Therefore, abide by The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself Independent embodiment as the present invention.
Those skilled in the art should be understood the module of the equipment in example disclosed herein or unit or group Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in this example In different one or more equipment.Module in aforementioned exemplary can be combined as a module or be segmented into multiple in addition Submodule.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any Combination is to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoints Where all processes or the unit of method or equipment is combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature the alternative features providing identical, equivalent or similar purpose can be carried out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In some included feature rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection appoint One of meaning can mode use in any combination.
Additionally, some in described embodiment be described as at this can be by the processor of computer system or by performing The method of other devices enforcement of described function or the combination of method element.Therefore, have for implementing described method or method The processor of the necessary instruction of element is formed for implementing the method or the device of method element.Additionally, device embodiment This described element is the example of following device: this device is for implementing by performed by the element of the purpose in order to implement this invention Function.
As used in this, unless specifically stated so, ordinal number " first ", " second ", " the 3rd " etc. is used Describe plain objects and be merely representative of the different instances relating to similar object, and be not intended to imply that the object being so described must Must have the time upper, spatially, sequence aspect or given order in any other manner.
Although describing the present invention according to the embodiment of limited quantity, but benefit from above description, the art In it is clear for the skilled person that in the scope of the present invention thus describing, it can be envisaged that other embodiments.Additionally, it should be noted that The language that uses in this specification primarily to the purpose of readable and teaching and select, rather than in order to explain or limit Determine subject of the present invention and select.Therefore, in the case of without departing from the scope of the appended claims and spirit, for this For the those of ordinary skill of technical field, many modifications and changes will be apparent from.For the scope of the present invention, to this It is illustrative and not restrictive for inventing done disclosure, and it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (10)

1. an automated testing method, performs in computing device, and the method includes:
Described computing device is set up with at least one tested mobile terminal and is connected;
Judge whether to reach the scheduled time, if so, then
The test object of tested mobile terminal is updated to latest edition;
Obtaining the first test command of storage in the first file, described first test command is in last automatic test course The test command that test object is made mistakes;
Obtaining the second test command of storage in the second file, described second test command is arranged for this automatic test Test command;
Described test object performs described first test command and the second test command;
Record test case;
Generate test report according to described test case, described test report is sent to related personnel by mail.
2. automated testing method as claimed in claim 1, wherein, the described scheduled time is point in evening 12.
3. automated testing method as claimed in claim 1, wherein, described test object includes application and operating system.
4. the test object of tested mobile terminal wherein, described is updated to by automated testing method as claimed in claim 3 The step of latest edition includes:
Judge that whether the version number of described test object is identical with the version number of the latest edition of storage in server, if it is different, Then
If test object is application, then the described application by adb order unloading legacy version, at server, obtain described application The installation kit of latest edition, and the installation kit by described latest edition is attached to described tested mobile terminal;
If test object is operating system, then by adb order, the OTA upgrade file of described operating system is copied to tested shifting In dynamic terminal, described operating system is upgraded.
5. automated testing method as claimed in claim 1, wherein, described performs described the in described tested mobile terminal The step of one test command and the second test command includes:
Described first test command and described second test command are stored in order array to be measured;
For each order to be measured in order array to be measured, choose a tested mobile terminal being currently not carried out test, The test object of this tested mobile terminal performs this order to be measured.
6. an automatic test device, resides in computing device, and this device includes:
Time block, is suitable to judge whether to reach the scheduled time, if so, then automatically builds test environment, starts automatic test Process;
More new module, is suitable to the test object of tested mobile terminal is updated to latest edition;
Test module, is suitable to obtain the second test life of storage in the first test command of storage in the first file and the second file Order, and perform described first test command and the second test command, wherein, described first test command on described test object The test command made mistakes for test object in last automatic test course, described second test command is for automating for this The test command of test setting;
Logging modle, is suitable to record test case;
Feedback module, is suitable to generate test report according to described test case, is sent to phase described test report by mail Pass personnel.
7. automatic test device as claimed in claim 6, wherein, described time block is further adapted for setting the described scheduled time It is set to point in evening 12.
8. automatic test device as claimed in claim 6, wherein, described test object includes application and operating system.
9. automatic test device as claimed in claim 8, wherein, described more new module is further adapted for:
Judge that whether the version number of described test object is identical with the version number of the latest edition of storage in server, if it is different, Then
If test object is application, then the described application by adb order unloading legacy version, at server, obtain described application The installation kit of latest edition, and the installation kit by described latest edition is attached to described tested mobile terminal;
If test object is operating system, then by adb order, the OTA upgrade file of described operating system is copied to tested shifting In dynamic terminal, described operating system is upgraded.
10. a computing device, including the automatic test device as according to any one of claim 6-9.
CN201610521151.0A 2016-07-04 2016-07-04 A kind of automated testing method, device and calculate equipment Active CN106155907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610521151.0A CN106155907B (en) 2016-07-04 2016-07-04 A kind of automated testing method, device and calculate equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610521151.0A CN106155907B (en) 2016-07-04 2016-07-04 A kind of automated testing method, device and calculate equipment

Publications (2)

Publication Number Publication Date
CN106155907A true CN106155907A (en) 2016-11-23
CN106155907B CN106155907B (en) 2018-12-18

Family

ID=58061641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610521151.0A Active CN106155907B (en) 2016-07-04 2016-07-04 A kind of automated testing method, device and calculate equipment

Country Status (1)

Country Link
CN (1) CN106155907B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775911A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 A kind of method of testing and device for application and development
CN107391213A (en) * 2017-08-29 2017-11-24 郑州云海信息技术有限公司 A kind of method, apparatus of memory apparatus system upgrading and a kind of upgrade-system
CN107480049A (en) * 2017-07-14 2017-12-15 东软集团股份有限公司 Defect-restoration method therefor, device and computer equipment
CN107577594A (en) * 2017-07-12 2018-01-12 捷开通讯(深圳)有限公司 The abnormal method of record test, intelligent terminal and the device with store function
CN107832214A (en) * 2017-11-06 2018-03-23 广东欧珀移动通信有限公司 Method of testing, device, storage medium, terminal device and system
CN108108294A (en) * 2017-12-29 2018-06-01 北京奇虎科技有限公司 A kind of method and system that customization operation data are obtained according to fiducial time
CN108121640A (en) * 2017-12-29 2018-06-05 北京奇虎科技有限公司 A kind of method and system for the operation data of acquisition application automatically
CN108399125A (en) * 2018-02-08 2018-08-14 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium
CN110309039A (en) * 2019-05-16 2019-10-08 平安科技(深圳)有限公司 Automation obtains method, apparatus, equipment and the storage medium of application log
CN112579424A (en) * 2019-09-27 2021-03-30 大唐移动通信设备有限公司 Automatic testing method and testing execution machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040186694A1 (en) * 2003-01-10 2004-09-23 Canon Kabushiki Kaisha Monitoring apparatus, management method and program therefor, and management apparatus and management method and program therefor
CN104809054A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Method and system for realizing program testing
CN105512036A (en) * 2015-12-12 2016-04-20 天津南大通用数据技术股份有限公司 Test template for automatically generating test case according to preset rules and test method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040186694A1 (en) * 2003-01-10 2004-09-23 Canon Kabushiki Kaisha Monitoring apparatus, management method and program therefor, and management apparatus and management method and program therefor
CN104809054A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Method and system for realizing program testing
CN105512036A (en) * 2015-12-12 2016-04-20 天津南大通用数据技术股份有限公司 Test template for automatically generating test case according to preset rules and test method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775911A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 A kind of method of testing and device for application and development
CN107577594A (en) * 2017-07-12 2018-01-12 捷开通讯(深圳)有限公司 The abnormal method of record test, intelligent terminal and the device with store function
CN107480049A (en) * 2017-07-14 2017-12-15 东软集团股份有限公司 Defect-restoration method therefor, device and computer equipment
CN107391213A (en) * 2017-08-29 2017-11-24 郑州云海信息技术有限公司 A kind of method, apparatus of memory apparatus system upgrading and a kind of upgrade-system
CN107832214A (en) * 2017-11-06 2018-03-23 广东欧珀移动通信有限公司 Method of testing, device, storage medium, terminal device and system
CN108108294A (en) * 2017-12-29 2018-06-01 北京奇虎科技有限公司 A kind of method and system that customization operation data are obtained according to fiducial time
CN108121640A (en) * 2017-12-29 2018-06-05 北京奇虎科技有限公司 A kind of method and system for the operation data of acquisition application automatically
CN108108294B (en) * 2017-12-29 2021-08-24 北京奇虎科技有限公司 Method and system for acquiring customized operation data according to reference time
CN108399125A (en) * 2018-02-08 2018-08-14 深圳壹账通智能科技有限公司 Automated testing method, device, computer equipment and storage medium
CN110309039A (en) * 2019-05-16 2019-10-08 平安科技(深圳)有限公司 Automation obtains method, apparatus, equipment and the storage medium of application log
CN110309039B (en) * 2019-05-16 2022-12-13 平安科技(深圳)有限公司 Method, device, equipment and storage medium for automatically acquiring application program log
CN112579424A (en) * 2019-09-27 2021-03-30 大唐移动通信设备有限公司 Automatic testing method and testing execution machine

Also Published As

Publication number Publication date
CN106155907B (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN106155907B (en) A kind of automated testing method, device and calculate equipment
US8589886B2 (en) System and method for automatic hardware and software sequencing of computer-aided design (CAD) functionality testing
CN106814629B (en) Method and device for controlling smart home
US20140365174A1 (en) Meter data management testing
CN109302522A (en) Test method, device and computer system and medium
CN106776294B (en) Automatic android mobile phone testing method and system
KR101637371B1 (en) System for testing an application use for a smart device and method therefor
CN106933729A (en) A kind of method of testing and system based on cloud platform
US20090018675A1 (en) Process Control System and Method for Operating a Process Control System
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN110321273A (en) A kind of business statistical method and device
CN108763085A (en) On-line debugging device, method and the computer readable storage medium of test cases
CN108563579A (en) White-box testing method, apparatus, system and storage medium
CN106126414A (en) Application software testing method and system
RU2294015C2 (en) Method for automatic modeling of system for controlling process and system for controlling process
CN113190443A (en) Test method, test device, computer equipment and storage medium
CN109739704A (en) A kind of interface test method, server-side and computer readable storage medium
CN113778903B (en) Method and system for generating test case of power distribution terminal and storage medium
CN106201852A (en) A kind of distributed test method and test system
CN110262932A (en) Android plate test method, system and computer readable storage medium
CN109634871A (en) A kind of Software Automatic Testing Method and device based on multi-terminal devices control platform
CN109871321A (en) A kind of method and test case management platform of test case Code automatic build
CN109376073B (en) Test environment memory and recovery method
CN106648797A (en) Method and system for installing test software, test server and shared server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240315

Address after: 518000, Building C, Phase II, Haijie Jiayuan, East China Road, Dongjiaotou Community, Shekou Street, Nanshan District, Shenzhen City, Guangdong Province 1105

Patentee after: Shenzhen Ruide Baocheng Technology Co.,Ltd.

Guo jiahuodiqu after: Zhong Guo

Address before: 361009 112a, Pioneer Building, Pioneer Park, torch hi tech Zone, Xiamen City, Fujian Province

Patentee before: Xiamen Meitu Mobile Technology Co.,Ltd.

Guo jiahuodiqu before: Zhong Guo