CN106354578A - Terminal testing method and terminal - Google Patents

Terminal testing method and terminal Download PDF

Info

Publication number
CN106354578A
CN106354578A CN201610724924.5A CN201610724924A CN106354578A CN 106354578 A CN106354578 A CN 106354578A CN 201610724924 A CN201610724924 A CN 201610724924A CN 106354578 A CN106354578 A CN 106354578A
Authority
CN
China
Prior art keywords
test
terminal
abnormality
program
log
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.)
Withdrawn
Application number
CN201610724924.5A
Other languages
Chinese (zh)
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610724924.5A priority Critical patent/CN106354578A/en
Publication of CN106354578A publication Critical patent/CN106354578A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0766Error or fault reporting or storing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/079Root cause analysis, i.e. error or fault diagnosis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a terminal testing method and a terminal. The method comprises the steps of detecting whether the terminal can meet the preset abnormal testing trigger condition or not, the abnormal testing trigger condition is used for judging whether transferring the prestored testing program to carry out abnormal testing to the terminal; generating and outputting the corresponding testing log, if meeting, the terminal is subjected to abnormal testing by the prestored testing program; generating and outputting the corresponding testing log, wherein the testing log comprises abnormal operation position of the program; the abnormal operation position of the program is used for locating or debugging the corresponding abnormity. The terminal testing method and a terminalcan help the terminal locate and analyze the problems simply and conveniently.

Description

