CN108376110A - A kind of automatic testing method, system and terminal device - Google Patents

A kind of automatic testing method, system and terminal device Download PDF

Info

Publication number
CN108376110A
CN108376110A CN201810151438.8A CN201810151438A CN108376110A CN 108376110 A CN108376110 A CN 108376110A CN 201810151438 A CN201810151438 A CN 201810151438A CN 108376110 A CN108376110 A CN 108376110A
Authority
CN
China
Prior art keywords
hardware device
function
result
target
failure
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
Application number
CN201810151438.8A
Other languages
Chinese (zh)
Other versions
CN108376110B (en
Inventor
白丹
莫能平
张天
张天一
黄宪义
程智华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Taiji Shuzhi Technology Co.,Ltd.
Original Assignee
Shenzhen Taiji Soft Arts Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Taiji Soft Arts Ltd By Share Ltd filed Critical Shenzhen Taiji Soft Arts Ltd By Share Ltd
Priority to CN201810151438.8A priority Critical patent/CN108376110B/en
Publication of CN108376110A publication Critical patent/CN108376110A/en
Application granted granted Critical
Publication of CN108376110B publication Critical patent/CN108376110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The present invention is suitable for technical field of automation, provides a kind of automatic testing method, system and terminal device, the automatic testing method and includes:By searching for idle hardware device, the device number of idle hardware device is obtained, corresponding Function detection table is obtained according to device number, is detected automatically according to Function detection table, generates testing result.The present invention is detected according to Function detection table automatically by with searching idle hardware device, is just carried out fault detect in the hardware device free time to realize, is effectively utilized free time, improves the utilization rate of time.

Description

A kind of automatic testing method, system and terminal device
Technical field
The invention belongs to a kind of technical field of automation more particularly to automatic testing method, system and terminal devices.
Background technology
With the development of science and technology, there is the terminal device by multiple hardwares integration of equipments in the market, for example, comprising touching The queue machine of control screen and card reader of ID card.
In the prior art, when terminal device in use, when cisco unity malfunction, detection terminal equipment can just be gone to go out Existing failure, and fault detect cannot be just carried out in the terminal device free time, reduce the utilization rate problem of time.
Invention content
In view of this, an embodiment of the present invention provides a kind of automatic testing method, system and terminal device, it is existing to solve Fault detect cannot be just carried out in the terminal device free time in technology, reduce the utilization rate problem of time.
The first aspect of the embodiment of the present invention provides a kind of automatic testing method, is applied to terminal device, the terminal Equipment is made of at least two hardware devices, and the automatic testing method includes:
Search idle hardware device.
Obtain the device number of the hardware device of the free time.
Corresponding Function detection table is obtained according to described device number.
It is detected automatically according to the Function detection table, generates testing result.
The second aspect of the embodiment of the present invention provides a kind of automatic checkout system, is applied to terminal device, the terminal Equipment is made of at least two hardware devices, and the automatic checkout system includes:
Idle devices searching module, for searching idle hardware device.
Device number acquisition module, the device number of the hardware device for obtaining the free time.
Function detection table acquisition module, for obtaining corresponding Function detection table according to described device number.
Testing result generation module generates testing result for being detected automatically according to the Function detection table.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing method as described above.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.
Existing advantageous effect is the embodiment of the present invention compared with prior art:The present embodiment is by searching for idle hardware Device, obtains the device number of idle hardware device, obtains corresponding Function detection table according to device number, is examined according to function Survey table is detected automatically, generates testing result.The present embodiment is by with searching idle hardware device, and according to Function detection Table is detected automatically, is just carried out fault detect in the hardware device free time to realize, is effectively utilized free time, carries The utilization rate of high time.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram of automatic testing method provided by one embodiment of the present invention;
Fig. 2 is the specific implementation flow schematic diagram of step S101 in Fig. 1 provided by one embodiment of the present invention;
Fig. 3 is the structural schematic diagram of automatic checkout system provided by one embodiment of the present invention;
Fig. 4 is the concrete structure schematic diagram of idle devices searching module provided by one embodiment of the present invention;
Fig. 5 is the schematic diagram of terminal device provided by one embodiment of the present invention.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment 1:
Fig. 1 shows the implementation process for the automatic testing method that one embodiment of the present of invention provides, the embodiment of the present invention Flow executive agent can be terminal device, terminal device is made of at least two hardware devices, and details are as follows for process:
In step S101, idle hardware device is searched.
In the present embodiment, it every preset time (for example, 7 days), is just detected automatically, that is, searches idle hardware dress It sets and is detected, determine that idle hardware device whether there is failure, to realize periodically automatic detection.
In step s 102, the device number of idle hardware device is obtained.
In the present embodiment, the device number of each hardware device is unique, when the hardware device for finding the free time When, just obtain the device number of idle hardware device.
In step s 103, corresponding Function detection table is obtained according to device number.
In the present embodiment, corresponding Function detection table is searched according to device number in the local database.
It in step S104, is detected automatically according to Function detection table, generates testing result.
In an embodiment of the invention, Function detection table includes the Function Identification set for needing to be detected, function inspection Survey instruction and standard testing result.
In one embodiment, step S104 is specifically included:
1) brake to be checked of idle hardware device is obtained.
2) function is chosen from brake to be checked, as objective function.
3) the corresponding Function Identification of selection target function from Function Identification set is identified as objective function.
4) it obtains objective function and identifies corresponding Function detection instruction, detect and instruct as objective function.
5) according to the automatic detection objective function of objective function detection instruction, current detection result is generated.
In the present embodiment, when detecting hardware device with the presence or absence of failure, really detecting the function of hardware device is It is no normally to realize, it needs the function being detected to be identified hardware device, obtains Function Identification, for example, daily record is read It is Log to write the corresponding Function Identification of function.
In the present embodiment, when hardware device receives Function detection instruction, just automatic detection function detection instruction pair Whether the function of answering can normally be realized.
In the present embodiment, standard testing result is that the function of hardware device carries out certainly in the case where can normally realize Dynamic detection as a result, each function has corresponding standard testing result.
In the present embodiment, the corresponding Function Identification of brake to be checked is obtained, by the corresponding Function Identification of brake to be checked It is ranked up according to title, and treats detection function according to the sequence of Function Identification and be ranked up, obtain the row of brake to be checked Row sequence is detected according to the selection function that puts in order of brake to be checked as objective function.
In the present embodiment, idle hardware device chooses the function of top ranked according to putting in order for brake to be checked As objective function, the corresponding Function Identification of selection target function from the Function Identification set in Function detection table, as mesh Function Identification is marked, objective function is obtained in Function detection table and identifies corresponding Function detection instruction, is detected as objective function Instruction, idle hardware device carry out Function detection according to objective function detection instruction is automatic, generate current detection as a result, current Testing result is the testing result of objective function.
In an embodiment of the invention, after step s 104, further include:
1) it obtains objective function and identifies corresponding standard testing result, as target criteria testing result.
2) if current detection result is matched with target criteria testing result, it is determined that objective function may be implemented, and again Obtain next objective function.
If 3) current detection result is mismatched with target criteria testing result, judge that idle hardware device fills for failure It sets, and starts the fault detect tool built in terminal device and fault detect is carried out to failed equipment.
In the present embodiment, if current detection result is matched with target criteria testing result, it is determined that objective function can be with It realizes, according to putting in order for brake to be checked, chooses first function of the ranking after the objective function as new mesh Function is marked, can detect new objective function normally realize.According to brake to be checked put in order detection function successively can It is normal to realize, if can normally realize, continues to detect next brake to be checked, if cannot normally realize, carry out at failure Reason.
In one embodiment, it after the minimum Function detection of middle ranking that puts in order of brake to be checked, then weighs The hardware device for newly searching next free time is detected.
By taking a concrete application scene as an example, the function to be detected of idle hardware device has an a functions respectively, b functions, C functions, function to be detected put in order as a functions, b functions, c functions, according to putting in order for function to be detected, head It is objective function first to choose a functions, and whether detection a functions can normally be realized, if a functions can be realized normally, the row of selection For first function of the name after a functions as new objective function, that is, it is new objective function to choose b functions, starts to detect b Whether function can normally be realized, after c Function detections, show that the whole of the hardware device of the free time need to be detected Function detection finish, then the hardware device for searching next free time is detected.
In the present embodiment, detect brake to be checked successively whether can be normal according to putting in order for function to be detected It realizes, avoids the occurrence of repetition detects the case where whether brake to be checked can normally be realized, improve the detection efficiency of function.
In an embodiment of the invention, it is described startup terminal device built in fault detect tool to failed equipment into After row fault detect, including:
1) failure detection result for the failed equipment that fault detect tool is sent is received.
If 2) failure detection result includes error code, standard corresponding with error code is searched in the troubleshooting table that prestores Error code, as target faults code, the troubleshooting table that prestores includes standard fault codes, troubleshooting instruction and standard failure processing As a result.
3) the corresponding troubleshooting instruction of target faults code is obtained, as target faults process instruction.
4) troubleshooting is carried out according to target faults process instruction automatically, generates current failure handling result.
In the present embodiment, error code is the mark of failure, for example, the mark of the journal file read-write failure of hardware device Error code for 0x0007, each failure is unique.
In the present embodiment, it obtains corresponding troubleshooting according to target faults code to instruct, certainly according to troubleshooting instruction It is dynamic to carry out failover operation, to effectively realize the automatic reparation of failure.
In the present embodiment, standard failure handling result refers to being generated after failure is successfully repaired as a result, each failure There is corresponding standard failure handling result.
In the present embodiment, when the idle hardware device of automatic detection, judge that idle hardware device breaks down, Then using idle hardware device as failed equipment, startup separator detection instrument carries out fault detect.
Optionally, when user wants a certain service of using terminal equipment offer, just input corresponds on the terminal device Request instruction, terminal device instructs corresponding hardware device to work according to request instruction driving request input by user, When terminal device detects that the hardware device cannot respond instruction input by user in preset time, hardware dress is just determined Cisco unity malfunction is set, and using the hardware device as failed equipment, startup separator detection instrument carries out failure to failed equipment Detection.When detecting that the hardware device responds instruction input by user in preset time, just determine that the hardware device can be just Often work.Wherein, it refers to processing instruction input by user to respond instruction input by user, generates response results, and response is tied Fruit is shown in default device, wherein default device can be the display device of terminal device, or the end that user specifies End.
In an embodiment of the invention, after the generation troubleshooting result, including:
1) the corresponding standard failure handling result of target faults code is obtained, as target criteria troubleshooting result.
If 2) current failure handling result is matched with target criteria troubleshooting result, again according to Function detection table into The automatic detection of row.
3) if current failure handling result is mismatched with target criteria troubleshooting result, the current of failed equipment is preserved Operating parameter, and power down process is carried out to failed equipment.
In the present embodiment, when current failure handling result is matched with target criteria troubleshooting result, then show mesh The corresponding failure of mark error code is successfully repaired, when current failure handling result and target criteria troubleshooting result mismatch When, then show that the corresponding failure of target faults code is not repaired successfully, then preserve " scene " data of failed equipment, that is, preserves event The current operating parameter of fault device just carries out power down process to failed equipment, avoids the loss of data after successfully preserving.
In one embodiment, it when needing to carry out breakpoint processing to failed equipment, then sends alarm command to failure and fills The LED display lamps set, what alarm command was used to indicate that LED shows alarms into line flicker, can be intuitive to see to user therefore Fault device.
In one embodiment, it when current failure handling result is matched with target criteria troubleshooting result, and updates The corresponding preset failure of the target faults code solves number, and it refers to that preset failure is solved number that update preset failure, which solves number, Adding 1, the initial value that preset failure solves number is 0, judges that updated preset failure solves whether number is more than preset value, if More than preset value, then the current operating parameter of failed equipment is preserved, and power down process is carried out to failed equipment.
By taking a concrete application scene as an example, preset value 3, when the 4th successfully solves the corresponding failure of target faults code When, i.e., when the 4th successfully solves the same failure, it is 4 that the corresponding preset failure of the target faults code, which solves number, target event Hinder the corresponding preset failure of code and solve number more than preset value, then preserves the current operating parameter of failed equipment, and fill to failure Set carry out power down process.
In an embodiment of the invention, after described to the failed equipment power down process, including:
1) startup separator device, and send to preset and read instruction to failed equipment, preset to read to instruct being used to indicate failure Device reads current operating parameter.
2) failure judgement device whether there is failure corresponding with target faults code.
If 3) failure corresponding with target faults code is not present in failed equipment, carried out again according to Function detection table automatic Detection.
4) if failed equipment has failure corresponding with target faults code, fault handling information is generated, and will be at failure Reason information is sent to third party's terminal.
In the present embodiment, it after to failed equipment power down process, re-powers and starts the failed equipment, restore at " scene " Data read the current operating parameter preserved before power-off and improve the efficiency of operation without manually resetting.
In the present embodiment, failed equipment is detected with the presence or absence of event corresponding with target faults code by fault detect tool Barrier chooses first work(of the ranking after objective function if failure corresponding with target faults code is not present in failed equipment It can detect whether new objective function can normally be realized according to Function detection table as new objective function.
In the present embodiment, if failed equipment has failure corresponding with target faults code, fault handling information is generated, And fault handling information is sent to third party's terminal associated with terminal device, third party's terminal can be in the processing of high in the clouds The heart.
Wherein, fault handling information is generated according to default encapsulation format, so that user can quickly understand at failure Manage the content of information.
In the present embodiment, after third party's terminal receives fault handling information, fault handling information is divided into pre- If in classification, and obtaining the contact method of the corresponding contact person of pre-set categories, and fault handling information is sent to the contact person, After the contact person receives fault handling information, user terminal associated with terminal device or the third party can be passed through The corresponding failure of terminal remote processing target error code.
In the present embodiment, fault detect is carried out to idle hardware device, when idle hardware device is there are when failure, Just fault restoration is carried out, in hardware device quilt before use, just having repaired failure, has ensured that hardware device can be uninterruptedly by user It uses, avoids the occurrence of user and hardware device is used, and the case where hardware device failure, realize trouble-saving.
In the present embodiment, it by the hardware device with the lookup free time, and is detected automatically according to Function detection table, from And realize and just carry out fault detect in the hardware device free time, it is effectively utilized free time, improves the utilization rate of time.
As shown in Fig. 2, in one embodiment of the invention, step S101 is specifically included in the embodiment corresponding to Fig. 1:
In step s 201, hardware device to be detected is obtained.
In the present embodiment, hardware device to be detected is obtained, hardware device to be detected is not carry out detecting but need The hardware device to be detected.
In step S202, a hardware device is chosen from hardware device to be detected, as target hardware device.
In the present embodiment, the grade for obtaining each hardware device to be detected, by the sequence of the grade from high to low It is ranked up, and hardware to be detected is ranked up according to the sequence of grade, obtain putting in order for hardware to be detected, press The hardware device of top ranked is chosen according to putting in order for hardware device to be detected, as target hardware device.
Wherein, the grade of hardware device is the significance level of hardware device, for example, hardware device is identity recognition device, Due to there is no identity recognition device, can not the service that provides of application terminal equipment, then the grade of identity recognition device is most high Grade.
In step S203, obtain target hardware device current operating parameter, and judge current operating parameter whether with The idle parameter that prestores matches.
In the present embodiment, target hardware device number is obtained, is numbered according to target hardware device and obtains target hardware dress The current operating parameter set numbers the idle ginseng obtained under target hardware device is in idle condition according to target hardware device Number, the idle parameter under target hardware device is in idle condition are pre-stored in local data base.By the current of target hardware device Unanimously whether operating parameter idle parameter corresponding with target hardware device is matched, see, so as to effectively judge mesh Whether whether mark hardware device is in idle condition, i.e., be idle hardware device.
In step S204, if current operating parameter is matched with the idle parameter that prestores, it is determined that target hardware device is sky Not busy hardware device.
In the present embodiment, when target hardware device current operating parameter idle parameter corresponding with target hardware device With it is consistent when, then can determine that target hardware device is in idle condition, i.e., target hardware device is idle hardware device, empty Not busy hardware device refers to the hardware device being not used by.
If current operating parameter is different from the idle parameter that prestores, idle hardware device is searched again.
In the present embodiment, when target hardware device current operating parameter idle parameter corresponding with target hardware device With it is inconsistent when, it is determined that target hardware device is not in idle state, chooses ranking after the target hardware device First hardware device detects whether new target hardware device is idle hardware device as new target hardware device, According to putting in order for hardware device to be detected, idle hardware device is determined whether successively, if not idle hardware Device then continues to search, until idle hardware device is found, if idle hardware device, then detected automatically.
By taking a concrete application scene as an example, hardware device to be detected has A, B, C respectively, hardware device to be detected It puts in order and chooses B first according to putting in order for hardware device to be detected for B, A, C as target hardware device, detect B Whether it is that idle hardware device detects B automatically and whether there is failure, if detection if detecting the hardware device that B is idle It is not idle hardware device to B, then chooses first hardware device of the ranking after B as new target hardware device, It is new target hardware device to choose A, starts to detect whether A is idle hardware device.
In one embodiment, when the minimum hardware device of ranking in hardware device to be detected has been judged whether After idle hardware device, then stop searching idle hardware device.
In the present embodiment, judge whether hardware device is idle successively according to putting in order for hardware device to be detected Hardware device, avoid the occurrence of repetition judges the case where whether hardware device is idle hardware device, it is idle to improve acquisition Hardware device efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment 2:
Fig. 3 shows the automatic checkout system 100 that one embodiment of the present of invention provides, and is applied to terminal device, described Terminal device is made of at least two hardware devices, and automatic checkout system 100 is used to execute the side in the embodiment corresponding to Fig. 1 Method step comprising:
Idle devices searching module 110, for searching idle hardware device.
Device number acquisition module 120, the device number for obtaining idle hardware device.
Function detection table acquisition module 130, for obtaining corresponding Function detection table according to device number.
Testing result generation module 140 generates testing result for being detected automatically according to Function detection table.
In an embodiment of the invention, Function detection table includes the Function Identification set for needing to be detected, function inspection Survey instruction and standard testing result.
In an embodiment of the invention, testing result generation module 140 includes:
Brake acquiring unit to be checked, the brake to be checked for obtaining idle hardware device.
Objective function acquiring unit, for choosing a function from brake to be checked, as objective function.
Objective function mark acquiring unit is used for the corresponding Function Identification of selection target function from Function Identification set, It is identified as objective function.
Objective function detects instruction acquisition unit, and corresponding Function detection instruction is identified for obtaining objective function, as Objective function detection instruction;
Current detection result generation unit, for according to the automatic detection objective function of objective function detection instruction, generation to be worked as Preceding testing result.
In an embodiment of the invention, the currently monitored result generation unit includes:
Target criteria testing result obtains subelement, identifies corresponding standard testing result for obtaining objective function, makees For target criteria testing result.
Objective function obtains subelement, if being matched with target criteria testing result for current detection result, it is determined that mesh Mark function may be implemented, and reacquire next objective function.
Failed equipment obtains subelement, if being mismatched for current detection result and target criteria testing result, judges Idle hardware device is failed equipment, and starts the fault detect tool built in terminal device and carry out failure inspection to failed equipment It surveys.
In one embodiment, failed equipment obtains subelement and is additionally operable to:
1) failure detection result for the failed equipment that fault detect tool is sent is received.
If 2) failure detection result includes error code, standard corresponding with error code is searched in the troubleshooting table that prestores Error code, as target faults code, the troubleshooting table that prestores includes standard fault codes, troubleshooting instruction and standard failure processing As a result.
3) the corresponding troubleshooting instruction of target faults code is obtained, as target faults process instruction.
4) troubleshooting is carried out according to target faults process instruction automatically, generates current failure handling result.
In one embodiment, failed equipment obtains subelement and is additionally operable to:
1) the corresponding standard failure handling result of the target faults code is obtained, as target criteria troubleshooting knot Fruit.
If 2) the current failure handling result is matched with the target criteria troubleshooting result, again according to Function detection table is detected automatically.
If 3) the current failure handling result is mismatched with the target criteria troubleshooting result, the event is preserved The current operating parameter of fault device, and power down process is carried out to the failed equipment.
In one embodiment, failed equipment obtains subelement and is additionally operable to:
1) startup separator device, and send to preset and read instruction to failed equipment, preset to read to instruct being used to indicate failure Device reads current operating parameter.
2) failure judgement device whether there is failure corresponding with target faults code.
If 3) failure corresponding with target faults code is not present in failed equipment, carried out again according to Function detection table automatic Detection.
4) if failed equipment has failure corresponding with target faults code, fault handling information is generated, and will be at failure Reason information is sent to third party's terminal.
As shown in figure 4, in one embodiment, idle devices searching module 110 is specifically wrapped in the embodiment corresponding to Fig. 4 It includes:
Device acquiring unit 111 to be detected, for obtaining hardware device to be detected.
Target hardware device acquiring unit 112, for choosing a hardware device from hardware device to be detected, as Target hardware device.
Parameter matching unit 113, the current operating parameter for obtaining target hardware device, and judge current operating parameter Whether matched with the idle parameter that prestores.
Idle devices acquiring unit 114, if being matched with the idle parameter that prestores for current operating parameter, it is determined that target is hard Part device is the hardware device of free time;
Idle devices searching unit 115 is searched empty again if different from the idle parameter that prestores for current operating parameter Not busy hardware device.
In one embodiment, automatic checkout system 100 further includes other function module/units, for realizing embodiment 1 In method and step in each embodiment.
Embodiment 3:
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 5, the terminal of the embodiment is set Standby 5 include:Processor 50, memory 51 and it is stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine program 52.The processor 50 realizes each embodiment as described in example 1 above when executing the computer program 52 Step, such as step S101 shown in FIG. 1 to step S104.Alternatively, when the processor 50 executes the computer program 52 Realize the function of each module/unit in each system embodiment as described in example 2 above, for example, module 110 shown in Fig. 3 to 140 function.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided It is cut into idle devices searching module, device number acquisition module, Function detection table acquisition module and testing result generation module.Respectively Module concrete function is as follows:
Idle devices searching module, for searching idle hardware device.
Device number acquisition module, the device number for obtaining idle hardware device.
Function detection table acquisition module, for obtaining corresponding Function detection table according to device number.
Testing result generation module generates testing result for being detected automatically according to Function detection table.
The terminal device 5 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The terminal device 5 may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that figure 5 be only the example of terminal device 5, does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk of terminal device 5 or interior It deposits.The memory 51 can also be to be equipped on the External memory equipment of the terminal device 5, such as the terminal device 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5 Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
Embodiment 4:
The embodiment of the present invention additionally provides a kind of computer readable storage medium, and computer-readable recording medium storage has meter Calculation machine program is realized the step in each embodiment as described in example 1 above, such as is schemed when computer program is executed by processor Step S101 to step S104 shown in 1.Alternatively, being realized such as institute in embodiment 2 when the computer program is executed by processor The function of each module/unit in each system embodiment stated, for example, module 110 to 140 shown in Fig. 3 function.
The computer program can be stored in a computer readable storage medium, and the computer program is by processor When execution, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, The computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..Institute Stating computer-readable medium may include:Can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs It is bright, the content that the computer-readable medium includes can according in jurisdiction legislation and patent practice requirement into Row increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium is including being electricity Carrier signal and telecommunication signal.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in system of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of automatic testing method, which is characterized in that be applied to terminal device, the terminal device is filled by least two hardware Composition is set, the automatic testing method includes:
Search idle hardware device;
Obtain the device number of the hardware device of the free time;
Corresponding Function detection table is obtained according to described device number;
It is detected automatically according to the Function detection table, generates testing result.
2. automatic testing method as described in claim 1, which is characterized in that the hardware device for searching the free time, including:
Obtain hardware device to be detected;
A hardware device is chosen from the hardware device to be detected, as target hardware device;
The current operating parameter of the target hardware device is obtained, and judges whether the current operating parameter joins with the free time that prestores Number matching;
If the current operating parameter is matched with the idle parameter that prestores, it is determined that the target hardware device is the free time Hardware device;
If the current operating parameter is different from the idle parameter that prestores, idle hardware device is searched again.
3. automatic testing method as described in claim 1, which is characterized in that the Function detection table includes needing to be detected Function Identification set, Function detection instruction and standard testing result;
It is described to be detected automatically according to the Function detection table, including:
Obtain the brake to be checked of the hardware device of the free time;
A function is chosen from the brake to be checked, as objective function;
The corresponding Function Identification of the objective function is selected from the Function Identification set, is identified as objective function;
The corresponding Function detection instruction of the objective function mark is obtained, detects and instructs as objective function;
The objective function is detected automatically according to objective function detection instruction, generates current detection result.
4. automatic testing method as claimed in claim 3, which is characterized in that after the generation current detection result, packet It includes:
It obtains the objective function and identifies the corresponding standard testing result, as target criteria testing result;
If the current detection result is matched with the target criteria testing result, it is determined that the objective function may be implemented, And reacquire next objective function;
If the current detection result is mismatched with the target criteria testing result, judge that the hardware device of the free time is Failed equipment, and start the fault detect tool built in the terminal device and fault detect is carried out to the failed equipment.
5. automatic testing method as claimed in claim 4, which is characterized in that in the event started built in the terminal device After hindering detection instrument to failed equipment progress fault detect, including:
Receive the failure detection result for the failed equipment that the fault detect tool is sent;
If the failure detection result includes error code, mark corresponding with the error code is searched in the troubleshooting table that prestores Quasi- error code, as target faults code, the troubleshooting table that prestores includes standard fault codes, troubleshooting instruction and standard event Hinder handling result;
The corresponding troubleshooting instruction of the target faults code is obtained, as target faults process instruction;
Troubleshooting is carried out automatically according to the target faults process instruction, generates current failure handling result.
6. automatic testing method as claimed in claim 5, which is characterized in that the generation current failure handling result it Afterwards, including:
The corresponding standard failure handling result of the target faults code is obtained, as target criteria troubleshooting result;
If the current failure handling result is matched with the target criteria troubleshooting result, examined again according to the function Survey table is detected automatically;
If the current failure handling result is mismatched with the target criteria troubleshooting result, the failed equipment is preserved Current operating parameter, and to the failed equipment carry out power down process.
7. automatic testing method as claimed in claim 6, which is characterized in that it is described to the failed equipment power down process it Afterwards, including:
Start the failed equipment, and send default read and instruct to the failed equipment, the default reading instruction is for referring to Show that the failed equipment reads the current operating parameter;
Judge that the failed equipment whether there is failure corresponding with the target faults code;
If the failed equipment be not present failure corresponding with the target faults code, again according to the Function detection table into The automatic detection of row;
If the failed equipment has failure corresponding with the target faults code, fault handling information is generated, and will be described Fault handling information is sent to third party's terminal.
8. a kind of automatic checkout system, which is characterized in that be applied to terminal device, the terminal device is filled by least two hardware Composition is set, the automatic checkout system includes:
Idle devices searching module, for searching idle hardware device;
Device number acquisition module, the device number of the hardware device for obtaining the free time;
Function detection table acquisition module, for obtaining corresponding Function detection table according to described device number;
Testing result generation module generates testing result for being detected automatically according to the Function detection table.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
CN201810151438.8A 2018-02-14 2018-02-14 Automatic detection method, system and terminal equipment Active CN108376110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810151438.8A CN108376110B (en) 2018-02-14 2018-02-14 Automatic detection method, system and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810151438.8A CN108376110B (en) 2018-02-14 2018-02-14 Automatic detection method, system and terminal equipment

