CN108647140B - Test method and test system of mobile terminal - Google Patents

Test method and test system of mobile terminal Download PDF

Info

Publication number
CN108647140B
CN108647140B CN201810383710.5A CN201810383710A CN108647140B CN 108647140 B CN108647140 B CN 108647140B CN 201810383710 A CN201810383710 A CN 201810383710A CN 108647140 B CN108647140 B CN 108647140B
Authority
CN
China
Prior art keywords
mobile terminal
test
program
testing
user
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
CN201810383710.5A
Other languages
Chinese (zh)
Other versions
CN108647140A (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.)
Sichuan Kubi Communication Equipment Co.,Ltd.
Original Assignee
Sichuan Kubi Communication Equipment 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 Sichuan Kubi Communication Equipment Co ltd filed Critical Sichuan Kubi Communication Equipment Co ltd
Priority to CN201810383710.5A priority Critical patent/CN108647140B/en
Publication of CN108647140A publication Critical patent/CN108647140A/en
Application granted granted Critical
Publication of CN108647140B publication Critical patent/CN108647140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping

Landscapes

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

Abstract

The invention discloses a test method and a test system of a mobile terminal, wherein the test method comprises the following steps: step A, when detecting that the mobile terminal is triggered by starting up, the testing equipment judges the state of the mobile terminal according to the acquired data of the preset zone bit; step B, loading a user bootstrap program and starting up the computer when the state is judged to be tested; and step C, when the state is judged to be untested, skipping over a user bootstrap program, loading a factory test program and starting up. The invention skips the user bootstrap program under the condition of needing to test, directly loads the factory test program to enter the test link, and shortens the test time, thereby improving the production test efficiency.

Description

