CN106708669A - Device testing method, apparatus and system - Google Patents
Device testing method, apparatus and system Download PDFInfo
- Publication number
- CN106708669A CN106708669A CN201510779373.8A CN201510779373A CN106708669A CN 106708669 A CN106708669 A CN 106708669A CN 201510779373 A CN201510779373 A CN 201510779373A CN 106708669 A CN106708669 A CN 106708669A
- Authority
- CN
- China
- Prior art keywords
- identification code
- wrong identification
- retries
- mistake
- threshold value
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Retry When Errors Occur (AREA)
- Monitoring And Testing Of Exchanges (AREA)
Abstract
The invention provides a device testing method, apparatus and system. The method comprises the steps of testing a device by using a testing script, and when an error is tested, obtaining an error identification code of the error; in an error database, searching for a corresponding processing code according to the error identification code; processing the error by utilizing the processing code; and continuing to use the testing script to test the device. By implementing the testing method, apparatus and system, when the error is detected, the corresponding processing code is automatically searched for, the error is processed, and the device testing continues to be performed after the error processing, so that the device testing does not need to be interrupted, abnormal interrupts in the testing process are reduced, and the success rate of testing is increased; and the number of retries can be adjusted through an adaptive threshold algorithm, thereby ensuring that error retry can be effectively performed and the number of error retries can be minimized.
Description
Technical field
The present invention relates to equipment testing field, more particularly to a kind of apparatus testing method, apparatus and system.
Background technology
In equipment testing field, such as wireless telecommunications system software test, often relate to more network element and testing tool and other test associated components, with GSM (Global System for Mobile Communications, global system for mobile communications) wireless software test as a example by, basic environment configuration include:The components such as base station, base station controller, core net, the signal server and client of each network element, the NM server and client of each network element, and testing tool, test script;The purpose of software test is the problem that discovering device software is present, but inevitably occurs that many extraneous factors such as other test suite exceptions or wireless environment interference cause test crash;These failures are not communication apparatus software problems in itself.In the prior art, it is that retest simply is carried out to failure entry if problems are run into, or investigates each network element exception one by one, or test script is investigated etc., so result in test to interrupt, it is impossible to be carried out continuously, investigation gets up also to take time and effort very much.
Therefore, how to provide it is a kind of can solve existing test crash cause test disruption apparatus testing method, be those skilled in the art's technical problem urgently to be resolved hurrily.
The content of the invention
The invention provides a kind of apparatus testing method, apparatus and system, to solve the problems, such as that the test crash that existing method of testing is present causes to test disruption.
The invention provides a kind of apparatus testing method, it includes:
Equipment is tested using test script, when test is to mistake, obtains the wrong identification code of mistake;
In error database, corresponding treatment code is searched according to wrong identification code;
Using processing code process mistake;
Test script is continuing with to test equipment.
Further, also include:Whether it is new mistake according to wrong identification code misjudgment, if it is not, then using code process mistake is processed, if so, be then continuing with test script testing equipment.
Further, after being tested equipment using test script, also include:New mistake is processed, its corresponding treatment code is set, and by its corresponding wrong identification code write error database.
Further, using before processing code process mistake, also include:Maximum number of processes corresponding with wrong identification code is obtained, whether is judged to the treatment number of retries of mistake more than maximum number of processes, if it is not, then using code process mistake is processed, if so, not processing mistake then.
Further, when treatment is needed in the presence of multiple mistakes, using before processing code process mistake, also include:Obtain with each wrong identification corresponding initial threshold of code and number of retries, calculate institute's wrong total threshold value to be handled using adaptive algorithm, whether mistake is processed according to total threshold decision, if so, then process mistake, if it is not, not processing mistake then.
Further, calculating institute's wrong treatment threshold value to be handled using adaptive algorithm includes:
Before getting first wrong identification code and not carrying out error handle also and retry, the initial threshold that total threshold value is the first wrong identification code is set;
When n-th wrong identification code is detected, N >=2 and be integer, whether judge the number of retries of the N-1 wrong identification code increases, if the number of retries of the N-1 wrong identification code does not increase, then judge whether the N-1 number of retries of wrong identification code is equal to the N-1 initial threshold of wrong identification code, if the number of retries of the N-1 wrong identification code is not equal to the N-1 initial threshold of wrong identification code, updating total threshold value is:The number of retries of wrong identification code of the initial threshold-the of wrong identification code N-1 of current total threshold value+the N-1, and the number of retries of the N-1 wrong identification code is set to the N-1 initial threshold number of wrong identification code;
If the number of retries of the N-1 wrong identification code increases, or, the number of retries of the N-1 wrong identification code is equal to the N-1 initial threshold of wrong identification code, judge whether n-th wrong identification code is not stored in wrong interim table, the interim table of mistake is used to store all wrong wrong identification code, number of retries and initial thresholds for processing;
If n-th wrong identification code is not stored in wrong interim table, then judge whether current total threshold value is more than default total upper threshold value, if current total threshold value is more than total upper threshold value, total threshold value is set and keeps constant, if current total threshold value is not more than total upper threshold value, updating total threshold value is:The error number of the initial threshold+temporary error table of current total threshold value+n-th wrong identification code;
If the storage of n-th wrong identification code is in wrong interim table, then total threshold value subtracts 1, if the total threshold value after updating is less than or equal to 0, n-th wrong identification code is not processed then, if the total threshold value after updating is more than 0, then judge whether the number of retries of n-th wrong identification code is more than the number of retries upper limit of n-th wrong identification code, if the number of retries upper limit of the number of retries more than n-th wrong identification code of n-th wrong identification code, n-th wrong identification code is not processed then, if the number of retries of n-th wrong identification code is not more than the number of retries upper limit of n-th wrong identification code, then process n-th wrong identification code.
The invention provides a kind of equipment testing device, it includes:
Test module, for being tested equipment using test script, when test is to mistake, obtains the wrong identification code of mistake;
Searching modul, in error database, corresponding treatment code being searched according to wrong identification code;
Processing module, code process mistake is processed for utilizing;
Test module is additionally operable to be continuing with test script to test equipment.
Further, whether it is new mistake that searching modul is additionally operable to according to wrong identification code misjudgment, if it is not, then using code process mistake is processed, if so, be then continuing with test script testing equipment.
Further, processing module is additionally operable to after being tested equipment using test script, and new mistake is processed, and sets its corresponding treatment code, and by its corresponding wrong identification code write error database.
Further, also include control module, for using before processing code process mistake, obtain maximum number of processes corresponding with wrong identification code, whether judge to the treatment number of retries of mistake more than maximum number of processes, if it is not, then using processing code process mistake, if so, not processing mistake then.
Further, when treatment is needed in the presence of multiple mistakes, using before processing code process mistake, control module be additionally operable to obtain with each wrong identification corresponding initial threshold of code and number of retries, calculate institute's wrong total threshold value to be handled using adaptive algorithm, whether mistake is processed according to total threshold decision, if, mistake is then processed, if it is not, not processing mistake then.
Further, control module is additionally operable to:
Before getting first wrong identification code and not carrying out error handle also and retry, the initial threshold that total threshold value is the first wrong identification code is set;
When n-th wrong identification code is detected, N >=2 and be integer, whether judge the number of retries of the N-1 wrong identification code increases, if the number of retries of the N-1 wrong identification code does not increase, then judge whether the N-1 number of retries of wrong identification code is equal to the N-1 initial threshold of wrong identification code, if the number of retries of the N-1 wrong identification code is not equal to the N-1 initial threshold of wrong identification code, updating total threshold value is:The number of retries of wrong identification code of the initial threshold-the of wrong identification code N-1 of current total threshold value+the N-1, and the number of retries of the N-1 wrong identification code is set to the N-1 initial threshold number of wrong identification code;
If the number of retries of the N-1 wrong identification code increases, or, the number of retries of the N-1 wrong identification code is equal to the N-1 initial threshold of wrong identification code, judge whether n-th wrong identification code is not stored in wrong interim table, the interim table of mistake is used to store all wrong wrong identification code, number of retries and initial thresholds for processing;
If n-th wrong identification code is not stored in wrong interim table, then judge whether current total threshold value is more than default total upper threshold value, if current total threshold value is more than total upper threshold value, total threshold value is set and keeps constant, if current total threshold value is not more than total upper threshold value, updating total threshold value is:The error number of the initial threshold+temporary error table of current total threshold value+n-th wrong identification code;
If the storage of n-th wrong identification code is in wrong interim table, then total threshold value subtracts 1, if the total threshold value after updating is less than or equal to 0, n-th wrong identification code is not processed then, if the total threshold value after updating is more than 0, then judge whether the number of retries of n-th wrong identification code is more than the number of retries upper limit of n-th wrong identification code, if the number of retries upper limit of the number of retries more than n-th wrong identification code of n-th wrong identification code, n-th wrong identification code is not processed then, if the number of retries of n-th wrong identification code is not more than the number of retries upper limit of n-th wrong identification code, then process n-th wrong identification code.
The invention provides a kind of device test system, its equipment testing device test equipment provided using the present invention.
Beneficial effects of the present invention:
The invention provides a kind of apparatus testing method, when mistake is detected, corresponding treatment code is searched automatically, and mistake is processed, equipment test is proceeded after the treatment, without interrupting equipment test, the abnormal interrupt in test process is reduced, successfully tested rate is improve;Further, number of retries is adjusted by adaptive threshold, to ensure effectively to be retried, can guarantee that number of retries is minimized again;Further, result constantly is optimized to new storage mistake so that test script is more healthy and stronger, reached actively, pinpoint the problems automatically and solve problem effect.
Brief description of the drawings
The structural representation of the equipment testing device that Fig. 1 is provided for first embodiment of the invention;
The flow chart of the apparatus testing method that Fig. 2 is provided for second embodiment of the invention;
The structural representation of the equipment testing device that Fig. 3 is provided for third embodiment of the invention;
The flow chart of the apparatus testing method that Fig. 4 is provided for third embodiment of the invention;
Fig. 5 is the flow chart of adaptive thresholding algorithm in third embodiment of the invention.
Specific embodiment
Further annotation explanation is now made to the present invention by way of specific embodiment combination accompanying drawing.
First embodiment:
The structural representation of the equipment testing device that Fig. 1 is provided for first embodiment of the invention, as shown in Figure 1, in the present embodiment, the equipment testing device 1 that the present invention is provided includes:
The invention provides a kind of equipment testing device, it includes:
Test module 11, for being tested equipment using test script, when test is to mistake, obtains the wrong identification code of mistake;
Searching modul 12, in error database, corresponding treatment code being searched according to wrong identification code;
Processing module 13, code process mistake is processed for utilizing;
Test module 11 is additionally operable to be continuing with test script to test equipment.
In certain embodiments, whether it is new mistake that the searching modul 12 in above-described embodiment is additionally operable to according to wrong identification code misjudgment, if it is not, then using code process mistake is processed, if so, be then continuing with test script testing equipment.
In certain embodiments, the processing module 13 in above-described embodiment is additionally operable to after being tested equipment using test script, and new mistake is processed, and sets its corresponding treatment code, and by its corresponding wrong identification code write error database.
In certain embodiments, as shown in Figure 1, equipment testing device 1 in above-described embodiment also includes control module 14, for using maximum number of processes corresponding with wrong identification code before processing code process mistake, is obtained, whether judging to the treatment number of retries of mistake more than maximum number of processes, if not, then using code process mistake is processed, if so, not processing mistake then.
In certain embodiments, when treatment is needed in the presence of multiple mistakes, using before processing code process mistake, control module 14 in above-described embodiment be additionally operable to obtain with each wrong identification corresponding initial threshold of code and number of retries, calculate institute's wrong total threshold value to be handled using adaptive algorithm, whether mistake is processed according to total threshold decision, if, mistake is then processed, if it is not, not processing mistake then.Further, after mistake is processed, also including subtracting one by total threshold value, to ensure, the summation of vicious number of retries will not be excessive.
In certain embodiments, the control module 14 in above-described embodiment is additionally operable to:
Before getting first wrong identification code and not carrying out error handle also and retry, the initial threshold that total threshold value is the first wrong identification code is set;
When n-th wrong identification code is detected, N >=2 and be integer, whether judge the number of retries of the N-1 wrong identification code increases, if the number of retries of the N-1 wrong identification code does not increase, then judge whether the N-1 number of retries of wrong identification code is equal to the N-1 initial threshold of wrong identification code, if the number of retries of the N-1 wrong identification code is not equal to the N-1 initial threshold of wrong identification code, updating total threshold value is:The number of retries of wrong identification code of the initial threshold-the of wrong identification code N-1 of current total threshold value+the N-1, and the number of retries of the N-1 wrong identification code is set to the N-1 initial threshold number of wrong identification code, by the N-1 mistake number of retries be set to N-1 mistake initial threshold be in order to avoid enter back into next time flow circulation in then judge N-1 mistakes retry be not equal to N-1 initial thresholds then again can carry out following sequence of operations, therefore N-1 mistake number of retries is set here to be set to after the initial threshold of N-1, when judging again, next step can be directly entered;
If the number of retries of the N-1 wrong identification code increases, or, the number of retries of the N-1 wrong identification code is equal to the N-1 initial threshold of wrong identification code, judge whether n-th wrong identification code is not stored in wrong interim table, the interim table of mistake is used to store all wrong wrong identification code, number of retries and initial thresholds for processing;
If n-th wrong identification code is not stored in wrong interim table, then judge whether current total threshold value is more than default total upper threshold value, if current total threshold value is more than total upper threshold value, total threshold value is set and keeps constant, if current total threshold value is not more than total upper threshold value, updating total threshold value is:The error number of the initial threshold+temporary error table of current total threshold value+n-th wrong identification code;In actual use, temporary error table is used to store all (may have M mistake, M>N, or M=N) the wrong wrong identification code that is processing, number of retries, initial threshold, now, " number M " is that the parameter of same type is all integer, here it is plus M, meaning is the treatment for preventing this wrong (n-th mistake) to prevent other mistakes, it is therefore desirable to update total threshold value
If the storage of n-th wrong identification code is in wrong interim table, then total threshold value subtracts 1, if the total threshold value after updating is less than or equal to 0, n-th wrong identification code is not processed then, if the total threshold value after updating is more than 0, then judge whether the number of retries of n-th wrong identification code is more than the number of retries upper limit of n-th wrong identification code, if the number of retries upper limit of the number of retries more than n-th wrong identification code of n-th wrong identification code, n-th wrong identification code is not processed then, if the number of retries of n-th wrong identification code is not more than the number of retries upper limit of n-th wrong identification code, then process n-th wrong identification code.
It is corresponding, the invention provides a kind of device test system, its test equipment of equipment testing device 1 provided using the present invention.
Second embodiment:
The flow chart of the apparatus testing method that Fig. 2 is provided for second embodiment of the invention, as shown in Figure 2, in the present embodiment, the apparatus testing method that the present invention is provided is comprised the following steps:
S201:Equipment is tested using test script, when test is to mistake, obtains the wrong identification code of mistake;
S202:In error database, corresponding treatment code is searched according to wrong identification code;
S203:Using processing code process mistake;
S204:Test script is continuing with to test equipment.
In certain embodiments, the method in above-described embodiment also includes:Whether it is new mistake according to wrong identification code misjudgment, if it is not, then using code process mistake is processed, if so, be then continuing with test script testing equipment.
In certain embodiments, the method in above-described embodiment is also included after being tested equipment using test script:New mistake is processed, its corresponding treatment code is set, and by its corresponding wrong identification code write error database.
In certain embodiments, the method in above-described embodiment also includes using before processing code process mistake:Maximum number of processes corresponding with wrong identification code is obtained, whether is judged to the treatment number of retries of mistake more than maximum number of processes, if it is not, then using code process mistake is processed, if so, not processing mistake then.
In certain embodiments, when treatment is needed in the presence of multiple mistakes, using before processing code process mistake, the method in above-described embodiment also includes:Obtain with each wrong identification corresponding initial threshold of code and number of retries, calculate institute's wrong total threshold value to be handled using adaptive algorithm, whether mistake is processed according to total threshold decision, if so, then process mistake, if it is not, not processing mistake then.
In certain embodiments, utilization adaptive algorithm in above-described embodiment calculates institute's wrong treatment threshold value to be handled and includes:
Before getting first wrong identification code and not carrying out error handle also and retry, the initial threshold that total threshold value is the first wrong identification code is set;
When n-th wrong identification code is detected, N >=2 and be integer, whether judge the number of retries of the N-1 wrong identification code increases, if the number of retries of the N-1 wrong identification code does not increase, then judge whether the N-1 number of retries of wrong identification code is equal to the N-1 initial threshold of wrong identification code, if the number of retries of the N-1 wrong identification code is not equal to the N-1 initial threshold of wrong identification code, updating total threshold value is:The number of retries of wrong identification code of the initial threshold-the of wrong identification code N-1 of current total threshold value+the N-1, and the number of retries of the N-1 wrong identification code is set to the N-1 initial threshold number of wrong identification code;
If the number of retries of the N-1 wrong identification code increases, or, the number of retries of the N-1 wrong identification code is equal to the N-1 initial threshold of wrong identification code, judge whether n-th wrong identification code is not stored in wrong interim table, the interim table of mistake is used to store all wrong wrong identification code, number of retries and initial thresholds for processing;
If n-th wrong identification code is not stored in wrong interim table, then judge whether current total threshold value is more than default total upper threshold value, if current total threshold value is more than total upper threshold value, total threshold value is set and keeps constant, if current total threshold value is not more than total upper threshold value, updating total threshold value is:The error number of the initial threshold+temporary error table of current total threshold value+n-th wrong identification code;In actual use, temporary error table is used to store all (may have M mistake, M>N, or M=N) the wrong wrong identification code that is processing, number of retries, initial threshold, now, " number M " is that the parameter of same type is all integer, here it is plus M, meaning is the treatment for preventing this wrong (n-th mistake) to prevent other mistakes, it is therefore desirable to update total threshold value
If the storage of n-th wrong identification code is in wrong interim table, then total threshold value subtracts 1, if the total threshold value after updating is less than or equal to 0, n-th wrong identification code is not processed then, if the total threshold value after updating is more than 0, then judge whether the number of retries of n-th wrong identification code is more than the number of retries upper limit of n-th wrong identification code, if the number of retries upper limit of the number of retries more than n-th wrong identification code of n-th wrong identification code, n-th wrong identification code is not processed then, if the number of retries of n-th wrong identification code is not more than the number of retries upper limit of n-th wrong identification code, then process n-th wrong identification code.
Further annotation explanation is done to the present invention in conjunction with concrete application scene.
3rd embodiment:
Presently in connection with accompanying drawing, by taking the example software test of GSM base station controllers as an example, the present invention will be described.
As shown in figure 3, the periphery of equipment testing device 1 be connected to GSM base station controller software tests needed for all basic modules, including multiple base stations, multiple base station controller, multiple test devices, base station webmaster, base station controller webmaster and signaling tracking server;Need to increase test suite in addition if test case there are other specific demands in actual applications.
As shown in figure 3, in the present embodiment, the functional module to equipment testing device 1 has re-started definition, and it includes:Log acquisition module 31, wrong identification code storehouse 32, error handling module 33, adaptive threshold module 34, wrong identification code management module 35, script drive module 36, test script 37;Specifically,
Log acquisition module 31, it is connected with peripheral assembly and wrong identification code storehouse 32, it is responsible for obtaining the print log of the peripheral assembly in test process, and parsed, if being resolved to the error print of entry test in test script, other assemblies error print is inquired about simultaneously, and inquiry is associated into wrong identification code storehouse 32;
Wrong identification code storehouse 32 is connected with log acquisition module 31 and adaptive threshold module 34, there is provided wrong identification code is inquired about to log acquisition module 31, there is provided initial threshold and number of retries higher limit are to adaptive threshold module 34.Initial threshold and number of retries higher limit are all stored in wrong identification code storehouse 32;Initial threshold is according to the initial value that error handle experience is that each wrong identification code division is matched somebody with somebody, which represent the expectation number of times threshold value for solving to be retried needed for the mistake;It according to error handle experience is the maximum threshold that can be retried that each wrong identification code division is matched somebody with somebody that number of retries higher limit is, meeting system can be retried once after often carrying out an error handle, the number of retries of corresponding adaptive threshold module record can also increase, the effect of number of retries higher limit is that the upper limit of number of retries needed for treatment solves the mistake makes restriction, it is to avoid Infinite Cyclic retries generation.In actual applications, according to different scenes, number of retries higher limit is more than initial threshold, and generally higher than 2 times.
Adaptive threshold module 34 is connected with wrong identification code storehouse 32, error handling module 33, wrong identification code management module 35, the inquiry error identification code storehouse 32 of log acquisition module 31, inquire corresponding wrong identification code, then result matching is that successfully, then adaptive threshold module 34 judges whether to meet treatment conditions, meets condition, error handling module 33 then carries out error handle, Query Result is mismatched, wrong identification code management mould, and 35 are put in storage new wrong identification code.An interim table of mistake is deposited in adaptive threshold module 34, for recording each wrong identification code and its initial threshold and number of retries, after often successfully completing an entry test, adaptive threshold module is reinitialized, the interim table of mistake is cleared, it is 0 to set total threshold value, total threshold value is defined as the global variable of adaptive threshold module, before daily record acquisition module intercepts first wrong identification code and does not carry out error handle also and retries, total threshold value is assigned wrong identification code initial threshold, in the case of other, total threshold value is adaptive thresholding algorithm result of calculation.The total upper threshold value of default setting one is gone back in system, the value is constant, in adaptive threshold calculating process, if total threshold value is more than total upper threshold value, then total threshold value does not continue to increase, its effect is that the total threshold value of limitation unrestrictedly increases, and causes circulation to jump out, while can also control to reduce test number of retries.It is general it is actually used in, total upper threshold constant value is usually arranged as a value bigger than normal.If total threshold value is reduced to zero, system will not continue to attempt to error handle and retry.Adaptive threshold module uses total threshold value global variable as the threshold value of self adaptation, and rather than the initial threshold using single error identification code, as adaptive threshold, its reason is that single error initial threshold cannot be competent in error processing procedure and produce new wrong situation.The details of increase and the reduction of total threshold value refer to the process step of adaptive thresholding algorithm as shown in Figure 5.
Wrong identification code management module 35 is connected with wrong identification code storehouse 32 and adaptive threshold module 34, receive the new wrong identification for failing identification code, the new wrong identification for failing identification code is put in storage, the wrong identification that the fails identification code new to these is analyzed after end to be tested, treatment, software or test script are modified, increase error handling module 33 corresponding treatment code, by constantly finding new wrong identification code, the processing method of amendment code and increase error handling module, reach actively, it is automatic to pinpoint the problems and solve problem purpose, reduce the artificial test job to testing system software, it is time saving and energy saving, it was found that software error accuracy rate is high.
Error handling module 33 is connected with script drive module 36 and adaptive threshold module 34, and each wrong identification code in wrong identification code storehouse 32 has one-to-one wrong identification code treatment code in error handling module.After the flow of adaptive threshold module 34 is normally covered, starting error handling module 33 carries out error handle, script drive module 36 drives test script 37 to be retried after being disposed, and the corresponding number of retries of corresponding wrong identification code also can accordingly increase in adaptive threshold module 34.
Script drive module 36 is connected with test script 37 and error handling module 33 is connected, and after error handle mould 33 processes mistake, notifies that script drive module continues to drive test script to be tested.
As shown in figure 4, the process step of the flow elements of the apparatus testing method that the present embodiment is provided is as follows:
S401-S403:After script drive module drives test script to start working, log acquisition module is started working.
S404:Mistake is carried out match query by log acquisition module in wrong identification code storehouse.
S405-S407:Adaptive threshold resume module match query result, if new fails identification wrong identification code, then these new are failed to recognize mistake by wrong identification management module, carry out storage to wrong identification code storehouse, after end to be tested, the error handling module wrong identification that the fails identification code new to these is analyzed treatment.
S408-S411:Adaptive threshold module judges whether to need treatment according to adaptive threshold, if need not process, then continue directly to equipment test, if desired, then error handling module carries out error handle, and the wrong identification code for failing identification is not processed, and equipment test is continued after the completion for the treatment of, number of retries increase in adaptive threshold module once, continues to drive test script to be tested.
As shown in figure 5, in the present embodiment, the adaptive algorithm handling process in adaptive threshold module is as follows:
S501-S502:After adaptive threshold module gets new wrong identification code matching result, the interim table of mistake preserves wrong identification code, initial threshold, mistake number of retries.
S503-S506:An error logging is searched in wrong interim table, whether the number of retries for observing a upper mistake increases;If number of retries does not increase, then determine whether whether a number of retries for mistake is equal to the initial threshold of a upper mistake, if initial threshold is not equal to number of retries, the number of retries of an initial threshold-upper mistake of total threshold value=total threshold value+upper mistake is then updated, setting number of retries is initial threshold number.If the number of retries of a upper mistake increases or the number of retries of a upper mistake has equalized to number of retries equal to the initial threshold initial threshold of a upper mistake, next step S507 is carried out.
S507:Judge whether wrong identification code is emerging wrong identification yard, i.e., during wrong identification code does not exist the interim table of mistake, if emerging wrong identification yard, then go to step S508-S509, otherwise go to step S510-S512.
S508-S509:Judge the relation of current total threshold value and total upper threshold value, if total threshold value is more than total upper threshold value, total threshold value keeps constant, total threshold value is updated if the not up to upper limit, and computational methods are:The error number recorded in the initial threshold+temporary error table of total threshold value=current total threshold value+new wrong identification code.
S510-S512:Total threshold value is subtracted 1, if total threshold value is less than or equal to 0, then return to the test of continuation equipment, if total threshold value is more than 0, then determine whether the wrong number of retries for newly detecting whether more than the number of retries upper limit, if number of retries reaches the number of retries upper limit, the test of continuation equipment is returned to, otherwise carry out next step operation.
S513:Pending mistake in the interim table of error handling module treatment mistake, the new mistake for detecting of this treatment.
In summary, by implementation of the invention, at least there is following beneficial effect:
The invention provides a kind of apparatus testing method, when mistake is detected, corresponding treatment code is searched automatically, and mistake is processed, equipment test is proceeded after the treatment, without interrupting equipment test, the abnormal interrupt in test process is reduced, successfully tested rate is improve;
Further, number of retries is adjusted by adaptive threshold, to ensure effectively to be retried, can guarantee that number of retries is minimized again;
Further, result constantly is optimized to new storage mistake so that test script is more healthy and stronger, reached actively, pinpoint the problems automatically and solve problem effect.
The above is only specific embodiment of the invention; any formal limitation is not done to the present invention; every any simple modification made to embodiment of above according to technical spirit of the invention, equivalent variations, with reference to or modification, still fall within the protection domain of technical solution of the present invention.
Claims (13)
1. a kind of apparatus testing method, it is characterised in that including:
Equipment is tested using test script, when test is to mistake, obtains the mistake knowledge of the mistake
Other code;
In error database, corresponding treatment code is searched according to wrong identification code;
Using mistake described in the treatment code process;
Test script is continuing with to test equipment.
2. apparatus testing method as claimed in claim 1, it is characterised in that also include:According to described
Wrong identification code judges whether the mistake is new mistake, if it is not, then using described in the treatment code process
Mistake, if so, be then continuing with test script testing equipment.
3. apparatus testing method as claimed in claim 2, it is characterised in that using test script pair
After equipment is tested, also include:The new mistake is processed, its corresponding treatment code is set,
And its corresponding wrong identification code is write into the error database.
4. the apparatus testing method as described in any one of claims 1 to 3, it is characterised in that utilizing
Before mistake described in the treatment code process, also include:Obtain maximum corresponding with wrong identification code
Whether number of processes, judge to the treatment number of retries of the mistake more than the maximum number of processes, if it is not,
Then using mistake described in the treatment code process, if so, not processing the mistake then.
5. apparatus testing method as claimed in claim 4, it is characterised in that needed when there are multiple mistakes
When processing, before using mistake described in the treatment code process, also include:Obtain and know with each mistake
The corresponding initial threshold of other code and number of retries, institute's wrong total threshold to be handled is calculated using adaptive algorithm
Whether value, the mistake is processed according to total threshold decision, if so, the mistake is then processed, if it is not,
The mistake is not processed then.
6. apparatus testing method as claimed in claim 5, it is characterised in that utilize adaptive algorithm meter
Calculating institute's wrong treatment threshold value to be handled includes:
Before getting first wrong identification code and not carrying out error handle also and retry, total threshold value is set
It is the initial threshold of first wrong identification code;
When n-th wrong identification code is detected, N >=2 and be integer judge the N-1 wrong identification yard
Number of retries whether increase, if the N-1 wrong identification code number of retries do not increase, judge
Whether the number of retries of the N-1 wrong identification code is equal to the initial of the N-1 wrong identification code
Threshold value, if the number of retries of the N-1 wrong identification code is not equal to the N-1 wrong identification code
Initial threshold, then updating total threshold value is:N-1 initial threshold of wrong identification code of current total threshold value+the-
The N-1 number of retries of wrong identification code, and the number of retries of the N-1 wrong identification code is set to
The N-1 initial threshold number of wrong identification code;
If the number of retries of the N-1 wrong identification code increases, or, the N-1 mistake is known
The number of retries of other code is equal to the initial threshold of the N-1 wrong identification code, judges that the n-th is wrong
Whether misrecognition code is not stored in wrong interim table, and the interim table of mistake is used to storing and all processes
Wrong wrong identification code, number of retries and initial threshold;
If the n-th wrong identification code is not stored in wrong interim table, whether current total threshold value is judged
More than default total upper threshold value, if current total threshold value is more than total upper threshold value, total threshold value is set and is protected
Hold constant, if current total threshold value is not more than total upper threshold value, updating total threshold value is:Current total threshold value+institute
State the error number of the initial threshold+temporary error table of n-th wrong identification code;
If in wrong interim table, total threshold value subtracts 1 for n-th wrong identification code storage, if after updating
Total threshold value is less than or equal to 0, then the n-th wrong identification code is not processed, if the total threshold value after updating is more than
0, then judge the number of retries of the n-th wrong identification code whether more than n-th wrong identification code
The number of retries upper limit, if the number of retries of n-th wrong identification code is more than the n-th wrong identification
The number of retries upper limit of code, then do not process the n-th wrong identification code, if the n-th wrong identification
The number of retries of code is not more than the number of retries upper limit of the n-th wrong identification code, then process the N
Individual wrong identification code.
7. a kind of equipment testing device, it is characterised in that including:
Test module, for being tested equipment using test script, when test is to mistake, obtains institute
State the wrong identification code of mistake;
Searching modul, in error database, corresponding treatment generation being searched according to wrong identification code
Code;
Processing module, for using mistake described in the treatment code process;
The test module is additionally operable to be continuing with test script to test equipment.
8. equipment testing device as claimed in claim 7, it is characterised in that the searching modul, also
For judging whether the mistake is new mistake according to wrong identification code, if it is not, then utilizing the treatment
Mistake described in code process, if so, be then continuing with test script testing equipment.
9. equipment testing device as claimed in claim 8, it is characterised in that the processing module is also used
In after being tested equipment using test script, the new mistake is processed, its correspondence is set
Treatment code, and by its corresponding wrong identification code write-in error database.
10. the equipment testing device as described in any one of claim 7 to 9, it is characterised in that also include
Control module, for before using mistake described in the treatment code process, obtaining and the wrong identification
Whether the corresponding maximum number of processes of code, judge to the treatment number of retries of the mistake more than the maximum
Reason number of times, if it is not, then using mistake described in the treatment code process, if so, not processing the mistake then.
11. equipment testing devices as claimed in claim 10, it is characterised in that when in the presence of multiple mistakes
When needing treatment, before using mistake described in the treatment code process, the control module is additionally operable to obtain
Initial threshold corresponding with each wrong identification code and number of retries are taken, is calculated using adaptive algorithm and is needed to be located
Total threshold value of mistake is managed, whether the mistake is processed according to total threshold decision, if so, then processing described
Mistake, if it is not, not processing the mistake then.
12. equipment testing devices as claimed in claim 11, it is characterised in that the control module is also
For:
Before getting first wrong identification code and not carrying out error handle also and retry, total threshold value is set
It is the initial threshold of first wrong identification code;
When n-th wrong identification code is detected, N >=2 and be integer judge the N-1 wrong identification yard
Number of retries whether increase, if the N-1 wrong identification code number of retries do not increase, judge
Whether the number of retries of the N-1 wrong identification code is equal to the initial of the N-1 wrong identification code
Threshold value, if the number of retries of the N-1 wrong identification code is not equal to the N-1 wrong identification code
Initial threshold, then updating total threshold value is:N-1 initial threshold of wrong identification code of current total threshold value+the-
The N-1 number of retries of wrong identification code, and the number of retries of the N-1 wrong identification code is set to
The N-1 initial threshold number of wrong identification code;
If the number of retries of the N-1 wrong identification code increases, or, the N-1 mistake is known
The number of retries of other code is equal to the initial threshold of the N-1 wrong identification code, judges that the n-th is wrong
Whether misrecognition code is not stored in wrong interim table, and the interim table of mistake is used to storing and all processes
Wrong wrong identification code, number of retries and initial threshold;
If the n-th wrong identification code is not stored in wrong interim table, whether current total threshold value is judged
More than default total upper threshold value, if current total threshold value is more than total upper threshold value, total threshold value is set and is protected
Hold constant, if current total threshold value is not more than total upper threshold value, updating total threshold value is:Current total threshold value+institute
State the error number of the initial threshold+temporary error table of n-th wrong identification code;
If in wrong interim table, total threshold value subtracts 1 for n-th wrong identification code storage, if after updating
Total threshold value is less than or equal to 0, then the n-th wrong identification code is not processed, if the total threshold value after updating is more than
0, then judge the number of retries of the n-th wrong identification code whether more than n-th wrong identification code
The number of retries upper limit, if the number of retries of n-th wrong identification code is more than the n-th wrong identification
The number of retries upper limit of code, then do not process the n-th wrong identification code, if the n-th wrong identification
The number of retries of code is not more than the number of retries upper limit of the n-th wrong identification code, then process the N
Individual wrong identification code.
13. a kind of device test systems, it is characterised in that using such as any one of claim 7 to 12 institute
The equipment testing device test equipment stated.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510779373.8A CN106708669B (en) | 2015-11-13 | 2015-11-13 | Equipment test method, device and system |
PCT/CN2016/095725 WO2017080275A1 (en) | 2015-11-13 | 2016-08-17 | Device testing method, apparatus, and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510779373.8A CN106708669B (en) | 2015-11-13 | 2015-11-13 | Equipment test method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106708669A true CN106708669A (en) | 2017-05-24 |
CN106708669B CN106708669B (en) | 2022-03-25 |
Family
ID=58694462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510779373.8A Active CN106708669B (en) | 2015-11-13 | 2015-11-13 | Equipment test method, device and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106708669B (en) |
WO (1) | WO2017080275A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109635504A (en) * | 2019-01-04 | 2019-04-16 | 广东智科电子股份有限公司 | A kind of control system for heat pump software design approach |
CN110765831A (en) * | 2019-06-13 | 2020-02-07 | 深圳市思拓通信***有限公司 | Driver information identification system based on special vehicle |
CN111104267A (en) * | 2018-10-26 | 2020-05-05 | 长鑫存储技术有限公司 | Debugging processing method and debugging processing system of memory |
CN112073579A (en) * | 2020-08-27 | 2020-12-11 | 北京指掌易科技有限公司 | Terminal operation playback processing method and device, terminal equipment and storage medium |
CN112202625A (en) * | 2019-07-08 | 2021-01-08 | ***通信集团浙江有限公司 | Network element abnormity diagnosis method and device, computing equipment and computer storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626268A (en) * | 2021-08-12 | 2021-11-09 | 深圳市美恩微电子有限公司 | Automatic test system and method for mainboard |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070050679A1 (en) * | 2005-08-30 | 2007-03-01 | International Business Machines Corporation | Analysis of errors within computer code |
US20090182794A1 (en) * | 2008-01-15 | 2009-07-16 | Fujitsu Limited | Error management apparatus |
CN102495798A (en) * | 2011-12-01 | 2012-06-13 | 盛科网络(苏州)有限公司 | Automated regression testing method and system |
CN104021080A (en) * | 2014-06-13 | 2014-09-03 | 中国民航信息网络股份有限公司 | Automatic testing system based on custom scripts |
CN104679602A (en) * | 2013-11-26 | 2015-06-03 | 国际商业机器公司 | Method and system for event handling in storage area networks |
-
2015
- 2015-11-13 CN CN201510779373.8A patent/CN106708669B/en active Active
-
2016
- 2016-08-17 WO PCT/CN2016/095725 patent/WO2017080275A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070050679A1 (en) * | 2005-08-30 | 2007-03-01 | International Business Machines Corporation | Analysis of errors within computer code |
US20090182794A1 (en) * | 2008-01-15 | 2009-07-16 | Fujitsu Limited | Error management apparatus |
CN102495798A (en) * | 2011-12-01 | 2012-06-13 | 盛科网络(苏州)有限公司 | Automated regression testing method and system |
CN104679602A (en) * | 2013-11-26 | 2015-06-03 | 国际商业机器公司 | Method and system for event handling in storage area networks |
CN104021080A (en) * | 2014-06-13 | 2014-09-03 | 中国民航信息网络股份有限公司 | Automatic testing system based on custom scripts |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104267A (en) * | 2018-10-26 | 2020-05-05 | 长鑫存储技术有限公司 | Debugging processing method and debugging processing system of memory |
CN111104267B (en) * | 2018-10-26 | 2022-05-13 | 长鑫存储技术有限公司 | Debugging processing method and debugging processing system of memory |
CN109635504A (en) * | 2019-01-04 | 2019-04-16 | 广东智科电子股份有限公司 | A kind of control system for heat pump software design approach |
CN110765831A (en) * | 2019-06-13 | 2020-02-07 | 深圳市思拓通信***有限公司 | Driver information identification system based on special vehicle |
CN110765831B (en) * | 2019-06-13 | 2020-09-22 | 深圳市思拓通信***有限公司 | Driver information identification system based on special vehicle |
CN112202625A (en) * | 2019-07-08 | 2021-01-08 | ***通信集团浙江有限公司 | Network element abnormity diagnosis method and device, computing equipment and computer storage medium |
CN112202625B (en) * | 2019-07-08 | 2023-08-15 | ***通信集团浙江有限公司 | Network element abnormality diagnosis method, device, computing equipment and computer storage medium |
CN112073579A (en) * | 2020-08-27 | 2020-12-11 | 北京指掌易科技有限公司 | Terminal operation playback processing method and device, terminal equipment and storage medium |
CN112073579B (en) * | 2020-08-27 | 2022-06-10 | 北京指掌易科技有限公司 | Terminal operation playback processing method and device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017080275A1 (en) | 2017-05-18 |
CN106708669B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106708669A (en) | Device testing method, apparatus and system | |
CN109669844B (en) | Equipment fault processing method, device, equipment and storage medium | |
CN109325865A (en) | Abnormality eliminating method, device, computer equipment and storage medium | |
CN104461786B (en) | The restoration methods of android system and the recovery system of android system | |
CN111078459B (en) | Method, device and system for testing semiconductor chip | |
CN110955550A (en) | Cloud platform fault positioning method, device, equipment and storage medium | |
CN107516547A (en) | The processing method and processing device of internal memory hard error | |
CN104077401A (en) | Database data migration device and method | |
CN112540887A (en) | Fault drilling method and device, electronic equipment and storage medium | |
CN105224416B (en) | Restorative procedure and related electronic device | |
CN114116170A (en) | Timed task execution method and device, computer equipment and storage medium | |
CN112637888B (en) | Coverage hole area identification method, device, equipment and readable storage medium | |
CN116930727B (en) | Chip detection method based on circuit board | |
CN104158843A (en) | Storage unit invalidation detecting method and device for distributed file storage system | |
CN110704319A (en) | Test case risk analysis method and device | |
CN105988882A (en) | Application software fault recovery method and terminal equipment | |
CN110838940A (en) | Underground cable inspection task configuration method and device | |
US10674337B2 (en) | Method and device for processing operation for device peripheral | |
CN113014455B (en) | Method for monitoring network request frequency | |
CN116739549A (en) | Charging pile fault detection method and system | |
CN113037521B (en) | Method for identifying state of communication equipment, communication system and storage medium | |
CN109560964B (en) | Equipment compliance checking method and device | |
CN108197147B (en) | Operation and maintenance method and device for number card database | |
CN112800573B (en) | Reliability analysis method and device | |
CN116436761B (en) | Method and device for realizing on-line identification and on-line registration of equipment position |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |