CN105975391B - One kind restarting test method, equipment and mobile terminal - Google Patents

One kind restarting test method, equipment and mobile terminal Download PDF

Info

Publication number
CN105975391B
CN105975391B CN201610281889.4A CN201610281889A CN105975391B CN 105975391 B CN105975391 B CN 105975391B CN 201610281889 A CN201610281889 A CN 201610281889A CN 105975391 B CN105975391 B CN 105975391B
Authority
CN
China
Prior art keywords
test
mobile terminal
restarted
script
basic function
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.)
Active
Application number
CN201610281889.4A
Other languages
Chinese (zh)
Other versions
CN105975391A (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.)
Xiamen Meitu Mobile 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 CN201610281889.4A priority Critical patent/CN105975391B/en
Publication of CN105975391A publication Critical patent/CN105975391A/en
Application granted granted Critical
Publication of CN105975391B publication Critical patent/CN105975391B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

It the invention discloses test method is restarted, executes in the terminal, this method comprises: the reception for the booting broadcast message that registration sends mobile terminal;Receive selection of the tester to the test script of test mobile terminal application basic function;Receive configuration of the tester to testing time is restarted;Test is restarted according to the test script execution of configuration restarted testing time and test mobile terminal application basic function, comprising: reads the counting variable that mobile terminal after indicating to start to restart test has restarted number;Judge whether counting variable reaches and restarts testing time;If counting variable not up to restarts testing time, runs the test script of test mobile terminal application basic function and restart mobile terminal.The invention also discloses restart test equipment accordingly and restart the mobile terminal of test equipment comprising this.

Description