Test method and test system of mobile terminal
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a testing method and a testing system for a mobile terminal.
Background
With the continuous progress of technology, the production test automation of mobile terminals (such as mobile phones) has matured considerably. How to improve the production test efficiency has become a key technical point to be solved in the production of the mobile terminal. In the existing testing method, a mobile terminal needs to be started to enter a testing program, Google or a user guide program which is self-generated by a manufacturer and provided for a user needs to be loaded, the running time is different from 10 to 30 seconds, and even the running time is longer; then, the production test link can be entered through the forms of test commands or icons and the like. The user guide program is not a useful program in factory test, and the operation of the user guide program increases the test time and greatly reduces the production test efficiency.
Thus, the prior art has yet to be improved and enhanced.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide a method and a system for testing a mobile terminal, so as to solve the problems of the existing mobile terminal that the test time is prolonged and the production test efficiency is reduced due to the user boot program being run during the test.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of testing a mobile terminal, comprising:
step A, when detecting that the mobile terminal is triggered by starting up, the testing equipment judges the state of the mobile terminal according to the acquired data of the preset zone bit;
step B, loading a user bootstrap program and starting up the computer when the state is judged to be tested;
and step C, when the state is judged to be untested, skipping over a user bootstrap program, loading a factory test program and starting up.
In the method for testing a mobile terminal, before the step a, the method further includes:
and after the mobile terminal is produced, setting the initial value of the preset flag bit to be 0.
In the method for testing a mobile terminal, the step B specifically includes:
step B1, when the data of the preset zone bit is judged to be 1, loading the pre-edited user guide program to the memory of the mobile terminal;
and step B2, operating the user bootstrap program after detecting that the startup is finished.
In the method for testing a mobile terminal, the step C specifically includes:
step C1, when the data of the preset zone bit is judged to be 0, skipping over the user guide program, and loading the factory test program edited in advance to the memory of the mobile terminal;
step C2, operating a factory test program after the startup is detected and carrying out factory test;
and step C3, changing the data of the flag bit to 1 after the factory test is passed.
In the method for testing a mobile terminal, after the step C3, the method further includes:
and step C4, automatically restarting the mobile terminal, and returning to the step A.
A test system for realizing the test method of the mobile terminal comprises the mobile terminal and test equipment;
when the testing equipment detects that the mobile terminal is triggered by starting up, judging the state of the mobile terminal according to the acquired data of the preset zone bit; when the state is judged to be tested, the testing equipment loads a user bootstrap program in the mobile terminal, and the mobile terminal finishes starting up; and when the state is judged to be untested, the testing equipment skips over the user guide program, a factory testing program is loaded in the mobile terminal, and the mobile terminal is started.
Compared with the prior art, the test method and the test system of the mobile terminal provided by the invention have the advantages that when the mobile terminal is detected to be started and triggered, the test equipment judges the state of the mobile terminal according to the acquired data of the preset zone bit; when the state is judged to be tested, loading a user bootstrap program and starting up the computer; and when the state is judged to be untested, skipping over a user bootstrap program, loading a factory test program and starting up. The invention skips the user bootstrap program under the condition of needing to test, directly loads the factory test program to enter the test link, and shortens the test time, thereby improving the production test efficiency.
Drawings
Fig. 1 is a flowchart of a testing method of a mobile terminal according to the present invention.
Fig. 2 is a block diagram of a test system provided in the present invention.
Detailed Description
The invention provides a test method and a test system of a mobile terminal, which adopt a mode of writing a test flag bit to select whether to load a user bootstrap program, change the mode that the prior mobile terminal is started to enter the test program, and do not load the user bootstrap program in the test link, thereby improving the production test efficiency. In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the method for testing a mobile terminal according to the present invention includes:
s100, when the mobile terminal is detected to be triggered by starting, the testing equipment judges the state of the mobile terminal according to the acquired data of the preset zone bit;
s200, when the state is judged to be tested, loading a user bootstrap program and starting up the computer;
s300, when the state is judged to be untested, skipping over a user bootstrap program, loading a factory test program and starting up.
After the mobile terminal is produced, data of a preset zone bit is written in an NV (network video) area (a storage area in the mobile terminal) of the mobile terminal in advance. In this embodiment, the data is 0, which indicates that no production test is performed, and the state of the mobile terminal is not tested; a data of 1 indicates that the production test is passed and the state of the mobile terminal is tested. Before step S100, the method further includes: and after the mobile terminal is produced, setting the initial value of the preset flag bit to be 0. Data (namely 0 and 1) stored in the area with the preset zone bit is set to prohibit the user from rewriting, such as the mobile phone restores to factory settings and the like; it can only be rewritten by the test system.
When a factory test is performed, the mobile terminal is connected with a test device (generally, a data line is used for connection). When the mobile terminal is detected to be triggered by starting, the test equipment directly accesses the NV area to acquire the data of the preset zone bit to judge the state of the mobile terminal.
In this embodiment, the step S200 specifically includes:
step 210, when the data of the preset flag bit is judged to be 1, loading the pre-edited user boot program to the memory of the mobile terminal.
Step 220, running the user bootstrap program after detecting that the startup is finished.
If the flag bit is 1, it indicates that the mobile terminal has passed the factory test and passed, and its status is tested. When the mobile phone which passes the factory test is started again, the system is started for the first time, and the user bootstrap program is loaded normally. And running a user bootstrap program to guide the user to use the native machine and know the native machine functions, and then using the native machine normally.
In this embodiment, the step S300 specifically includes:
step 310, when the data of the preset zone bit is judged to be 0, skipping over a user guide program, and loading a factory test program edited in advance to a memory of the mobile terminal;
step 320, running a factory test program after detecting that the startup is finished and carrying out factory test;
in step 330, after the factory test is passed, the data of the flag bit is changed to 1.
If the flag bit is 0, the mobile terminal does not pass the factory test, a test link needs to be entered, and the factory test is directly performed without loading a user bootstrap program. Compared with the existing testing method, the loading running time of the user bootstrap program is saved, so that the testing time is reduced, and the production testing efficiency is improved.
After the step 330, further comprising:
step 340, automatically restarting the mobile terminal, and returning to step 100.
And the mobile terminal which passes the factory test is started again, the zone bit of the mobile terminal is already set to be 1, and after the step S100 is returned to judge the zone bit again, the system is started for the first time to normally load the user bootstrap program.
It should be understood that step S200 and step S300 are parallel steps, and corresponding steps are executed according to the data of the flag bits. In specific implementation, the method for determining the state of the mobile terminal may also use a hardware manner to replace the flag bit with a 0 position and a 1 position, so as to distinguish the state of the mobile terminal. If a fuse circuit is adopted, particularly a fuse and a resistor are arranged on a circuit board, and one end of the fuse is grounded; the other end of the fuse is connected with a detection pin of a processor (such as an MCU) and is also connected with a high level through a resistor. If the mobile phone does not pass the factory test and the fuse wire is not fused, the detection pin is pulled down to the ground to be at a low level, which is equivalent to that the data of the preset zone bit is 0; after the factory test is carried out, the fuse wire is fused, and then the detection pin is pulled up to a high level through the resistor, which is equivalent to that the data of the preset zone bit is 1. The data of the preset zone bit can be judged by judging the level on the detection pin.
Based on the above testing method for the mobile terminal, an embodiment of the present invention further provides a testing system for implementing the testing method for the mobile terminal, and please refer to fig. 2, where the testing system includes a mobile terminal 10 and a testing device 20. When the test device 20 detects that the mobile terminal is triggered by being powered on, the state of the mobile terminal is judged according to the acquired data of the preset zone bits. When the state is determined to be tested, the testing device 20 loads a user boot program in the mobile terminal, and the mobile terminal is turned on. When the state is judged to be untested, the test device 20 skips over the user boot program, loads the factory test program in the mobile terminal, and the mobile terminal is started up.
In summary, the present invention selects whether to load the user boot program on the mobile terminal by determining the value of the flag bit, and distinguishes different programs to be loaded when the mobile phone system is turned on by writing the flag bit. The user bootstrap program is skipped under the condition of needing to be tested, the factory test program is directly loaded to enter a testing link, 10-30 seconds are saved compared with the traditional method that the user bootstrap program is loaded and then the factory test program is entered, and the testing time is shortened, so that the production testing efficiency is improved, and the method is simple and high in reliability.
The division of the functional modules is only used for illustration, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the functions may be divided into different functional modules to complete all or part of the functions described above.
It should be understood that equivalents and modifications of the technical solution and inventive concept thereof may occur to those skilled in the art, and all such modifications and alterations should fall within the scope of the appended claims.