Publications (2)

Publication Number Publication Date
CN108376110A true CN108376110A (en) 2018-08-07
CN108376110B CN108376110B (en) 2021-05-11

Family

ID=63017724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810151438.8A Active CN108376110B (en) 2018-02-14 2018-02-14 Automatic detection method, system and terminal equipment

Country Status (1)

Country Link
CN (1) CN108376110B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241800A (en) * 2018-09-17 2019-01-18 苏州浪潮智能软件有限公司 A kind of self-aided terminal and its operation method
CN111447435A (en) * 2020-04-03 2020-07-24 中邮智递科技有限公司 Intelligent detection method for camera function of express cabinet
CN113938676A (en) * 2021-12-16 2022-01-14 军事科学院系统工程研究院网络信息研究所 Fault detection method and device for online video system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236522A (en) * 2008-01-25 2008-08-06 中兴通讯股份有限公司 Hardware module test method and apparatus
CN103019913A (en) * 2012-11-21 2013-04-03 广东欧珀移动通信有限公司 Abnormal prompting method and system for mobile terminals and hardware thereof
CN103793326A (en) * 2014-01-28 2014-05-14 福建星网锐捷网络有限公司 Assembly test method and device
CN105095034A (en) * 2015-08-21 2015-11-25 惠州市蓝微电子有限公司 Product test equipment and testing method based on same
CN105446876A (en) * 2015-11-03 2016-03-30 北京京东尚科信息技术有限公司 Service dimension based automatic testing method, apparatus and system
CN107332722A (en) * 2017-08-31 2017-11-07 郑州云海信息技术有限公司 The method for removing and system of a kind of fault message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101236522A (en) * 2008-01-25 2008-08-06 中兴通讯股份有限公司 Hardware module test method and apparatus
CN103019913A (en) * 2012-11-21 2013-04-03 广东欧珀移动通信有限公司 Abnormal prompting method and system for mobile terminals and hardware thereof
CN103793326A (en) * 2014-01-28 2014-05-14 福建星网锐捷网络有限公司 Assembly test method and device
CN105095034A (en) * 2015-08-21 2015-11-25 惠州市蓝微电子有限公司 Product test equipment and testing method based on same
CN105446876A (en) * 2015-11-03 2016-03-30 北京京东尚科信息技术有限公司 Service dimension based automatic testing method, apparatus and system
CN107332722A (en) * 2017-08-31 2017-11-07 郑州云海信息技术有限公司 The method for removing and system of a kind of fault message

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109241800A (en) * 2018-09-17 2019-01-18 苏州浪潮智能软件有限公司 A kind of self-aided terminal and its operation method
CN111447435A (en) * 2020-04-03 2020-07-24 中邮智递科技有限公司 Intelligent detection method for camera function of express cabinet
CN113938676A (en) * 2021-12-16 2022-01-14 军事科学院系统工程研究院网络信息研究所 Fault detection method and device for online video system
CN113938676B (en) * 2021-12-16 2022-03-18 军事科学院系统工程研究院网络信息研究所 Fault detection method and device for online video system