One kind restarting test method, equipment and mobile terminal
Technical field
The present invention relates to testing field is applied, in particular to one kind restarts test method, equipment and mobile terminal.
Background technique
When carrying out pressure test to mobile terminal operating system, enter operation system to test mobile terminal success System, or test is some to be related to the functions of mobile terminal switching on and shutting down operation, for example, operating system update, factory reset, opening The functions such as machine self-starting, it is necessary to allow mobile terminal constantly to restart, to verify actual conditions and whether expected situation is consistent.
Currently, the method for restart pressure test to mobile terminal operating system is still using people in testing field The method of work test, restarts mobile phone manually, then carries out pressure test.However, this test method excessively labor intensive and when Between, especially to the lower mobile terminal of BUG recurrence rate, for example, mobile terminal restart just may only occur for 1000 times it is primary or The investment of BUG several times, time and manpower is excessive and output very little, it is obvious that this way is extremely inefficient.
Summary of the invention
For this purpose, the present invention provide it is a kind of new restart test method, equipment and mobile terminal, to try hard to solve or at least Alleviate above there are the problem of.
According to an aspect of the present invention, one kind is provided and restarts test method, is executed in the terminal, this method packet It includes: the reception for the booting broadcast message that registration sends mobile terminal;It is basic to test mobile terminal application to receive tester The selection of the test script of function;Receive configuration of the tester to testing time is restarted;Testing time is restarted according to configuration Test is restarted in test script execution with test mobile terminal application basic function, comprising: is read instruction and is started after restarting test Mobile terminal has restarted the counting variable of number;Judge whether counting variable reaches and restarts testing time;If counting variable is not Reach and restart testing time, then run the test script of test mobile terminal application basic function and restarts mobile terminal;The party Method further include: the automatic running after each mobile terminal is restarted detects whether the booting broadcast letter for receiving mobile terminal transmission Breath, if receiving booting broadcast message, counting variable is incremented by, and continues to be moved according to restart testing time and the test of configuration Test is restarted in the test script execution of terminal applies basic function, until counting variable, which reaches, restarts testing time.
Optionally, restart in test method according to the present invention, test the test foot of mobile terminal application basic function This includes starting camera test script and wireless network connection test script.
Optionally, the step of restarting in test method according to the present invention, running starting camera test script includes: to open Dynamic camera applications;Judge whether camera applications start success;If camera applications do not start success, records starting camera and survey The test interface that malfunctions in this operational process of training simultaneously records the process to malfunction in test script operational process.
Optionally, restart in test method according to the present invention, the step of running wireless network connecting test script wraps It includes: judging whether the radio network functions in mobile terminal open;If the radio network functions in mobile terminal are not opened, Open the radio network functions in mobile terminal;Detect the connection status of wireless network in mobile terminal;Record wireless network Connection state information.
Optionally, restart in test method according to the present invention, register the booting broadcast message sent to mobile terminal Reception the step of include: receive tester added in itself configuration file monitoring booting broadcast message code.
According to an aspect of the present invention, it provides one kind and restarts test equipment, be resident in the terminal, comprising: broadcast Registering unit, suitable for registering the reception of the booting broadcast message sent to mobile terminal;Script selecting unit is suitable for receiving test Selection of the personnel to the test script of test mobile terminal application basic function;Parameter configuration unit is suitable for receiving tester Configuration to testing time is restarted;Test execution unit, suitable for being answered according to restart testing time and the test mobile terminal of configuration Restart test with the execution of the test script of basic function, comprising: read instruction start to restart mobile terminal after test restarted it is secondary Several counting variables judges whether counting variable reaches and restarts testing time, if counting variable not up to restarts testing time, It then runs the test script of test mobile terminal application basic function and restarts mobile terminal, and will be counted in broadcast listening unit After number variable is incremented by, weight is executed according to the test script of configuration restarted testing time and test mobile terminal application basic function Test is opened, until counting variable, which reaches, restarts testing time;Test application running unit, restarts suitable for test execution unit Automatic running restarts test equipment after mobile terminal;Broadcast listening unit, suitable for detecting after restarting test equipment automatic running Movement whether is received to pass counting variable if receiving booting broadcast message to the booting broadcast message that terminal is sent Increase predetermined value.
Optionally, restart in test equipment according to the present invention, test the test foot of mobile terminal application basic function This includes starting camera test script and wireless network connection test script.
Optionally, restart in test equipment according to the present invention, test execution unit is further adapted for: starting camera applications; Judge whether camera applications start success;If camera applications do not start success, records starting camera test script and transporting The capable test interface to malfunction in the process simultaneously records the process that test script malfunctions in the process of running.
Optionally, restart in test equipment according to the present invention, test execution unit is further adapted for: judging in mobile terminal Radio network functions whether open;If the radio network functions in mobile terminal are not opened, open in mobile terminal Radio network functions;Detect the connection status of wireless network in mobile terminal;Record the connection state information of wireless network.
Optionally, restart in test equipment according to the present invention, broadcast registration unit is further adapted for: receiving tester and exist Restart the monitoring booting broadcast message code added in the configuration file of test equipment.
According to an aspect of the present invention, a kind of mobile terminal is provided, restarts test equipment including as above.
According to the technique and scheme of the present invention, test mobile terminal is restarted by automation, saves manpower, time, improved Testing efficiency, simplifies testing process.
Detailed description of the invention
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings Face, these aspects indicate the various modes that can practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical appended drawing reference generally refers to identical Component or element.
Fig. 1 shows the structural block diagram of mobile terminal according to an embodiment of the invention;
Fig. 2 shows the structure charts according to an embodiment of the invention for restarting test equipment 200;
Fig. 3 shows the diagram of registration broadcast code according to an embodiment of the invention;
Fig. 4 shows the diagram according to an embodiment of the invention for restarting code of number;And
Fig. 5 shows the flow chart according to an embodiment of the invention for restarting test method 500.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 is the structural block diagram of mobile terminal 100.Mobile terminal 100 with multiple point touching ability may include storage Device interface 102, one or more data processors, image processor and/or central processing unit 104 and peripheral interface 106。
Memory interface 102, one or more processors 104 and/or peripheral interface 106 either discrete component, It can integrate in one or more integrated circuits.In the mobile terminal 100, various elements can pass through one or more communication Bus or signal wire couple.Sensor, equipment and subsystem may be coupled to peripheral interface 106, a variety of to help to realize Function.For example, motion sensor 110, optical sensor 112 and range sensor 114 may be coupled to peripheral interface 106, with side Just the functions such as orientation, illumination and ranging.Other sensors 116 can equally be connected with peripheral interface 106, such as positioning system (such as GPS receiver), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help to implement correlation Function.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as record photos and video clips The realization of function, wherein the camera sub-system and optical sensor for example can be charge-coupled device (CCD) or complementary gold Belong to oxide semiconductor (CMOS) optical sensor.
It can help to realize communication function by one or more radio communication subsystems 124, wherein wireless communication System may include radio-frequency transmitter and transmitter and/or light (such as infrared) Receiver And Transmitter.Radio communication subsystem 124 particular design and embodiment can depend on one or more communication networks that mobile terminal 100 is supported.For example, Mobile terminal 100 may include be designed to support GSM network, GPRS network, EDGE network, Wi-Fi or WiMax network and BlueboothTMThe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loudspeaker 128 and microphone 130, to help to implement to enable voice Function, such as speech recognition, speech reproduction, digital record and telephony feature.
I/O subsystem 140 may include touch screen controller 142 and/or other one or more input controllers 144.
Touch screen controller 142 may be coupled to touch screen 146.For example, the touch screen 146 and touch screen controller 142 can be used any one of a variety of touch-sensing technologies to detect the contact carried out therewith and movement or pause, Middle detection technology includes but is not limited to capacitive character, resistive, infrared and surface acoustic wave technique.
Other one or more input controllers 144 may be coupled to other input/control devicess 148, for example, one or The pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or stylus etc.One or Multiple buttons (not shown) may include the up/down button for controlling 130 volume of loudspeaker 128 and/or microphone.
Memory interface 102 can be coupled with memory 150.The memory 150 may include that high random access is deposited Reservoir and/or nonvolatile memory, such as one or more disk storage equipments, one or more optical storage apparatus, and/ Or flash memories (such as NAND, NOR).
Memory 150 can store an operating system 152, such as the behaviour of Android, iOS or Windows Phone etc Make system.The operating system 152 may include for handling basic system services and executing the finger of the task dependent on hardware It enables.Memory 150, which can also store, various applies 154.In mobile device operation, can load operation be from memory 150 System 152, and executed by processor 104.At runtime using 154, it can also be loaded from memory 150, and by processor 104 It executes.It is operated on operating system using 154, realizes various users using the interface that operating system and bottom hardware provide Desired function, such as instant messaging, web page browsing, pictures management.It, can also using can be independently of operating system offer To be that operating system is included.
In various applications 154, one such application is to restart test equipment 200, which can be constantly to shifting Dynamic terminal carries out restarting test operation, and provides fault statistics function, saves human time, improves testing efficiency.
Fig. 2 shows the schematic diagrames according to an embodiment of the invention for restarting test equipment 200.
As shown in Fig. 2, the equipment is resident in the terminal, restart test equipment 200 include script selecting unit 210, Parameter configuration unit 220, test execution unit 230, broadcast registration unit 240, broadcast listening unit 250 and testing tool operation Unit 260.
Mobile terminal such as mobile phone, tablet computer can all carry out such as pressure test before factory, it is ensured that finally give The mobile phone of user meets the demand of user, and problem as much as possible is found and corrected before mobile terminal gives user.
Before test, testing tool registers the booting broadcast letter sent to mobile terminal by on-air testing unit 240 The reception of breath, tester add monitoring in the configuration file such as AndroidManifest.xml file of testing tool and open Machine broadcast code, specific code refer to Fig. 3, complete registration.The wherein meeting of BootCompletedBroadcast class and mobile terminal The booting broadcast of transmission is bound, to receive the booting broadcast message sent after mobile terminal-opening.Then, tester The test script for the test mobile terminal application basic function finished writing in advance is placed in SD card in the terminal, for surveying The examination personnel test script suitable by testing tool selection.
Tester opens testing tool, and the title for testing the test script of mobile terminal application basic function can be with list Form be shown to tester, tester's test script suitable by the selection of script selecting unit 210.For example, test The test script of personnel selection can be starting camera test script, and can restart rear camera applications for testing mobile terminal open It is dynamic, or selection wireless network connection test script, internet can be connected after mobile terminal is restarted for testing.But should Understand, above-mentioned test script is only exemplary, and the present invention can be applied to mobile terminal system or third-party application is surveyed Examination, all scripts that can be tested to the script that mobile terminal system application is tested or to third-party application are all at this In the protection scope of invention.
After tester chooses test script, test time is restarted by the configuration mobile terminal of parameter configuration unit 220 Number, i.e. rebootCount restart the sharedPreference.xml file that testing time is typically maintained in mobile terminal In, for example, rebootCount is set as 100, the storage for restarting testing time can be realized by code shown in Fig. 4.
Tester by parameter configuration unit 220 configured mobile terminal restart testing time after, test execution list Member 230, which executes, restarts test, for example, by calling the onRecive method in BootCompletedBroadcast class to realize It states and restarts test.Further, test execution unit 230 reads instruction and starts to restart the meter that mobile terminal after test has restarted number Number variable, counting variable is defaulted as 0 when testing and starting, and after test starts, counting variable can be with the increasing of booting number Add and is incremented by.Then, test execution unit 230 judges whether counting variable reaches and restarts testing time.If counting variable is not Reach and restart testing time, then command order is called by shell-command to run test mobile terminal application basic function Test script, test the basic function applied in mobile terminal.Wherein, command order is basis What the test script title (jarName) in sharedPreference.xml file generated, command order is specifically as follows uiautomator runtest jarName–nohup–c jarClassName。
According to a kind of embodiment, when tester selects starting camera test script, test execution unit 230 is being transported When row starting camera test script, starts camera applications, further judge whether camera applications start success.If camera applications Start successfully, then starts successful number for example, by log file record camera applications.If camera applications do not start into Function starts camera except for example, by the inactive successful number of log file record camera applications, needing to record by recording tool The test interface that test script malfunctions in the process of running, and camera test script mistake is started in operation by log file record The process to malfunction in journey, generates test report, i.e. log file, so that tester wins log file, arranges, quickly Where orientation problem, effective data are provided for later period research and development.
According to another embodiment, tester is also an option that wireless network connection test script, and tester exists Before test, mobile terminal can be connected into wireless network in advance, so that mobile terminal remembers wireless network account and password, example Such as, testRom may be selected as hotspot in tester, and inputs password testRom.Test execution unit 230 is being run When wireless network connection test script, judge whether the radio network functions in mobile terminal open.If in mobile terminal Radio network functions are not opened, then open the radio network functions in mobile terminal.Further, wireless network in mobile terminal is detected Whether the connection status of network, i.e. mobile terminal are connected to internet, record the connection state information of wireless network, for example, passing through Log file record connects the number of upper internet and the number of not connected upper internet, test report is generated, for tester couple Test report is analyzed.
After test execution unit 230 has run such as wireless network connection test script, called by shell-command Reboot order, restarts mobile terminal.
Mobile terminal sends booting broadcast message after the completion of restarting, detecting testing tool registration to mobile terminal transmission Booting broadcast message reception after, 260 automatic running testing tool of testing tool running unit.Then, broadcast listening unit 250 detect whether to receive the booting broadcast message of mobile terminal transmission.If receiving booting broadcast, indicate that test is held Row unit 230 calls the method for executing and restarting test, and is incremented by counting variable during executing the above method, for example, meter Number variable adds 1.
Test execution unit 230 continues to restart testing time and test mobile terminal application basic function according to configuration Test is restarted in test script execution, until counting variable, which reaches, restarts testing time.
According to the technique and scheme of the present invention, test mobile terminal is restarted by automation, saves manpower, time, improved Testing efficiency, simplifies testing process.
Fig. 5 shows the flow chart according to an embodiment of the invention for restarting test method 500.
As shown in figure 5, this method executes in the terminal, it is suitable for step S510.
In step S510, the reception of the booting broadcast message sent to mobile terminal is registered.According to a kind of embodiment, Testing tool receives tester and adds booting monitoring code in itself configuration file, completes registration.
In step S520, selection of the tester to the test script of test mobile terminal application basic function is received, The test script of test mobile terminal application basic function generally comprises starting camera test script and wireless network connection test Script.
In step S530, the configuration that tester restarts testing time to the mobile terminal is received.
Survey is restarted according to the test script execution of configuration restarted testing time and test mobile terminal application basic function Examination, specifically: in step S540, read the counting variable that mobile terminal after indicating to start to restart test has restarted number.
In step S550, judges whether the counting variable reaches and restart testing time.
If counting variable, which reaches, restarts testing time, terminate.
If counting variable not up to restarts testing time, in step S560, operation test mobile terminal application base The test script of this function.Then, in step S570, restart mobile terminal.
After mobile terminal is restarted, in step S580, automatic running testing tool.Then, in step S590, work is tested Tool detects whether to receive the booting broadcast message of mobile terminal transmission.If the booting broadcast message is received, in step In rapid S595, counting variable is incremented by, and continues to execute step S540.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this specification.
A10: the equipment as described in A6, wherein the broadcast registration unit is further adapted for: receiving tester and restarting test The monitoring booting broadcast message code added in the configuration file of equipment.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims than feature more features expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it abides by Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself As a separate embodiment of the present invention.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined into a module or furthermore be segmented into multiple Submodule.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
In addition, be described as herein can be by the processor of computer system or by executing by some in the embodiment The combination of method or method element that other devices of the function are implemented.Therefore, have for implementing the method or method The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, Installation practice Element described in this is the example of following device: the device be used for implement as in order to implement the purpose of the invention element performed by Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc. Description plain objects, which are merely representative of, is related to the different instances of similar object, and is not intended to imply that the object being described in this way must Must have the time it is upper, spatially, sequence aspect or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that Language used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this Many modifications and changes are obvious for the those of ordinary skill of technical field.For the scope of the present invention, to this Invent done disclosure be it is illustrative and not restrictive, it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (9)

