CN107948744A - Interface detection method, interface detection device and computer-readable recording medium - Google Patents
Interface detection method, interface detection device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107948744A CN107948744A CN201711334290.3A CN201711334290A CN107948744A CN 107948744 A CN107948744 A CN 107948744A CN 201711334290 A CN201711334290 A CN 201711334290A CN 107948744 A CN107948744 A CN 107948744A
- Authority
- CN
- China
- Prior art keywords
- interface
- monitored
- service
- value
- detect
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/004—Diagnosis, testing or measuring for television systems or their details for digital television systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4425—Monitoring of client processing errors or hardware failure
Abstract
The invention discloses a kind of interface detection method, interface detection device and computer-readable recording medium, which includes:When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;When it is exceptional value to detect interface return value, interface abnormality processing, and outputting alarm prompt are performed according to exceptional value;When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so that user consults.The present invention has ensured the normal operation of the interface of intelligent terminal, and shorten the technology misarrangement cycle of intelligent terminal, the work efficiency that developer carries out abnormal positioning and technology misarrangement is accelerated, improves the self-test efficiency of intelligent terminal, greatly improves the usage experience of user.
Description
Technical field
The present invention relates to interface detection technique field, more particularly to a kind of interface detection method, interface detection device and meter
Calculation machine readable storage medium storing program for executing.
Background technology
With the fast development of intelligent terminal technology, current smart television is also increasingly popularized.Vigorously sent out in smart television
Under the background of exhibition, the function of smart television is more and more, meets the more and more functional requirements of user, greatly improves use
The usage experience at family so that user can conveniently and efficiently enjoy the intelligent Service of smart television.
But it is higher and higher with the degree of integration of function services, smart television ensures that various functions service safe is stablized
Operation requirement it is also higher and higher.Solution method traditional at present is that the record for collecting running log in smart television is determined
Position misarrangement, but this method intermediate demand takes a substantial amount of time, and user can not enjoy function services in time.
Therefore, how quickly to judge that with the operation problem of positioning intelligent TV be current urgent problem to be solved.
The content of the invention
It is a primary object of the present invention to provide a kind of interface detection method, interface detection device and computer-readable storage
Medium, it is intended to solve traditional intelligent terminal can not fast positioning misarrangement, ensure the operation that various functions service safes is stablized
Technical problem.
To achieve the above object, the embodiment of the present invention provides a kind of interface detection method, the interface detection method application
In terminal, the interface detection method includes:
When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;
When it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and outputting alarm carries
Show;
When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so as to user
Consult.
Preferably, it is described when it is normal value to detect interface return value, this testing process is recorded in detection daily record
In, the step of being consulted so as to user, includes:
When it is normal value to detect interface return value, the resolution rules of interface to be monitored are obtained;
The service code of interface to be monitored is obtained, and judges whether the service code is service error code according to resolution rules;
When it is not service error code to detect the service code, this testing process is recorded in detection daily record, with
Just user consults.
Preferably, the service code for obtaining interface to be monitored, and according to resolution rules judge the service code whether be
Further included after the step of service error code:
When it is service error code to detect the service code, service error processing is performed based on service error code, and it is defeated
Go out alarm prompt.
Preferably, it is described when it is service error code to detect the service code, it is wrong that business is performed based on service error code
Handle, and further included after the step of outputting alarm prompt by mistake:
When after by service error processing, the service code for the interface to be monitored that terminal is got in preset times is
During service error code, the service downloading service of interface to be monitored is obtained, to repair interface to be monitored.
Preferably, it is described when it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and
Further included after the step of outputting alarm prompt:
When after by interface abnormality processing, the interface for the interface to be monitored that terminal is got in preset times returns
Be worth for exceptional value when, obtain the corresponding emergency use interface of interface to be monitored;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
Preferably, the interface detection method further includes:
When detecting terminal to call interface to be monitored and the interface return value of interface to be monitored can not be obtained, obtain and wait to supervise
Control the corresponding emergency use interface of interface;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
In addition, to achieve the above object, the present invention also provides a kind of interface detection device, the interface detection device bag
Include:Memory, processor, communication bus and the interface detection program being stored on the memory,
The communication bus is used for realization the communication connection between processor and memory;
The processor is used to perform the interface detection program, to realize following steps:
When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;
When it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and outputting alarm carries
Show;
When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so as to user
Consult.
Preferably, it is described when it is normal value to detect interface return value, this testing process is recorded in detection daily record
In, the step of being consulted so as to user, includes:
When it is normal value to detect interface return value, the resolution rules of interface to be monitored are obtained;
The service code of interface to be monitored is obtained, and judges whether the service code is service error code according to resolution rules;
When it is not service error code to detect the service code, this testing process is recorded in detection daily record, with
Just user consults.
Preferably, the service code for obtaining interface to be monitored, and according to resolution rules judge the service code whether be
Further included after the step of service error code:
When it is service error code to detect the service code, service error processing is performed based on service error code, and it is defeated
Go out alarm prompt.
Preferably, it is described when it is service error code to detect the service code, it is wrong that business is performed based on service error code
Handle, and further included after the step of outputting alarm prompt by mistake:
When after by service error processing, the service code for the interface to be monitored that terminal is got in preset times is
During service error code, the service downloading service of interface to be monitored is obtained, to repair interface to be monitored.
Preferably, it is described when it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and
Further included after the step of outputting alarm prompt:
When after by interface abnormality processing, the interface for the interface to be monitored that terminal is got in preset times returns
Be worth for exceptional value when, obtain the corresponding emergency use interface of interface to be monitored;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
Preferably, the interface detection method further includes:
When detecting terminal to call interface to be monitored and the interface return value of interface to be monitored can not be obtained, obtain and wait to supervise
Control the corresponding emergency use interface of interface;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer-readable recording medium
Storage medium be stored with one either more than one program the one or more programs can by one or one with
On processor perform for:
When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;
When it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and outputting alarm carries
Show;
When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so as to user
Consult.
The present invention is by when detecting that terminal calls interface to be monitored, obtaining the interface return value of interface to be monitored;When
When to detect interface return value be exceptional value, interface abnormality processing, and outputting alarm prompt are performed according to exceptional value;When detecting
When interface return value is normal value, this testing process is recorded in detection daily record, so that user consults.By with top
Formula, the present invention solve traditional intelligent terminal can not fast positioning misarrangement, ensure the operation that various functions service safes is stablized
Technical problem, by being monitored in real time to the interface to be monitored of intelligent terminal, with intelligent terminal can not normal operation when,
Active detecting is and quick according to corresponding abnormality processing strategy to intelligent terminal interface to be monitored abnormal conditions that may be present
Elimination technique mistake, quickly to make intelligent terminal come back under normal operating condition.The present invention has ensured connecing for intelligent terminal
The normal operation of mouth, and the technology misarrangement cycle of intelligent terminal is shortened, accelerate developer and carry out abnormal positioning and technology
The work efficiency of misarrangement, improves the self-test efficiency of intelligent terminal, greatly improves the usage experience of user.
Brief description of the drawings
Fig. 1 is the flow diagram of interface detection method first embodiment of the present invention;
Fig. 2 is the flow diagram of interface detection method second embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of interface detection device of the present invention;
Fig. 4 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of interface detection method, and the interface detection method is applied to terminal, in interface detection method
In first embodiment, with reference to Fig. 1, the interface detection method includes:
Step S10, when detecting that terminal calls interface to be monitored, obtains the interface return value of interface to be monitored;
The interface to be monitored is the pre-set interface as monitored object in terminal, and terminal can be in advance by desired prison
The total interface of control is configured to interface to be monitored, to be monitored at any time to interface to be monitored.Normally, interface to be monitored exists
In called process, a corresponding interface return value can be produced according to the situation of calling.The interface return value refers to treating
Monitor calling situation actual in interface invoked procedure.Wherein, calling situation can be whether interface calling succeeds, Ke Yishi
Data traffic in interface calling procedure, can be delay rate of network request etc..Interface to be monitored can be by these interfaces
Calling situation is recorded, and according to the difference and preset rules of the situation of calling, is generated interface return value, represented this and wait to supervise
Control the calling situation of interface.Therefore, terminal returns the interface for getting interface to be monitored during interface to be monitored is called
Return value.
It is understood that interface to be monitored may be docked to a function services during called, and wherein have
Function services be able to may normally be docked, and some functions can not be docked normally, that is to say, that interface return value is not for
Same function services may show different calling situations, i.e., the interface return value possible more than one of one interface to be monitored
It is a, but there are multiple interface return values, it correspond to different function services respectively.
Step S20, when it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and defeated
Go out alarm prompt;
In terminal invoked procedure, the interface return value generally shows calling situation in 0,1, -1 form, and specific
Calling situation specific call in example can be corresponded to by preset rules.Under normal circumstances, the interface received by terminal
Setting division normal condition and unusual condition of the return value in preset rules, i.e., represent interface return value institute by numerical value
The calling situation of representative it is normal with it is abnormal.For example, it is assumed that interface return value should return to 1 under normal circumstances, but actual conditions are
The interface return value that terminal is got is 0 or -1, then the interface return value of interface to be monitored is exceptional value at this time, and this is different
Constant value prove the interface to be monitored that is called of present terminal can not normal operation, there is abnormal operating condition.
Since the intelligent terminal of modernization is all the very high product of integrated level, the misoperation on some interface
It may influence whether the normal operation of terminal entirety, in order to exclude this technical problem, terminal needs to divide the exceptional value
Analysis, unusual condition is called to tackle the interface currently occurred.
Abnormal operating condition representated by exceptional value can carry out self-regeneration by self-test flow, in the present embodiment,
Terminal in advance can make the unusual condition being likely to occur corresponding processing strategy, and handle the database that strategy is maintained in terminal
In., can be according to the specific of exceptional value since the unusual condition occurred is mainly to occur during interface calls
Situation carries out abnormality detection processing for interface.
Corresponding abnormality processing strategy, the abnormality processing strategy can be found in the database of terminal according to exceptional value
The specific abnormal link being usually called to interface to be monitored in flow is tested, to obtain abnormal cause.It is to be monitored
The abnormal cause of interface can be that interface to be monitored is continuously called in preset time;Or unit transmission data volume reaches threshold
Value;Or interface to be monitored is obstructed etc. when asking network signal, certain abnormal cause includes but not limited to the above, different
Constant value is both the embodiment to unusual condition, and the positioning to abnormal cause.
When performing interface abnormality processing according to exceptional value and after completion interface abnormality processing, terminal will be according to specific feelings
Condition outputting alarm prompt.The alarm prompt is prompting to processing procedure and the points for attention of user's operation terminal is carried
Show.
Step S30, when it is normal value to detect interface return value, this testing process is recorded in detection daily record,
So that user consults.
Relatively, when it is normal value that terminal, which detects interface return value, it was demonstrated that current interface to be monitored is called
During flow it is completely normal, there is not the phenomenon of call error, i.e., the connection of interface to be monitored and extraneous function services is just
Often, interface to be monitored is connected with the normal of extraneous function services, also means that interface to be monitored can normal call external world work(
Can service.And facilitating subsequent user to consult relative recording information, terminal will record this testing process in daily record is detected, and protect
There are in the database of terminal.
The present invention is by when detecting that terminal calls interface to be monitored, obtaining the interface return value of interface to be monitored;When
When to detect interface return value be exceptional value, interface abnormality processing, and outputting alarm prompt are performed according to exceptional value;When detecting
When interface return value is normal value, this testing process is recorded in detection daily record, so that user consults.By with top
Formula, the present invention solve traditional intelligent terminal can not fast positioning misarrangement, ensure the operation that various functions service safes is stablized
Technical problem, by being monitored in real time to the interface to be monitored of intelligent terminal, with intelligent terminal can not normal operation when,
Active detecting is and quick according to corresponding abnormality processing strategy to intelligent terminal interface to be monitored abnormal conditions that may be present
Elimination technique mistake, quickly to make intelligent terminal come back under normal operating condition.The present invention has ensured connecing for intelligent terminal
The normal operation of mouth, and the technology misarrangement cycle of intelligent terminal is shortened, accelerate developer and carry out abnormal positioning and technology
The work efficiency of misarrangement, improves the self-test efficiency of intelligent terminal, greatly improves the usage experience of user.
Further, on the basis of interface detection method first embodiment of the present invention, interface detection side of the present invention is proposed
Method second embodiment, with reference to Fig. 2, with previous embodiment difference lies in, it is described when it is normal value to detect interface return value,
The step of this testing process is recorded in detection daily record, is consulted so as to user includes:
Step S31, when it is normal value to detect interface return value, obtains the resolution rules of interface to be monitored;
When it is normal value that terminal, which detects interface return value, it was demonstrated that current interface to be monitored can normally with extraneous function
Service is connected, but can not ensure that interface to be monitored can obtain the normal corresponding of extraneous function services.Because call extraneous function
Service, obtains run under normal service logic first, i.e., interface to be monitored needs first to connect extraneous function services, and in the external world
Correct data are obtained in function services, the correctly data need the form from data, obtain time and acquisition methods etc.
A variety of dimensions are considered.And its operation flow of interface whether to perform normally to be monitored is judged, it is necessary to which terminal obtains to be monitored connect
The resolution rules of mouth.The resolution rules refer to performing interface to be monitored the detection of flow, and whether analysis operation flow can
Enough normal execution.
Step S32, obtains the service code of interface to be monitored, and judges whether the service code is business according to resolution rules
Error code;
After corresponding service data is got, interface to be monitored will feed back a service code.The service code refers to
Be during this calling interface to be monitored, the actual conditions that interface to be monitored can be called according to business datum return to one
A service code, the service code are divided into two states, including the correct code of business and service error code.The correct code of business refers to waiting to supervise
Control interface can obtain correct function services data, and service error code refers to the function services number that interface to be monitored obtains
According to being wrong or invalid.Service code needs to judge correct or mistake by the parsing to Interface Flowchart.Therefore terminal exists
Detect that interface is put back to when value is normal value, it is necessary to obtain the resolution rules of interface to be monitored.Therefore terminal need to obtain it is to be monitored
Service code in interface, and judge whether the service code is service error code in resolution rules.
Step S33, when it is not service error code to detect the service code, detection day is recorded in by this testing process
In will, so that user consults;
When detecting that the service code is not service error code, then prove in this testing process, interface institute to be monitored
All flows performed are correct, also mean that this interface calling procedure is correct, terminal can detect this
Process recording is in daily record is detected, so that subsequent user is consulted.
Step S34, when it is service error code to detect the service code, is performed at service error based on service error code
Reason, and outputting alarm prompt.
When it is service error code to detect the service code, that is, prove that current interface to be monitored is calling extraneous function clothes
Normal business datum can not be normally obtained during business, that is to say, that there is service logic mistake in interface to be monitored,
It is probably in flow scheme design or in Code Design etc..Since service error code can be represent in operation flow
Mistake in some part, therefore terminal can navigate to this interface to be monitored in service logic by service error code
Mistake, and the mistake in the service logic for being possible to expect is prestored in terminal, and made accordingly based on the mistake
Treatment mechanism.When detecting service error code, terminal can be got according to service error code prestore in terminal it is specific
Service error treatment mechanism, and service error processing, and outputting alarm prompt are carried out according to service error mechanism.
Further, on the basis of interface detection method second embodiment of the present invention, interface detection side of the present invention is proposed
Method 3rd embodiment, with previous embodiment difference lies in, it is described when it is service error code to detect the service code, be based on
Service error code performs service error processing, and is further included after the step of outputting alarm prompt:
Step S35, when the interface to be monitored that after by service error processing, terminal is got in preset times
When service code is service error code, the service downloading service of interface to be monitored is obtained, to repair interface to be monitored.
After service error processing, terminal is provided with re-calling for preset times, business for interface to be monitored
Error handle is the reparation to the service logic flow on interface to be monitored and service logic design, it is assumed that terminal after the repair
Service error code is still got in preset times, that is, proves that terminal can not repair the mistake on current interface to be monitored.This
Embodiment provides a kind of online repair mode, by the way that end-on to the corresponding service provider of interface to be monitored, download are somebody's turn to do
Service logic flow or the service logic design of interface to be monitored, to replace the service logic flow of terminal interface to be monitored itself
Or service logic design.Serviced because the technological service that service provider is provided is stablizing for latest edition, its service logic stream
More improve more stable in journey or service logic design, service error can be avoided to cause intelligent terminal can not normal operation.
Further, on the basis of interface detection method first embodiment of the present invention, interface detection side of the present invention is proposed
Method fourth embodiment, with previous embodiment difference lies in, it is described when it is exceptional value to detect interface return value, according to exception
Value performs interface abnormality processing, and is further included after the step of outputting alarm prompt:
Step S40, when the interface to be monitored that after by interface abnormality processing, terminal is got in preset times
When interface return value is exceptional value, the corresponding emergency use interface of interface to be monitored is obtained;
Step S50, outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
After by interface abnormality processing, interface to be monitored can be repaired, restarts, initialize itself, to be monitored to exclude
Abnormal conditions of the interface in Code Design or service logic design, normal calling state is returned to by interface to be monitored
On.But, it is assumed that terminal to interface to be monitored after abnormality processing is carried out, interface return value one that interface to be monitored is returned
Directly exceptional value, and multiple abnormality processing or repeatedly re-call during remain exceptional value.This means that this is to be monitored
Interface can not complete its functional sequence, belong to unavailable interface.The present embodiment is provided with preset times conduct for interface to be monitored
Threshold decision, when the interface return value that terminal is obtained in preset times is all exceptional value, then terminal is treated use is interrupted
Interface is monitored as calling interface, then uses the emergency use interface of interface to be monitored.The emergency use interface refers to
Terminal is also provided with corresponding spare interface when it be calling interface to set interface to be monitored, this is spare to make an excuse relative to waiting to supervise
It is simple with respect to function to control interface, or on functional efficiency it is slightly inferior, but can realize the basic function of interface to be monitored.
It is understood that emergency use interface is intended only as emergency use, connect in emergency use interface as to be monitored
Mouthful temporarily replace interface during, terminal can timely outputting alarm prompt, terminal can notify develop maintenance personnel treat prison
Control interface is safeguarded, after interface to be monitored recovers normal, terminal will reactivate interface to be monitored, and by emergency use
Interface is as spare interface in emergency circumstances.
Further, on the basis of interface detection method fourth embodiment of the present invention, interface detection side of the present invention is proposed
The 5th embodiment of method, difference lies in the interface detection method further includes with previous embodiment:
Step S60, when detecting terminal to call interface to be monitored and the interface return value of interface to be monitored can not be obtained,
Obtain the corresponding emergency use interface of interface to be monitored;
Step S70, outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
In actual life, it is understood that there may be a kind of extreme scenes, i.e., interface to be monitored is because indoor design or external strength
Damaged etc. reason, cause terminal can not be monitored detection to interface to be monitored.Due to interface to be monitored at this time
Effectiveness is lost, can not be played a role, even if terminal calls the interface to be monitored, also can not normally obtain the interface of interface to be monitored
Return value.And interface to be monitored can not play a role, terminal is used interface to be monitored as calling interface by terminal at this time, then
Use the emergency use interface of interface to be monitored.Complete the basic function of interface to be monitored using emergency use interface, and terminal
Will be during emergency use interface replaces interface to be monitored temporarily, even if outputting alarm prompt notice exploitation maintenance personnel couple
Interface to be monitored is safeguarded.After interface to be monitored recovers normal, terminal will reactivate interface to be monitored, and will be urgent
Spare interface is as spare interface in emergency circumstances.
It is the high-level schematic functional block diagram of interface detection device of the present invention with reference to Fig. 3 and Fig. 4, Fig. 3, Fig. 4 is implementation of the present invention
The device structure schematic diagram for the hardware running environment that example method is related to.
Terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet computer, E-book reader, MP3
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3)
Player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound
Frequency aspect 4) terminal device such as player, pocket computer.
As shown in figure 4, the interface detection device can include:Processor 1001, such as CPU, memory 1005, communication are total
Line 1002.Wherein, communication bus 1002 is used for realization the connection communication between processor 1001 and memory 1005.Memory
1005 can be high-speed RAM memory or the memory (non-volatile memory) of stabilization, such as disk are deposited
Reservoir.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
Alternatively, which can also include user interface, network interface, camera, RF (Radio
Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..User interface can include display screen
(Display), input unit such as keyboard (Keyboard), optional user interface can also include wireline interface, the nothing of standard
Line interface.Network interface can optionally include standard wireline interface and wireless interface (such as WI-FI interfaces).
Interface is detected it will be understood by those skilled in the art that the interface assay device structures shown in Fig. 4 are not formed
The restriction of equipment, can include than illustrating more or fewer components, either combine some components or different component cloth
Put.
As shown in figure 4, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module and interface detection program.Operating system is the program of management and control interface detection device hardware and software resource,
Supporting interface detects the operation of program and other softwares and/or program.Network communication module is used for realization in memory 1005
Communication between each component in portion, and with communicating in interface detection device between other hardware and softwares.
In interface detection device shown in Fig. 4, processor 1001 is used to perform the interface inspection stored in memory 1005
Ranging sequence, realizes following steps:
When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;
When it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and outputting alarm carries
Show;
When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so as to user
Consult.
Further, it is described when it is normal value to detect interface return value, this testing process is recorded in detection day
In will, the step of being consulted so as to user, includes:
When it is normal value to detect interface return value, the resolution rules of interface to be monitored are obtained;
The service code of interface to be monitored is obtained, and judges whether the service code is service error code according to resolution rules;
When it is not service error code to detect the service code, this testing process is recorded in detection daily record, with
Just user consults.
Further, it is described to obtain the service code of interface to be monitored, and whether judge the service code according to resolution rules
To be further included after the step of service error code:
When it is service error code to detect the service code, service error processing is performed based on service error code, and it is defeated
Go out alarm prompt.
Further, it is described when it is service error code to detect the service code, business is performed based on service error code
Error handle, and further included after the step of outputting alarm prompt:
When after by service error processing, the service code for the interface to be monitored that terminal is got in preset times is
During service error code, the service downloading service of interface to be monitored is obtained, to repair interface to be monitored.
Further, it is described when it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value,
And further included after the step of outputting alarm prompt:
When after by interface abnormality processing, the interface for the interface to be monitored that terminal is got in preset times returns
Be worth for exceptional value when, obtain the corresponding emergency use interface of interface to be monitored;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
Further, the interface detection method further includes:
When detecting terminal to call interface to be monitored and the interface return value of interface to be monitored can not be obtained, obtain and wait to supervise
Control the corresponding emergency use interface of interface;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
The embodiment of interface detection device of the present invention and each embodiment of above-mentioned interface detection method are essentially identical,
This is repeated no more.
Present invention also offers a kind of computer-readable recording medium, the computer-readable recording medium storage has one
Either more than one program the one or more programs can also be performed by one or more than one processor with
For:
When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;
When it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and outputting alarm carries
Show;
When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so as to user
Consult.
Computer-readable recording medium embodiment of the present invention and the basic phase of each embodiment of above-mentioned interface detection method
Together, details are not described herein.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of interface detection method, it is characterised in that the interface detection method is applied to terminal, the interface detection method
Including:
When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;
When it is exceptional value to detect interface return value, interface abnormality processing, and outputting alarm prompt are performed according to exceptional value;
When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so that user consults.
2. interface detection method as claimed in claim 1, it is characterised in that described to detect that interface return value is normal value
When, this testing process is recorded in detection daily record, the step of being consulted so as to user includes:
When it is normal value to detect interface return value, the resolution rules of interface to be monitored are obtained;
The service code of interface to be monitored is obtained, and judges whether the service code is service error code according to resolution rules;
When it is not service error code to detect the service code, by this testing process be recorded in detection daily record in, so as to
Consult at family.
3. interface detection method as claimed in claim 2, it is characterised in that the service code for obtaining interface to be monitored, and
Judge further included after the step of whether service code is service error code according to resolution rules:
When it is service error code to detect the service code, service error processing is performed based on service error code, and export announcement
Alert prompting.
4. interface detection method as claimed in claim 3, it is characterised in that
It is described that service error processing is performed based on service error code when it is service error code to detect the service code and defeated
Further included after the step of going out alarm prompt:
When after by service error processing, the service code for the interface to be monitored that terminal is got in preset times is business
During error code, the service downloading service of interface to be monitored is obtained, to repair interface to be monitored.
5. interface detection method as claimed in claim 1, it is characterised in that
It is described when it is exceptional value to detect interface return value, interface abnormality processing is performed according to exceptional value, and outputting alarm carries
Further included after the step of showing:
When after by interface abnormality processing, the interface return value for the interface to be monitored that terminal is got in preset times is
During exceptional value, the corresponding emergency use interface of interface to be monitored is obtained;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
6. interface detection method as claimed in claim 5, it is characterised in that the interface detection method further includes:
When detecting terminal to call interface to be monitored and the interface return value of interface to be monitored can not be obtained, to be monitored connect is obtained
The corresponding emergency use interface of mouth;
Outputting alarm prompt, and using emergency use interface as interface to be monitored for calling.
7. a kind of interface detection device, it is characterised in that the interface detection device includes:Memory, processor, communication bus
And be stored in the interface detection program on the memory, when interface detection program is performed by the processor realization with
Lower step:
When detecting that terminal calls interface to be monitored, the interface return value of interface to be monitored is obtained;
When it is exceptional value to detect interface return value, interface abnormality processing, and outputting alarm prompt are performed according to exceptional value;
When it is normal value to detect interface return value, this testing process is recorded in detection daily record, so that user consults.
8. interface detection device as claimed in claim 7, it is characterised in that the interface detection program is held by the processor
Following steps are also realized during row:
When it is normal value to detect interface return value, the resolution rules of interface to be monitored are obtained;
The service code of interface to be monitored is obtained, and judges whether the service code is service error code according to resolution rules;
When it is not service error code to detect the service code, by this testing process be recorded in detection daily record in, so as to
Consult at family.
9. interface detection device as claimed in claim 7, it is characterised in that the interface detection program is held by the processor
The step of interface detection method as any one of claim 3 to 6 is also realized during row.
10. a kind of computer-readable recording medium, it is characterised in that interface inspection is stored with the computer-readable recording medium
Ranging sequence, the interface detection program realize the interface detection as any one of claim 1 to 6 when being executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711334290.3A CN107948744B (en) | 2017-12-13 | 2017-12-13 | Interface detection method, interface detection device, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711334290.3A CN107948744B (en) | 2017-12-13 | 2017-12-13 | Interface detection method, interface detection device, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107948744A true CN107948744A (en) | 2018-04-20 |
CN107948744B CN107948744B (en) | 2021-11-09 |
Family
ID=61943092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711334290.3A Active CN107948744B (en) | 2017-12-13 | 2017-12-13 | Interface detection method, interface detection device, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107948744B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109728969A (en) * | 2018-05-18 | 2019-05-07 | 平安普惠企业管理有限公司 | Abnormal user method for detecting, monitoring service end and the storage medium of application software |
CN110049139A (en) * | 2019-05-05 | 2019-07-23 | 广东电网有限责任公司 | A kind of service broker's forwarding service system |
CN110109818A (en) * | 2019-03-15 | 2019-08-09 | 平安城市建设科技(深圳)有限公司 | Monitoring method, device, terminal and the readable storage medium storing program for executing of back end interface data |
CN110278124A (en) * | 2019-06-18 | 2019-09-24 | 努比亚技术有限公司 | The monitoring method of interface, device and computer readable storage medium on line |
CN110336690A (en) * | 2019-05-23 | 2019-10-15 | 平安银行股份有限公司 | Service request processing method, device, equipment and computer readable storage medium |
CN110752962A (en) * | 2018-07-23 | 2020-02-04 | 北京奇虎科技有限公司 | Monitoring method and device of advertisement interface |
CN110955547A (en) * | 2019-10-31 | 2020-04-03 | 北京浪潮数据技术有限公司 | Management method, system, equipment and readable storage medium for interface abnormal information |
CN111737129A (en) * | 2020-06-19 | 2020-10-02 | 北京同邦卓益科技有限公司 | Service control method, service control device, computer readable medium and electronic equipment |
CN112486719A (en) * | 2020-12-14 | 2021-03-12 | 上海悦易网络信息技术有限公司 | Method and equipment for RPC interface call failure processing |
CN117112292A (en) * | 2023-01-20 | 2023-11-24 | 荣耀终端有限公司 | Abnormal restarting processing method and device |
Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247617A (en) * | 2008-01-16 | 2008-08-20 | 中兴通讯股份有限公司 | Apparatus and method for mobile communication service fault automatic detection |
CN101610427A (en) * | 2008-06-16 | 2009-12-23 | 中兴通讯股份有限公司 | Interface message processor (IMP) calls implementation method and system |
CN102413052A (en) * | 2011-11-30 | 2012-04-11 | 华为技术有限公司 | Network access method, device and system |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
CN103139178A (en) * | 2011-12-01 | 2013-06-05 | 腾讯数码(天津)有限公司 | Validation method and device of internet open platform data request interface |
CN103746861A (en) * | 2013-10-29 | 2014-04-23 | 汉柏科技有限公司 | Service inter-status mutual detection method |
CN104155971A (en) * | 2014-08-07 | 2014-11-19 | 北京九五智驾信息技术股份有限公司 | Self-diagnosis method for vehicle diagnosis apparatus protocols by vehicle diagnosis apparatus |
CN105159728A (en) * | 2015-09-25 | 2015-12-16 | 青岛海信宽带多媒体技术有限公司 | Method and device for obtaining NTP time information based on android system |
CN105512806A (en) * | 2015-11-30 | 2016-04-20 | 国网浙江省电力公司电力科学研究院 | Access method and system of data of unified vehicle management platform to mass platform |
CN105847083A (en) * | 2016-03-22 | 2016-08-10 | 乐视云计算有限公司 | Business centralized monitoring method and system |
CN106059794A (en) * | 2016-05-13 | 2016-10-26 | 努比亚技术有限公司 | Monitoring method and monitoring apparatus |
CN106301995A (en) * | 2015-06-24 | 2017-01-04 | 北京京东尚科信息技术有限公司 | The method and apparatus that a kind of automatic detection interface service is abnormal |
CN106506199A (en) * | 2016-10-21 | 2017-03-15 | 乐视控股(北京)有限公司 | The automatic monitoring method and device of interface in system line |
CN106528372A (en) * | 2016-10-26 | 2017-03-22 | 珠海许继芝电网自动化有限公司 | Program running monitoring system and method |
CN106649045A (en) * | 2016-12-30 | 2017-05-10 | 重庆腾帆科技有限公司 | Third-party interface exception monitoring device |
CN106776324A (en) * | 2016-12-19 | 2017-05-31 | 广州酷狗计算机科技有限公司 | Interface test method and device |
KR20170096451A (en) * | 2016-02-16 | 2017-08-24 | 한국인터넷진흥원 | Method and apparatus for analysing dynamic behavior of malicious application |
CN107104815A (en) * | 2017-01-17 | 2017-08-29 | 国家电网公司 | A kind of method and device that Authority and Domain Based Management configuration distributing is realized to IMS network |
CN107122258A (en) * | 2017-04-18 | 2017-09-01 | 上海雷腾软件股份有限公司 | Method and apparatus for the state code check of test interface |
CN108880847A (en) * | 2017-05-16 | 2018-11-23 | 北京微影时代科技有限公司 | A kind of method and device of positioning failure |
-
2017
- 2017-12-13 CN CN201711334290.3A patent/CN107948744B/en active Active
Patent Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247617A (en) * | 2008-01-16 | 2008-08-20 | 中兴通讯股份有限公司 | Apparatus and method for mobile communication service fault automatic detection |
CN101610427A (en) * | 2008-06-16 | 2009-12-23 | 中兴通讯股份有限公司 | Interface message processor (IMP) calls implementation method and system |
CN102736975A (en) * | 2011-04-13 | 2012-10-17 | 国民技术股份有限公司 | Test method and test system for testing trusted computing password support platform |
CN102413052A (en) * | 2011-11-30 | 2012-04-11 | 华为技术有限公司 | Network access method, device and system |
CN103139178A (en) * | 2011-12-01 | 2013-06-05 | 腾讯数码(天津)有限公司 | Validation method and device of internet open platform data request interface |
CN103746861A (en) * | 2013-10-29 | 2014-04-23 | 汉柏科技有限公司 | Service inter-status mutual detection method |
CN104155971A (en) * | 2014-08-07 | 2014-11-19 | 北京九五智驾信息技术股份有限公司 | Self-diagnosis method for vehicle diagnosis apparatus protocols by vehicle diagnosis apparatus |
CN106301995A (en) * | 2015-06-24 | 2017-01-04 | 北京京东尚科信息技术有限公司 | The method and apparatus that a kind of automatic detection interface service is abnormal |
CN105159728A (en) * | 2015-09-25 | 2015-12-16 | 青岛海信宽带多媒体技术有限公司 | Method and device for obtaining NTP time information based on android system |
CN105512806A (en) * | 2015-11-30 | 2016-04-20 | 国网浙江省电力公司电力科学研究院 | Access method and system of data of unified vehicle management platform to mass platform |
KR20170096451A (en) * | 2016-02-16 | 2017-08-24 | 한국인터넷진흥원 | Method and apparatus for analysing dynamic behavior of malicious application |
CN105847083A (en) * | 2016-03-22 | 2016-08-10 | 乐视云计算有限公司 | Business centralized monitoring method and system |
CN106059794A (en) * | 2016-05-13 | 2016-10-26 | 努比亚技术有限公司 | Monitoring method and monitoring apparatus |
CN106506199A (en) * | 2016-10-21 | 2017-03-15 | 乐视控股(北京)有限公司 | The automatic monitoring method and device of interface in system line |
CN106528372A (en) * | 2016-10-26 | 2017-03-22 | 珠海许继芝电网自动化有限公司 | Program running monitoring system and method |
CN106776324A (en) * | 2016-12-19 | 2017-05-31 | 广州酷狗计算机科技有限公司 | Interface test method and device |
CN106649045A (en) * | 2016-12-30 | 2017-05-10 | 重庆腾帆科技有限公司 | Third-party interface exception monitoring device |
CN107104815A (en) * | 2017-01-17 | 2017-08-29 | 国家电网公司 | A kind of method and device that Authority and Domain Based Management configuration distributing is realized to IMS network |
CN107122258A (en) * | 2017-04-18 | 2017-09-01 | 上海雷腾软件股份有限公司 | Method and apparatus for the state code check of test interface |
CN108880847A (en) * | 2017-05-16 | 2018-11-23 | 北京微影时代科技有限公司 | A kind of method and device of positioning failure |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109728969B (en) * | 2018-05-18 | 2022-04-15 | 平安普惠企业管理有限公司 | Abnormal user detection method of application software, monitoring server and storage medium |
CN109728969A (en) * | 2018-05-18 | 2019-05-07 | 平安普惠企业管理有限公司 | Abnormal user method for detecting, monitoring service end and the storage medium of application software |
CN110752962A (en) * | 2018-07-23 | 2020-02-04 | 北京奇虎科技有限公司 | Monitoring method and device of advertisement interface |
CN110109818A (en) * | 2019-03-15 | 2019-08-09 | 平安城市建设科技(深圳)有限公司 | Monitoring method, device, terminal and the readable storage medium storing program for executing of back end interface data |
CN110049139A (en) * | 2019-05-05 | 2019-07-23 | 广东电网有限责任公司 | A kind of service broker's forwarding service system |
CN110336690A (en) * | 2019-05-23 | 2019-10-15 | 平安银行股份有限公司 | Service request processing method, device, equipment and computer readable storage medium |
CN110336690B (en) * | 2019-05-23 | 2022-09-20 | 平安银行股份有限公司 | Service request processing method, device, equipment and computer readable storage medium |
CN110278124A (en) * | 2019-06-18 | 2019-09-24 | 努比亚技术有限公司 | The monitoring method of interface, device and computer readable storage medium on line |
CN110955547A (en) * | 2019-10-31 | 2020-04-03 | 北京浪潮数据技术有限公司 | Management method, system, equipment and readable storage medium for interface abnormal information |
CN110955547B (en) * | 2019-10-31 | 2022-03-22 | 北京浪潮数据技术有限公司 | Management method, system, equipment and readable storage medium for interface abnormal information |
CN111737129A (en) * | 2020-06-19 | 2020-10-02 | 北京同邦卓益科技有限公司 | Service control method, service control device, computer readable medium and electronic equipment |
CN112486719A (en) * | 2020-12-14 | 2021-03-12 | 上海悦易网络信息技术有限公司 | Method and equipment for RPC interface call failure processing |
CN112486719B (en) * | 2020-12-14 | 2023-07-04 | 上海万物新生环保科技集团有限公司 | Method and equipment for RPC interface call failure processing |
CN117112292A (en) * | 2023-01-20 | 2023-11-24 | 荣耀终端有限公司 | Abnormal restarting processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107948744B (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107948744A (en) | Interface detection method, interface detection device and computer-readable recording medium | |
CN108388514A (en) | Automatic interface testing method, device, equipment and computer readable storage medium | |
US20080065928A1 (en) | Technique for supporting finding of location of cause of failure occurrence | |
CN108512695A (en) | The method and device of interim card is applied in monitoring | |
CN107291586B (en) | Application program analysis method and device | |
CN106453767A (en) | Method and device for detecting failure after dropping | |
CN107040578A (en) | Method of data synchronization, device and system | |
CN106126183B (en) | Electronic equipment and audio-frequency processing method | |
CN111625383B (en) | Process exception event processing method and device, electronic equipment and storage medium | |
CN102306119A (en) | System for capturing global exception and method | |
CN107977317A (en) | A kind of test method of data network, system and relevant apparatus | |
CN106155828A (en) | For play-back application resource control method and equipment | |
CN108959064A (en) | The pop-up processing method and processing device of automatic test | |
CN104809054A (en) | Method and system for realizing program testing | |
CN115185777A (en) | Abnormity detection method and device, readable storage medium and electronic equipment | |
CN113704117B (en) | Algorithm testing system, method and device | |
CN107943570A (en) | application management method, device, storage medium and electronic equipment | |
CN108376110A (en) | A kind of automatic testing method, system and terminal device | |
CN113391970B (en) | Heterogeneous many-core processor-oriented chip testing method and device | |
CN106997313A (en) | A kind of signal processing method of application program, system and terminal device | |
CN107608923B (en) | Test processing method and related product | |
CN109684213A (en) | A kind of test method, device and storage medium | |
CN112202951A (en) | Mobile phone compatibility testing method and related device | |
CN115080412A (en) | Software update quality evaluation method, device, equipment and computer storage medium | |
CN107454471A (en) | Method for turning on television, television set and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200210 Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary) Applicant after: Shenzhen leynew Network Media Co Ltd Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.) Applicant before: Shenzhen leynew Mdt InfoTech Ltd |
|
GR01 | Patent grant | ||
GR01 | Patent grant |