A kind of terminal test method and terminal
Technical field
The present invention relates to electronic technology field, more particularly, to a kind of terminal test method and terminal.
Background technology
At present, terminal generally to record terminal using journal file log and the position that mistake in exception or program, because This opens some log and may consequently contribute to positioning analysises problem.But when mistake in program, if frequently adding debugging Program debug log, continually misprint daily record can significantly affect terminal operating performance.Particularly, in debugging some During the problem of disconnected correlation, if adding some debugging routines debug log, can badly influence in frequently substantial amounts of down trigger The runnability of system, affects Consumer's Experience, further affects terminal sale.However, being added without debugging routine debug log Print the runnability that corresponding error log log does not interfere with terminal system naturally, but after terminal goes wrong again no The effective orientation problem of method.It is thus desirable to a kind of simple, efficient terminal test scheme.
Content of the invention
The embodiment of the present invention provides a kind of terminal test method, can quickly and easily terminal be carried out extremely positioning and dividing Analysis, improves the convenient and swift property of terminal test.
In a first aspect, embodiments providing a kind of terminal test method, the method includes:
Whether detection terminal meets default abnormality test trigger condition, and described abnormality test trigger condition for judgement is No call the test program prestoring to carry out abnormality test to described terminal, generate and export corresponding test log;
If meeting, the test program prestoring is called to carry out corresponding abnormality test to described terminal, it is right to generate and export The test log answered;
Wherein, described test log includes program operation exception position, and described program operation exception position is used for described Terminal carries out corresponding abnormal positioning or debugs.
On the other hand, embodiments provide a kind of terminal, this terminal includes:
Whether detector unit, meet default abnormality test trigger condition, described abnormality test triggering for detection terminal Condition is used for determining whether to call the test program prestoring to carry out abnormality test to described terminal, generates and export corresponding test Daily record;
Processing unit, if the testing result for described detector unit is yes, calls the test program prestoring to described Terminal carries out corresponding abnormality test, generates and export corresponding test log;
Wherein, described test log includes program operation exception position, and described program operation exception position is used for described Terminal carries out corresponding abnormal positioning or debugs.
Whether the embodiment of the present invention can meet default abnormality test trigger condition, described abnormality test by detection terminal Trigger condition is used for determining whether to call the test program prestoring to carry out abnormality test to described terminal, generates and export corresponding Test log, if meeting, calls the test program prestoring to carry out corresponding abnormality test to described terminal, it is right to generate and export The test log answered, wherein, described test log includes program operation exception position, and it is right that described program operation exception position is used for Described terminal carries out corresponding abnormal positioning or debugs;So with the test program prestoring in dynamic call terminal, terminal can be entered Row abnormality test, and export corresponding test log, under conditions of not affecting terminal operating performance, can be quickly and easily right Terminal carries out positioning problems and analysis, improves the high efficiency of terminal test process and convenient and swift property.
Brief description
In order to be illustrated more clearly that embodiment of the present invention technical scheme, required use in embodiment being described below Accompanying drawing be briefly described it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of test processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of test processing method that another embodiment of the present invention provides;
Fig. 3 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal that another embodiment of the present invention provides;
Fig. 5 is a kind of structural representation of terminal that another embodiment of the present invention provides.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment a part of embodiment that is the present invention, rather than whole embodiments.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of not making creative work Example, broadly falls into the scope of protection of the invention.
It should be appreciated that when using in this specification and in the appended claims, term " inclusion " and "comprising" indicate The presence of described feature, entirety, step, operation, element and/or assembly, but it is not precluded from one or more of the other feature, whole Body, step, operation, the presence of element, assembly and/or its set or interpolation.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Hereafter clearly indicate other situations, otherwise " one " of singulative, " one " and " being somebody's turn to do " are intended to including plural form.
It will be further appreciated that, used in description of the invention and appended claims, term "and/or" is Refer to any combinations of one or more of the associated item listed and be possible to combine, and include these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if [described condition or event] is detected " can be interpreted to mean according to context " once it is determined that " or " in response to true Fixed " or " once [described condition or event] is detected " or " in response to [described condition or event] is detected ".
In implementing, the terminal described in the embodiment of the present invention including but not limited to such as has touch sensitive surface Other of the mobile phone of (for example, touch-screen display and/or touch pad), laptop computer or tablet PC etc is just Portable device.It is to be further understood that in certain embodiments, described equipment not portable communication device, but have tactile Touch the desk computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, describe the terminal including display and touch sensitive surface.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control bar.
Terminal supports various application programs, for example one or more of following: drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can execute in terminal can be public using at least one of such as touch sensitive surface Physical user-interface device.Can adjust among applications and/or in corresponding application programs and/or change and touch sensitive table The corresponding information of display in the one or more functions in face and terminal.So, the public physical structure of terminal (for example, touches Sensing surface) the various application programs with user interface directly perceived and transparent for a user can be supported.
Referring to Fig. 1, it is that the embodiment of the present invention provides a kind of schematic flow diagram of test processing method, test as depicted Process side may comprise steps of:
Whether s101, detection terminal meet default abnormality test trigger condition, and described abnormality test trigger condition is used for Determine whether to call the test program prestoring to carry out abnormality test to described terminal, generate and export corresponding test log;
In the embodiment of the present invention, user/system can in advance in the terminal self-defined setting some be used for determining whether to move State calls the test program of user/system self-defined write/setting in the terminal in advance, such as test/debugging routine debug The default abnormality test trigger condition of log.Described terminal can periodically or to detect whether this terminal meets in real time above-mentioned Default abnormality test trigger condition, if it is satisfied, so described terminal continues executing with step s102;Otherwise, flow process, institute are terminated State normal operation of terminal.
Wherein alternatively, described abnormality test trigger condition include following at least one: terminal puts out set of hanging scrolls part, terminal Power condition, system fault condition, Network Abnormal condition, application abnormal condition, program error condition.
Described abnormality test trigger condition may refer to the such as terminal of user/system self-defined setting in described terminal Needs are in and put out screen (i.e. terminal puts out set of hanging scrolls part), the power consumption needs in the terminal unit time more than or equal to default power threshold Whether (i.e. terminal power condition), terminal system break down, as slow in blue screen, operation etc. (i.e. system fault condition), eventually Bring out existing network network abnormal problem, such as exception in terminal networking or terminal access the Internet goes wrong or in networking feelings Under condition, there is applying operation exception problem in (i.e. Network Abnormal condition), the terminal such as slow, networking logon error of terminal operating, such as should The problems such as with program error occurring when running and Caton phenomenon etc. (applying abnormal condition), terminal operating slowly occurring, such as system The needs of program run-time error etc. (i.e. program error condition) or other self-defined setting of user/system call this terminal In the test program that prestores carry out the abnormality test trigger condition of abnormality test.
Described terminal can include smart mobile phone (as android mobile phone, ios mobile phone etc.), PC, panel computer, The Internets such as palm PC, mobile internet device (mid, mobile internet devices) or wearable intelligent equipment Equipment, the embodiment of the present invention is not construed as limiting.
S102, call the test program prestoring to carry out corresponding abnormality test to described terminal, generate and export corresponding Test log;Wherein, described test log includes program operation exception position, and described program operation exception position is used for described Terminal carries out corresponding abnormal positioning or debugs.
In the embodiment of the present invention, meet above-mentioned default abnormal survey when terminal detects this terminal in above-mentioned steps s101 During examination trigger condition, described terminal can be with the test of dynamic call user/system self-defined setting/storage in the terminal in advance Program (as debug log) carries out corresponding abnormality test to described terminal, further generates and export corresponding Test log, wherein, described test log can include terminal and abnormal position or problem, or can include program fortune Abnormal information or data for positioning or debugging described terminal, originally in the position of row exception/mistake or inclusion others Inventive embodiments are not construed as limiting.
Wherein alternatively, described call described in the test program that prestores corresponding abnormality test is carried out to described terminal, raw Become and export corresponding test log, comprising:
Corresponding abnormality test flag bit, described abnormality test flag bit is write in the test control system of described terminal Test control system for triggering described terminal calls the test program prestoring that described terminal is carried out with abnormality test, generates simultaneously Export corresponding test log;
The test program prestoring is called to carry out abnormality test to described terminal according to the instruction of described abnormality test flag bit, Generate and export corresponding test log.
In implementing, described terminal can write corresponding/related node control in the test control system of this terminal Value (writing corresponding abnormality test flag bit) processed, described abnormality test flag bit is used for triggering the testing and control of described terminal System calls the above-mentioned test program prestoring to carry out corresponding abnormality test to described terminal, or abnormal positioning/analysis, further Generate and export corresponding test log;Described terminal can pass through this terminal according to the instruction of described abnormality test flag bit Test control system call the above-mentioned test program prestoring to carry out corresponding abnormality test to this terminal, and then generate and export Corresponding test log.
For helping people that above-described embodiment is understood, it is described in detail below by an example and illustrates.False If described terminal writes/adds corresponding test program in the correlation module (as power consumption module, communication module etc.) of this terminal Debug log, and above-mentioned test program dynamic test log control mechanism is controlled (utilizing the test control of this terminal System processed carries out dynamic control), user/system adds in the associated process of this terminal in advance and calls to being applied to triggering simultaneously The test program debug log of above-mentioned write carries out abnormality test and exports/print the exception survey of corresponding test log log Examination trigger condition.Exemplarily distinguish as follows: assume described terminal corresponding test program of self-defined write in this terminal Debug log, such as add in interrupting irq.c file/test program debug log is as follows for write:
Dbg (" xinjiang eint module-index:%d, eint_sta=0x%x n ", reg_base, status);//xinjiang cr01698934
Further, described terminal can also add dynamic control/call test program in above-mentioned interruption irq.c file The method of log:
//xinjiang
Static int debug_lvl=0;
module_param(debug_lvl,int,0644);
#define dbg(fmt,args...)\
//xinjiang
Wherein, in the self-defined file in pufreq.c of described terminal, the abnormality test trigger condition of setting is as follows:
If (screen_off& (battery_level > 5%))
echo 1>/sys/module/irq/parameters/debug_lvl/;
It is that described abnormality test trigger condition is to judge whether described terminal system meets to put out screen state and unit interval Interior power consumption amount more than 5%, that is, meets go out screen and the fast abnormality test trigger condition of power consumption.
When described terminal detects this terminal system and meets above-mentioned abnormality test trigger condition, described terminal can be led to Cross and write value in the interdependent node of the test control system (as log control system) of described terminal, that is to say in described test control Corresponding abnormality test flag bit is write, described abnormality test flag bit is used for triggering and calls the above-mentioned test prestoring in system processed Program debug log carries out abnormality test to described terminal, generates and export corresponding test log log, further described Terminal opens corresponding test switch (log switch) by the test control system of this terminal thus printing or exporting related survey Examination daily record log.That is to say and meet above-mentioned go out screen and the fast abnormality test of power consumption when described terminal system detects this terminal During trigger condition, described terminal can control the corresponding echo value of dynamic write in the test control system of this terminal, that is, go up State the echo value in pufreq.c file, that is to say write corresponding abnormality test flag bit/value of statistical indicant, thus call above-mentioned right The test program answered carries out corresponding terminal abnormal Self -adaptive and exports/print corresponding test log log.When described end When end detects this terminal system and is unsatisfactory for above-mentioned abnormality test trigger condition, described terminal can normally be run, and never calls The above-mentioned test program prestoring carries out the test log that abnormality test then generates and exports/print correlation to described terminal Log, does not interfere with the related runnability of terminal yet.
Wherein alternatively, methods described also includes:
Corresponding terminal abnormal file is generated according to described test log;
Described terminal abnormal file is sent to corresponding server, so that described server is to described terminal abnormal file It is analyzed, generate corresponding offline reparation and wrap.
Described terminal can be according to the test log of above-mentioned generation/output, and the other-end abnormal data obtaining is (such as The data such as application abnormal data, terminal operating be slow) generate corresponding terminal abnormal file, further described terminal can be led to Cross network and above-mentioned terminal abnormal file is sent to corresponding server, so that described server is receiving described terminal abnormal During file, described terminal abnormal file is analyzed, and then generates corresponding offline reparation wrapping.
Wherein alternatively, methods described also includes:
Receive the described offline reparation bag that described server sends, and described offline reparation is installed and wrap, to recover described end The normal operation function at end.
Described terminal can be obtained corresponding with described terminal abnormal file offline from described server by network Repair bag, or, described terminal can actively receive the above-mentioned offline reparation bag that described server sends to described terminal.Optional Ground, described terminal can be installed described offline reparation in this terminal and wrap, to reduce/recovering the normal operation work(of this terminal Energy.
Alternatively, described terminal can also go out to this terminal according to the program operation exception position in above-mentioned test log Program/the position of existing problem carries out corresponding debugging/reparation, so that described terminal can recover/and also the normal operation of script terminal Function.
Whether the embodiment of the present invention can meet default abnormality test trigger condition, described abnormality test by detection terminal Trigger condition is used for determining whether to call the test program prestoring to carry out abnormality test to described terminal, generates and export corresponding Test log, if meeting, calls the test program prestoring to carry out corresponding abnormality test to described terminal, it is right to generate and export The test log answered, wherein, described test log includes program operation exception position, and it is right that described program operation exception position is used for Described terminal carries out corresponding abnormal positioning or debugs;So with the test program prestoring in dynamic call terminal, terminal can be entered Row abnormality test, and export corresponding test log, under conditions of not affecting terminal operating performance, can be quickly and easily right Terminal carries out positioning problems and analysis, improves the high efficiency of terminal test process and convenient and swift property.
Referring to Fig. 2, it is that another embodiment of the present invention provides a kind of schematic flow diagram of test processing method, as depicted Test processes side may comprise steps of:
Whether s201, detection terminal meet default abnormality test trigger condition, and described abnormality test trigger condition is used for Determine whether to call the test program prestoring to carry out abnormality test to described terminal, generate and export corresponding test log.
Wherein alternatively, described abnormality test trigger condition include following at least one: terminal puts out set of hanging scrolls part, terminal Power condition, system fault condition, Network Abnormal condition, application abnormal condition, program error condition.
S202, write corresponding abnormality test flag bit, described abnormality test in the test control system of described terminal The test control system that flag bit is used for triggering described terminal calls the test program prestoring to carry out abnormality test to described terminal, Generate and export corresponding test log.
S203, the test program prestoring is called to carry out exception to described terminal according to the instruction of described abnormality test flag bit Test, generates and exports corresponding test log;Wherein, described test log includes program operation exception position, described program Operation exception position is used for described terminal is carried out with corresponding abnormal positioning or debugs.
S204, according to described test log generate corresponding terminal abnormal file.
S205, described terminal abnormal file is sent to corresponding server, so that described server is to described terminal different Often file is analyzed, and generates corresponding offline reparation and wraps.
S206, receive the described offline reparation bag that described server sends, and install and described offline repair bag, to recover State the normal operation function of terminal.
Whether the embodiment of the present invention can meet default abnormality test trigger condition, described abnormality test by detection terminal Trigger condition is used for determining whether to call the test program prestoring to carry out abnormality test to described terminal, generates and export corresponding Test log, if meeting, calls the test program prestoring to carry out corresponding abnormality test to described terminal, it is right to generate and export The test log answered, wherein, described test log includes program operation exception position, and it is right that described program operation exception position is used for Described terminal carries out corresponding abnormal positioning or debugs;So with the test program prestoring in dynamic call terminal, terminal can be entered Row abnormality test, and export corresponding test log, under conditions of not affecting terminal operating performance, can be quickly and easily right Terminal carries out positioning problems and analysis, improves the high efficiency of terminal test process and convenient and swift property.
Refer to Fig. 3, be a kind of structural representation of terminal of the embodiment of the present invention, the described terminal of the embodiment of the present invention 3 include:
Whether detector unit 30, meet default abnormality test trigger condition for detection terminal, and described abnormality test is touched Clockwork spring part is used for determining whether to call the test program prestoring to carry out abnormality test to described terminal, generates and export corresponding survey Examination daily record;
Processing unit 31, if the testing result for described detector unit 30 is yes, calls the test program pair prestoring Described terminal carries out corresponding abnormality test, generates and export corresponding test log;
Wherein, described test log includes program operation exception position, and described program operation exception position is used for described Terminal carries out corresponding abnormal positioning or debugs.
Implementing of the unit being related in the embodiment of the present invention refers to correlation in the corresponding embodiment of Fig. 1 to Fig. 2 Functional unit or the description of implementation steps, will not be described here.
Whether the embodiment of the present invention can meet default abnormality test trigger condition, described abnormality test by detection terminal Trigger condition is used for determining whether to call the test program prestoring to carry out abnormality test to described terminal, generates and export corresponding Test log, if meeting, calls the test program prestoring to carry out corresponding abnormality test to described terminal, it is right to generate and export The test log answered, wherein, described test log includes program operation exception position, and it is right that described program operation exception position is used for Described terminal carries out corresponding abnormal positioning or debugs;So with the test program prestoring in dynamic call terminal, terminal can be entered Row abnormality test, and export corresponding test log, under conditions of not affecting terminal operating performance, can be quickly and easily right Terminal carries out positioning problems and analysis, improves the high efficiency of terminal test process and convenient and swift property.
Refer to Fig. 4, be a kind of structural representation of terminal of another embodiment of the present invention, the embodiment of the present invention described Terminal 4 may include that above-mentioned detector unit 30, processing unit 31, wherein,
Described abnormality test trigger condition include following at least one: terminal is put out set of hanging scrolls part, terminal power condition, is System fault condition, Network Abnormal condition, application abnormal condition, program error condition.
Wherein alternatively,
Described processing unit 31, specifically for writing corresponding abnormality test mark in the test control system of described terminal Will position, the test control system that described abnormality test flag bit is used for triggering described terminal calls the test program prestoring to described Terminal carries out abnormality test, generates and export corresponding test log;Called pre- according to the instruction of described abnormality test flag bit The test program deposited carries out abnormality test to described terminal, generates and export corresponding test log.
Wherein alternatively, described terminal also includes:
Signal generating unit 32, for generating corresponding terminal abnormal file according to described test log;
Transmitting element 33, for described terminal abnormal file is sent to corresponding server, so that described server pair Described terminal abnormal file is analyzed, and generates corresponding offline reparation and wraps.
Wherein alternatively, described terminal also includes:
Receiving unit 34, for receiving the described offline reparation bag that described server sends, and installs described offline reparation Bag, to recover the normal operation function of described terminal.
Implementing of the unit being related in the embodiment of the present invention refers to correlation in the corresponding embodiment of Fig. 1 to Fig. 2 Functional unit or the description of implementation steps, will not be described here.
Whether the embodiment of the present invention can meet default abnormality test trigger condition, described abnormality test by detection terminal Trigger condition is used for determining whether to call the test program prestoring to carry out abnormality test to described terminal, generates and export corresponding Test log, if meeting, calls the test program prestoring to carry out corresponding abnormality test to described terminal, it is right to generate and export The test log answered, wherein, described test log includes program operation exception position, and it is right that described program operation exception position is used for Described terminal carries out corresponding abnormal positioning or debugs;So with the test program prestoring in dynamic call terminal, terminal can be entered Row abnormality test, and export corresponding test log, under conditions of not affecting terminal operating performance, can be quickly and easily right Terminal carries out positioning problems and analysis, improves the high efficiency of terminal test process and convenient and swift property.
Referring to Fig. 5, it is a kind of terminal structure schematic diagram that another embodiment of the present invention provides.The present embodiment as depicted In terminal may include that one or more processors 801;One or more input equipments 802, one or more outut devices 803 and memorizer 804.Above-mentioned processor 801, input equipment 802, outut device 803 and memorizer 804 pass through bus 805 even Connect.Memorizer 802 is used for store instruction, and processor 801 is used for executing the instruction of memorizer 802 storage.Wherein, processor 801 For:
Whether detection terminal meets default abnormality test trigger condition, and described abnormality test trigger condition for judgement is No call the test program prestoring to carry out abnormality test to described terminal, generate and export corresponding test log;
If meeting, the test program prestoring is called to carry out corresponding abnormality test to described terminal, it is right to generate and export The test log answered;
Wherein, described test log includes program operation exception position, and described program operation exception position is used for described Terminal carries out corresponding abnormal positioning or debugs.
Further, described processor 801 is additionally operable to:
Described abnormality test trigger condition include following at least one: terminal is put out set of hanging scrolls part, terminal power condition, is System fault condition, Network Abnormal condition, application abnormal condition, program error condition.
Further, described processor 801 is additionally operable to:
Corresponding abnormality test flag bit, described abnormality test flag bit is write in the test control system of described terminal Test control system for triggering described terminal calls the test program prestoring that described terminal is carried out with abnormality test, generates simultaneously Export corresponding test log;
The test program prestoring is called to carry out abnormality test to described terminal according to the instruction of described abnormality test flag bit, Generate and export corresponding test log.
Further, described processor 801 is additionally operable to:
Corresponding terminal abnormal file is generated according to described test log;
Described terminal abnormal file is sent to corresponding server, so that described server is to described terminal abnormal file It is analyzed, generate corresponding offline reparation and wrap.
Further, described processor 801 is additionally operable to:
Receive the described offline reparation bag that described server sends, and described offline reparation is installed and wrap, to recover described end The normal operation function at end.
It should be appreciated that in embodiments of the present invention, alleged processor 801 can be CPU (central Processing unit, cpu), this processor can also be other general processors, digital signal processor (digital Signal processor, dsp), special IC (application specific integrated circuit, Asic), ready-made programmable gate array (field-programmable gate array, fpga) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device can also be any conventional processor etc..
Input equipment 802 can include Trackpad, fingerprint adopts sensor (for gathering the finger print information of user and fingerprint Directional information), mike etc., outut device 803 can include display (lcd etc.), speaker etc..
This memorizer 804 can include read only memory and random access memory, and to processor 801 provide instruction and Data.The a part of of memorizer 804 can also include nonvolatile RAM.For example, memorizer 804 can also be deposited The information of storage device type.
In implementing, processor 801 described in the embodiment of the present invention, input equipment 802, outut device 803 can Execute the implementation described in the first embodiment of terminal test method provided in an embodiment of the present invention and second embodiment, Also can perform the implementation of the terminal described by the embodiment of the present invention, will not be described here.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example of the embodiments described herein description Unit and algorithm steps, can be with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware With the interchangeability of software, generally describe composition and the step of each example in the above description according to function.This A little functions to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.Specially Industry technical staff can use different methods to each specific application realize described function, but this realization is not It is considered as beyond the scope of this invention.
Those skilled in the art can be understood that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
It should be understood that disclosed terminal and method in several embodiments provided herein, can be passed through it Its mode is realized.For example, device embodiment described above is only schematically, for example, the division of described unit, and only It is only a kind of division of logic function, actual can have other dividing mode when realizing, and for example multiple units or assembly can be tied Close or be desirably integrated into another system, or some features can be ignored, or do not execute.In addition, shown or discussed phase Coupling between mutually or direct-coupling or communication connection can be INDIRECT COUPLING or the communication by some interfaces, device or unit Connect or electricity, machinery or other forms connect.
The described unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention scheme Purpose.
Step in present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to It is that unit is individually physically present or two or more units are integrated in a unit.Above-mentioned integrated Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part in other words prior art being contributed, or all or part of this technical scheme can be in the form of software product Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or network equipment etc.) executes the complete of each embodiment methods described of the present invention Portion or part steps.And aforesaid storage medium includes: u disk, portable hard drive, read only memory (rom, read-only Memory), random access memory (ram, random access memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replace Change, these modifications or replacement all should be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right The protection domain requiring is defined.

Claims (10)

1. a kind of terminal test method is it is characterised in that methods described includes:
Whether detection terminal meets default abnormality test trigger condition, and described abnormality test trigger condition is used for determining whether to adjust With the test program prestoring, abnormality test is carried out to described terminal, generate and export corresponding test log;
If meeting, calling the test program prestoring to carry out corresponding abnormality test to described terminal, generating and export corresponding Test log;
Wherein, described test log includes program operation exception position, and described program operation exception position is used for described terminal Carry out corresponding abnormal positioning or debug.
2. the method for claim 1 it is characterised in that described abnormality test trigger condition include following at least one Kind: terminal puts out set of hanging scrolls part, terminal power condition, system fault condition, Network Abnormal condition, application abnormal condition, program error Condition.
3. the method for claim 1 it is characterised in that described call described in the test program that prestores described terminal is entered The corresponding abnormality test of row, generates and exports corresponding test log, comprising:
Write corresponding abnormality test flag bit in the test control system of described terminal, described abnormality test flag bit is used for The test control system triggering described terminal calls the test program prestoring to carry out abnormality test to described terminal, generates and exports Corresponding test log;
Call the test program prestoring to carry out abnormality test to described terminal according to the instruction of described abnormality test flag bit, generate And export corresponding test log.
4. the method as described in any one in claim 1-3 is it is characterised in that methods described also includes:
Corresponding terminal abnormal file is generated according to described test log;
Described terminal abnormal file is sent to corresponding server, so that described server is carried out to described terminal abnormal file Analysis, generates corresponding offline reparation and wraps.
5. method as claimed in claim 4 is it is characterised in that methods described also includes:
Receive the described offline reparation bag that described server sends, and described offline reparation is installed and wrap, to recover described terminal Normal operation function.
6. a kind of terminal is it is characterised in that described terminal includes:
Whether detector unit, meet default abnormality test trigger condition, described abnormality test trigger condition for detection terminal For determining whether to call the test program prestoring to carry out abnormality test to described terminal, generate and export corresponding test day Will;
Processing unit, if the testing result for described detector unit is yes, calls the test program prestoring to described terminal Carry out corresponding abnormality test, generate and export corresponding test log;
Wherein, described test log includes program operation exception position, and described program operation exception position is used for described terminal Carry out corresponding abnormal positioning or debug.
7. terminal as claimed in claim 6 it is characterised in that described abnormality test trigger condition include following at least one Kind: terminal puts out set of hanging scrolls part, terminal power condition, system fault condition, Network Abnormal condition, application abnormal condition, program error Condition.
8. terminal as claimed in claim 6 it is characterised in that
Described processing unit, specifically for writing corresponding abnormality test flag bit in the test control system of described terminal, The test control system that described abnormality test flag bit is used for triggering described terminal calls the test program prestoring to described terminal Carry out abnormality test, generate and export corresponding test log;Called according to the instruction of described abnormality test flag bit and to prestore Test program carries out abnormality test to described terminal, generates and export corresponding test log.
9. the terminal as described in any one in claim 6 to 8 is it is characterised in that described terminal also includes:
Signal generating unit, for generating corresponding terminal abnormal file according to described test log;
Transmitting element, for described terminal abnormal file is sent to corresponding server, so that described server is to described end End abnormal document is analyzed, and generates corresponding offline reparation and wraps.
10. terminal as claimed in claim 9 is it is characterised in that described terminal also includes:
Receiving unit, for receiving the described offline reparation bag that described server sends, and installs described offline reparation bag, with extensive The normal operation function of multiple described terminal.
CN201610724924.5A 2016-08-25 2016-08-25 Terminal testing method and terminal Withdrawn CN106354578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610724924.5A CN106354578A (en) 2016-08-25 2016-08-25 Terminal testing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610724924.5A CN106354578A (en) 2016-08-25 2016-08-25 Terminal testing method and terminal

Publications (1)

Publication Number Publication Date
CN106354578A true CN106354578A (en) 2017-01-25

Family

ID=57854645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610724924.5A Withdrawn CN106354578A (en) 2016-08-25 2016-08-25 Terminal testing method and terminal

Country Status (1)

Country Link
CN (1) CN106354578A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628723A (en) * 2017-03-23 2018-10-09 瑞轩科技股份有限公司 Information processing method
CN110109819A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely
CN110569184A (en) * 2019-07-31 2019-12-13 重庆小雨点小额贷款有限公司 test method and terminal equipment
CN110764977A (en) * 2019-09-27 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Alarm method and device for realizing system safety

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142885A (en) * 2013-05-09 2014-11-12 百度在线网络技术(北京)有限公司 Method and device for carrying out abnormality test on tested program
CN105487973A (en) * 2015-11-24 2016-04-13 无锡江南计算技术研究所 Processor exception test method capable of continuously capturing program exceptions
CN105786679A (en) * 2014-12-26 2016-07-20 展讯通信(上海)有限公司 Automatic test monitoring system and method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142885A (en) * 2013-05-09 2014-11-12 百度在线网络技术(北京)有限公司 Method and device for carrying out abnormality test on tested program
CN105786679A (en) * 2014-12-26 2016-07-20 展讯通信(上海)有限公司 Automatic test monitoring system and method and mobile terminal
CN105487973A (en) * 2015-11-24 2016-04-13 无锡江南计算技术研究所 Processor exception test method capable of continuously capturing program exceptions

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628723A (en) * 2017-03-23 2018-10-09 瑞轩科技股份有限公司 Information processing method
CN108628723B (en) * 2017-03-23 2022-03-11 瑞轩科技股份有限公司 Information processing method
CN110109819A (en) * 2019-03-16 2019-08-09 平安城市建设科技(深圳)有限公司 Using processing method, device, equipment and the readable storage medium storing program for executing debugged extremely
CN110569184A (en) * 2019-07-31 2019-12-13 重庆小雨点小额贷款有限公司 test method and terminal equipment
CN110764977A (en) * 2019-09-27 2020-02-07 赛诺贝斯(北京)营销技术股份有限公司 Alarm method and device for realizing system safety
CN110764977B (en) * 2019-09-27 2023-11-10 赛诺贝斯(北京)营销技术股份有限公司 Alarm method and device for realizing system safety

Similar Documents

Publication Publication Date Title
AU2018257221B2 (en) Service processing method and device
CN106354578A (en) Terminal testing method and terminal
EP3213193B1 (en) Monitoring and correlating a binary process in a distributed business transaction
CN106649084A (en) Function call information obtaining method and apparatus, and test device
US9038185B2 (en) Execution of multiple execution paths
CN107181858A (en) A kind of method and terminal for showing notification message
CN107357489A (en) A kind of synchronous method for browsing information, terminal and server
CN113032273B (en) Application program debugging method and device, computer equipment and storage medium
CN101751329A (en) Method and system for realizing automatic testing
US20110209008A1 (en) Application Reporting Library
CN108170438A (en) A kind of application program automatic installation method, terminal and computer-readable medium
CN107491324A (en) A kind of method and terminal for installing application program
CN107390969A (en) A kind of method and terminal for controlling suspended window
WO2013119386A1 (en) Simulating input types
CN106406494A (en) Method for scheduling processor and terminal
US9477399B1 (en) Automated interaction for mobile applications
CN102446253B (en) Webpage trojan detection method and system
US11221881B2 (en) Computer resource leak detection
CN106446683A (en) Detection method for malignant program and terminal
CN106502858A (en) A kind of multiple subsystem power consumption determines method and terminal
CN108845924A (en) Control response region display control method, electronic device and storage medium
WO2021188115A1 (en) Touchpad with force sensing components and method for assessing health of force sensing components in-situ
CN105912417A (en) Detection method of virtual system, related software running method and related device
CN106096963A (en) The generation method and apparatus of a kind of identifying code and verification method and device
CN115600199A (en) Security assessment method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170125