1. one kind restarts test method, execute in the terminal, this method comprises:
The reception of the booting broadcast message sent to mobile terminal is registered, including receives tester and adds in itself configuration file The monitoring booting broadcast message code added;
Receive selection of the tester to the test script of test mobile terminal application basic function;
Receive configuration of the tester to testing time is restarted;
Test is restarted according to the test script execution of configuration restarted testing time and test mobile terminal application basic function, is wrapped It includes:
Read the counting variable that mobile terminal after indicating to start to restart test has restarted number;
Judge whether the counting variable reaches and restarts testing time;
If the counting variable not up to restarts testing time, the survey of the test mobile terminal application basic function is run Training sheet simultaneously restarts mobile terminal;
Wherein, the test script of the test mobile terminal application basic function includes starting camera test script, then runs institute The step of stating the test script of test mobile terminal application basic function includes: starting camera applications, whether judges camera applications Start successfully and record camera applications start successful number and inactive successful number;
This method further include:
The automatic running after each mobile terminal is restarted detects whether to receive the booting broadcast letter that the mobile terminal is sent Breath, if receiving the booting broadcast message, the counting variable be incremented by, continue according to configuration restart testing time and Test is restarted in the test script execution of test mobile terminal application basic function, restarts test time until the counting variable reaches Until number.
2. the method as described in claim 1, wherein the test script of the test mobile terminal application basic function further includes Wireless network connection test script.
3. method according to claim 2, further includes:
If camera applications do not start success, the test interface to malfunction in starting camera test script operational process is recorded simultaneously Record the process to malfunction in the test script operational process.
4. method according to claim 2, wherein the step of running wireless network connecting test script includes:
Judge whether the radio network functions in mobile terminal open;
If the radio network functions in mobile terminal are not opened, the radio network functions in mobile terminal are opened;
Detect the connection status of wireless network in mobile terminal;
Record the connection state information of the wireless network.
5. one kind restarts test equipment, it is resident in the terminal, comprising:
Broadcast registration unit, suitable for registering the reception of the booting broadcast message sent to mobile terminal, including reception tester The monitoring booting broadcast message code added in itself configuration file;
Script selecting unit, suitable for receiving selection of the tester to the test script of test mobile terminal application basic function;
Parameter configuration unit, suitable for receiving configuration of the tester to testing time is restarted;
Test execution unit, suitable for the test foot restarted testing time and test mobile terminal application basic function according to configuration Test is restarted in this execution, comprising: is read the counting variable that mobile terminal after indicating to start to restart test has restarted number, is judged institute It states counting variable and whether reaches and restart testing time, if the counting variable not up to restarts testing time, described in operation It tests the test script of mobile terminal application basic function and restarts mobile terminal, wherein the test mobile terminal application base The test script of this function includes starting camera test script, then runs the test of the test mobile terminal application basic function The step of script, includes: starting camera applications, judges whether camera applications start successfully and record camera applications start successfully Number and inactive successful number, and
After counting variable is incremented by by broadcast listening unit, testing time and test mobile terminal application base are restarted according to configuration Test is restarted in the test script execution of this function, until the counting variable, which reaches, restarts testing time;
Test application running unit, automatic running restarts test equipment after restarting mobile terminal suitable for test execution unit;
Broadcast listening unit, suitable for after restarting test equipment automatic running, detecting whether that receive the movement sends out to terminal The counting variable is incremented by predetermined value if receiving the booting broadcast message by the booting broadcast message sent.
6. equipment as claimed in claim 5, wherein the test script of the test mobile terminal application basic function further includes Wireless network connection test script.
7. equipment as claimed in claim 6, wherein the test execution unit is further adapted for:
If camera applications do not start success, the test interface that starting camera test script malfunctions in the process of running is recorded And record the process that the test script malfunctions in the process of running.
8. equipment as claimed in claim 6, wherein the test execution unit is further adapted for:
Judge whether the radio network functions in mobile terminal open;
If the radio network functions in mobile terminal are not opened, the radio network functions in mobile terminal are opened;
Detect the connection status of wireless network in mobile terminal;
Record the connection state information of the wireless network.
9. a kind of mobile terminal, including restarting test equipment as described in any one of claim 5-8.
CN201610281889.4A 2016-04-29 2016-04-29 One kind restarting test method, equipment and mobile terminal Active CN105975391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610281889.4A CN105975391B (en) 2016-04-29 2016-04-29 One kind restarting test method, equipment and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610281889.4A CN105975391B (en) 2016-04-29 2016-04-29 One kind restarting test method, equipment and mobile terminal