Also Published As

Publication number Publication date
CN108376110B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN108376110A (en) A kind of automatic testing method, system and terminal device
CN108845910A (en) Monitoring method, device and the storage medium of extensive micro services system
CN107451147A (en) A kind of method and apparatus of kafka clusters switching at runtime
CN106034138A (en) Remote service calling method and remote service calling device
CN110224854A (en) Dispositions method, device and the storage medium of block chain node
CN107733708A (en) Device parameter collocation method, device, computer equipment and storage medium
CN107590016A (en) Power-down rebooting recognition methods and device
CN110247796A (en) Monitoring alarm method, apparatus and relevant device
CN104536926B (en) The control method and device of serial equipment
CN111767173A (en) Network equipment data processing method and device, computer equipment and storage medium
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN112737800A (en) Service node fault positioning method, call chain generation method and server
CN109325010A (en) Log inspection method, device, computer equipment and storage medium
CN111881014B (en) System test method, device, storage medium and electronic equipment
CN112131196A (en) Distributed log processing method and device, terminal equipment and storage medium
CN112148513A (en) Dump method and device for single point service data and storage medium
CN108319679B (en) Method and device for generating primary key
CN109656783A (en) System platform monitoring method and device
CN112530139B (en) Monitoring system, method, device, collector and storage medium
CN113688005B (en) Operation and maintenance monitoring method and system
CN108154343B (en) Emergency processing method and system for enterprise-level information system
CN113836013A (en) Embedded point testing method and device, computer equipment and computer readable storage medium
CN111967614A (en) Artificial intelligence learning method and device
CN111475322A (en) Method and device for positioning stuck thread, computer equipment and readable storage medium
CN112732506A (en) Server cabinet network card testing method, system, terminal and storage 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
CB02 Change of applicant information

Address after: 518000 Two 26G Baihua Apartments on Baihua Erlu, Futian District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Taiji Yun Soft Technology Co., Ltd.

Address before: 518000 Two 26G Baihua Apartments on Baihua Erlu, Futian District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Taiji soft Arts Limited by Share Ltd

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: An automatic detection method, system and terminal equipment

Effective date of registration: 20210810

Granted publication date: 20210511

Pledgee: Shenzhen hi tech investment small loan Co.,Ltd.

Pledgor: Shenzhen Taiji Yun Soft Technology Co.,Ltd.

Registration number: Y2021980007466

PE01 Entry into force of the registration of the contract for pledge of patent right
CP03 Change of name, title or address

Address after: 518000 1402, building 3, Shenzhen new generation industrial park, No. 136, Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Taiji Shuzhi Technology Co.,Ltd.

Address before: 518000 Two 26G Baihua Apartments on Baihua Erlu, Futian District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen Taiji Yun Soft Technology Co.,Ltd.

CP03 Change of name, title or address