Content of the invention
The invention mainly solves the technical problem of providing a kind of detection method of mobile terminal and detecting system, can subtract
The stand-by period of few operating system, improve detection efficiency.
For solving above-mentioned technical problem, one aspect of the present invention is:A kind of detection of mobile terminal is provided
Method, including after the bootstrap and kernel loads of mobile terminal operating system, mobile terminal os starting it
Before, start test application program, detected with the presumptive test project to described mobile terminal;Export described presumptive test item
According to described testing result, purpose testing result, to judge whether the corresponding function of described presumptive test project is normal;Or directly
Export the whether normal information of the corresponding function of described presumptive test project.
Wherein, the step that the described presumptive test project to described mobile terminal is detected includes:Display man-machine interaction
Interface;Receive the test instruction in the input of described human-computer interaction interface, to instruct to described mobile terminal according to described test
Interactive testing project is detected, and then the presumptive test project of described mobile terminal is detected.
Wherein, in described reception before the step of the test instruction of described human-computer interaction interface input, including:Initialization
The equipment related to the interactive testing project of described mobile terminal, and obtain and surveying with the interactive testing project of described mobile terminal
Data needed for examination process, to realize the detection to described interactive testing project.
Wherein, the described step receiving in the test instruction of described human-computer interaction interface input includes:Receive in described people
The multiple tests instruction of machine interactive interface input, with according to the plurality of test instruction respectively to corresponding and separate many
Individual interactive testing project is detected simultaneously.
Wherein, described interactive testing project include display screen detection project, vibrator detection project, loudspeaker detection project with
And at least one in backlight detection project.
Wherein, the described presumptive test project to described mobile terminal carries out detecting step and includes:To described mobile terminal
Automatic test event carry out automatic detection, detected with the presumptive test project to described mobile terminal.
Wherein, the step that the described automatic test event to described mobile terminal carries out automatic detection includes:To described shifting
The multiple separate automatic test event of dynamic terminal carries out automatic detection simultaneously.
Wherein, described automatic test event includes WIFI detection project, GPS detection project, bluetooth detection project and SIM
At least one in card detection project.
Wherein, the described presumptive test project to described mobile terminal carries out detecting step and includes:To described mobile terminal
Interactive testing project and automatic test event detected simultaneously, examined with the presumptive test project to described mobile terminal
Survey.
Wherein, before the presumptive test project to described mobile terminal detects, including:According to pre-configured text
File generated test item list, to obtain described presumptive test project according to described test item list.
For solving above-mentioned technical problem, another technical solution used in the present invention is:A kind of inspection of mobile terminal is provided
Examining system, including detection module, for after the bootstrap and kernel loads of mobile terminal operating system, in mobile terminal
Before os starting, start test application program, detected with the presumptive test project to described mobile terminal;Output
Module, for exporting the testing result of described presumptive test project, to judge described presumptive test item according to described testing result
Whether the corresponding function of mesh is normal;Or directly export the whether normal information of the corresponding function of described presumptive test project.
Wherein, described detection module includes:Display unit, for showing human-computer interaction interface;Receiving unit, for receiving
Test instruction in the input of described human-computer interaction interface;First detector unit, for instructing to described movement according to described test
The interactive testing project of terminal is detected, and then the presumptive test project of described mobile terminal is detected.
Wherein, described detection module also includes:Initialization unit, for the interactive testing of initialization and described mobile terminal
The related equipment of project, and obtain with the interactive testing project of described mobile terminal in test process needed for data so that
Described first detector unit realizes the detection to described interactive testing project.
Wherein, described receiving unit is used for receiving the multiple test instructions in the input of described human-computer interaction interface;Described
One detector unit is used for same to corresponding and separate multiple interactive testing projects respectively according to the plurality of test instruction
Shi Jinhang detects.
Wherein, described interactive testing project include display screen detection project, vibrator detection project, loudspeaker detection project with
And at least one in backlight detection project.
Wherein, described detection module includes:Second detector unit, for entering to the automatic test event of described mobile terminal
Row automatic detection, is detected with the presumptive test project to described mobile terminal.
Wherein, described second detector unit is used for the multiple separate automatic test event to described mobile terminal together
Shi Jinhang automatic detection.
Wherein, described automatic test event includes WIFI detection project, GPS detection project, bluetooth detection project and SIM
At least one in card detection project.
Wherein, described detection module is used for the interactive testing project of described mobile terminal and automatic test event are entered simultaneously
Row detection, is detected with the presumptive test project to described mobile terminal.
Wherein, also include:Generation module, for generating test item list according to pre-configured text, with according to institute
State test item list and obtain described presumptive test project.
The invention has the beneficial effects as follows:It is different from the situation of prior art, in the detection method of mobile terminal of the present invention,
After the bootstrap of mobile terminal operating system and kernel loads, before os starting, start test application program, with
The presumptive test project of mobile terminal is detected, then exports the testing result of presumptive test project, with according to this detection
Result judges whether the corresponding function of presumptive test project is normal;Or directly whether just to export the corresponding function of presumptive test project
Normal information, due to starting test application program before os starting, to detect to mobile terminal, therefore exists
The operating system withouting waiting for mobile terminal in test process starts completely, thus can save the time of wait, it is possible to increase
Detection efficiency, and then can improve production efficiency.
Specific embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Refering to Fig. 1, in detection method one embodiment of mobile terminal of the present invention, comprise the steps:
Step S101:After the bootstrap and kernel loads of mobile terminal operating system, mobile terminal operation system
Before system starts, start test application program, detected with the presumptive test project to mobile terminal.
The starting procedure of mobile terminal usually Bootloader (Bootloader), kernel, operating system, interior successively
Put application.In the present invention, mobile terminal after finishing assembly, when entering detection operation, first to establishing machine on mobile terminal by cable, moves
After electricity in dynamic terminal, the bootstrap of start-up operation system, then load kernel (inclusion load driver program), then moving
Before the os starting of terminal, start test application program, that is, enter testing process, with the presumptive test to mobile terminal
Project is detected.Wherein, this test application program can be write according to the requirement of test event, and to each test event
The concrete method of testing of such as loudspeaker, display screen etc. for different test parameters or can require to carry out coding, this
Bright this is not limited.For the android system based on linux system, test application program can be compiled as one
Individual Linux application, after starting this application, can detect to the dependence test project of mobile terminal.
Wherein it is possible to choose whether to start test application program by a single button or combination button.For example
Can by volume "+" button select start test application program, that is, after mobile terminal bootload program and kernel, move
Before the os starting of dynamic terminal, if detect volume "+" button is pressed, and starts test application program, enters inspection
Flow gauge, if be not detected by volume "+" button is pressed, mobile terminal carries out normal boot-strap, that is, start start-up operation system
System.It is of course also possible to chosen whether by power button start test application program, that is, when detect power button by by
Under, then start test application program;Or choose whether to start test application by the Macintosh of power button+volume button
Program, that is, when detect power button and volume "+" button be pressed simultaneously when, start test application program.
Further, it is also possible to the instruction starting test application program is received it is also possible to store by reading by external interface
Starting test application program, for example, mobile terminal establishes machine by cable upper to default file on card, in bootload program and kernel
Afterwards, and before os starting, read the default file on storage card, when reading default file on a memory card,
Then start test application program, otherwise enter normal start process, i.e. start-up operation system.
Wherein, presumptive test project is test event set in advance, can be pre-configured with a text it would be desirable to survey
The item record of examination is to this article presents.After test application program starts, before presumptive test project is tested, first
Read this pre-configured text, then according to text, test event is registered, to generate test item list, this test
Item list is the list of presumptive test project, thus obtaining presumptive test project according to test item list, and then to pre- location survey
Examination project is detected.
Step S102:The testing result of output presumptive test project, to judge presumptive test project pair according to testing result
Whether the function of answering is normal;Or directly export the whether normal information of the corresponding function of presumptive test project.
After the presumptive test project of mobile terminal is detected, the testing result of output presumptive test project, thus survey
According to this testing result, examination personnel can judge whether the corresponding function of presumptive test project is normal.Wherein, export presumptive test
The mode of the testing result of project can be that by the screen of mobile terminal, testing result is directly displayed to tester's viewing,
Can also be to transmit testing result to be shown to tester's viewing to other display devices, or testing result is stored
To storage device, or testing result is printed out, can be judged according to the testing result of output by this tester
Whether whether the corresponding function of presumptive test project normal, to determine mobile terminal as certified products.
Additionally, whether export the corresponding function of presumptive test project in the alternative or directly normal
Information, for example directly display that wifi function is normal or abnormal information, thus tester can be visually seen pre- location survey
Whether the corresponding function of examination project is normal.
In present embodiment, when detecting to mobile terminal, due to withouting waiting for os starting, therefore exist
The starting time waiting operating system can be saved in detection process, substantially reduce detection time, be conducive to improving detection effect
Rate.
In the present invention, in addition to can saving the starting time waiting until operating system, can also be to quickening to pre- location survey
The detection of examination project, thus reducing the testing time, and can reduce number of operations.Wherein, presumptive test project can be handed over
Mutually test event or automatic test event, can also include interactive testing project and automatic test event, specifically simultaneously
Can be configured according to actual needs, that is, start test application program, can be only interactive testing project to be detected,
Can be only automatic test event to be detected, can also be and interactive testing project and automatic test event are examined simultaneously
Survey.
Interactive testing project refers to need tester and mobile terminal to interact the project that can complete to test, from
Dynamic test event then refers to that mobile terminal can carry out detecting and be capable of the project of automatic decision testing result automatically.
Refering to Fig. 2, in another embodiment of detection method, presumptive test project is predetermined interactive testing item
Mesh, wherein, interactive testing project includes display screen detection project, vibrator detection project, loudspeaker detection project, backlight detection
Mesh etc., can also include the interactive testing project that others need man-machine interaction to be detected, the detection of such as microphone, SIM
Detection of card interface etc..In present embodiment, the step that the presumptive test project of mobile terminal is detected includes:
Step S201:Display human-computer interaction interface.
When presumptive test project is interactive testing project, due to needing man-machine interaction, and test application program is starting
When mobile terminal operating system also not actuated, so when also there is no available UI (User Interface, human-machine interface
Mouthful) system supply tester's use, therefore, it can make test application program carry a small-sized UI module, simple to provide
API (Application interface, apply function interface) use to inside test application program, thus realizing interacting
The test of test event, this UI module can be using some small-sized Linux UI it is also possible to be write as needed.
When entering test application program, start UI module first, to show human-computer interaction interface to tester, for test
Personnel interact one interface of offer with mobile terminal.
Step S202:Receive the test instruction in human-computer interaction interface input, to instruct to mobile terminal according to test
Interactive testing project is detected, and then the presumptive test project of mobile terminal is detected.
Tester can human-computer interaction interface input need detection test event dependence test instruction, with to need
Test event to be detected is detected.Wherein, mobile terminal, after starting UI module, first reads pre-configured text literary composition
Part, this pre-configured text have recorded the information of the test event needing detection, the title of such as test event, attribute
(for interactive testing project or automatic test event), then generates test item list according to this pre-configured text, should
Test item list is the list of the test event needing detection, thus being entered item by item to interactive testing project according to test item list
Row test.When being tested, tester's input test instruction item by item in human-computer interaction interface, mobile terminal receives test
After the test instruction of the input of personnel, corresponding interactive testing project is detected, thus realizing mobile terminal is made a reservation for
The detection of test event.
Certainly, tester can also select the interactive testing project being mutually independent of each other is tested simultaneously, you can with
Input next test needed for interactive testing project again after the complete previous item interactive testing project of mobile terminal test need not be waited to refer to
Order, in previous item interactive testing project just in test process, can input the test instruction of next interactive testing project, now
Mobile terminal receives the multiple tests instruction in human-computer interaction interface input, with according to multiple test instructions respectively to corresponding and
Separate multiple interactive testing projects are detected simultaneously.For example, for vibrator and two interactive testing projects of loudspeaker,
Vibrator can experience its vibrations by hand, and loudspeaker can pass through its sound of ear, the test of this test event of two
Mode is mutually independent of each other, and therefore tester can select to carry out the test of this two interactive testing projects simultaneously, and moves
Dynamic terminal is then passed through the parameters such as vibration frequency, the size of current of loudspeaker of collection vibrator and is obtained testing result and export.Right
In the detection process of each test event specific, refer to traditional method of testing and carry out, do not carry out concrete restriction herein.
By detecting to multiple interactive testing projects being independent of each other simultaneously, can greatly reduce test required when
Between, improve testing efficiency.
Complete to test in need interactive testing project detection after, mobile terminal export testing result, for example
The testing result of all interactive testing projects can be shown by test report, tester can be according to the detection of display
Result judges whether the function corresponding to corresponding interactive testing project is normal.For example for the detection project of loudspeaker, it is shown in
The size of current of loudspeaker is flow through, thus whether just the function that tester can judge loudspeaker according to this size of current in test process
Often.It is of course also possible to be directly to export the whether normal test result of horn function, so that tester can be visually seen
Testing result.It is of course also possible to be the testing result showing a test event after completing a detection, so that test
Personnel quickly know testing result.
Wherein, after output testing result, tester can also select certain one or more test event is carried out with weight
Repetition measurement tries, to ensure the accuracy of test result.
Wherein, when interacting test event, it usually needs needed for first initialization apparatus and acquisition test process
The data of relevant device.In order to reduce the testing time further it is preferable that start UI module with show human-computer interaction interface it
Afterwards, after generating test item list, start backstage and assist process, the interactive testing needing to be tested is obtained according to test item list
Project, thus the initialization equipment related to the interactive testing project of mobile terminal, and obtains interactive testing project and was testing
Required data in journey.For example, before the test instruction receiving tester's input, complete the initialization of telephone baseband module
With the acquisition of this telephone baseband module related data, thus when testing to telephone baseband module it is not necessary to wait phone
The initialization procedure of baseband module, such that it is able to receive telephone baseband module test instruct after immediately to telephone baseband mould
Block is detected, can accelerate the speed detecting.
In the another embodiment of the detection method of mobile terminal of the present invention, wherein, presumptive test project is automatic survey
Examination project, automatic test event is mobile terminal and can automatically be detected and can voluntarily carry out judging the item of testing result
Mesh.Automatically test event can include WIFI detection project, GPS detection project, bluetooth detection project and SIM detection project
One or more of.In present embodiment, after establishing machine bootload program and kernel on mobile terminals by cable, mobile whole
Before the os starting at end, start test application program, automatic detection is carried out to the automatic test event of mobile terminal, from
And realize the presumptive test project of mobile terminal is detected.Wherein, before being detected, read pre-configured text literary composition
Part, to generate the test item list of automatic test event, to carry out one by onechecking according to test item list to automatic test event.
It is of course also possible to automatic detection be carried out to the multinomial automatic test event being independent of each other, to improve the efficiency of detection simultaneously.
After the detection completing automatic test event, mobile terminal exports the testing result of each test event, thus testing
According to testing result, personnel can judge whether corresponding function is normal.It is of course also possible to be that each test event of direct output corresponds to
Function whether normal information, thus tester can be intuitive to see final testing result.
In the another embodiment of detection method of mobile terminal of the present invention, can be to interactive testing project and automatic test
Project is detected simultaneously, to realize the detection of the presumptive test project to mobile terminal.In present embodiment, using foreground simultaneously
Row interactive testing item detection, the mode that backstage carries out the detection of automatic test event detects to mobile terminal.
Further, after establishing machine bootload program and kernel on mobile terminals by cable, the operating system of mobile terminal
Before startup, start test application program to detect to interactive testing project and automatic test event.Specifically, open first
UI module in dynamic test application program, to provide human-computer interaction interface, then carries out the registration of test event, that is, read in advance
The text of configuration, to generate the test item list including interactive testing project and automatic test event, starts backstage simultaneously
Assistance process, obtains, according to test item list, the interactive testing project needing to be tested, thus carrying out and interactive testing project
Relevant device initialization data obtain, for follow-up interactive testing project detection provide test condition.Afterwards, according to survey
Examination item list automatically carries out the detection of automatic test event on backstage, and the detection in foreground parallel interactive testing project.Complete
After becoming automatic test event and the detection of interactive testing project, by the testing result of automatic test event and interactive testing project
Testing result shows all in same test report, thus according to test report, tester can judge that each test event is corresponding
Whether function is normal.
In present embodiment, can be tested again without the os starting when mobile terminal, and simultaneously
Interact test event and the detection of automatic test event, thus can greatly shorten the time of detection, testing efficiency is provided.
Refering to Fig. 3, in detecting system one embodiment of mobile terminal of the present invention, including detection module 301 and output mould
Block 302.Wherein, detection module 301 is used for after the bootstrap and kernel loads of mobile terminal operating system, in mobile terminal
Os starting before, start test application program, detected with the presumptive test project to mobile terminal.Wherein,
Test application program can be write according to specific test event, and the present invention does not limit to this.Output module 302 is used for
The testing result of output presumptive test project, thus according to this testing result, tester can judge that presumptive test project corresponds to
Function whether normal.Certainly, output module 302 can also be that directly whether the output corresponding function of presumptive test project is normal
Information, thus tester can be visually seen each function whether normal testing result.Output module 302 can be mobile whole
The display screen at end, in order to show testing result naturally it is also possible to be the display device being connected with mobile terminal, can also be printing
Equipment etc..
Wherein, presumptive test project can be interactive testing project, the such as detection such as display screen, vibrator, loudspeaker, backlight
Project or automatic test event, the test event automatically such as such as wifi, GPS, interactive testing item can also be included simultaneously
Mesh and automatic test event.The test event that test application program then can be tested as needed is write, right to realize
The detection of each test event, the present invention does not limit to this.
By the detecting system of the present invention, when mobile terminal is detected, the standby communication terminal such as can save
Os starting time, be thus substantially shorter the testing time, improve detection efficiency.
Refering to Fig. 4, in another embodiment of detecting system of mobile terminal of the present invention, it is single that detection module 301 includes display
Unit 401, for showing human-computer interaction interface;Receiving unit 402, for receiving the test instruction in human-computer interaction interface input;
First detector unit 403, for being detected to the interactive testing project of mobile terminal according to test instruction, and then practises to shifting
The presumptive test project of dynamic terminal is detected.
In present embodiment, presumptive test project is interactive testing project, and that is, test application program is for interactive testing
The test program that project is detected.During due to being tested, the operating system of mobile terminal is also not actuated, and now also not having can
UI system, an integrated small-sized UI module therefore in test application program, in order to provide the interface of a personal-machine interaction,
And provide API to use to test program inside.When startup test application program is tested, start UI module first, that is,
Display unit 401 shows human-computer interaction interface, thus tester can be interacted with mobile terminal by human-computer interaction interface.
Wherein, detecting system also includes generation module 303, and generation module is used for receiving test instruction in receiving unit 402
Before, generate the test list of test event according to pre-configured text, the first detector unit 403 is according to test item list
Obtain the interactive testing project needing to be detected, and according to test instruction, the interactive testing project needing to be detected is carried out
Detection.Output module 302 exports the testing result of the first detector unit 403.Hereby it is achieved that the detection to interactive testing project.
In the preferred embodiment of detecting system of the present invention, detecting system can be simultaneously to multiple separate interactions
Test event is detected, to shorten detection time further, improves testing efficiency.Specifically, tester can be simultaneously defeated
Enter the test instruction of multiple interactive testing projects being independent of each other, or the process tested in previous interactive testing project
The middle test instruction inputting another interactive testing project.Receiving unit 402 receives the plurality of test instruction, thus the first detection is single
Unit 403 is detected to the corresponding multiple interactive testing projects being independent of each other respectively according to multiple test instructions simultaneously, thus
Detection time can be greatly shortened, improve testing efficiency.
Additionally, in another preferred embodiment of detecting system of the present invention, as shown in figure 5, detection module 301 also includes
Initialization unit 404, for initializing the equipment related to the interactive testing project of mobile terminal, and obtain and mobile terminal
Data needed in test process for the interactive testing project so that the first detector unit 403 is realized to interactive testing project
Detection.When testing to interactive testing project, such as when telephone baseband module being detected, need to initialize phone base
Band module, and obtain the data of telephone baseband module, provide for follow-up test and prepare.In present embodiment, starting UI mould
After block, that is, after showing human-computer interaction interface, generation module 303 generates test item list according to pre-configured text, initially
Change unit 404 and the interactive testing project needing to be tested is obtained according to test item list, thus initialization and interactive testing item
The related equipment of mesh, such as initialization telephone baseband module etc., and obtain required data in test process, such as version letter
Breath, thus the first detector unit 403 is when detecting to interactive testing project, can save waiting facilities initialized when
Between, can directly be tested, thus can be shortened detection time further.
Refering to Fig. 6, in the another embodiment of the detecting system of mobile terminal of the present invention, detection module 301 includes second
Detector unit 601, for carrying out automatic detection to the automatic test event of mobile terminal, with the presumptive test item to mobile terminal
Mesh is detected.The inspection being detected as the automatic test event to mobile terminal i.e. in present embodiment, to presumptive test project
Survey.Automatically test event is included in WIFI detection project, GPS detection project, bluetooth detection project and SIM detection project
One or more.Detection to automatic test event, is carried out without man-machine interaction, and mobile terminal can be carried out to automatic test event
Automatic detection, can voluntarily judge testing result.Output module 302 exports the testing result of automatic test event.
In present embodiment, after the bootstrap and kernel loads of mobile terminal, the os starting of mobile terminal
Before, start test application program, generation module 303 generates the test item of automatic test event according to pre-configured text
List, the second detector unit 601 obtains, according to test item list, the automatic test event needing to be detected, thus surveying to automatic
Examination project carries out automatic detection.
In a preferred embodiment of detecting system of the present invention, separate multiple automatic test event can be made same
Shi Jinhang detects.I.e. start test application program when, make the second detector unit 601 simultaneously to be independent of each other multiple from
Dynamic test event is detected, is thus substantially shorter detection time, improves testing efficiency.
Refering to Fig. 7, in the another embodiment of detecting system of the present invention, detection module 301 can be to interactive testing project
Detected with automatic test event simultaneously.In present embodiment, detection module 301 includes display unit 401, receiving unit
402nd, the first detector unit 403, the second detector unit 601 and initialization unit 404.Wherein, with above-mentioned each detecting system
Label identical unit, effect is also identical.
In the present embodiment, after the bootstrap and kernel loads of mobile terminal, the operating system of mobile terminal opens
Before dynamic, start test application program.Now, start UI module first, i.e. display unit 401 display human-computer interaction interface, it
Generation module 303 generates the test item list of the test event needing detection according to pre-configured text afterwards.Initialization is single
Unit 404 and the second detector unit 601 complete corresponding task on backstage, and that is, initialization unit 404 obtains according to test item list
Need the interactive testing project of test, thus the initialization equipment related to interactive testing project, and obtain and interactive testing
Data needed in test process for the project.Second detector unit 601 completes to automatic test item on backstage according to test item list
Purpose detects.On foreground, receiving unit 402 receives the test instruction of tester, thus the first detector unit 403 is according to test
Instruction detects to interactive testing project.Output module 302 is according to the first detector unit 403 and the second detector unit 601
Detection, exports testing result, thus whether just tester can judge the corresponding function of each test event according to testing result
Often.
In present embodiment, interactive testing project and automatic test event are carried out simultaneously, thus can reduce test further
Time, greatly improve testing efficiency.
The foregoing is only embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilization is originally
Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, is included within the scope of the present invention.