CN104614601B - A kind of terminal fault localization method, apparatus and system - Google Patents
A kind of terminal fault localization method, apparatus and system Download PDFInfo
- Publication number
- CN104614601B CN104614601B CN201410837566.XA CN201410837566A CN104614601B CN 104614601 B CN104614601 B CN 104614601B CN 201410837566 A CN201410837566 A CN 201410837566A CN 104614601 B CN104614601 B CN 104614601B
- Authority
- CN
- China
- Prior art keywords
- terminal
- operating procedure
- failure
- test case
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a kind of terminal fault localization methods, apparatus and system, this method comprises: obtaining the operating procedure for causing terminal to generate failure, wherein, the operating procedure is previously according to the terminal system parameter determination operated when the terminal generates failure or to receive user input instruction;Corresponding test case is generated according to the operating procedure;The test case described in terminal operating, and the operating status of the terminal is monitored;If the failure reproduction, stops running immediately the test case and saves test result.It is participated in without artificial so as to the operating procedure where positioning failure by the above-mentioned means, the present invention can rerun to generate the operating procedure of failure and monitor operating status automatically, saves cost.
Description
Technical field
The present invention relates to field of fault detection, more particularly to a kind of terminal fault localization method, apparatus and system.
Background technique
As the function of intelligent terminal is increasingly sound, the system of intelligent terminal is more and more huger, and structure also becomes increasingly complex,
The problem is also more and more simultaneously.Especially a kind of idol shows problem, since operating procedure is various, can not accurately position
Cause the specific steps of the problem.
In existing technology, it usually needs technician formulates corresponding test according to the operating procedure of user feedback and uses
Example, and correlative code is modified in the terminal operating test case, and according to monitoring data, until problem no longer occurs.
But the even problem that shows is frequently not can occur every time, and engineer can not determine whether problem solves after modifying code
Certainly, and failure it is many kinds of, make corresponding test case and need to expend biggish manpower.
Summary of the invention
The invention mainly solves the technical problem of providing a kind of terminal fault localization methods, apparatus and system, can be certainly
Dynamic rerun generates the operating procedure of failure and monitors operating status, so as to the operating procedure where positioning failure, without people
Work participates in, and saves cost.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of terminal fault positioning side is provided
Method, this method comprises: obtaining the operating procedure for causing terminal to generate failure, wherein operating procedure is previously according to operating terminal
Terminal system parameter when generating failure is determining or receives user input instruction;Corresponding test is generated according to operating procedure to use
Example;It is monitored in terminal operating test case, and to the operating status of terminal;If failure reappears, survey is stopped running immediately
Example on probation simultaneously saves test result.
Wherein, the step of generating corresponding test case according to operating procedure, specifically includes: operating procedure being split into more
A sub- operating procedure;Whether inquire in the database has and the matched first child code of each sub-operation step;If so, by more
It is a to close to form test case with the matched first child code character of sub-operation step;If it is not, then receiving grasping according to every height for input
The multiple second filial generation codes write as step, and multiple second filial generation code characters are closed to form test case.
Wherein, the multiple second filial generation codes of input write according to each sub-operation step are received, and sub by multiple second
Code combination forms the step of test case, further includes: receives multiple second write according to each sub-operation step of input
Subcode, and multiple first child codes and second filial generation code character are closed and to form test case.
Wherein, the step of test case being generated according to operating procedure, specifically: test case is generated according to operating procedure,
It and is the corresponding code setting flag of each step;If failure reappears, stops running immediately test case and save test knot
After fruit step, further includes: search label, and the operating procedure where positioning failure in test result.
Wherein, test result includes failure environment and current log.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of terminal fault positioning
Device, the device include: acquisition module, for obtaining the operating procedure for causing terminal to generate failure, wherein operating procedure is pre-
Terminal system parameter when first generating failure according to operating terminal is determining or receives user input instruction;Use-case generation module is used
According to the corresponding test case of operating procedure generation;Module is run, is used in terminal operating test case, and to the fortune of terminal
Row state is monitored;Memory module is used in operation module test case out of service, and saves test result.
Wherein, use-case generation module further include: split cells, for operating procedure to be split into multiple sub-operation steps;
Whether matching unit has and the matched first child code of each sub-operation step for inquiring in the database;Input unit is used
In the multiple second filial generation codes write according to each sub-operation step for receiving input;Assembled unit, for sub by multiple first
Code combination forms test case, or multiple second filial generation code characters are closed to form test case.
Wherein, assembled unit is also used to close and to form test case multiple first child codes and second filial generation code character.
Wherein, use-case generation module is also used to when generating test case, is the corresponding code setting flag of each step;
Device further includes locating module, for searching label, and the operating procedure where positioning failure in test result.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of terminal fault positioning
System, the system include terminal fault positioning device and the failure management server connecting with terminal fault positioning device, number
According to library and controlling terminal;Wherein, terminal fault positioning device is such as above-mentioned terminal fault positioning device;Failure management server
For providing the operating procedure for generating failure to terminal fault positioning device;Database is used to provide to terminal fault positioning device
With the matched first child code of operating procedure;Controlling terminal is used for the work in every of controlling terminal fault locator.
The beneficial effects of the present invention are: being in contrast to the prior art, the present invention causes terminal to generate event by obtaining
The operating procedure of barrier, wherein terminal system parameter when operating procedure is previously according to operating terminal generation failure is determining or connects
Receive user input instruction;Corresponding test case is generated according to operating procedure;In terminal operating test case, and to the fortune of terminal
Row state is monitored;If failure reappears, stops running immediately test case and save test result, it being capable of quick obtaining pair
The test case of operating procedure is answered, and is reruned automatically and is generated the operating procedure of failure and monitor operating status, to position
The operating procedure of guilty culprit participates in without artificial, saves cost.
Detailed description of the invention
Fig. 1 is the flow chart of terminal fault localization method first embodiment of the present invention;
Fig. 2 is the flow chart of terminal fault localization method second embodiment of the present invention;
Fig. 3 is the structural schematic diagram of terminal fault positioning device first embodiment of the present invention;
Fig. 4 is the structural schematic diagram of terminal fault positioning device second embodiment of the present invention;
Fig. 5 is the structural schematic diagram of terminal fault positioning system of the present invention.
Specific embodiment
Refering to fig. 1, the flow chart of terminal fault localization method first embodiment of the present invention, this method comprises:
Step 101: obtaining the operating procedure for causing terminal to generate failure, wherein operating procedure is whole previously according to operation
Terminal system parameter when end generates failure is determining or receives user input instruction;
What the terminal system parameter that the operating procedure can be when terminal generates failure determined, for example, device by wired or
Be wirelessly connected the terminal from obtained in the system parameter of terminal the terminal failure generation before operating procedure;It is also possible to basis
The information of user input instruction is received to fill in operating procedure.Wherein, operating procedure is needed according to special format, so as to device
It can identify, for example, numbering in advance for every kind of step, when filling in step, need to only fill in corresponding number and can be formed causes
The operating procedure of failure.
Step 102: corresponding test case is generated according to operating procedure;
Engineer writes corresponding test case according to step, or writes corresponding every kind of step code in advance, carries out
Storage, when then recalling corresponding code from database according to every kind of step, such as meeting step A for the first time, root when engineering
Code B is write according to step A, and in the database by code B storage, when meeting step A next time, is looked into the database
It looks for, the code B of corresponding step A is directly matched to, without writing again.
Step 103: being monitored in terminal operating test case, and to the operating status of terminal;
Since test case is write according to operating procedure, the test case that reruns be equivalent to terminal repeat into
Row causes terminal to generate the operating procedure of failure, and since the even generation probability for showing problem is smaller, rerun the operating procedure energy
It is enough to increase the even generation probability for showing problem, to find occasionally to show problem.
Step 104: if failure reappears, stopping running immediately test case and save test result.
The test result may include running environment, fault log or system parameter etc..
It is different from the prior art, present embodiment is by obtaining the operating procedure for causing terminal to generate failure, wherein operation
Step is the determination of terminal system parameter or reception user input instruction when generating failure previously according to operating terminal;According to operation
Step generates corresponding test case;It is monitored in terminal operating test case, and to the operating status of terminal;If failure is multiple
It is existing, then it stops running immediately test case and saves test result, be capable of the test case of quick obtaining respective operations step, and
Automatically it reruns to generate the operating procedure of failure and monitor operating status and be not necessarily to so as to the operating procedure where positioning failure
It is artificial to participate in, save cost.
Referring to Fig.2, the flow chart of terminal fault localization method second embodiment of the present invention, this method comprises:
Step 201: obtaining the operating procedure for causing terminal to generate failure, wherein operating procedure is whole previously according to operation
Terminal system parameter when end generates failure is determining or receives user input instruction;
It, can be according to unified literary style, so as to device identification if operating procedure is manually to write.
Step 202: operating procedure is split into multiple sub-operation steps;
Under normal circumstances, the sub-step split is simplest, and being capable of identified step.
Step 203, whether: inquire has and the matched first child code of each sub-operation step in the database;If so, into
Row step 204, if it is not, carrying out step 205;
Step 204: closing to form test case with the matched first child code character of sub-operation step by multiple;
Step 205: then receiving the multiple second filial generation codes of input write according to each sub-operation step, and by multiple
Two subcodes combine to form test case;
It can cannot be matched with the matched more first child codes of sub-operation step alternatively, it is also possible to recall in the database
Then prompt engineer write code manually, form multiple second filial generation codes, then by the first child code and second filial generation code character
Conjunction forms test case, while for use next time by the second filial generation code newly write storage.
Step 206: for the corresponding code setting flag of each step;
Step 207: being monitored in terminal operating test case, and to the operating status of terminal;
Step 208: if failure reappears, stopping running immediately test case and save failure environment and current log;
Step 209: label, and the operating procedure where positioning failure are searched in log.
Each step in log all includes different label, the log is filtered using the script write in advance, just
Each label can accurately be searched, so as to positioning failure.
Terminal can also record each failure, and judge the frequency of occurrences of every kind of failure, if frequency is less than predeterminated frequency value,
Then think that the failure is even now failure;In addition, device also can detecte the frequency of failure generation when terminal operating use-case,
To judge whether the failure is even now failure.
It is different from the prior art, present embodiment writes the matching of each step by the fractionation to operating procedure in advance
Good subcode, then be combined each subcode to form test case, use-case will be write every time by being able to solve engineering
The problem of expending a large amount of manpowers is needed, while by the setting flag in use-case so that when filtering log, it can be fast and accurately
Positioning failure, whole process are automatically finished without spending a large amount of manpower, have the advantages that positioning is fast, at low cost.
Refering to Fig. 3, the structural schematic diagram of terminal fault positioning device first embodiment of the present invention, the device includes primary
Acquisition module 301, use-case generation module 302, operation module 303 and the memory module 304 of connection, in which:
Module 301 is obtained, for obtaining the operating procedure for causing terminal to generate failure, wherein operating procedure is preparatory root
Terminal system parameter when generating failure according to operating terminal is determining or receives user input instruction;
If obtaining module 301 is the operating procedure obtained by terminal system parameter, obtaining module 301 can be by having
The coherent signal transmitting module of line or wireless mode connection terminal.
Use-case generation module 302, for generating corresponding test case according to operating procedure;
Use-case generation module 302 is also connected with the related signal emission module of database.
Module 303 is run, for being monitored in terminal operating test case, and to the operating status of terminal;
The coherent signal receiving module that module 303 connects terminal is run, so as in the terminal operating test case.
Memory module 304 is used in operation module test case out of service, and saves test result.
In addition, use-case generation module 302 is also used to when generating test case, it is the corresponding code setting mark of each step
Note;Device can also include locating module, for searching label, and the operating procedure where positioning failure in test result.
As shown in figure 4, use-case generation module 302 further include: split cells 3021, it is multiple for splitting into operating procedure
Sub-operation step;Whether matching unit 3022 has and matched first son of each sub-operation step for inquiring in the database
Code;Input unit 3023, the multiple second filial generation codes for receiving input write according to each sub-operation step;Combination is single
Member 3024 closes to form test use for closing to form test case by multiple first child code characters, or by multiple second filial generation code characters
Example.
Wherein, assembled unit 3024 is also used to close and to form test case multiple first child codes and second filial generation code character.
The embodiment is based on a kind of device of above-mentioned terminal fault localization method, and embodiments thereof are similar, here not
It repeats again.
It is different from the prior art, present embodiment writes the matching of each step by the fractionation to operating procedure in advance
Good subcode, then be combined each subcode to form test case, use-case will be write every time by being able to solve engineering
The problem of expending a large amount of manpowers is needed, while by the setting flag in use-case so that when filtering log, it can be fast and accurately
Positioning failure, whole process are automatically finished without spending a large amount of manpower, have the advantages that positioning is fast, at low cost.
Refering to Fig. 5, the structural schematic diagram of terminal fault positioning system of the present invention, the system includes terminal fault positioning device
501 and the failure management server 502, database 503 and the controlling terminal 504 that are connect with terminal fault positioning device 501;
Wherein, terminal fault positioning device 501 is the terminal fault positioning device such as aforementioned embodiments;Fault management clothes
Device 502 be engaged in for providing the operating procedure for generating failure to terminal fault positioning device 501;Database 503 is used for terminal event
Hinder positioning device to provide and the matched first child code of operating procedure;Controlling terminal 504 is used for controlling terminal fault locator
Work in every.
It is different from the prior art, present embodiment passes through the behaviour that terminal fault positioning device sends failure management server
The fractionation for making step is combined to the subcode write in advance in each step matching database, then by each subcode
Form test case, be able to solve engineering every time and to write the problem of needs of use-case expend a large amount of manpowers, at the same by
Setting flag in use-case can fast and accurately positioning failure, whole process be automatically finished without flower so that when filtering log
Take a large amount of manpower, has the advantages that positioning is fast, at low cost.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.
Claims (4)
1. a kind of terminal fault localization method, which is characterized in that the described method includes:
Obtain the operating procedure for causing terminal to generate failure, wherein the operating procedure is to produce previously according to the operation terminal
Terminal system parameter when raw failure is determining or receives user input instruction;
The operating procedure is split into multiple sub-operation steps;
Whether inquire in the database has and each matched first child code of sub-operation step;
If so, closing to form the first test case with the matched first child code character of the sub-operation step by multiple;If
It is no, then the multiple second filial generation codes of input write according to each sub-operation step are received, and sub by multiple described first
Code and the second filial generation code character close to form the second test case;
For the corresponding subcode setting flag of each step;
The first test case described in terminal operating or second test case, and the operating status of the terminal is supervised
It surveys;
If the failure reproduction, stops running immediately the test case and saves test result;
The label is searched in test result, and positions the operating procedure of the guilty culprit.
2. the method according to claim 1, wherein the test result includes failure environment and current log.
3. a kind of terminal fault positioning device, which is characterized in that described device includes:
Module is obtained, for obtaining the operating procedure for causing terminal to generate failure, wherein the operating procedure is previously according to behaviour
Make the terminal system parameter determination when terminal generates failure or receives user input instruction;
Use-case generation module, for generating corresponding test case according to the operating procedure;And it is corresponding for each step
Subcode setting flag;
Module is run, is used for the test case described in terminal operating, and be monitored to the operating status of the terminal;
Memory module is used in the operation module test case out of service, and saves test result;
Locating module for searching the label in test result, and positions the operating procedure of the guilty culprit;
Wherein, the use-case generation module specifically includes:
Split cells, for the operating procedure to be split into multiple sub-operation steps;
Whether matching unit has and each matched first child code of sub-operation step for inquiring in the database;
Input unit, the multiple second filial generation codes for receiving input write according to each sub-operation step;
Assembled unit will when for having inquired first child code matched with each sub-operation step in the database
Multiple first child code characters close to form the test case, or do not inquire walk with each sub-operation in the database
When rapid matched first child code, the multiple first child codes inquired and the second filial generation code character of input are closed into shape
At the test case.
4. a kind of terminal fault positioning system, which is characterized in that the system comprises terminal fault positioning device and with it is described
Failure management server, database and the controlling terminal of terminal fault positioning device connection;
Wherein, the terminal fault positioning device is terminal fault positioning device as claimed in claim 3;
The failure management server is used to provide the operating procedure for generating failure to the terminal fault positioning device;
The database is used to provide and the matched first child code of the operating procedure to the terminal fault positioning device;
The controlling terminal is used to control the work in every of the terminal fault positioning device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837566.XA CN104614601B (en) | 2014-12-26 | 2014-12-26 | A kind of terminal fault localization method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837566.XA CN104614601B (en) | 2014-12-26 | 2014-12-26 | A kind of terminal fault localization method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104614601A CN104614601A (en) | 2015-05-13 |
CN104614601B true CN104614601B (en) | 2019-02-15 |
Family
ID=53149137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410837566.XA Active CN104614601B (en) | 2014-12-26 | 2014-12-26 | A kind of terminal fault localization method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104614601B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105025318B (en) * | 2015-06-30 | 2018-07-17 | 北京奇艺世纪科技有限公司 | A kind of feedback method and device of the abnormal log information of application program |
CN105930257B (en) * | 2015-10-12 | 2018-12-28 | ***股份有限公司 | A kind of method and device of determining target detection use-case |
CN107391357A (en) * | 2017-08-17 | 2017-11-24 | 杭州师范大学 | Application crashes replay method, device and mobile terminal |
CN108491325B (en) * | 2018-03-20 | 2021-12-07 | Oppo广东移动通信有限公司 | File system testing method and device, storage medium and terminal |
CN109359012A (en) * | 2018-10-23 | 2019-02-19 | 四川长虹电器股份有限公司 | The method that detection android system restarts and generates test case |
CN110245082A (en) * | 2019-06-06 | 2019-09-17 | 惠州市德赛西威汽车电子股份有限公司 | A kind of idol shows problem Auto-Test System and its method |
CN110413509B (en) * | 2019-06-27 | 2021-08-03 | 武汉大学 | Software crash reproduction method and system based on test generation |
CN112764408A (en) * | 2019-10-21 | 2021-05-07 | 上海博泰悦臻电子设备制造有限公司 | Method and system for reproducing boot fault of vehicle-mounted terminal, storage medium and control terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1719925A (en) * | 2004-07-08 | 2006-01-11 | 中兴通讯股份有限公司 | Method and apparatus for automatically testing CDMA cell phone software |
CN101778014A (en) * | 2010-01-12 | 2010-07-14 | 华为技术有限公司 | Method and device for analyzing service quality deterioration |
CN101848477A (en) * | 2009-03-24 | 2010-09-29 | 亚信科技(中国)有限公司 | Method and system for diagnosing fault |
CN102004691A (en) * | 2010-11-12 | 2011-04-06 | 中兴通讯股份有限公司 | Method and system for executing test case |
CN102779094A (en) * | 2012-08-21 | 2012-11-14 | 深圳中兴网信科技有限公司 | Terminal and software exception test method |
CN102915303A (en) * | 2011-08-01 | 2013-02-06 | 阿里巴巴集团控股有限公司 | Method and device for ETL (extract-transform-load) tests |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8448141B2 (en) * | 2008-03-31 | 2013-05-21 | International Business Machines Corporation | Evaluation of software based on change history |
-
2014
- 2014-12-26 CN CN201410837566.XA patent/CN104614601B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1719925A (en) * | 2004-07-08 | 2006-01-11 | 中兴通讯股份有限公司 | Method and apparatus for automatically testing CDMA cell phone software |
CN101848477A (en) * | 2009-03-24 | 2010-09-29 | 亚信科技(中国)有限公司 | Method and system for diagnosing fault |
CN101778014A (en) * | 2010-01-12 | 2010-07-14 | 华为技术有限公司 | Method and device for analyzing service quality deterioration |
CN102004691A (en) * | 2010-11-12 | 2011-04-06 | 中兴通讯股份有限公司 | Method and system for executing test case |
CN102915303A (en) * | 2011-08-01 | 2013-02-06 | 阿里巴巴集团控股有限公司 | Method and device for ETL (extract-transform-load) tests |
CN102779094A (en) * | 2012-08-21 | 2012-11-14 | 深圳中兴网信科技有限公司 | Terminal and software exception test method |
Also Published As
Publication number | Publication date |
---|---|
CN104614601A (en) | 2015-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104614601B (en) | A kind of terminal fault localization method, apparatus and system | |
KR102483025B1 (en) | Operational maintenance systems and methods | |
CN107995283B (en) | A kind of data bury the method, equipment and system of point analysis | |
US11537178B2 (en) | Server rack for improved data center management | |
CN102932205B (en) | A kind of automated testing method of network service end interface | |
CN107094097B (en) | Fault information remote reproduction method and device | |
CN105335277A (en) | Fault information processing method and device as well as terminal | |
CN103441861A (en) | Method and device for generating data records | |
CN113672441B (en) | Method and device for testing intelligent equipment | |
CN111372039A (en) | Monitoring and early warning method, computer device and computer readable storage medium | |
CN107483283A (en) | Communicate method for testing reliability and device | |
CN113609119A (en) | Data account checking and repairing method and device, storage medium and electronic equipment | |
CN104219087A (en) | Fault location method | |
CN107204887A (en) | A kind of SCD file and protection device CID file consistences test system and method | |
US20130073718A1 (en) | Test analysis system of network and analysis method thereof | |
CN109802842A (en) | The generation method and relevant device of applied topology | |
CN108304283A (en) | A kind of fault filling method, system and direct fault location manage system | |
CN101252477A (en) | Determining method and analyzing apparatus of network fault root | |
CN116506340A (en) | Flow link testing method and device, electronic equipment and storage medium | |
CN111045757B (en) | Visual display system and method for IT resource running state and storage medium | |
CN104616682B (en) | Blu-ray player method of testing and smart machine, Blu-ray player | |
CN114244686B (en) | Communication fault detection method, device and system | |
CN105182761A (en) | Specified operation triggering method and device | |
CN103595819A (en) | Method for online testing service usability of web system | |
CN105335145A (en) | Operation result processing method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210722 Address after: 276000 No. 2033, Fengyi street, Hedong Industrial Park, Linyi City, Shandong Province Patentee after: Shandong Xingao Hydraulic Machinery Co.,Ltd. Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd. |