Publications (2)

Publication Number Publication Date
CN105975391A CN105975391A (en) 2016-09-28
CN105975391B true CN105975391B (en) 2019-05-03

Family

ID=56993521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610281889.4A Active CN105975391B (en) 2016-04-29 2016-04-29 One kind restarting test method, equipment and mobile terminal

Country Status (1)

Country Link
CN (1) CN105975391B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649096B (en) * 2016-10-31 2019-02-15 厦门美图移动科技有限公司 The method and device of change facility information based on automatic test
CN108462614A (en) * 2018-01-09 2018-08-28 深圳市亿道数码技术有限公司 Automatization test system
CN108897694A (en) * 2018-07-26 2018-11-27 郑州云海信息技术有限公司 A kind of method and device of NAS engine automatic test
CN110413531A (en) * 2019-08-02 2019-11-05 深圳忆联信息系统有限公司 Realize IOMT automatic test approach, device, computer equipment and storage medium
CN112379255A (en) * 2020-11-12 2021-02-19 浪潮商用机器有限公司 Alternating current power supply switch test method, device and equipment and alternating current power supply switch
CN112565746A (en) * 2020-12-30 2021-03-26 杭州视洞科技有限公司 Automatic pressure test method and process for detecting IP address of wired network port of camera
CN112835758A (en) * 2021-03-22 2021-05-25 四川酷比通信设备有限公司 Method for self-starting and automatically running test software and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978271A (en) * 2015-07-06 2015-10-14 Tcl集团股份有限公司 Automatic upgrade pressure measurement method and system for Android system
CN105095078A (en) * 2015-07-22 2015-11-25 厦门美图移动科技有限公司 Systematic automation testing device and method and calculating device
CN105512033A (en) * 2015-12-02 2016-04-20 厦门美图移动科技有限公司 Automated testing method and device of mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101438979B1 (en) * 2012-12-31 2014-09-11 현대자동차주식회사 Method and system for checking software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978271A (en) * 2015-07-06 2015-10-14 Tcl集团股份有限公司 Automatic upgrade pressure measurement method and system for Android system
CN105095078A (en) * 2015-07-22 2015-11-25 厦门美图移动科技有限公司 Systematic automation testing device and method and calculating device
CN105512033A (en) * 2015-12-02 2016-04-20 厦门美图移动科技有限公司 Automated testing method and device of mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN105975391A (en) 2016-09-28

