CN105975391A - Restart testing method and device and mobile terminal - Google Patents

Restart testing method and device and mobile terminal Download PDF

Info

Publication number
CN105975391A
CN105975391A CN201610281889.4A CN201610281889A CN105975391A CN 105975391 A CN105975391 A CN 105975391A CN 201610281889 A CN201610281889 A CN 201610281889A CN 105975391 A CN105975391 A CN 105975391A
Authority
CN
China
Prior art keywords
mobile terminal
test
restart
testing
script
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
CN201610281889.4A
Other languages
Chinese (zh)
Other versions
CN105975391B (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

Abstract

The invention discloses a restart testing method. The method is carried out in a mobile terminal and comprises the following steps: registering a reception of starting-up broadcast information sent to the mobile terminal; receiving a selection of a tester to a testing script for testing a basic function of a mobile terminal application; receiving a configuration of the tester to a restart testing frequency; and carrying out restart testing according to the configured restart testing frequency and the testing script for testing the basic function of the mobile terminal application, which comprises the steps of: reading a counting variable for indicating the restarted frequency of the mobile terminal after the restart testing is started; judging whether the counting variable reaches to the restart testing frequency; and if the counting variable does not reach to the restart testing frequency, running the testing script for testing the basic function of the mobile terminal application and restarting the mobile terminal. The invention further discloses a corresponding restart testing device and the mobile terminal comprising the restart testing device.

Description

One restarts method of testing, equipment and mobile terminal
Technical field
The present invention relates to apply field tests, restart method of testing, equipment particularly to one and move eventually End.
Background technology
When mobile terminal operating system is carried out stress test, enter to test mobile terminal success Enter operating system, or test some functions relating to mobile terminal switching on and shutting down operation, such as, operation system The functions such as system upgrading, factory reset, start self-starting, it is necessary to allow mobile terminal constantly restart, Thus verify that practical situation is the most consistent with expection situation.
At present, in field tests, mobile terminal operating system is restarted the method for stress test still It is the method using manual testing, manually restarts mobile phone, carry out stress test subsequently.But, this survey Method for testing excessively labor intensive and time, especially relatively low to BUG recurrence rate mobile terminal, such as, Mobile terminal is restarted 1000 times may the most only occur that the input of BUG once or several times, time and manpower is excessive And output is the least, it is obvious that this way is extremely inefficient.
Summary of the invention
To this end, the present invention provides a kind of new restarts method of testing, equipment and mobile terminal, to try hard to solve Determine or at least alleviate the problem existed above.
According to an aspect of the present invention, it is provided that one restarts method of testing, perform in the terminal, The method includes: register the reception of broadcast message of starting shooting mobile terminal transmission;Receive tester couple The selection of the test script of test mobile terminal application basic function;Receive tester to restarting test time The configuration of number;Restarting testing time and testing the test foot of mobile terminal application basic function according to configuration Test is restarted in this execution, including: read mobile terminal after instruction starts to restart test and restart the meter of number of times Number variable;Judge whether counting variable reaches to restart testing time;If counting variable not up to restarts survey Examination number of times, the then test script of testing results mobile terminal application basic function restart mobile terminal;Should Method also includes: automatically run after each mobile terminal is restarted, and detects whether that receiving mobile terminal sends out The start broadcast message sent, if receiving start broadcast message, then counting variable is incremented by, and continues basis The test script restarting testing time and test mobile terminal application basic function of configuration performs to restart test, Until counting variable reaches to restart testing time.
Alternatively, restarting in method of testing according to the present invention, testing mobile terminal application basic function Test script include starting camera test script and wireless network connecting test script.
Alternatively, restarting in method of testing according to the present invention, running the step starting camera test script Suddenly include: start camera applications;Judge whether camera applications starts successfully;If camera applications does not open Move successfully, then record and start the test interface made mistakes in camera test script running and record test foot The process made mistakes in this running.
Alternatively, restarting in method of testing according to the present invention, running wireless network connecting test script Step include: whether the radio network functions judging in mobile terminal opens;If in mobile terminal Radio network functions is not opened, then open the radio network functions in mobile terminal;In detection mobile terminal The connection status of wireless network;The connection state information of record wireless network.
Alternatively, restarting in method of testing according to the present invention, registering the start that mobile terminal is sent The step of the reception of broadcast message includes: the monitoring that reception tester adds in self configuration file is opened Machine broadcast message code.
According to an aspect of the present invention, it is provided that one restarts test equipment, resident in the terminal, Including: broadcast registration unit, be suitable to register the reception of broadcast message that mobile terminal transmission is started shooting;Foot This selection unit, is suitable to the test script receiving tester to test mobile terminal application basic function Select;Parameter configuration unit, is suitable to receive tester's configuration to restarting testing time;Test execution Unit, is suitable to restarting testing time and testing the test foot of mobile terminal application basic function according to configuration Test is restarted in this execution, including: read mobile terminal after instruction starts to restart test and restart the meter of number of times Number variable, it is judged that whether counting variable reaches to restart testing time, if counting variable not up to restarts survey Examination number of times, the then test script of testing results mobile terminal application basic function restart mobile terminal, with And after counting variable is incremented by by broadcast listening unit, restarting testing time and testing mobile according to configuration The test script of terminal applies basic function performs to restart test, until counting variable reaches to restart test time Till number;Test application running unit, is suitable to automatically run weight after test execution unit restarts mobile terminal Open test equipment;Broadcast listening unit, is suitable to restarting after test equipment runs automatically, detects whether to connect Receive the mobile start broadcast message sent to terminal, if receiving start broadcast message, then will counting Variable increment predetermined value.
Alternatively, restarting in test equipment according to the present invention, testing mobile terminal application basic function Test script include starting camera test script and wireless network connecting test script.
Alternatively, restarting in test equipment according to the present invention, test execution unit is further adapted for: start Camera applications;Judge whether camera applications starts successfully;If camera applications does not start successfully, then record System starts the test interface made mistakes in running of camera test script and records test script and running The process made mistakes in journey.
Alternatively, restarting in test equipment according to the present invention, test execution unit is further adapted for: judge Whether the radio network functions in mobile terminal opens;If the radio network functions in mobile terminal is not opened Open, then open the radio network functions in mobile terminal;The connection shape of wireless network in detection mobile terminal State;The connection state information of record wireless network.
Alternatively, restarting in test equipment according to the present invention, broadcast registration unit is further adapted for: receive The monitoring start broadcast message code that tester adds in the configuration file restarting test equipment.
According to an aspect of the present invention, it is provided that a kind of mobile terminal, including as above restart test equipment.
According to technical scheme, restart test mobile terminal by automatization, save manpower, Time, improve testing efficiency, simplify testing process.
Accompanying drawing explanation
In order to realize above-mentioned and relevant purpose, describe some herein in conjunction with explained below and accompanying drawing and say Bright property aspect, these aspects indicate can be to put into practice the various modes of principles disclosed herein, and institute Aspect and equivalence aspect thereof is had to be intended to fall under in the range of theme required for protection.Read by combining accompanying drawing Reading detailed description below, above-mentioned and other purpose, feature and the advantage of the disclosure will become brighter Aobvious.Throughout the disclosure, identical reference generally refers to identical parts or element.
Fig. 1 shows the structured flowchart of mobile terminal according to an embodiment of the invention;
Fig. 2 shows the structure chart restarting test equipment 200 according to an embodiment of the invention;
Fig. 3 shows the diagram registering broadcast code according to an embodiment of the invention;
Fig. 4 shows the diagram restarting code of number according to an embodiment of the invention;And
Fig. 5 shows the flow chart restarting method of testing 500 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 exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and not Should be limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more thoroughly Understand the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Fig. 1 is the structured flowchart of mobile terminal 100.The mobile terminal 100 with multiple point touching ability can To include that memory interface 102, one or more data processor, image processor and/or central authorities process Unit 104, and peripheral interface 106.
Memory interface 102, one or more processor 104 and/or peripheral interface 106 both can be point Vertical element, it is also possible to be integrated in one or more integrated circuit.In the mobile terminal 100, various units Part can be coupled by one or more communication bus or holding wire.Sensor, equipment and subsystem can To be coupled to peripheral interface 106, in order to help to realize several functions.Such as, motion sensor 110, light Sensor 112 and range sensor 114 are alternatively coupled to peripheral interface 106, with facilitate orientation, illumination and The functions such as range finding.Other sensors 116 are equally connected with peripheral interface 106, such as alignment system (such as GPS), temperature sensor, biometric sensor or other sensor devices, thus Can help to implement relevant function.
Camera sub-system 120 and optical pickocff 122 may be used for convenient such as recording photograph and video and cut The realization of the camera function collected, wherein said camera sub-system and optical pickocff can be such as electric charge couplings Clutch part (CCD) or complementary metal oxide semiconductors (CMOS) (CMOS) optical pickocff.
Can help to realize communication function, Qi Zhongwu by one or more radio communication subsystem 124 Line communication subsystem can include radio-frequency transmitter and transmitter and/or light (the most infrared) receiver and send out Penetrate machine.The particular design of radio communication subsystem 124 and embodiment can depend on mobile terminal 100 The one or more communication networks supported.Such as, mobile terminal 100 can include being designed to support GSM network, GPRS network, EDGE network, Wi-Fi or WiMax network and BlueboothTM The communication subsystem 124 of network.
Audio subsystem 126 can be coupled with speaker 128 and mike 130, in order to helps real Execute the function enabling voice, such as speech recognition, speech reproduction, digital record and telephony feature.
I/O subsystem 140 can include that touch screen controller 142 and/or other inputs one or more control Device 144.
Touch screen controller 142 is alternatively coupled to touch screen 146.For example, this touch screen 146 is with tactile Touch screen controller 142 any one of multiple touch-sensing technology to be used to detect carry out therewith Contact and mobile or suspend, wherein detection technology is including, but not limited to capacitive character, resistive, infrared And surface acoustic wave technique.
Other input controllers 144 one or more are alternatively coupled to other input/control devicess 148, example Such as one or more buttons, rocker switch, thumb wheel, infrared port, USB port and/or instruction The pointer device of pen etc.One or more button (not shown)s can include for controlling speaker 128 And/or the up/down button of mike 130 volume.
Memory interface 102 can be coupled with memorizer 150.This memorizer 150 can include at a high speed Random access memory and/or nonvolatile memory, the most one or more disk storage equipment, one Or multiple optical storage apparatus, and/or flash memories (such as NAND, NOR).
Memorizer 150 can store operating system 152, such as Android, iOS or Windows Phone Etc operating system.This operating system 152 can include for processing basic system services and execution Depend on the instruction of the task of hardware.Memorizer 150 can also store various application 154.In mobile device During operation, operating system 152 can be loaded from memorizer 150, and performed by processor 104.Application 154 operationally, also can load from memorizer 150, and be performed by processor 104.Application 154 fortune Row is on operating system, and the interface utilizing operating system and bottom hardware to provide realizes various user's phase The function hoped, such as instant messaging, web page browsing, pictures management etc..Application can be independently of operation system System provides, it is also possible to be that operating system carries.
In various application 154, a kind of application therein is for restarting test equipment 200, and this equipment can not Disconnected restarts test operation to mobile terminal, and provides fault statistics function, saving human time, Improve testing efficiency.
Fig. 2 shows the schematic diagram restarting test equipment 200 according to an embodiment of the invention.
As in figure 2 it is shown, this equipment is resident in the terminal, restarts test equipment 200 and include that script selects Select unit 210, parameter configuration unit 220, test execution unit 230, broadcast registration unit 240, wide Broadcast monitoring unit 250 and testing tool running unit 260.
Mobile terminal such as mobile phone, panel computer all can carry out such as stress test before dispatching from the factory, it is ensured that The mobile phone finally giving user meets the demand of user, gives use problem as much as possible at mobile terminal Find before family and correct.
Before test, testing tool is registered by on-air testing unit 240 and is opened mobile terminal transmission The reception of machine broadcast message, tester is at the configuration file such as AndroidManifest.xml of testing tool Adding in file and monitor start broadcast code, specific code, with reference to Fig. 3, completes registration.Wherein BootCompletedBroadcast class can be bound with the start broadcast that mobile terminal sends, in order to receives The start broadcast message sent after mobile terminal-opening.Subsequently, the test finished writing in advance is moved by tester The test script of dynamic terminal applies basic function is placed in SD card in the terminal, for tester The test script being suitable for is selected by testing tool.
Tester opens testing tool, the title of the test script of test mobile terminal application basic function Can be shown to tester in the form of a list, tester selects unit 210 to select to be suitable for by script Test script.Such as, the test script that tester selects can be to start camera test script, uses Test mobile terminal to restart rear camera applications and can start, or select wireless network connecting test script, It is used for testing after mobile terminal is restarted, connecting the Internet.It being understood, however, that above-mentioned test script is only Being only exemplary, mobile terminal system application or third-party application can be tested by the present invention, all The script can tested mobile terminal system application or the script testing third-party application are all Within the scope of the present invention.
After tester chooses test script, configured the weight of mobile terminal by parameter configuration unit 220 Open testing time, i.e. rebootCount, restart testing time and be typically maintained in mobile terminal In sharedPreference.xml file, such as, rebootCount is set to 100, can pass through Fig. 4 institute The code shown realizes restarting the storage of testing time.
Tester by parameter configuration unit 220 configured mobile terminal restart testing time after, survey Examination performance element 230 performs to restart test, such as, by calling BootCompletedBroadcast apoplexy due to endogenous wind OnRecive method realize above-mentioned restarting test.Further, test execution unit 230 reads instruction and opens After starting weight opens test, mobile terminal has restarted the counting variable of number of times, and counting variable is acquiescence when test starts Being 0, after test starts, counting variable can be incremented by along with the increase of start number of times.Subsequently, test Performance element 230 judges whether counting variable reaches to restart testing time.If counting variable not up to weight Open testing time, then call command order by shell-command and carry out testing results mobile terminal application base The test script of this function, the basic function of application in test mobile terminal.Wherein, command order It is to generate according to the test script title (jarName) in sharedPreference.xml file, Command order is specifically as follows uiautomator runtest jarName nohup c jarClassName.
According to a kind of embodiment, when tester selects to start camera test script, test execution list Unit 230, when running startup camera test script, starts camera applications, determines whether that camera applications is No start successfully.If camera applications starts successfully, then started by such as log file record camera applications Successfully number of times.If camera applications does not start successfully, except by such as log file record camera applications Not actuated successful number of times, needs by recording instrument recording startup camera test script in running The test interface made mistakes, and made mistakes during running startup camera test script by log file record Process, generation test report, i.e. log file, in order to log file is won, arranged by tester, Quick positioning question place, provides effective data for later stage research and development.
According to another embodiment, tester can also select wireless network connecting test script, surveys Mobile terminal before test, can be connected wireless network, in order to mobile terminal remembers nothing by examination personnel in advance Line network account and password, such as, tester may select testRom as hotspot, and inputs close Code testRom.Test execution unit 230 is when running wireless network connecting test script, it is judged that mobile whole Whether the radio network functions in end opens.If the radio network functions in mobile terminal is not opened, then Open the radio network functions in mobile terminal.Further, the connection of wireless network in detection mobile terminal Whether state, i.e. mobile terminal are connected to the Internet, the connection state information of record wireless network, such as, Connect the number of times of upper the Internet by log file record and be not connected with the number of times of upper the Internet, generating test report Accuse, for tester, test report is analyzed.
After test execution unit 230 has run such as wireless network connecting test script, pass through shell-command Call reboot order, restart mobile terminal.
Mobile terminal sends start broadcast message after having restarted, detecting that testing tool is registered movement After the reception of the start broadcast message that terminal sends, the automatic testing results work of testing tool running unit 260 Tool.Subsequently, broadcast listening unit 250 detects whether to receive the start broadcast message that mobile terminal sends. If receiving this start broadcast, it indicates that test execution unit 230 calls the method performing to restart test, And during performing said method, counting variable is incremented by, such as, counting variable adds 1.
Test execution unit 230 continues restarting testing time and testing mobile terminal application base according to configuration The test script of this function performs to restart test, until counting variable reaches to restart testing time.
According to technical scheme, restart test mobile terminal by automatization, save manpower, Time, improve testing efficiency, simplify testing process.
Fig. 5 shows the flow chart restarting method of testing 500 according to an embodiment of the invention.
As it is shown in figure 5, the method performs in the terminal, be suitable to step S510.
In step S510, register the reception of broadcast message that mobile terminal transmission is started shooting.According to one Embodiment, testing tool receives tester and adds start monitoring code in self configuration file, complete Become registration.
In step S520, receive tester's test script to test mobile terminal application basic function Selection, test mobile terminal application basic function test script generally comprise start camera test script With wireless network connecting test script.
In step S530, receive tester and described mobile terminal is restarted the configuration of testing time.
The test script restarting testing time and test mobile terminal application basic function according to configuration performs Restart test, particularly as follows: in step S540, read mobile terminal after instruction starts to restart test the heaviest Open the counting variable of number of times.
In step S550, it is judged that whether described counting variable reaches to restart testing time.
If counting variable reaches to restart testing time, then terminate.
If counting variable not up to restarts testing time, then, in step S560, testing results moves end The test script of end application basic function.Subsequently, in step S570, restart mobile terminal.
After mobile terminal is restarted, in step S580, automatic testing results instrument.Subsequently, in step S590 In, testing tool detects whether to receive the start broadcast message that mobile terminal sends.If receiving institute State start broadcast message, then, in step S595, counting variable is incremented by, and continues executing with step S540.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that this Inventive embodiment can be put into practice in the case of not having these details.In some instances, and It is not shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
A10: the equipment as described in A6, wherein said broadcast registration unit is further adapted for: receive tester The monitoring start broadcast message code added in the configuration file restarting test equipment.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect one Or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention is sometimes It is grouped together in single embodiment, figure or descriptions thereof.But, should be by the disclosure Method be construed to reflect an intention that i.e. the present invention for required protection require ratio in each claim Middle feature more features be expressly recited.More precisely, as the following claims reflect Like that, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Claims of body embodiment are thus expressly incorporated in this detailed description of the invention, and the most each right is wanted Ask itself all as the independent embodiment of the present invention.
Those skilled in the art are to be understood that module or the list of the equipment in example disclosed herein Unit or assembly can be arranged in equipment as depicted in this embodiment, or alternatively can position In the one or more equipment different from the equipment in this example.Module in aforementioned exemplary can combine It is a module or is segmented into multiple submodule in addition.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment certainly Change adaptively and they are arranged in one or more equipment different from this embodiment.Permissible Module in embodiment or unit or assembly are combined into a module or unit or assembly, and in addition may be used To put them into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit excludes each other, can use any combination that (this specification is included companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes of person's equipment or unit are combined.Unless expressly stated otherwise, this specification (includes companion With claim, summary and accompanying drawing) disclosed in each feature can by provide identical, equivalent or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include it Some feature included in its embodiment rather than further feature, but the group of the feature of different embodiment Close and mean to be within the scope of the present invention and formed different embodiments.Such as, in following power In profit claim, one of arbitrarily can mode making in any combination of embodiment required for protection With.
Additionally, some in described embodiment be described as at this can by the processor of computer system or Person by perform described function other device implement method or the combination of method element.Therefore, there is use Processor in the necessary instruction implementing described method or method element is formed and is used for implementing the method or method The device of element.Additionally, the element described herein of device embodiment is the example of following device: this dress Put for implementing by the function performed by the element of the purpose in order to implement this invention.
As used in this, unless specifically stated so, use ordinal number " first ", " second ", " the Three " etc. describe plain objects and be merely representative of the different instances relating to similar object, and be not intended dark Show the object being so described must have the time upper, spatially, sequence aspect or with arbitrarily other side Formula to definite sequence.
Although the embodiment according to limited quantity describes the present invention, but benefits from above description, this In technical field it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other Embodiment.Additionally, it should be noted that the language used in this specification is primarily to readable and teaching Purpose and select rather than select to explain or limit subject of the present invention.Therefore, In the case of without departing from the scope of the appended claims and spirit, for the common skill of the art For art personnel, many modifications and changes will be apparent from.For the scope of the present invention, to the present invention The disclosure done is illustrative and not restrictive, and the scope of the present invention is limited by appended claims Fixed.

Claims (10)

1. restarting a method of testing, perform in the terminal, the method includes:
Register the reception of broadcast message that mobile terminal transmission is started shooting;
Receive tester's selection to the test script of test mobile terminal application basic function;
Receive tester to the described configuration restarting testing time;
Restarting testing time and testing the test script of mobile terminal application basic function according to described configuration Test is restarted in execution, including:
Read mobile terminal after instruction starts to restart test and restart the counting variable of number of times;
Judge whether described counting variable reaches to restart testing time;
If described counting variable not up to restarts testing time, then run described test mobile terminal Apply the test script of basic function and restart mobile terminal;
The method also includes:
Automatically run after each mobile terminal is restarted, detect whether to receive what described mobile terminal sent Start broadcast message, if receiving described start broadcast message, the most described counting variable is incremented by, and continues The test script restarting testing time and test mobile terminal application basic function according to configuration performs to restart Test, until described counting variable reaches to restart testing time.
2. the method for claim 1, the survey of wherein said test mobile terminal application basic function Training originally includes starting camera test script and wireless network connecting test script.
3. method as claimed in claim 2, wherein said operation starts the step bag of camera test script Include:
Start camera applications;
Judge whether camera applications starts successfully;
If camera applications does not start successfully, then record to start in camera test script running and make mistakes Test interface and record the process made mistakes in described test script running.
4. method as claimed in claim 2, the step of wherein said running wireless network connecting test script Suddenly include:
Judge whether the radio network functions in mobile terminal opens;
If the radio network functions in mobile terminal is not opened, then open the wireless network in mobile terminal Function;
The connection status of wireless network in detection mobile terminal;
Record the connection state information of described wireless network.
5. the method for claim 1, the start broadcast that mobile terminal is sent by wherein said registration The step of the reception of information includes:
Receive the monitoring start broadcast message code that tester adds in self configuration file.
6. restart a test equipment, resident in the terminal, including:
Broadcast registration unit, is suitable to register the reception of broadcast message of starting shooting mobile terminal transmission;
Script selects unit, is suitable to the test receiving tester to test mobile terminal application basic function The selection of script;
Parameter configuration unit, is suitable to receive tester to the described configuration restarting testing time;
Test execution unit, is suitable to restarting testing time and testing mobile terminal application according to described configuration The test script of basic function performs to restart test, including: read after instruction starts to restart test mobile whole End has restarted the counting variable of number of times, it is judged that whether described counting variable reaches to restart testing time, if Described counting variable not up to restarts testing time, then run described test mobile terminal application basic function Test script and restart mobile terminal, and
After counting variable is incremented by by broadcast listening unit, restarting testing time and testing shifting according to configuration The test script of dynamic terminal applies basic function performs to restart test, until described counting variable reaches to restart Till testing time;
Test application running unit, is suitable to automatically run after test execution unit restarts mobile terminal restart survey Examination equipment;
Broadcast listening unit, is suitable to restarting after test equipment runs automatically, detects whether to receive described The mobile start broadcast message sent to terminal, if receiving described start broadcast message, then by described Counting variable is incremented by predetermined value.
7. equipment as claimed in claim 6, the survey of wherein said test mobile terminal application basic function Training originally includes starting camera test script and wireless network connecting test script.
8. equipment as claimed in claim 7, wherein said test execution unit is further adapted for:
Start camera applications;
Judge whether camera applications starts successfully;
If camera applications does not start successfully, then record startup camera test script and go out in running Wrong test interface also records the process that described test script is made mistakes in running.
9. equipment as claimed in claim 7, wherein said test execution unit is further adapted for:
Judge whether the radio network functions in mobile terminal opens;
If the radio network functions in mobile terminal is not opened, then open the wireless network in mobile terminal Function;
The connection status of wireless network in detection mobile terminal;
Record the connection state information of described wireless network.
10. a mobile terminal, including restarting test equipment as according to any one of claim 6-9.
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 true CN105975391A (en) 2016-09-28
CN105975391B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649096A (en) * 2016-10-31 2017-05-10 厦门美图移动科技有限公司 Method and device for changing equipment information based on automated 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
CN117827546A (en) * 2024-03-05 2024-04-05 四川华鲲振宇智能科技有限责任公司 Restarting supervision system and method for control server under Linux system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189449A1 (en) * 2012-12-31 2014-07-03 Hyundai Motor Company Method and system for checking software
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140189449A1 (en) * 2012-12-31 2014-07-03 Hyundai Motor Company Method and system for checking software
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李鲁群,张二江: "《Android应用程序设计》", 30 November 2015, 北京:清华大学出版社 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649096A (en) * 2016-10-31 2017-05-10 厦门美图移动科技有限公司 Method and device for changing equipment information based on automated test
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
CN117827546A (en) * 2024-03-05 2024-04-05 四川华鲲振宇智能科技有限责任公司 Restarting supervision system and method for control server under Linux system

Also Published As

Publication number Publication date
CN105975391B (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN105975391A (en) Restart testing method and device and mobile terminal
CN105094903B (en) The method and device that firmware is upgraded
US9690560B2 (en) System and method for transferring software applications and data between two mobile devices with different operating systems
CN105512033B (en) A kind of automated testing method of mobile terminal, device and mobile terminal
CN105868105A (en) Application traversal testing method and device, and mobile terminal
CN109429102B (en) Electronic device and server for displaying applications
CN107329750A (en) The recognition methods of advertisement page, jump method and mobile terminal in application program
CN105630686A (en) Traversal testing method and device for applications and mobile terminal
CN104991847B (en) A kind of RAM leakage automated detection method, device and mobile terminal
CN105373479A (en) Automatic test method and device of memory leakage and mobile terminal
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
US8959394B2 (en) Electronic device, system, and method for testing exception handling mechanism
KR20160021419A (en) Mobile terminal test system and mobile terminal test method using the system
CN112054822B (en) Bluetooth test method and device, electronic equipment and storage medium
CN109753425A (en) Pop-up processing method and processing device
US20130166958A1 (en) Software burning system and burning control method
WO2018121582A1 (en) Script generation method and device
KR20200015000A (en) Method for memory leak detection and electronic device thereof
EP3322151A1 (en) Data transmission method and electronic device for supporting the same
CN106776301B (en) Subelement testing method and device
CN107656866A (en) A kind of method, mobile terminal and computing device tested using fluency
CN108509348A (en) A kind of test method and mobile terminal of system aging
CN111128139B (en) Non-invasive voice test method and device
CN108984417A (en) Method for testing software, device, terminal and storage medium
CN107979690A (en) A kind of mobile terminal and its method and system for skipping start guide

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