Claims (6)

1. A method for testing a mobile terminal, comprising:
step A, when detecting that the mobile terminal is triggered by starting up, the testing equipment judges the state of the mobile terminal according to the acquired data of the preset zone bit;
step B, when the state is judged to be tested, loading a user bootstrap program and starting up for the first time, operating the user bootstrap program to guide a user to use the local machine and know the functions of the local machine, and then normally using the local machine;
step C, when the state is judged to be untested, skipping over a user bootstrap program, directly carrying out factory test, loading a factory test program and starting up;
a fuse wire and a resistor are arranged on a circuit board of the mobile terminal, and one end of the fuse wire is grounded; the other end of the fuse is connected with a detection pin of a processor in the mobile terminal and is also connected with a high level through a resistor; and after the fuse wire is fused through factory test, judging the level on the detection pin to judge the data of the preset zone bit.
2. The method for testing a mobile terminal according to claim 1, further comprising, before step a:
and after the mobile terminal is produced, setting the initial value of the preset flag bit to be 0.
3. The method for testing a mobile terminal according to claim 2, wherein the step B specifically comprises:
step B1, when the data of the preset zone bit is judged to be 1, loading the pre-edited user guide program to the memory of the mobile terminal;
and step B2, operating the user bootstrap program after detecting that the startup is finished.
4. The method for testing a mobile terminal according to claim 2, wherein the step C specifically comprises:
step C1, when the data of the preset zone bit is judged to be 0, skipping over the user guide program, and loading the factory test program edited in advance to the memory of the mobile terminal;
step C2, operating a factory test program after the startup is detected and carrying out factory test;
and step C3, changing the data of the flag bit to 1 after the factory test is passed.
5. The method for testing a mobile terminal according to claim 4, further comprising, after said step C3:
and step C4, automatically restarting the mobile terminal, and returning to the step A.
6. A test system for implementing the test method of the mobile terminal according to claim 1, comprising the mobile terminal and a test device;
when the testing equipment detects that the mobile terminal is triggered by starting up, judging the state of the mobile terminal according to the acquired data of the preset zone bit; when the state is judged to be tested, the testing equipment loads a user bootstrap program in the mobile terminal, and the mobile terminal finishes starting up; and when the state is judged to be untested, the testing equipment skips over the user guide program, a factory testing program is loaded in the mobile terminal, and the mobile terminal is started.
CN201810383710.5A 2018-04-26 2018-04-26 Test method and test system of mobile terminal Active CN108647140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810383710.5A CN108647140B (en) 2018-04-26 2018-04-26 Test method and test system of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810383710.5A CN108647140B (en) 2018-04-26 2018-04-26 Test method and test system of mobile terminal