Similar Documents

Publication Publication Date Title
CN105975391B (en) One kind restarting test method, equipment and mobile terminal
CN105630686B (en) A kind of application traversal test method, equipment and mobile terminal
CN105868105B (en) A kind of application traversal test method, equipment and mobile terminal
CN105512033B (en) A kind of automated testing method of mobile terminal, device and mobile terminal
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN105373479B (en) A kind of automated testing method of RAM leakage, device and mobile terminal
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN105072080B (en) A kind of Information Authentication method, apparatus and system
CN104991847B (en) A kind of RAM leakage automated detection method, device and mobile terminal
CN104902479B (en) A kind of network security management equipment, method and mobile terminal
CN104484200A (en) Method and device for updating firmware
CN104318185B (en) A kind of application control method, equipment and mobile terminal
CN106294041A (en) Method, device and the mobile terminal of a kind of BUG information reporting
CN110334007A (en) A kind of functional interface calls verification method and device, electronic equipment and storage medium
CN104202483A (en) Display screen switch controller of mobile terminal
CN105824755A (en) Automation test method, automation test device and mobile terminal
CN108415734A (en) A kind of application recovery device, method and mobile terminal
CN105246068B (en) SIM card selection method and device
CN107656866A (en) A kind of method, mobile terminal and computing device tested using fluency
CN107301052A (en) The display methods and mobile terminal of a kind of help information
CN109672908A (en) A kind of method for protecting privacy, device and mobile terminal
CN106201876B (en) A kind of application testing method, device and mobile terminal
CN106357480A (en) Method and device for monitoring network performance of application and mobile terminal
CN109660859A (en) A kind of animated show method and mobile terminal
CN108509348A (en) A kind of test method and mobile terminal of system aging

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