CN105718324A - Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process - Google Patents
Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process Download PDFInfo
- Publication number
- CN105718324A CN105718324A CN201610025331.XA CN201610025331A CN105718324A CN 105718324 A CN105718324 A CN 105718324A CN 201610025331 A CN201610025331 A CN 201610025331A CN 105718324 A CN105718324 A CN 105718324A
- Authority
- CN
- China
- Prior art keywords
- powered
- fault
- instruction
- test
- analysis program
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/30—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention discloses a simulation testing method, apparatus and device for abnormal power-down of a mobile terminal in an upgrade process. The method comprise the following steps: acquiring a parsing program and an upgrade script, wherein an abnormal power-down detection interface is provided in the parsing program, and an abnormal power-down testing instruction is set at a preset position in the upgrade script; and parsing the upgrade script by means of the parsing program, so as to upgrade a mobile terminal, and when the abnormal power-down testing instruction is parsed out, sending an instruction to a recovery process by means of the abnormal power-down detection interface, so as to enable the recovery process to perform abnormal power-down processing. According to the method, abnormal power-down conditions at different stages in an upgrade process of the mobile terminal can be simulated, so that a test can be conveniently performed on the abnormal power-down processing, a convenient and quick condition can be provided for the test, and testing efficiency can be improved.
Description
Technical field
The present invention relates to technical field of mobile terminals, particularly to the analog detection method of a kind of updating mobile terminal process exception power down, device and equipment.
Background technology
In order to obtain better service or solve the leftover problem of mobile terminal early stage, mobile terminal can be upgraded by user.But, in escalation process probably due to abnormal operation (as long by power key or extract the operations such as battery) or other factors and the mobile terminal powered-off fault that causes can cause upgrading abnormal, even resulting in mobile terminal cannot use.In order to avoid this situation occurs, some treatment measures can be taked for the situation of powered-off fault in escalation process, and these treatment measures are tested, to ensure treatment effect.
At present, the situation of powered-off fault in simulating mobile terminal escalation process can be passed through, test so that powered-off fault is processed, but, it is all by Artificial Control mobile terminal power-off mostly, and tests, labor intensive, particularly when high-volume is tested, inefficient.
Summary of the invention
It is contemplated that solve above-mentioned technical problem at least to a certain extent.
For this, it is an object of the present invention to propose the analog detection method of a kind of updating mobile terminal process exception power down, the method can for mobile terminal the powered-off fault mode that escalation process exists be simulated test, improve follow-up powered-off fault testing efficiency.
Second purpose of the present invention is in that to propose the simulating test device of a kind of updating mobile terminal process exception power down.
3rd purpose of the present invention is in that to propose a kind of equipment.
For reaching above-mentioned purpose, first aspect present invention embodiment proposes the analog detection method of a kind of updating mobile terminal process exception power down, the method comprises the following steps: obtain analysis program and upgrade script, wherein, having powered-off fault detection interface in described analysis program, the predetermined position in described upgrade script is provided with powered-off fault test instruction;By described analysis program, described upgrade script is resolved, so that described mobile terminal is upgraded, and when being resolved to the test instruction of described powered-off fault, detect interface by described powered-off fault and send instruction to recovering recovery process, so that described recovery recovery process carries out powered-off fault process.
The analog detection method of updating mobile terminal powered-off fault according to embodiments of the present invention, can in updating mobile terminal process, the powered-off fault test instruction in upgrade script is detected by the mobile detection of power loss interface in analysis program, and carry out powered-off fault process, can the powered-off fault situation of different phase in simulating mobile terminal escalation process, it is easy to powered-off fault is processed test, it is possible to provide convenient condition for test, improve testing efficiency.
It addition, the analog detection method of updating mobile terminal powered-off fault according to the above embodiment of the present invention can also have following additional technical characteristic:
In one embodiment of the invention, carry out powered-off fault process described in include: judge whether the instruction that described analysis program sends is powered-off fault test instruction;If the test instruction of described powered-off fault, then further determine whether abnormal power down test file;If there is no described powered-off fault test file, then create described powered-off fault test file, and control described mobile terminal and restart.
In one embodiment of the invention, described upgrade script includes the test instruction of multiple powered-off fault, and the test instruction of the plurality of powered-off fault is separately positioned on multiple predeterminated position.
Further, in one embodiment of the invention, described recovery recovery process carry out powered-off fault process include:
Described recovery recovery process is called the powered-off fault in described analysis program and is processed subprocess, and carries out powered-off fault process by described powered-off fault process subprocess.
In one embodiment of the invention, described recovery recovery process is called the powered-off fault in described analysis program by try_update_binary function interface and is processed subprocess.
For reaching above-mentioned purpose, the second aspect of the embodiment of the present invention proposes the simulating test device of a kind of updating mobile terminal process exception power down, including: acquisition module: be used for obtaining analysis program and upgrade script, wherein, having powered-off fault detection interface in described analysis program, the predetermined position in described upgrade script is provided with powered-off fault test instruction;Processing module: for described upgrade script being resolved by described analysis program, so that described mobile terminal is upgraded, and when being resolved to the test instruction of described powered-off fault, detect interface by described powered-off fault and send instruction to recovering recovery process, so that described recovery recovery process carries out powered-off fault process.
The simulating test device of updating mobile terminal powered-off fault according to embodiments of the present invention, can in updating mobile terminal process, the powered-off fault test instruction in upgrade script is detected by the mobile detection of power loss interface in analysis program, and carry out powered-off fault process, can the powered-off fault situation of different phase in simulating mobile terminal escalation process, it is easy to powered-off fault is processed test, it is possible to provide convenient condition for test, improve testing efficiency.
It addition, the simulating test device of updating mobile terminal powered-off fault according to the above embodiment of the present invention can also have following additional technical characteristic:
Whether in one embodiment of the invention, described processing module includes: first judges submodule, be powered-off fault test instruction for judging the instruction that described analysis program sends;Second judges submodule, for when described first judges that the instruction that submodule judges that described analysis program sends is the test instruction of described powered-off fault, further determining whether abnormal power down test file;Control submodule, for when described first judges that submodule judgement is absent from described powered-off fault test file, creating described powered-off fault test file, and control described mobile terminal and restart.
In one embodiment of the invention, upgrade script described in this device includes the test instruction of multiple powered-off fault, and the test instruction of the plurality of powered-off fault is separately positioned on multiple predeterminated position.
Further, in one embodiment of the invention, wherein, described recovery recovery process is called the powered-off fault in described analysis program and is processed subprocess, and carries out powered-off fault process by described powered-off fault process subprocess.
In one embodiment of the invention, wherein, described recovery recovery process is called the powered-off fault in described analysis program by try_update_binary function interface and is processed subprocess.
For reaching above-mentioned purpose, the third aspect of the embodiment of the present invention proposes a kind of equipment, including the simulating test device of above-mentioned updating mobile terminal process exception power down.
Equipment according to embodiments of the present invention, can in updating mobile terminal process, the powered-off fault test instruction in upgrade script is detected by the mobile detection of power loss interface in analysis program, and carry out powered-off fault process, can the powered-off fault situation of different phase in simulating mobile terminal escalation process, it is easy to powered-off fault is processed test, it is possible to provide convenient condition for test, improve testing efficiency.
The additional aspect of the present invention and advantage will part provide in the following description, and part will become apparent from the description below, or is recognized by the practice of the present invention.
Accompanying drawing explanation
Above-mentioned and/or the additional aspect of the present invention and advantage are from conjunction with will be apparent from easy to understand the accompanying drawings below description to embodiment, wherein:
Fig. 1 is the flow chart of the analog detection method of updating mobile terminal process exception power down according to embodiments of the present invention;
Fig. 2 is the flow chart that a powered-off fault according to embodiments of the present invention processes;
Fig. 3 is the structural representation of the simulating test device of updating mobile terminal process exception power down according to embodiments of the present invention;
Fig. 4 is the structural representation of processing module according to embodiments of the present invention;And
Fig. 5 is the structural representation of the simulating test device of a updating mobile terminal process exception power down according to embodiments of the present invention.
Detailed description of the invention
Being described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of same or like function from start to finish.The embodiment described below with reference to accompanying drawing is illustrative of, and is only used for explaining the present invention, and is not considered as limiting the invention.
Being described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of same or like function from start to finish.The embodiment described below with reference to accompanying drawing is illustrative of, it is intended to is used for explaining the present invention, and is not considered as limiting the invention.
Describe the analog detection method of updating mobile terminal process exception power down, device and the equipment that propose according to embodiments of the present invention in detail below with reference to the accompanying drawings, 1 describe the analog detection method of the updating mobile terminal process exception power down proposed according to embodiments of the present invention first with reference to the accompanying drawings.With reference to shown in Fig. 1, the flow chart of the method may comprise steps of:
S101: obtain analysis program and upgrade script, wherein, has powered-off fault detection interface in analysis program, the predetermined position in upgrade script is provided with powered-off fault test instruction.
Wherein, upgrade script is the upgrade file of mobile terminal.Analysis program, for upgrade script is resolved, to perform the instruction in upgrade script, completes the upgrading of mobile terminal.
Powered-off fault detection interface in analysis program is for identifying the powered-off fault test instruction in upgrade script.And the powered-off fault detection interface in analysis program is associated with the powered-off fault test instruction in upgrade script.
For example, in analysis program, powered-off fault detection interface can be defined as follows:
Further, in analysis program, powered-off fault detection interface can be associated in the following manner with powered-off fault testing item testing function.
RegisterFunction (" reboot_test ", RebootTestFn);
In an embodiment of the present invention, can including the test instruction of multiple powered-off fault in upgrade script, the test instruction of multiple powered-off faults is separately positioned on multiple predeterminated position.Wherein, the place of existing powered-off fault when the multiple powered-off faults test instruction arranged in upgrade script is for analog mark updating mobile terminal.For example, powered-off fault test instruction can be defined as: script.AppendExtra (' reboot_test ();'), wherein reboot_test () is the powered-off fault test keyword of upgrade script, owing in analysis program, powered-off fault detection interface RebootTestFn is associated with powered-off fault testing item testing function reboot_test () in upgrade script, therefore, when analysis program is resolved to reboot_test () in upgrade script, the dissection process of powered-off fault can be carried out by RebootTestFn.
S102: upgrade script is resolved by analysis program, so that mobile terminal is upgraded, and when being resolved to powered-off fault test instruction, detect interface by powered-off fault and send instruction to recovering recovery process, so that recover recovery process to carry out powered-off fault process.
In an embodiment of the present invention, by analysis program, upgrade script has been resolved the updating operation of mobile terminal.When analysis program powered-off fault instruction in being resolved to upgrade script, analysis program sends powered-off fault instruction to recovering recovery process, recovers recovery process and receives the powered-off fault instruction that analysis program sends.Recovering recovery process self to process according to the powered-off fault instruction received, further, recovering recovery process can also process subprocess by the powered-off fault that try_update_binary function interface calls in analysis program.
In one embodiment of the invention, Fig. 2 is the flow chart that a powered-off fault according to embodiments of the present invention processes.As in figure 2 it is shown, the powered-off fault in upgrade script can comprise the following steps that
S201: judge that analysis program sends whether instruction is powered-off fault test instruction.
Owing to analysis program is used for resolving upgrade script, and upgrade script includes upgrade command and powered-off fault instruction, therefore, when receiving the instruction that analysis program sends, it is necessary to judge whether this instruction is powered-off fault test instruction.
S202: if powered-off fault test instruction, then further determine whether abnormal power down test file.
In embodiments of the present invention, when recovering recovery process judges it is powered-off fault test instruction, abnormal power down test file can be further determined whether.For example, powered-off fault test file can be cache/recovery/reboot_test.By judging whether powered-off fault test file exists, recover recovery process to operate accordingly according to the result judged, such as when judging abnormal power down test file, recover recovery process to be processed by the treatment progress of self, the powered-off fault process subprocess called in analysis program also by try_update_binary function interface processes, the operation that mobile terminal carries out restarting or shutting down need not be controlled, more effectively make that mobile terminal is disposable as much as possible in escalation process completes updating operation.
S203: if there is no powered-off fault test file, then create powered-off fault test file, and control mobile terminal and restart.
In an embodiment of the present invention, when recovering recovery process and judging to be absent from powered-off fault test instruction, recover recovery process and can automatically create powered-off fault test file according to the powered-off fault problem occurred, and control the action that mobile terminal carries out restarting or shutting down.By recovering recovery process creation powered-off fault test file, the operation carrying out Infinite Cyclic when powered-off fault occurs in escalation process in mobile terminal can be prevented effectively from, so that mobile terminal completes the simulation test of upgrading powered-off fault better.
Owing to upgrade script being provided with powered-off fault instruction at multiple different predeterminated positions, carry out powered-off fault instruction process by recovering recovery process, thus can the simulation powered-off fault problem of different phase in escalation process.Such as, can be that 20% and 60% place arranges powered-off fault instruction in upgrading progress, thus when mobile phone upgrading progress reaches 20% and 60%, mobile phone can be controlled and restarts.Thus the powered-off fault treatment effect arranged can be tested according to the upgrade case after restarting.Thus, carry out processing operation by the powered-off fault of diverse location in upgrade script, the powered-off fault request of the different update phase of simulation, it is simple to powered-off fault is processed and tests, provide convenient condition for test.
The analog detection method of updating mobile terminal powered-off fault according to embodiments of the present invention, can in updating mobile terminal process, the powered-off fault test instruction in upgrade script is detected by the mobile detection of power loss interface in analysis program, and carry out powered-off fault process, can the powered-off fault situation of different phase in simulating mobile terminal escalation process, it is easy to powered-off fault is processed test, it is possible to provide convenient condition for test, improve testing efficiency.
Describe the analoging detecting device of the updating mobile terminal process exception power down proposed according to embodiments of the present invention with reference to the accompanying drawings.With reference to shown in Fig. 3, the analoging detecting device 100 of this updating mobile terminal process exception power down includes: acquisition module 10 and processing module 20.
Wherein, acquisition module 10 is used for obtaining analysis program and upgrade script, wherein, has powered-off fault detection interface in analysis program, and the predetermined position in upgrade script is provided with powered-off fault test instruction.
Wherein, upgrade script is the upgrade file of mobile terminal.Analysis program, for upgrade script is resolved, to perform the instruction in upgrade script, completes the upgrading of mobile terminal.
Powered-off fault detection interface in analysis program is for identifying the powered-off fault test instruction in upgrade script.And the powered-off fault detection interface in analysis program is associated with the powered-off fault test instruction in upgrade script.
For example, in analysis program, powered-off fault detection interface can be defined as follows:
Further, in analysis program, powered-off fault detection interface can be associated in the following manner with powered-off fault testing item testing function.
RegisterFunction (" reboot_test ", RebootTestFn);
In an embodiment of the present invention, can including the test instruction of multiple powered-off fault in upgrade script, the test instruction of multiple powered-off faults is separately positioned on multiple predeterminated position.Wherein, the place of existing powered-off fault when the multiple powered-off faults test instruction arranged in upgrade script is for analog mark updating mobile terminal.For example, powered-off fault test instruction can be defined as: script.AppendExtra (' reboot_test ();'), wherein reboot_test () is the powered-off fault test keyword of upgrade script, owing in analysis program, powered-off fault detection interface RebootTestFn is associated with powered-off fault testing item testing function reboot_test () in upgrade script, therefore, when analysis program is resolved to reboot_test () in upgrade script, the dissection process of powered-off fault can be carried out by RebootTestFn.
Processing module 20 is for resolving upgrade script by analysis program, so that mobile terminal is upgraded, and when being resolved to powered-off fault test instruction, detect interface by powered-off fault and send instruction to recovering recovery process, so that recover recovery process to carry out powered-off fault process.
In an embodiment of the present invention, upgrade script has been resolved the updating operation of mobile terminal by processing module 20 by analysis program.When analysis program powered-off fault instruction in being resolved to upgrade script, analysis program sends powered-off fault instruction to recovering recovery process, recovers recovery process and receives the powered-off fault instruction that analysis program sends.Recovering recovery process self to process according to the powered-off fault instruction received, further, recovering recovery process can also process subprocess by the powered-off fault that try_update_binary function interface calls in analysis program.
In one embodiment of the invention, as shown in Figure 4, processing module 20 also includes: the first sub-judge module 21, second judge submodule 22 and control submodule 23.
Wherein, first judges whether the instruction that submodule 21 sends for judging analysis program is powered-off fault test instruction.Owing to analysis program is used for resolving upgrade script, and upgrade script includes upgrade command and powered-off fault instruction, therefore, when receiving the instruction that analysis program sends, it is necessary to judge whether this instruction is powered-off fault test instruction.
Second judges that submodule 22 is for when first judges that the instruction that submodule 21 judges that analysis program sends is powered-off fault test instruction, further determining whether abnormal power down test file.In embodiments of the present invention, when recovering recovery process judges it is powered-off fault test instruction, abnormal power down test file can be further determined whether.For example, powered-off fault test file can be cache/recovery/reboot_test.By judging whether powered-off fault test file exists, recover recovery process to operate accordingly according to the result judged, such as when judging abnormal power down test file, recover recovery process to be processed by the treatment progress of self, the powered-off fault process subprocess called in analysis program also by try_update_binary function interface processes, the operation that mobile terminal carries out restarting or shutting down need not be controlled, more effectively make that mobile terminal is disposable as much as possible in escalation process completes updating operation.
Control submodule 23 for when first judges that submodule 21 judges to be absent from powered-off fault test file, establishment powered-off fault test file, and control mobile terminal and restart.
In an embodiment of the present invention, when recovering recovery process and judging to be absent from powered-off fault test instruction, recover recovery process and can automatically create powered-off fault test file according to the powered-off fault problem occurred, and control the action that mobile terminal carries out restarting or shutting down.By recovering recovery process creation powered-off fault test file, the operation carrying out Infinite Cyclic when powered-off fault occurs in escalation process in mobile terminal can be prevented effectively from, so that mobile terminal completes the simulation test of upgrading powered-off fault better.
Owing to upgrade script being provided with powered-off fault instruction at multiple different predeterminated positions, carry out powered-off fault instruction process by recovering recovery process, thus can the simulation powered-off fault problem of different phase in escalation process.Such as, can be that 20% and 60% place arranges powered-off fault instruction in upgrading progress, thus when mobile phone upgrading progress reaches 20% and 60%, mobile phone can be controlled and restarts.Thus the powered-off fault treatment effect arranged can be tested according to the upgrade case after restarting.Thus, carry out processing operation by the powered-off fault of diverse location in upgrade script, the powered-off fault request of the different update phase of simulation, it is simple to powered-off fault is processed and tests, provide convenient condition for test.
To sum up, the embodiment of the present invention can also carry out the description of entirety by Fig. 5, as it is shown in figure 5, be the structural representation of the simulating test device of a updating mobile terminal process exception power down according to embodiments of the present invention.
It should be noted that the specific implementation of the device of the embodiment of the present invention is similar with the specific implementation of method part, in order to reduce redundancy, do not repeat herein.
The simulating test device of updating mobile terminal powered-off fault according to embodiments of the present invention, can in updating mobile terminal process, the powered-off fault test instruction in upgrade script is detected by the mobile detection of power loss interface in analysis program, and carry out powered-off fault process, can the powered-off fault situation of different phase in simulating mobile terminal escalation process, it is easy to powered-off fault is processed test, it is possible to provide convenient condition for test, improve testing efficiency.
For reaching above-mentioned purpose, the third aspect of the embodiment of the present invention proposes a kind of equipment, including the simulating test device of above-mentioned updating mobile terminal process exception power down.
Equipment according to embodiments of the present invention, can in updating mobile terminal process, the powered-off fault test instruction in upgrade script is detected by the mobile detection of power loss interface in analysis program, and carry out powered-off fault process, can the powered-off fault situation of different phase in simulating mobile terminal escalation process, it is easy to powered-off fault is processed test, it is possible to provide convenient condition for test, improve testing efficiency.
Describe in flow chart or in this any process described otherwise above or method and be construed as, represent and include the module of code of executable instruction of one or more step for realizing specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press order that is shown or that discuss, including according to involved function by basic mode simultaneously or in the opposite order, performing function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Represent in flow charts or in this logic described otherwise above and/or step, such as, it is considered the sequencing list of executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (such as computer based system, including the system of processor or other can from instruction execution system, device or equipment instruction fetch the system performing instruction), or use in conjunction with these instruction execution systems, device or equipment.For the purpose of this specification, " computer-readable medium " can be any can comprise, store, communicate, propagate or transmission procedure is for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium includes following: have the electrical connection section (electronic installation) of one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read only memory (ROM), erasable edit read only memory (EPROM or flash memory), fiber device, and portable optic disk read only memory (CDROM).Additionally, computer-readable medium can even is that the paper that can print described program thereon or other suitable media, because can such as by paper or other media be carried out optical scanning, then carry out editing, interpreting or be processed to electronically obtain described program with other suitable methods if desired, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple steps or method can realize with the storage software or firmware in memory and by suitable instruction execution system execution.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic of logic gates for data signal realizes logic function, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries can be by the hardware that program carrys out instruction relevant and complete, described program can be stored in a kind of computer-readable recording medium, this program upon execution, including the step one or a combination set of of embodiment of the method.
Additionally, each functional unit in each embodiment of the present invention can be integrated in a processing module, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a module.Above-mentioned integrated module both can adopt the form of hardware to realize, it would however also be possible to employ the form of software function module realizes.If described integrated module is using the form realization of software function module and as independent production marketing or use, it is also possible to be stored in a computer read/write memory medium.
Storage medium mentioned above can be read only memory, disk or CD etc..
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means in conjunction with this embodiment or example describe are contained at least one embodiment or the example of the present invention.In this manual, the schematic representation of above-mentioned term is not necessarily referring to identical embodiment or example.And, the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiments or example.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that: these embodiments can being carried out multiple change, amendment, replacement and modification when without departing from principles of the invention and objective, the scope of the present invention is by claim and equivalency thereof.
Claims (11)
1. the analog detection method of a updating mobile terminal process exception power down, it is characterised in that comprise the following steps:
Obtaining analysis program and upgrade script, wherein, have powered-off fault detection interface in described analysis program, the predetermined position in described upgrade script is provided with powered-off fault test instruction;
By described analysis program, described upgrade script is resolved, so that described mobile terminal is upgraded, and when being resolved to the test instruction of described powered-off fault, detect interface by described powered-off fault and send instruction to recovering recovery process, so that described recovery recovery process carries out powered-off fault process.
2. the method for claim 1, it is characterised in that described in carry out powered-off fault process include:
Judge whether the instruction that described analysis program sends is powered-off fault test instruction;
If the test instruction of described powered-off fault, then further determine whether abnormal power down test file;
If there is no described powered-off fault test file, then create described powered-off fault test file, and control described mobile terminal and restart.
3. the method for claim 1, it is characterised in that wherein, described upgrade script includes the test instruction of multiple powered-off fault, and the test instruction of the plurality of powered-off fault is separately positioned on multiple predeterminated position.
4. method as claimed in claim 1 or 2, it is characterised in that described recovery recovery process carries out powered-off fault process and includes:
Described recovery recovery process is called the powered-off fault in described analysis program and is processed subprocess, and carries out powered-off fault process by described powered-off fault process subprocess.
5. method as claimed in claim 4, it is characterised in that described recovery recovery process is called the powered-off fault in described analysis program by try_update_binary function interface and processed subprocess.
6. the simulating test device of a updating mobile terminal process exception power down, it is characterised in that including:
Acquisition module: be used for obtaining analysis program and upgrade script, wherein, has powered-off fault detection interface in described analysis program, the predetermined position in described upgrade script is provided with powered-off fault test instruction;
Processing module: for described upgrade script being resolved by described analysis program, so that described mobile terminal is upgraded, and when being resolved to the test instruction of described powered-off fault, detect interface by described powered-off fault and send instruction to recovering recovery process, so that described recovery recovery process carries out powered-off fault process.
7. device as claimed in claim 6, it is characterised in that described processing module includes:
Whether first judges submodule, be powered-off fault test instruction for judging the instruction that described analysis program sends;
Second judges submodule, for when described first judges that the instruction that submodule judges that described analysis program sends is the test instruction of described powered-off fault, further determining whether abnormal power down test file;
Control submodule, for when described first judges that submodule judgement is absent from described powered-off fault test file, creating described powered-off fault test file, and control described mobile terminal and restart.
8. device as claimed in claim 6, it is characterised in that wherein, described upgrade script includes the test instruction of multiple powered-off fault, and the test instruction of the plurality of powered-off fault is separately positioned on multiple predeterminated position.
9. device as claimed in claims 6 or 7, it is characterised in that wherein, described recovery recovery process is called the powered-off fault in described analysis program and is processed subprocess, and carries out powered-off fault process by described powered-off fault process subprocess.
10. device as claimed in claim 9, it is characterised in that wherein, described recovery recovery process is called the powered-off fault in described analysis program by try_update_binary function interface and is processed subprocess.
11. an equipment, it is characterised in that include the simulating test device of updating mobile terminal process exception power down as described in any one of claim 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610025331.XA CN105718324A (en) | 2016-01-13 | 2016-01-13 | Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610025331.XA CN105718324A (en) | 2016-01-13 | 2016-01-13 | Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105718324A true CN105718324A (en) | 2016-06-29 |
Family
ID=56147878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610025331.XA Pending CN105718324A (en) | 2016-01-13 | 2016-01-13 | Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105718324A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471684A (en) * | 2019-08-14 | 2019-11-19 | 珠海格力电器股份有限公司 | The upgrading verification method and system of reliability can be examined |
CN111078484A (en) * | 2019-12-30 | 2020-04-28 | 深圳Tcl数字技术有限公司 | Power-off test method, device, equipment and storage medium for system upgrading |
CN112231228A (en) * | 2020-11-06 | 2021-01-15 | 广州极飞科技有限公司 | Firmware upgrade test method, device, platform, equipment and storage medium |
CN112291621A (en) * | 2020-10-29 | 2021-01-29 | 深圳创维-Rgb电子有限公司 | System upgrading automation test method, device and test equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070044052A1 (en) * | 2005-08-22 | 2007-02-22 | Samsung Electronics Co., Ltd. | Method of verifying the power off effect of a design entity at register transfer level and method of modeling the power off effect |
CN104765628A (en) * | 2015-03-10 | 2015-07-08 | 惠州Tcl移动通信有限公司 | Method and system for updating touch screen firmware of movable terminal |
-
2016
- 2016-01-13 CN CN201610025331.XA patent/CN105718324A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070044052A1 (en) * | 2005-08-22 | 2007-02-22 | Samsung Electronics Co., Ltd. | Method of verifying the power off effect of a design entity at register transfer level and method of modeling the power off effect |
CN104765628A (en) * | 2015-03-10 | 2015-07-08 | 惠州Tcl移动通信有限公司 | Method and system for updating touch screen firmware of movable terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110471684A (en) * | 2019-08-14 | 2019-11-19 | 珠海格力电器股份有限公司 | The upgrading verification method and system of reliability can be examined |
CN111078484A (en) * | 2019-12-30 | 2020-04-28 | 深圳Tcl数字技术有限公司 | Power-off test method, device, equipment and storage medium for system upgrading |
CN111078484B (en) * | 2019-12-30 | 2024-07-09 | 深圳Tcl数字技术有限公司 | Power-off test method, device, equipment and storage medium for system upgrade |
CN112291621A (en) * | 2020-10-29 | 2021-01-29 | 深圳创维-Rgb电子有限公司 | System upgrading automation test method, device and test equipment |
CN112231228A (en) * | 2020-11-06 | 2021-01-15 | 广州极飞科技有限公司 | Firmware upgrade test method, device, platform, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105718324A (en) | Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process | |
CN103458086B (en) | A kind of smart mobile phone and fault detection method thereof | |
CN102662701A (en) | Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer | |
TWI256587B (en) | Firmware upgrading method and system executing same | |
CN103744824A (en) | Outgoing testing method and testing system | |
CN107463500A (en) | Adjustment method, medium, system and the computing device of test script | |
CN111274154A (en) | Automatic testing method, device, equipment and storage medium | |
CN105404532A (en) | Rejuvenation method and apparatus for software in terminal device and terminal device | |
CN103514065A (en) | Electronic device with automatic detection and recovery function and method | |
CN107632901A (en) | A kind of self-repair method and device of application program operation exception | |
CN104777416A (en) | Testing method and tester for circuit board | |
CN108241560B (en) | Memory test method and device and electronic equipment | |
CN103929676A (en) | Method for remotely testing functions of intelligent television board card and intelligent television board card | |
CN104182330A (en) | Application recommendation method and device and terminal | |
CN108121560A (en) | Difference bag upgrade method, device, terminal and computer readable storage medium | |
CN106843947A (en) | The treating method and apparatus of aacode defect | |
CN109324918A (en) | Application program exception handling method and device, terminal and storage medium | |
CN104216802A (en) | Memory database recovery method and device | |
CN105868047A (en) | Repairing method and device of data partition, and terminal | |
CN105550114A (en) | Automated testing method and apparatus and mobile terminal | |
CN105786636A (en) | System repairing method and device | |
CN110708489A (en) | Communication method, communication device, electronic device and storage medium | |
CN104166609A (en) | Computer hardware device repairing method and device | |
CN103279334A (en) | Android software rapid dynamic detection device and method | |
CN105159810B (en) | The method and device that the BIOS of computer system is tested |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160629 |