Publications (2)

Publication Number Publication Date
CN108647140A CN108647140A (en) 2018-10-12
CN108647140B true CN108647140B (en) 2022-03-08

Family

ID=63747411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810383710.5A Active CN108647140B (en) 2018-04-26 2018-04-26 Test method and test system of mobile terminal

Country Status (1)

Country Link
CN (1) CN108647140B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683039B (en) * 2018-12-21 2021-06-08 思必驰科技股份有限公司 Offline detection method and system for electronic product
CN110275807A (en) * 2019-06-21 2019-09-24 上海创功通讯技术有限公司 Detection method, system, equipment and the storage medium of smart machine
CN110208632A (en) * 2019-07-09 2019-09-06 深圳创维数字技术有限公司 A kind of method, system and storage medium for electromagnetic compatibility testing
CN112672329B (en) * 2020-12-01 2023-12-15 佛山市顺德区美的洗涤电器制造有限公司 Linkage function detection method, system and computer readable storage medium
CN113284549B (en) * 2021-05-19 2022-05-31 展讯通信(上海)有限公司 Method and device for testing chip leakage-writing electric programmable fuse

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446104B (en) * 2010-09-30 2016-06-08 研祥智能科技股份有限公司 The method starting computer system
US9442831B1 (en) * 2013-02-22 2016-09-13 American Megatrends, Inc. Automated testing of program code for processing a simple boot flag data structure
CN103929676B (en) * 2014-04-30 2017-07-28 广州视源电子科技股份有限公司 The method and intelligent television board of a kind of remote-controlled test intelligent television board function

Also Published As

Publication number Publication date
CN108647140A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN108647140B (en) Test method and test system of mobile terminal
CN104268075A (en) Test mode entry method and device and mobile terminal
CN102073517A (en) Upgrading and backup method and device for embedded system
CN110119280A (en) The method and device of more firmware upgrades
CN108519935B (en) Board card testing method and device, readable storage medium and computer equipment
CN105045699A (en) Method and system for automatic continuous running of consistency test of mobile terminal and intelligent card
CN103927242A (en) Display card testing system and display card testing method
CN106326051A (en) Method for realizing automatic switchover of OS (Operating System) in PXE (Pre-boot Execution Environment) testing environment
CN110928787B (en) Automatic test script recording and playback method, device, equipment and storage medium
CN109960657B (en) Test environment deployment method and related device
CN112015587B (en) Method and device for enhancing reliability of operating system
US20040177344A1 (en) Debugging method for the keyboard controller code
CN111427777A (en) SO L test method, system, equipment and medium
CN113396391A (en) Method and device for starting application program, electronic equipment and storage medium
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN114283876A (en) DDR signal quality test method, test device and test equipment
CN112731102A (en) Liquid crystal display television backlight fault detection method
CN113656285A (en) Method and system for automatic interconnection test of vehicle-mounted apple mobile phone
CN114461458A (en) Server memory test method, system, terminal and storage medium
CN107302605B (en) Configuration method and device of television proxy server, television and storage medium
CN111382016A (en) Method and device for connecting test terminal and computer
US11714744B2 (en) System and method for diagnosing a computing device in safe mode
CN118057191A (en) Pin testing method, device, equipment, medium and product of communication module
CN112256338B (en) SOC starting method and device, computer equipment and storage medium
CN114116033B (en) Method and device for modifying server configuration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200723

Address after: 644000 West Section of Gangyuan Road, Yibin Port Economic and Technological Development Zone, Yibin City, Sichuan Province

Applicant after: Sichuan Kubi Communication Equipment Co.,Ltd.

Address before: Futian District Sha Tau Street Shenzhen city Guangdong province 518000 Tairan nine Road East Building 704 Tang commercial

Applicant before: SHENZHEN MINGTAI TELECOMMUNICATION Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant