WO2018195795A1 - Test method, test server, and system - Google Patents

Test method, test server, and system Download PDF

Info

Publication number
WO2018195795A1
WO2018195795A1 PCT/CN2017/081974 CN2017081974W WO2018195795A1 WO 2018195795 A1 WO2018195795 A1 WO 2018195795A1 CN 2017081974 W CN2017081974 W CN 2017081974W WO 2018195795 A1 WO2018195795 A1 WO 2018195795A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
failure event
historical
current
solution
Prior art date
Application number
PCT/CN2017/081974
Other languages
French (fr)
Chinese (zh)
Inventor
陈燚
唐小龙
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to CN201780000294.XA priority Critical patent/CN107223257B/en
Priority to PCT/CN2017/081974 priority patent/WO2018195795A1/en
Publication of WO2018195795A1 publication Critical patent/WO2018195795A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/96Management of image or video recognition tasks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/98Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
    • G06V10/987Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns with the intervention of an operator

Definitions

  • the invention belongs to the technical field of testing, and in particular relates to a testing method, a testing server and a system.
  • Electronic products such as fingerprint devices, require mass production testing of functional indicators before mass production, screening products through testing, and strictly ensuring product quality to ensure market mass production requirements.
  • the mass production test usually adopts the following steps to perform the test: the production line platform performs the relevant test item test after the test tool is included, and after all the test items are passed, the function test can be considered as passed.
  • test tool will withdraw from the test, temporarily treat it as a defective product, wait for the technical analysis of the technician and conduct a test technical solution. Modifications, however, that the analysis and modification of the technical solution depend on the progress of the manual analysis, which in turn leads to problems of inefficient testing.
  • An object of the present invention is to provide a test method, a test server, and a system for solving the above technical problems in the prior art.
  • a first aspect of the embodiments of the present invention provides a test method, including: matching a current test failure event generated when a current test item fails to test according to a current test plan, and a pre-stored historical test failure event;
  • a solution corresponding to the historical test failure event is determined to retest the current test item according to the solution.
  • the current test loss generated when the test item fails to test according to the current test scheme is matched with the pre-stored historical test failure event, including: matching the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance.
  • the current test log information includes current test input data and current test output data of performing a current test scenario on the current test item, where the historical test log information includes performing a historical test plan on the historical test item.
  • the current test log information corresponding to the current test failure event is matched with the historical test log information corresponding to the historical test failure event stored in advance, including:
  • the current test input data according to the current test failure event and the current test output data are respectively matched with the pre-stored historical test input data and the historical test output data.
  • the method further includes: analyzing the current test log information according to the set data communication protocol to extract key feature data therefrom;
  • the matching between the current test input data of the current test failure event and the current test output data and the pre-stored historical test input data and the historical test output data respectively includes:
  • the current test key process data according to the current test failure event is matched with the historical test key process data of the pre-stored historical test failure event.
  • analyzing the current log information according to the set data communication protocol to extract key feature data from the method includes:
  • the determining, by the solution to the historical test failure event, to retest the current test item according to the solution includes:
  • the method according to the pre-stored historical test failure event is matched with the solution
  • the corresponding relationship of the case, the solution to determine the failure of the historical test failure includes:
  • the mapping information table maps one or more cases, the case being associated with an event type attribute and/or a data feature value of the historical test failure event and a corresponding solution.
  • it also includes:
  • the current test test failure event is used as a new historical test failure event to update the correspondence between the historical test failure event and the adapted solution.
  • it also includes:
  • it also includes:
  • the current test failure event is flagged when there is no historical test failure event that matches the current test failure event.
  • obtaining a solution to the current test failure event according to the manual analysis of the current test failure event to retest the test item includes:
  • it also includes:
  • the solution to the current test failure event obtained by the manual analysis is used as a new solution to update the historical test failure event and the appropriate Correspondence of the solution.
  • it also includes:
  • the solution to the historical test failure event should be used as a new solution to update the correspondence between the historical test failure event and the adapted solution.
  • a second aspect of the embodiments of the present invention provides a test server, including:
  • the matching module is configured to match the current test failure event generated when the current test item fails the test according to the current test plan with the pre-stored historical test failure event, and trigger when there is a historical test failure event that matches the current test failure event. Determining module
  • the determining module is configured to determine a solution corresponding to the historical test failure event, to retest the current test item according to the solution.
  • the matching module is further configured to: match the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance.
  • the test server further includes: a storage module, configured to store a historical test failure event and a corresponding relationship of the solution;
  • the determining module is further configured to: determine, according to a correspondence between the historical test failure event pre-stored in the storage module and the adapted solution, to determine a solution to the historical test failure event To retest the current test item according to the solution.
  • the test server further includes: an update module, configured to use the current test test failure event as a new historical test failure event, to match a historical test failure event in the storage module.
  • an update module configured to use the current test test failure event as a new historical test failure event, to match a historical test failure event in the storage module. The correspondence of the solutions is updated.
  • the acquiring module is triggered; the obtaining module is configured to obtain a response according to the manual analysis of the current test failure event. A solution to the current test failure event to retest the test item.
  • a third aspect of the embodiments of the present invention provides a test system, including: a test tool and a test server;
  • the testing tool is configured to retest the current test item according to the solution
  • the test server is configured to match a current test failure event generated when the current test item fails the test according to the current test plan with a pre-stored historical test failure event, and a historical test failure event that matches the current test failure event exists.
  • a solution corresponding to the historical test failure event is determined to cause the test tool to retest the current test item according to the solution.
  • the testing system further includes: a technical support end, configured to obtain, according to a manual analysis of the current test failure event, when the test server does not have a historical test failure event that matches the current test failure event The solution to the current test failure event to retest the test item.
  • a technical support end configured to obtain, according to a manual analysis of the current test failure event, when the test server does not have a historical test failure event that matches the current test failure event The solution to the current test failure event to retest the test item.
  • the test method, the test server and the system provided by the embodiment of the present invention first determine whether the current test failure event can be matched to the pre-stored historical test failure event, and when the match to the pre-stored historical test failure event, the previous period is used to solve the history.
  • the solution used to test the failure event retests the current test item, which can greatly reduce or avoid manual analysis, thereby achieving the purpose of improving test efficiency.
  • a manual analysis solution can be obtained to further ensure the test pass rate.
  • FIG. 1 is a flowchart of a testing method according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a testing method according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a testing method according to another embodiment of the present invention.
  • FIG. 4 is a flowchart of a testing method according to still another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a test server according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a test system according to an embodiment of the present invention.
  • FIG. 7 is a diagram showing a data structure of an exemplary data communication protocol according to an exemplary embodiment of the present invention.
  • the execution body of the test method provided by the following embodiments of the present invention may be the test server 1, and the test server 1 performs data interaction with the test tool 2 at the production line end, so that the test tool 2 of the production line end has the current occurrence of the current test failure event.
  • the test item is retested.
  • the test server 1 can also perform data interaction with the technical support terminal 3 to enable the test tool 2 on the production line to retest the current test item in which the current test failure event has occurred.
  • the test plan implemented by the test tool 2 on the test object is stored in the test server 1.
  • the test plan 1 injects the test plan into the test tool 2
  • the test tool 2 performs test work on the test object.
  • the technical support terminal 3 can upload a new test solution to the test server 1 to update the stored test plan, so as to meet the requirement that the test plan in actual production needs to be adjusted according to the production situation, thereby achieving better test results.
  • the test process for performing a test item is: in the test system including the test server 1, the test tool 2 on the production line side verifies the performance or function of the test object by implementing a test plan on the test object (such as a fingerprint type device). Etc., wherein the test plan specifies the test standard of each test item.
  • the test item test fails, and otherwise, the test item test success.
  • the test solution is first injected into the test tool 2, and then the test object is tested one by one according to the test standard in the test plan. If the test is not tested, the test fails. Failure, at this time test tool 2 will suspend the test work until a new test plan is injected into test tool 2, and then test tool 2 retests the test object according to the new test plan.
  • test server 1 When the test server 1 has a test plan that responds to the current test failure event, the test plan for the current test failure event is directly obtained from the test server 1.
  • the test server 1 does not have a test solution for the current test failure event and if the test is to continue, the test server 1 will package the current test failure event to the technical support terminal 3, and the technical support personnel of the technical support terminal 3 fail the current test.
  • the event is manually analyzed and the corresponding solution is provided and returned to the test server 1.
  • the test server 1 generates a new test plan according to the new solution and injects it into the test tool 2, and then the test tool 2 fails according to the new test plan. Test items are retested.
  • FIG. 1 is a flowchart of a testing method according to an embodiment of the present invention. As shown in Figure 1, this implementation The test methods provided in the examples include:
  • Step S101 The current test failure event generated when the current test item fails to test is matched with the pre-stored historical test failure event according to the current test plan.
  • a plurality of test objects may have diverse test failure events.
  • some may be historical test failure events that have occurred. Others may be the first test failure event.
  • the test failure event encountered during the test is stored by the test server 1 to form a historical test failure event, and if the same test failure event occurs again, if the historical test failure event can be matched.
  • the test server 1 has a solution capable of handling the current test failure event, and the solution can be directly obtained from the test server 1, thereby achieving the purpose of improving test efficiency.
  • the test log information is used to record any one or more of the test input data, the test output data, and the test process data during the test.
  • the specific implementation manner of the step S101 may be: matching the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance to determine the test server 1 Is there a solution to the current test failure event?
  • the specific implementation manner of step S101 may be specifically: the current test input data according to the current test failure event and the current test output. The data is matched with the pre-stored historical test input data and the historical test output data, respectively.
  • the current test log information includes current test input data and current test output data of the current test plan for the current test item
  • the historical test log information includes historical test input data and historical test output data of the historical test item execution history test plan.
  • Program For example, when performing data comparison, the following is: first, determining an event type attribute according to the data, and determining, by the event type attribute, a test item corresponding to the current test failure event, such as a fingerprint image acquisition time test item, a false alarm rate test item, and a rejection.
  • test failure event occurs in one of the test items such as the true test item, and then determines whether there is a solution to the current test failure event based on the data feature value.
  • the test object takes the fingerprint image acquisition time test item as an example.
  • the test plan is the same, there is a possibility that the test failure event due to diversification may exist in the actual test process. For example, there are not enough time for fingerprint contact, or improper fingerprinting, or the number of times the fingerprint image is not collected is not enough to cause a test failure event. There may be many reasons for these test failure events, such as The test plan itself is unreasonable, the test object itself has problems, and so on.
  • the event type attribute in this embodiment is a fingerprint image acquisition time test item, and the data feature value refers to the time of the fingerprint contact, the fingerprint pressing form, the number of times the fingerprint image is collected, and the like. Therefore, in this embodiment, whether the current test failure event and the historical test failure event match are determined by the current test input data and the historical test input data, and the current test failure event and the historical test failure event are also determined by the current test output data and the historical test output data. Whether it matches, improves the accuracy of matching the current test failure event with the historical test failure event.
  • the matching of the test failure events of the fingerprinting device test items in the fingerprint device is specifically described as an example.
  • the current test item log information records the name of the current test item, such as the falsification rate test item, all images of the image library, partial images, total comparison times, and ratio
  • the test input data of the current test item is, for example, all images of the image library, part of the image
  • the test output data of the current test item is, for example, FAR, test result (refer to The test fails.
  • the test process data of the current test item is the total number of comparisons and the number of successful comparisons.
  • the historical test item log information includes the name of the test item such as the falsification rate test item, all the images of the image library, part of the image, total number of comparisons, and comparison Number of successes, FAR, test results (referring to test failures), etc.
  • the test input data of the history test item is, for example, all the images of the image library, part of the image
  • the test output data of the historical test item is, for example, FAR, test result (refer to test failure)
  • the test process data of the historical test item is the total number of comparisons. Compare the number of successes.
  • test input data of the current test item, the output process data of the current test item, and the test input data of the historical test item are compared one by one, and further, the test process data of the current test item and the test process data of the historical test item are one.
  • the comparison is performed to complete the above matching, thereby quickly and accurately determining whether there is a historical test failure event that matches the current test failure event.
  • the present embodiment is not limited to the matching of the test failure event of the false alarm rate test item, for example, the matching of the test failure event of the rejection rate test item may be included, and details are not described herein again.
  • Step S102 When there is a historical test failure event that matches the current test failure event, determine a solution corresponding to the historical test failure event, to retest the current test item according to the solution.
  • the current test failure event can be processed using the solution previously adopted to resolve the historical test failure event.
  • the current test plan is updated according to the solution adopted in the previous period to solve the historical test failure event to form a new test plan, and the new test plan is injected into the test tool 2, and then the test tool 2 is based on the new test plan.
  • the new solution retests the failed test items.
  • the stored historical test failure event and the corresponding solution may be stored on the test server 1.
  • the embodiment may further include: continuously obtaining a solution according to the obtained current test failure event. Update the solution implemented on the test object to improve the usability of the test plan.
  • the test method provided by the embodiment first determines whether the current test failure event can be matched to the pre-stored historical test failure event, and when it matches the pre-stored historical test failure event, the previous period is used to solve the historical test failure event.
  • the solution retests the current test items, which greatly reduces or avoids manual analysis, which in turn can improve test efficiency.
  • FIG. 2 is a flowchart of a method for testing a method according to another embodiment of the present invention. as shown in picture 2,
  • the test methods provided in this embodiment include:
  • Step S201 Analyze the current test log information according to the set data communication protocol to extract key feature data therefrom.
  • step S201 is: splitting and extracting the current log information according to a set data communication protocol to obtain a mark portion and a data portion therein, wherein the mark The portion is used to identify different current test items, and the data portion is used to record current test input data, current test output data, and current test key process data.
  • the data communication protocol for testing the log information can be set by itself, and different key feature data is obtained by identifying different parts in the test log information, where the key feature data includes test input data, test output data, and test process data. Any one or more of them.
  • FIG. 7 is a diagram showing a data structure of an exemplary data communication protocol according to an exemplary embodiment of the present invention.
  • the information of the Header part is a basic part of the transmission, for example, the Header part is used as a mark part for identifying different current test items, and is marked in begin when starting the test.
  • the test item is marked in the end when the test is completed, the test input data and/or the test output data are marked in the data part of the source, the test process data is marked in the info part of the source, and the source part is used as the data part of the test item.
  • the Header part of the test log information it can be determined what type of test item the current test item is; by identifying the begin part of the test test log information, a test item start time node can be obtained; and the test test log information is obtained by the identification test.
  • the end part can obtain a test item end time node; by identifying the data part, it can obtain test input data or test output data for a certain test item, by identifying the info part mark of a certain test item, You can get test process data for a test item.
  • Step S202 Perform matching on the current test key feature data of the current test failure event and the historical test key feature data of the pre-stored historical test failure event.
  • the key feature data may include the test input data, the test output data, and the test process data.
  • Step S203 When there is a historical test failure event that matches the current test failure event, determine according to the correspondence between the pre-stored historical test failure event and the adapted solution. A solution to the historical test failure event should be addressed to retest the current test item according to the solution.
  • the query may be performed by using an index or the like. Correspondence, and then quickly retrieve new solutions.
  • the specific implementation manner of step S203 is: determining, according to the pre-stored historical test failure event and the mapping information table of the solution that is adapted, the solution to the historical test failure event.
  • the mapping information table is used to indicate a correspondence between the historical test failure event and the solution.
  • the present embodiment simply and conveniently reflects the correspondence between the historical test failure event and the adapted solution by establishing a mapping information table.
  • the mapping information table maps one or more cases, the case being associated with an event type attribute and/or a data feature value of the historical test failure event and a corresponding solution.
  • the test failure events of multiple fingerprint image acquisition time test items may be caused by insufficient fingerprint contact time, but the time of fingerprint contact of multiple test failure test items may be different. the same.
  • the case in this embodiment correlates the event type attribute and/or the data feature value of the failed event with the corresponding solution, so that more historical test failure events can be stored in the mapping information table as much as possible, and the test can be performed according to the test.
  • the event type attribute and/or data feature value in the failure event quickly determines the solution.
  • the solution can be quickly determined, thereby improving the testing efficiency.
  • the specific case of the case in this embodiment is set according to actual needs.
  • Step S204 The current test test failure event is used as a new historical test failure event to update the correspondence between the historical test failure event and the adapted solution.
  • the current test failure event is used as a new historical test failure event to make the stored historical test failure event more and more, so as to improve the probability that the current test failure event and the historical test failure event are successfully matched.
  • More and more historical test events can also reflect the ability to provide a large number of solutions to different test failure events. When encountering test failure events in the future, they can quickly extract corresponding solutions from a large number of solutions, further reducing the number of solutions. The reliance on manual analysis saves a lot of human resources.
  • by updating the correspondence between the historical test failure event and the adapted solution it is equivalent to increasing the sample size and being able to enter Accurately extract the right solution from a massive solution in one step.
  • the present embodiment can quickly and accurately determine whether to store a historical test failure event that matches the current test failure event by extracting the test key feature data in the test log information; Corresponding relationship of the solution, when it is determined that there is a historical test failure event that matches the current test failure event, the corresponding relationship may be queried by indexing, etc., thereby quickly retrieving the new solution, further implementing The purpose of improving the efficiency of the test; in addition, by using the current test test failure event as a new historical test failure event to make the stored historical test failure event more and more, to improve the current test failure event and the historical test failure event successfully matched The probability.
  • FIG. 3 is a flowchart of a method for testing a method according to another embodiment of the present invention. This embodiment is a further supplement to the test method provided in the foregoing embodiment.
  • the current test item failure event occurs, and the test server 1 does not have a corresponding solution. Solution, but need to continue testing the current test items.
  • the testing method provided in this embodiment includes:
  • Step S301 The current test failure event generated when the current test item fails to test according to the current test plan is matched with the pre-stored historical test failure event.
  • step S301 in this embodiment is the same as the implementation manner of step S101 in the foregoing embodiment, and details are not described herein.
  • Step S302 When there is no historical test failure event matching the current test failure event, obtain a solution to the current test failure event according to the manual analysis of the current test failure event to retest the test item. .
  • test server 1 when the test server 1 does not have a historical test failure event that matches the current test failure event, the test server 1 packages the test log information corresponding to the current test failure event to the technical support terminal 3 through the set interface, and the technical support is provided.
  • the technician of the end 3 manually analyzes the current test failure event and provides a corresponding solution to the test server 1 through the set interface, and then the test server 1 generates a new test plan according to the new solution and injects it into the test tool 2 Then, Test Tool 2 will retest the failed test items according to the new solution in the new test plan.
  • step S302 marking the current test failure event when there is no historical test failure event matching the current test failure event. It should be noted that, after performing step S302, it is possible to implement a solution for responding to the current test failure event according to the manual analysis of the current test failure event of the mark to retest the test item.
  • the technician of the technical support terminal 3 can be intuitively notified that the technical analysis of the current test failure event needs to be provided, which can greatly shorten the solution obtained by the manual analysis.
  • the timing of the program further improves the efficiency of the test.
  • step S302 is: performing manual analysis on multiple current test failure events of the same type in multiple projects to obtain a solution to the current test failure event.
  • multiple production lines of different production addresses that is, multiple items, are performing mass production tests on multiple test objects. If multiple current test failure events of the same type occur, multiple current tests of the same type are first tested. The failure event is marked as a certain type of test failure event, and the technical support terminal 3 determines that the plurality of current test failure events are the same type of test failure event according to the flag, so that the technical support terminal 3 can perform only one manual analysis to obtain the current response. Test the failure event solution without manual analysis of each of the same types of current test failure events, thereby increasing the speed of obtaining solutions to the current test failure events, while also saving labor costs.
  • the items in this embodiment are not limited to the examples.
  • the test method provided in this embodiment can also obtain a solution of manual analysis in determining that there is no historical test failure event matching the current test failure event, so as to further ensure test pass rate and reliability.
  • the time of the solution obtained by manual analysis can be greatly shortened, and the test efficiency can be further improved.
  • FIG. 4 is a flowchart of a method for testing a method according to still another embodiment of the present invention. As shown in FIG. 4, the testing method provided in this embodiment includes:
  • step S401 the current test failure event generated when the current test item fails to test is matched with the pre-stored historical test failure event according to the current test plan.
  • Step S402 When there is no historical test failure event matching the current test failure event, obtain a solution to the current test failure event according to the manual analysis of the current test failure event to retest the test item. .
  • step S401 and step S402 in this embodiment are the same as the implementation manners of step S301 and step S302 in the foregoing embodiment, and are not described herein.
  • Step S403 The current test failure event is used as a new historical test failure event, and the solution for the current test failure event obtained by the manual analysis is used as a new solution to update the historical test failure event. Correspondence with the adapted solution.
  • the embodiment regardless of whether there is a historical test failure event that matches the current test failure event, the embodiment also uses the current test test failure event as a new historical test failure event and stores it so that the stored history test failure event comes. The more you increase the probability that the current test failure event matches the historical test failure event.
  • the embodiment continuously updates the pre-stored historical test failure event, and on the other hand, continuously updates the correspondence between the historical test failure event and the adapted solution, such as a mapping table, to improve the solution for acquiring the current test failure event.
  • the probability is a probability that the historical test failure event is accessed by the embodiment.
  • the solution of the historical test failure event may be optimized or a new solution may be provided in step S403, and the corresponding relationship between the historical test failure event and the adapted solution may be further updated;
  • the method may include: obtaining an occurrence frequency of the historical test failure event; determining, according to the frequency of occurrence, whether a manual test failure event needs to be manually analyzed; if it is determined that a historical test failure event needs to be manually analyzed, A solution to the historical test failure event obtained by manual analysis is described as a new solution.
  • the test failure event may be caused by a critical misjudgment caused by setting an inappropriate test item threshold in the test plan, thereby causing the test failure event to occur frequently, and then it is required. Correct the various test item thresholds in the test plan to avoid the occurrence of critical failures in the test failure event.
  • the frequency of occurrence of the historical test failure event is obtained from the key feature data corresponding to the current test item. If it is determined that the frequency of occurrence is high, it is determined that the historical test failure event is manually analyzed to obtain a new response to the historical test failure event. The solution updates both the historical test failure event and the corresponding solution.
  • the new solution can be an optimization of existing solutions on Test Server 1, or a completely new solution after manual analysis.
  • FIG. 5 is a schematic structural diagram of a test server according to an embodiment of the present invention.
  • the server can be implemented in hardware, software, or a combination of hardware and software.
  • the test server 1 provided in this embodiment includes: a matching module 11 and a determining module 12.
  • the matching module 11 is configured to match the current test failure event generated when the current test item fails the test according to the current test plan, and the pre-stored historical test failure event, when there is a historical test failure event that matches the current test failure event. , the determination module 12 is triggered.
  • the matching module 11 is further configured to: match the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance. .
  • the determining module 12 is configured to determine a solution corresponding to the historical test failure event, to retest the current test item according to the solution.
  • test server further includes: a storage module, configured to store a historical test failure event and a corresponding relationship of the solution;
  • the determining module 12 is further configured to: determine, according to a correspondence between a historical test failure event pre-stored in the storage module and the adapted solution, to determine the history A solution to test the failure event to retest the current test item according to the solution.
  • test server further includes: an update module, configured to use the current test test failure event as a new historical test failure event to match the historical test failure event in the storage module The correspondence of the solution is updated.
  • the acquisition module 13 is triggered; the obtaining module 13 is configured to obtain according to the manual analysis of the current test failure event. A solution to the current test failure event should be addressed to retest the test item.
  • test server 1 of this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the test server provided in this embodiment first determines whether the current test failure event can be matched to the pre-stored historical test failure event, and when it matches the pre-stored historical test failure event, it uses the previous period to solve the historical test failure event. Solution retest the current test item Try to greatly reduce or avoid manual analysis, which can improve the efficiency of testing.
  • FIG. 6 is a schematic structural diagram of a test system according to an embodiment of the present invention.
  • the test system provided by the embodiment of the present invention includes the test server 1 and the test tool 2 according to any one of the above embodiments.
  • the test server 1 is configured to match a current test failure event generated when the current test item fails the test according to the current test plan with a pre-stored historical test failure event, and fail in the history test that matches the current test failure event. At the time of the event, a solution corresponding to the historical test failure event is determined to cause the test tool 2 to retest the current test item according to the solution.
  • the testing tool 2 is configured to retest the current test item according to the solution.
  • the test tool 2 is used to implement a test plan for the test object at the production line end.
  • the test solution of test tool 2 is injected by test server 1. If a test failure event is encountered, test tool 2 uploads the current test failure event to test tool 2, and test tool 2 performs according to the current test failure event and the pre-stored historical test failure event. Matching, when the matching is successful, obtain a solution corresponding to the historical test failure event, and then update the current test plan according to the obtained new solution to form a new solution test plan, and inject the new test plan into the test tool 2 Next, Test Tool 2 will retest the failed test items against the new solution in the new test plan.
  • the test system further includes: a technical support end 3, configured to perform manual analysis on the current test failure event when the test server 1 does not have a historical test failure event matching the current test failure event
  • a solution to the current test failure event is obtained to retest the test item.
  • the test server 1 packages the current test failure event to the technical support terminal 3, and the technical support personnel of the technical support terminal 3
  • the current test failure event is manually analyzed and the corresponding solution is provided and returned to the test server 1.
  • the test server 1 generates a new test plan according to the new solution and injects it into the test tool 2, and then the test tool 2 is based on the new test.
  • the new solution in the scenario retests the failed test.
  • the test system provided in this embodiment first determines whether the current test failure event can be matched. To pre-store the historical test failure event, when matching the pre-stored historical test failure event, re-test the current test item with the solution adopted in the previous period to solve the historical test failure event, which can greatly reduce or avoid manual analysis. In turn, the purpose of improving test efficiency can be achieved. In addition, in determining that there is no historical test failure event that matches the current test failure event, a manual analysis solution can be obtained to further ensure the test pass rate.
  • embodiments of the embodiments of the invention may be provided as a method, apparatus (device), or computer program product.
  • embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware.
  • embodiments of the invention may take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • Embodiments of the invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Compilation of functions specified in one or more blocks of a flow or a flow and/or block diagram of a flow chart Set.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

The embodiments of the present invention provide a test method, a test server, and a system. By first determining whether the current test failure event matches a pre-stored historical test failure event, and when there is a matching pre-stored historical test failure event, using the solution used previously for solving the historical test failure event to retest the current test item, the invention can greatly reduce or avoid the need for manual analysis, thereby realizing the purpose of improving testing efficiency. Further, when it is determined that no historical test failure event matches the current test failure event, the invention can also acquire a manual analysis solution to ensure a test pass rate.

Description

测试方法、测试服务器及系统Test method, test server and system 技术领域Technical field
本发明属于测试技术领域,尤其涉及一种测试方法、测试服务器及系统。The invention belongs to the technical field of testing, and in particular relates to a testing method, a testing server and a system.
背景技术Background technique
电子产品如指纹类装置在批量生产前,需要进行功能指标的量产测试,通过测试来筛选产品,严格保证产品质量,确保达到市场量产要求。Electronic products, such as fingerprint devices, require mass production testing of functional indicators before mass production, screening products through testing, and strictly ensuring product quality to ensure market mass production requirements.
目前,量产测试通常采用如下的步骤进行检测:生产线平台在纳入测试工具后进行相关测试项检测,待全部测试项通过后,可认作该功能测试通过。At present, the mass production test usually adopts the following steps to perform the test: the production line platform performs the relevant test item test after the test tool is included, and after all the test items are passed, the function test can be considered as passed.
然而,在现有的量产测试过程中,在功能测试中一旦出现任何一测试项出现问题,测试工具都会退出测试,暂视作不良品处理,等待技术人员的专业技术分析并进行测试技术方案的修改,但是,这种分析和技术方案的修改依赖于人工分析的进度,进而导致测试效率低下的问题。However, in the existing mass production test process, once any test item has a problem in the functional test, the test tool will withdraw from the test, temporarily treat it as a defective product, wait for the technical analysis of the technician and conduct a test technical solution. Modifications, however, that the analysis and modification of the technical solution depend on the progress of the manual analysis, which in turn leads to problems of inefficient testing.
发明内容Summary of the invention
本发明实施例的目的在于提供一种测试方法、测试服务器及系统,用于解决现有技术中上述技术问题。An object of the present invention is to provide a test method, a test server, and a system for solving the above technical problems in the prior art.
本发明实施例第一方面提供一种测试方法,包括:将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配;A first aspect of the embodiments of the present invention provides a test method, including: matching a current test failure event generated when a current test item fails to test according to a current test plan, and a pre-stored historical test failure event;
在存在与当前测试失败事件匹配的历史测试失败事件时,确定应对所述历史测试失败事件对应的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。When there is a historical test failure event that matches the current test failure event, a solution corresponding to the historical test failure event is determined to retest the current test item according to the solution.
可选地,所述根据当前测试方案对测试项测试失败时生成的当前测试失 败事件与预先存储的历史测试失败事件进行匹配,包括:根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配。Optionally, the current test loss generated when the test item fails to test according to the current test scheme The match event is matched with the pre-stored historical test failure event, including: matching the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance.
可选地,所述当前测试log信息包括对所述当前测试项执行当前测试方案的当前测试输入数据以及当前测试输出数据,所述历史测试log信息包括对所述历史测试项执行历史测试方案的历史测试输入数据以及历史测试输出数据;Optionally, the current test log information includes current test input data and current test output data of performing a current test scenario on the current test item, where the historical test log information includes performing a historical test plan on the historical test item. Historical test input data and historical test output data;
其中,所述根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配,包括:The current test log information corresponding to the current test failure event is matched with the historical test log information corresponding to the historical test failure event stored in advance, including:
根据所述当前测试失败事件的当前测试输入数据以及当前测试输出数据与预先存储的历史测试输入数据以及历史测试输出数据分别进行匹配。The current test input data according to the current test failure event and the current test output data are respectively matched with the pre-stored historical test input data and the historical test output data.
可选地,还包括:根据设定的数据通讯协议对当前测试log信息进行分析以从中提取关键特征数据;Optionally, the method further includes: analyzing the current test log information according to the set data communication protocol to extract key feature data therefrom;
其中,根据所述当前测试失败事件的当前测试输入数据以及当前测试输出数据与预先存储的历史测试输入数据以及历史测试输出数据分别进行匹配包括:The matching between the current test input data of the current test failure event and the current test output data and the pre-stored historical test input data and the historical test output data respectively includes:
根据所述当前测试失败事件的当前测试关键过程数据与预先存储的历史测试失败事件的历史测试关键过程数据分别进行匹配。The current test key process data according to the current test failure event is matched with the historical test key process data of the pre-stored historical test failure event.
可选地,根据设定的数据通讯协议对当前log信息进行分析以从中提取关键特征数据包括:Optionally, analyzing the current log information according to the set data communication protocol to extract key feature data from the method includes:
根据设定的数据通讯协议对所述当前log信息进行拆分和提取以获取其中的标记部分和数据部分;其中,所述标记部分用于标识不同的所述当前测试项,所述数据部分用于记载当前测试输入数据、当前测试输出数据以及当前测试关键过程数据。Decoding and extracting the current log information according to the set data communication protocol to obtain a mark part and a data part therein; wherein the mark part is used to identify different current test items, and the data part is used It records current test input data, current test output data, and current test key process data.
可选地,所述确定应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试包括:Optionally, the determining, by the solution to the historical test failure event, to retest the current test item according to the solution includes:
根据预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,确定应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。Determining a solution to the historical test failure event according to a correspondence between the pre-stored historical test failure event and the adapted solution to re-test the current test item according to the solution.
可选地,所述根据预先存储的历史测试失败事件与相适配的所述解决方 案的对应关系,确定应对所述历史测试失败事件的解决方案包括:Optionally, the method according to the pre-stored historical test failure event is matched with the solution The corresponding relationship of the case, the solution to determine the failure of the historical test failure includes:
根据预先存储的历史测试失败事件与相适配的所述解决方案的映射信息表,确定应对所述历史测试失败事件的解决方案,所述映射信息表用于指示所述历史测试失败事件与所述解决方案的对应关系。Determining, by the pre-stored historical test failure event and the mapping information table of the solution, the solution to the historical test failure event, where the mapping information table is used to indicate the historical test failure event and the The corresponding relationship of the solution.
可选地,所述映射信息表映射一个或多个案例,所述案例关联所述历史测试失败事件的事件类型属性和/或数据特征值以及相应的解决方案。Optionally, the mapping information table maps one or more cases, the case being associated with an event type attribute and/or a data feature value of the historical test failure event and a corresponding solution.
可选地,还包括:Optionally, it also includes:
将所述当前测试测试失败事件作为新的历史测试失败事件,以对历史测试失败事件与相适配的所述解决方案的对应关系进行更新。The current test test failure event is used as a new historical test failure event to update the correspondence between the historical test failure event and the adapted solution.
可选地,还包括:Optionally, it also includes:
在不存在与当前测试失败事件匹配的历史测试失败事件时,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。When there is no historical test failure event matching the current test failure event, a solution to the current test failure event is obtained according to the manual analysis of the current test failure event to retest the test item.
可选地,还包括:Optionally, it also includes:
在不存在与当前测试失败事件匹配的历史测试失败事件时,对当前测试失败事件进行标记。The current test failure event is flagged when there is no historical test failure event that matches the current test failure event.
可选地,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试包括:Optionally, obtaining a solution to the current test failure event according to the manual analysis of the current test failure event to retest the test item includes:
对多个项目中同类型的多个当前测试失败事件进行人工分析以获取应对所述当前测试失败事件的解决方案。Manual analysis of multiple current test failure events of the same type in multiple projects to obtain a solution to the current test failure event.
可选地,还包括:Optionally, it also includes:
将所述当前测试测试失败事件作为新的历史测试失败事件,将通过所述人工分析获取到的应对所述当前测试失败事件的解决方案作为新的解决方案,以更新历史测试失败事件与相适配的所述解决方案的对应关系。Using the current test test failure event as a new historical test failure event, the solution to the current test failure event obtained by the manual analysis is used as a new solution to update the historical test failure event and the appropriate Correspondence of the solution.
可选地,还包括:Optionally, it also includes:
获取所述历史测试失败事件的发生频次,根据所述发生频次确定是否需要对历史测试失败事件进行人工分析,在确定需要对历史测试失败事件进行人工分析时,将通过所述人工分析获取到的应对所述历史测试失败事件的解决方案作为新的解决方案,以更新历史测试失败事件与相适配的所述解决方案的对应关系。 Obtaining a frequency of occurrence of the historical test failure event, determining, according to the frequency of occurrence, whether a manual analysis failure event needs to be manually analyzed, and when determining that a historical test failure event needs to be manually analyzed, the manual analysis is obtained. The solution to the historical test failure event should be used as a new solution to update the correspondence between the historical test failure event and the adapted solution.
本发明实施例第二方面提供一种测试服务器,包括:A second aspect of the embodiments of the present invention provides a test server, including:
匹配模块,用于将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配,在存在与当前测试失败事件匹配的历史测试失败事件时,触发确定模块;The matching module is configured to match the current test failure event generated when the current test item fails the test according to the current test plan with the pre-stored historical test failure event, and trigger when there is a historical test failure event that matches the current test failure event. Determining module
所述确定模块,用于确定应对所述历史测试失败事件对应的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。The determining module is configured to determine a solution corresponding to the historical test failure event, to retest the current test item according to the solution.
可选地,所述匹配模块,进一步用于:根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配。Optionally, the matching module is further configured to: match the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance.
可选地,所述测试服务器还包括:存储模块,用于存储的历史测试失败事件与相适配的所述解决方案的对应关系;Optionally, the test server further includes: a storage module, configured to store a historical test failure event and a corresponding relationship of the solution;
可选地,所述确定模块,进一步用于:根据所述存储模块中预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,确定应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。Optionally, the determining module is further configured to: determine, according to a correspondence between the historical test failure event pre-stored in the storage module and the adapted solution, to determine a solution to the historical test failure event To retest the current test item according to the solution.
可选地,所述测试服务器还包括:更新模块,用于将所述当前测试测试失败事件作为新的历史测试失败事件,以对所述存储模块中的历史测试失败事件与相适配的所述解决方案的对应关系进行更新。Optionally, the test server further includes: an update module, configured to use the current test test failure event as a new historical test failure event, to match a historical test failure event in the storage module. The correspondence of the solutions is updated.
可选地,在所述匹配模块中不存在与当前测试失败事件匹配的历史测试失败事件时,则触发获取模块;所述获取模块用于根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。Optionally, when there is no historical test failure event matching the current test failure event in the matching module, the acquiring module is triggered; the obtaining module is configured to obtain a response according to the manual analysis of the current test failure event. A solution to the current test failure event to retest the test item.
本发明实施例第三方面提供一种测试系统,包括:测试工具和测试服务器;A third aspect of the embodiments of the present invention provides a test system, including: a test tool and a test server;
所述测试工具,用于根据所述解决方案对所述当前测试项重新进行测试;The testing tool is configured to retest the current test item according to the solution;
所述测试服务器,用于将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配,并在存在与当前测试失败事件匹配的历史测试失败事件时,确定应对所述历史测试失败事件对应的解决方案,以使得测试工具根据所述解决方案对所述当前测试项重新进行测试。 The test server is configured to match a current test failure event generated when the current test item fails the test according to the current test plan with a pre-stored historical test failure event, and a historical test failure event that matches the current test failure event exists. A solution corresponding to the historical test failure event is determined to cause the test tool to retest the current test item according to the solution.
可选地,所述测试系统还包括:技术支持端,用于在所述测试服务器不存在与当前测试失败事件匹配的历史测试失败事件时,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。Optionally, the testing system further includes: a technical support end, configured to obtain, according to a manual analysis of the current test failure event, when the test server does not have a historical test failure event that matches the current test failure event The solution to the current test failure event to retest the test item.
本发明实施例提供的测试方法、测试服务器及系统,先通过确定当前测试失败事件是否能够匹配到预先存储历史测试失败事件,在匹配到预先存储的历史测试失败事件时,就利用前期为解决历史测试失败事件而采用的解决方案对当前测试项重新测试,这样能够极大地减少或者避免了人工分析,进而能够实现提高测试效率的目的。此外,在确定不存在与当前测试失败事件匹配的历史测试失败事件,还能够获取人工分析的解决方案,以进一步地确保测试通过率。The test method, the test server and the system provided by the embodiment of the present invention first determine whether the current test failure event can be matched to the pre-stored historical test failure event, and when the match to the pre-stored historical test failure event, the previous period is used to solve the history. The solution used to test the failure event retests the current test item, which can greatly reduce or avoid manual analysis, thereby achieving the purpose of improving test efficiency. In addition, in determining that there is no historical test failure event that matches the current test failure event, a manual analysis solution can be obtained to further ensure the test pass rate.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any inventive labor.
图1为本发明一实施例提供的测试方法的流程图。FIG. 1 is a flowchart of a testing method according to an embodiment of the present invention.
图2为本发明又一实施例提供的测试方法的流程图。FIG. 2 is a flowchart of a testing method according to another embodiment of the present invention.
图3为本发明另一实施例提供的测试方法的流程图。FIG. 3 is a flowchart of a testing method according to another embodiment of the present invention.
图4为本发明再一实施例提供的测试方法的流程图。FIG. 4 is a flowchart of a testing method according to still another embodiment of the present invention.
图5为本发明实施例提供的测试服务器的结构示意图。FIG. 5 is a schematic structural diagram of a test server according to an embodiment of the present invention.
图6为本发明实施例提供的测试系统的结构示意图。FIG. 6 is a schematic structural diagram of a test system according to an embodiment of the present invention.
图7为本发明实施例示例性的满足某种数据通讯协议的数据结构图。FIG. 7 is a diagram showing a data structure of an exemplary data communication protocol according to an exemplary embodiment of the present invention.
具体实施方式detailed description
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整 地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the object, the features and the advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention are clear and complete in the following with reference to the accompanying drawings in the embodiments of the present invention. It is apparent that the described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明下述实施例提供的测试方法的执行主体可以是测试服务器1,测试服务器1与产线端的测试工具2进行数据交互,以使产线端的测试工具2对发生了当前测试失败事件的当前测试项重新进行测试。测试服务器1还可与技术支持端3进行数据交互,以使产线端的测试工具2对发生了当前测试失败事件的当前测试项重新进行测试。The execution body of the test method provided by the following embodiments of the present invention may be the test server 1, and the test server 1 performs data interaction with the test tool 2 at the production line end, so that the test tool 2 of the production line end has the current occurrence of the current test failure event. The test item is retested. The test server 1 can also perform data interaction with the technical support terminal 3 to enable the test tool 2 on the production line to retest the current test item in which the current test failure event has occurred.
举例来说,测试工具2对测试对象实施的测试方案存储在测试服务器1中,通过测试服务器1将测试方案注入测试工具2之后,测试工具2执行对测试对象的测试工作。此外,技术支持端3可以将新的测试方案上传到测试服务器1以更新存储的测试方案,从而能够满足实际生产中测试方案需要视生产情况而调整的需求,进而达到更好的测试效果。For example, the test plan implemented by the test tool 2 on the test object is stored in the test server 1. After the test plan 1 injects the test plan into the test tool 2, the test tool 2 performs test work on the test object. In addition, the technical support terminal 3 can upload a new test solution to the test server 1 to update the stored test plan, so as to meet the requirement that the test plan in actual production needs to be adjusted according to the production situation, thereby achieving better test results.
具体地,以进行一个测试项的测试过程为:在包括测试服务器1的测试系统中,产线端的测试工具2通过对测试对象(如指纹类装置)实施测试方案以验证测试对象的性能或功能等,其中,测试方案规定了各个测试项的测试标准,在对某一测试项的测试过程,若测试结果不符合测试方案中的测试标准,则该测试项测试失败,反之,该测试项测试成功。举例来说,先将测试方案注入到测试工具2中,接着通过测试工具2依据测试方案中的测试标准对测试对象进行逐项测试,若测试到某一测试项时,测试不通过也即测试失败,这时测试工具2会暂停测试工作直至有新的测试方案注入到测试工具2中,紧接着测试工具2根据新的测试方案重新对测试对象进行测试。Specifically, the test process for performing a test item is: in the test system including the test server 1, the test tool 2 on the production line side verifies the performance or function of the test object by implementing a test plan on the test object (such as a fingerprint type device). Etc., wherein the test plan specifies the test standard of each test item. In the test process of a test item, if the test result does not meet the test standard in the test plan, the test item test fails, and otherwise, the test item test success. For example, the test solution is first injected into the test tool 2, and then the test object is tested one by one according to the test standard in the test plan. If the test is not tested, the test fails. Failure, at this time test tool 2 will suspend the test work until a new test plan is injected into test tool 2, and then test tool 2 retests the test object according to the new test plan.
当测试服务器1存在应对当前测试失败事件的测试方案时,直接从测试服务器1获取应对当前测试失败事件的测试方案。当测试服务器1不存在应对当前测试失败事件的测试方案且如果还要继续进行测试,测试服务器1会将当前测试失败事件打包发给技术支持端3,技术支持端3的技术人员对当前测试失败事件进行人工分析并提供相应的解决方案返回给测试服务器1,接着测试服务器1根据新的解决方案生成新的测试方案并注入到测试工具2中,接着测试工具2会依据新的测试方案对失败的测试项重新进行测试。When the test server 1 has a test plan that responds to the current test failure event, the test plan for the current test failure event is directly obtained from the test server 1. When the test server 1 does not have a test solution for the current test failure event and if the test is to continue, the test server 1 will package the current test failure event to the technical support terminal 3, and the technical support personnel of the technical support terminal 3 fail the current test. The event is manually analyzed and the corresponding solution is provided and returned to the test server 1. Then the test server 1 generates a new test plan according to the new solution and injects it into the test tool 2, and then the test tool 2 fails according to the new test plan. Test items are retested.
图1为本发明一实施例提供的测试方法的流程图。如图1所示,本实施 例中提供的测试方法包括:FIG. 1 is a flowchart of a testing method according to an embodiment of the present invention. As shown in Figure 1, this implementation The test methods provided in the examples include:
步骤S101、将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配。Step S101: The current test failure event generated when the current test item fails to test is matched with the pre-stored historical test failure event according to the current test plan.
本实施例中,在测试对象量产阶段的测试过程中,若干个的测试对象会出现多样化的测试失败事件,在多样化的测试失败事件中,一些可能是已发生过的历史测试失败事件,另一些可能是首次发生的测试失败事件。为此,在本实施例中,由测试服务器1对测试过程中遇到的测试失败事件进行存储以形成历史测试失败事件,当再次发生相同的测试失败事件时,若能够匹配到历史测试失败事件,说明测试服务器1存在能够处理当前测试失败事件的解决方案,可直接从测试服务器1获取解决方案,从而实现提高测试效率的目的。In this embodiment, during the testing process of the mass production stage of the test object, a plurality of test objects may have diverse test failure events. In the case of diverse test failure events, some may be historical test failure events that have occurred. Others may be the first test failure event. To this end, in the present embodiment, the test failure event encountered during the test is stored by the test server 1 to form a historical test failure event, and if the same test failure event occurs again, if the historical test failure event can be matched. The test server 1 has a solution capable of handling the current test failure event, and the solution can be directly obtained from the test server 1, thereby achieving the purpose of improving test efficiency.
在一种可能的实现方式中,通过测试log信息记载测试过程中的测试输入数据、测试输出数据、测试过程数据中的任一种或多种等。其中,步骤S101的具体的实现方式可以为:根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配,以确定测试服务器1上是否存在应对所述当前测试失败事件的解决方案。当当前测试log信息包括测试输入数据、测试输出数据时,在进一步可能的实现方式中,步骤S101的具体的实现方式具体可为:根据所述当前测试失败事件的当前测试输入数据以及当前测试输出数据与预先存储的历史测试输入数据以及历史测试输出数据分别进行匹配。In a possible implementation manner, the test log information is used to record any one or more of the test input data, the test output data, and the test process data during the test. The specific implementation manner of the step S101 may be: matching the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance to determine the test server 1 Is there a solution to the current test failure event? When the current test log information includes the test input data and the test output data, in a further possible implementation manner, the specific implementation manner of step S101 may be specifically: the current test input data according to the current test failure event and the current test output. The data is matched with the pre-stored historical test input data and the historical test output data, respectively.
具体地,当前测试log信息包括对当前测试项执行当前测试方案的当前测试输入数据以及当前测试输出数据,历史测试log信息包括对历史测试项执行历史测试方案的历史测试输入数据以及历史测试输出数据。通过将当前测试log信息中当前测试输入数据以及当前测试输出数据与历史测试log信息中历史测试输入数据以及历史测试输出数据分别进行比对,判断测试服务器1上是否存在应对当前测试失败事件的解决方案。举例来说,在进行数据比对时具体为:先根据数据确定事件类型属性,通过事件类型属性确定当前测试失败事件对应的测试项,如指纹图像采集时间测试项、认假率测试项、拒真率测试项等测试项中某一种测试项出现了测试失败事件,接着根据数据特征值确定是否存在应对当前测试失败事件的解决方案。以对产线端的多个测 试对象进行指纹图像采集时间测试项为例,尽管测试方案相同,实际测试过程中很可能存在因多样化的原因造成的测试失败事件。比如有指纹接触的时间不够、或是指纹按压不当,亦或是没有达到设定的指纹图像采集的次数不到等造成测试失败事件的发生,导致这些测试失败事件的原因可能有多种,比如测试方案本身不合理,测试对象本身有问题等等。需要说明的是,本实施例中的事件类型属性为指纹图像采集时间测试项,数据特征值是指指纹接触的时间、指纹按压形式、指纹图像采集的次数等。因此本实施例中,通过当前测试输入数据与历史测试输入数据确定当前测试失败事件与历史测试失败事件是否匹配,还通过当前测试输出数据与历史测试输出数据确定当前测试失败事件与历史测试失败事件是否匹配,提高当前测试失败事件与历史测试失败事件匹配的准确度。Specifically, the current test log information includes current test input data and current test output data of the current test plan for the current test item, and the historical test log information includes historical test input data and historical test output data of the historical test item execution history test plan. . By comparing the current test input data and the current test output data in the current test log information with the historical test input data and the historical test output data in the historical test log information, it is determined whether there is a solution to the current test failure event on the test server 1. Program. For example, when performing data comparison, the following is: first, determining an event type attribute according to the data, and determining, by the event type attribute, a test item corresponding to the current test failure event, such as a fingerprint image acquisition time test item, a false alarm rate test item, and a rejection. A test failure event occurs in one of the test items such as the true test item, and then determines whether there is a solution to the current test failure event based on the data feature value. Multiple measurements on the production line The test object takes the fingerprint image acquisition time test item as an example. Although the test plan is the same, there is a possibility that the test failure event due to diversification may exist in the actual test process. For example, there are not enough time for fingerprint contact, or improper fingerprinting, or the number of times the fingerprint image is not collected is not enough to cause a test failure event. There may be many reasons for these test failure events, such as The test plan itself is unreasonable, the test object itself has problems, and so on. It should be noted that the event type attribute in this embodiment is a fingerprint image acquisition time test item, and the data feature value refers to the time of the fingerprint contact, the fingerprint pressing form, the number of times the fingerprint image is collected, and the like. Therefore, in this embodiment, whether the current test failure event and the historical test failure event match are determined by the current test input data and the historical test input data, and the current test failure event and the historical test failure event are also determined by the current test output data and the historical test output data. Whether it matches, improves the accuracy of matching the current test failure event with the historical test failure event.
本实施例中,具体以对指纹类装置进行认假率测试项的测试失败事件进行匹配为例说明。In this embodiment, the matching of the test failure events of the fingerprinting device test items in the fingerprint device is specifically described as an example.
认假率(False Accept Rate,FAR)又称误识率,是指将不同的指纹误认为是相同的指纹,而加以接收的出错概率,其定义为:FAR=错判的指纹数目/考察的指纹总数目×100%。False Accept Rate (FAR), also known as false positive rate, refers to the probability of error in which different fingerprints are mistaken for the same fingerprint, and is defined as: FAR = number of fingerprints misjudged / investigated The total number of fingerprints × 100%.
认假率具体的测试方案为:先将图像库中的部分的图像导入到指纹类装置中,然后依次将图像库中的剩下的其他图像与预先导入的部分的图像进行比对,若总比对次数为N次(等同考察的指纹总数目),比对成功次数为M次(等同错判的指纹数目),则FAR=M/N×100%。若测试出的认假率符合当前测试方案的测试标准,则表明认假率测试项测试成功,否则测试失败。The specific test scheme of the falsification rate is: firstly import the image of the part in the image library into the fingerprint type device, and then compare the remaining other images in the image library with the images of the pre-imported part in turn, if The number of comparisons is N times (equivalent to the total number of fingerprints examined), and the number of successful comparisons is M times (equivalent to the number of fingerprints that are wrongly judged), then FAR=M/N×100%. If the tested false rate meets the test standard of the current test plan, it indicates that the test of the false rate test is successful, otherwise the test fails.
具体地,针对认假率测试项的当前测试失败事件,当前测试项log信息会记载当前测试项的名称如认假率测试项、图像库的全部图像、部分的图像、总比对次数、比对成功次数、FAR、测试结果(指测试失败)等,其中当前测试项的测试输入数据比如为图像库的全部图像、部分的图像,当前测试项的测试输出数据比如为FAR、测试结果(指测试失败),当前测试项的测试过程数据为总比对次数、比对成功次数。Specifically, for the current test failure event of the falsification rate test item, the current test item log information records the name of the current test item, such as the falsification rate test item, all images of the image library, partial images, total comparison times, and ratio For the number of successes, FAR, test results (refer to test failure), etc., the test input data of the current test item is, for example, all images of the image library, part of the image, and the test output data of the current test item is, for example, FAR, test result (refer to The test fails. The test process data of the current test item is the total number of comparisons and the number of successful comparisons.
对应地,针对认假率测试项的历史测试失败事件,历史测试项log信息中包括测试项的名称如认假率测试项、图像库的全部图像、部分的图像、总比对次数、比对成功次数、FAR、测试结果(指测试失败)等,对应地,历 史测试项的测试输入数据比如为图像库的全部图像、部分的图像,历史测试项的测试输出数据比如为FAR、测试结果(指测试失败),历史测试项的测试过程数据为总比对次数、比对成功次数。Correspondingly, for the historical test failure event of the falsification rate test item, the historical test item log information includes the name of the test item such as the falsification rate test item, all the images of the image library, part of the image, total number of comparisons, and comparison Number of successes, FAR, test results (referring to test failures), etc. The test input data of the history test item is, for example, all the images of the image library, part of the image, and the test output data of the historical test item is, for example, FAR, test result (refer to test failure), and the test process data of the historical test item is the total number of comparisons. Compare the number of successes.
因此,当前测试项的测试输入数据、当前测试项的输出过程数据与历史测试项的测试输入数据一一进行比对,进一步地,当前测试项的测试过程数据与历史测试项的测试过程数据一一进行比对,从而完成上述匹配,进而快速准确地确定是否存在与当前测试失败事件匹配的历史测试失败事件。Therefore, the test input data of the current test item, the output process data of the current test item, and the test input data of the historical test item are compared one by one, and further, the test process data of the current test item and the test process data of the historical test item are one. The comparison is performed to complete the above matching, thereby quickly and accurately determining whether there is a historical test failure event that matches the current test failure event.
需要说明的是,本实施例不局限于对认假率测试项的测试失败事件的匹配,比如还可以包括对拒真率测试项的测试失败事件的匹配,详细不再赘述。It should be noted that the present embodiment is not limited to the matching of the test failure event of the false alarm rate test item, for example, the matching of the test failure event of the rejection rate test item may be included, and details are not described herein again.
步骤S102、在存在与当前测试失败事件匹配的历史测试失败事件时,确定应对所述历史测试失败事件对应的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。Step S102: When there is a historical test failure event that matches the current test failure event, determine a solution corresponding to the historical test failure event, to retest the current test item according to the solution.
举例来说,在当前测试失败事件匹配到历史测试失败事件之后,就能够利用前期为解决历史测试失败事件而采用的解决方案来处理当前测试失败事件。For example, after the current test failure event matches the historical test failure event, the current test failure event can be processed using the solution previously adopted to resolve the historical test failure event.
具体地,根据前期为解决历史测试失败事件而采用的解决方案更新当前测试方案以形成新的测试方案,将新的测试方案注入到测试工具2中,接着测试工具2会依据新的测试方案中的新的解决方案对失败的测试项重新进行测试。Specifically, the current test plan is updated according to the solution adopted in the previous period to solve the historical test failure event to form a new test plan, and the new test plan is injected into the test tool 2, and then the test tool 2 is based on the new test plan. The new solution retests the failed test items.
需要说明的是,还可以将存储的历史测试失败事件以及对应的解决方案均存储在测试服务器1上,为此,本实施例中还可以包括:根据获取的处理当前测试失败事件的解决方案不断更新对测试对象实施的解决方案,这样提升测试方案的实用性。It should be noted that the stored historical test failure event and the corresponding solution may be stored on the test server 1. For this reason, the embodiment may further include: continuously obtaining a solution according to the obtained current test failure event. Update the solution implemented on the test object to improve the usability of the test plan.
本实施例提供的测试方法,先通过确定当前测试失败事件是否能够匹配到预先存储历史测试失败事件,在匹配到预先存储的历史测试失败事件时,就利用前期为解决历史测试失败事件而采用的解决方案对当前测试项重新测试,这样能够极大地减少或避免人工分析,进而能够实现提高测试效率的目的。The test method provided by the embodiment first determines whether the current test failure event can be matched to the pre-stored historical test failure event, and when it matches the pre-stored historical test failure event, the previous period is used to solve the historical test failure event. The solution retests the current test items, which greatly reduces or avoids manual analysis, which in turn can improve test efficiency.
图2为本发明又一实施例提供的测试方法的方法流程图。如图2所示, 本实施例提供的测试方法包括:FIG. 2 is a flowchart of a method for testing a method according to another embodiment of the present invention. as shown in picture 2, The test methods provided in this embodiment include:
步骤S201、根据设定的数据通讯协议对当前测试log信息进行分析以从中提取关键特征数据。Step S201: Analyze the current test log information according to the set data communication protocol to extract key feature data therefrom.
在一种可能的实现方式中,步骤S201的具体实现方式为:根据设定的数据通讯协议对所述当前log信息进行拆分和提取以获取其中的标记部分和数据部分,其中,所述标记部分用于标识不同的所述当前测试项,所述数据部分用于记载当前测试输入数据、当前测试输出数据以及当前测试关键过程数据。In a possible implementation manner, the specific implementation manner of step S201 is: splitting and extracting the current log information according to a set data communication protocol to obtain a mark portion and a data portion therein, wherein the mark The portion is used to identify different current test items, and the data portion is used to record current test input data, current test output data, and current test key process data.
举例来说,可以自行设定测试log信息的数据通讯协议,通过识别测试log信息中的不同部分获取不同的关键特征数据,所述关键特征数据包括测试输入数据、测试输出数据、测试过程数据中的任意一种或多种。For example, the data communication protocol for testing the log information can be set by itself, and different key feature data is obtained by identifying different parts in the test log information, where the key feature data includes test input data, test output data, and test process data. Any one or more of them.
图7为本发明实施例示例性的满足某种数据通讯协议的数据结构图。参见图7,当进入对测试对象的某一项进行测试时,Header部分的信息为传输基本构成信息头,比如Header部分作为用于标识不同当前测试项的标记部分,开始测试时在begin中标记该测试项,完成测试时在end中标记,在source中的data部分标记测试输入数据和/或测试输出数据,在source中的info部分标记测试过程数据,source部分作为测试项的数据部分。从而通过识别测试log信息中Header部分,可以确定当前测试项是何种类型的测试项;通过识别测试测试log信息中begin部分,可以获取某一项测试项开始时间节点;通过识别测试测试log信息中end部分,可以获取某一项测试项结束时间节点;通过识别data部分,能够获取对某一项测试项的测试输入数据或测试输出数据,通过识别对某一项测试项的info部分标记,可以获取对某一项测试项的测试过程数据。FIG. 7 is a diagram showing a data structure of an exemplary data communication protocol according to an exemplary embodiment of the present invention. Referring to FIG. 7, when an item of the test object is tested, the information of the Header part is a basic part of the transmission, for example, the Header part is used as a mark part for identifying different current test items, and is marked in begin when starting the test. The test item is marked in the end when the test is completed, the test input data and/or the test output data are marked in the data part of the source, the test process data is marked in the info part of the source, and the source part is used as the data part of the test item. Therefore, by identifying the Header part of the test log information, it can be determined what type of test item the current test item is; by identifying the begin part of the test test log information, a test item start time node can be obtained; and the test test log information is obtained by the identification test. The end part can obtain a test item end time node; by identifying the data part, it can obtain test input data or test output data for a certain test item, by identifying the info part mark of a certain test item, You can get test process data for a test item.
步骤S202、根据所述当前测试失败事件的当前测试关键特征数据与预先存储的历史测试失败事件的历史测试关键特征数据分别进行匹配。Step S202: Perform matching on the current test key feature data of the current test failure event and the historical test key feature data of the pre-stored historical test failure event.
本实施例中,由于关键特征数据可以包括测试输入数据、测试输出数据、测试过程数据,为此,有关特征数据的匹配请参见上述实施例记载,在此不再赘述。In this embodiment, the key feature data may include the test input data, the test output data, and the test process data. For the matching of the feature data, refer to the description in the foregoing embodiment, and details are not described herein again.
步骤S203、在存在与当前测试失败事件匹配的历史测试失败事件时,根据预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,确定 应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。Step S203: When there is a historical test failure event that matches the current test failure event, determine according to the correspondence between the pre-stored historical test failure event and the adapted solution. A solution to the historical test failure event should be addressed to retest the current test item according to the solution.
举例来说,本实施例通过预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,当确定存在与当前测试失败事件匹配的历史测试失败事件时,可以通过索引等方式查询对应关系,进而快速地检索到新的解决方案。For example, in this embodiment, when the historical test failure event matching the current test failure event is determined by the corresponding relationship between the historical test failure event and the corresponding solution, the query may be performed by using an index or the like. Correspondence, and then quickly retrieve new solutions.
在一种可能的实现方式中,步骤S203的具体的实现方式为:根据预先存储的历史测试失败事件与相适配的所述解决方案的映射信息表,确定应对所述历史测试失败事件的解决方案,所述映射信息表用于指示所述历史测试失败事件与所述解决方案的对应关系。具体地,本实施例通过建立映射信息表简单方便地反映历史测试失败事件与相适配的所述解决方案的对应关系。In a possible implementation manner, the specific implementation manner of step S203 is: determining, according to the pre-stored historical test failure event and the mapping information table of the solution that is adapted, the solution to the historical test failure event. The mapping information table is used to indicate a correspondence between the historical test failure event and the solution. Specifically, the present embodiment simply and conveniently reflects the correspondence between the historical test failure event and the adapted solution by establishing a mapping information table.
进一步地,所述映射信息表映射一个或多个案例,所述案例关联所述历史测试失败事件的事件类型属性和/或数据特征值以及相应的解决方案。举例来说,多起指纹图像采集时间测试项的测试失败事件可能都是由于指纹接触的时间不够造成的,但是多起认假率测试项的测试失败事件的指纹接触的时间很可能是各不相同。本实施例中的案例关联测试失败事件的事件类型属性和/或数据特征值以及对应的解决方案,这样既可以尽可能多地在映射信息表存储更多的历史测试失败事件,还可以根据测试失败事件中的事件类型属性和/或数据特征值快速地确定解决方案,在保证映射信息表具有海量的历史测试失败事件的基础上,还能快速地确定解决方案,进而提高测试效率。当然,本实施例中的案例的具体情况根据实际需求设定。Further, the mapping information table maps one or more cases, the case being associated with an event type attribute and/or a data feature value of the historical test failure event and a corresponding solution. For example, the test failure events of multiple fingerprint image acquisition time test items may be caused by insufficient fingerprint contact time, but the time of fingerprint contact of multiple test failure test items may be different. the same. The case in this embodiment correlates the event type attribute and/or the data feature value of the failed event with the corresponding solution, so that more historical test failure events can be stored in the mapping information table as much as possible, and the test can be performed according to the test. The event type attribute and/or data feature value in the failure event quickly determines the solution. On the basis of ensuring that the mapping information table has a large number of historical test failure events, the solution can be quickly determined, thereby improving the testing efficiency. Of course, the specific case of the case in this embodiment is set according to actual needs.
步骤S204、将所述当前测试测试失败事件作为新的历史测试失败事件,以对历史测试失败事件与相适配的所述解决方案的对应关系进行更新。Step S204: The current test test failure event is used as a new historical test failure event to update the correspondence between the historical test failure event and the adapted solution.
具体地,本实施例通过将所述当前测试测试失败事件作为新的历史测试失败事件以使存储的历史测试失败事件越来越多,以提高当前测试失败事件与历史测试失败事件匹配成功的概率。越来越多的历史测试事件也能反映能够提供大量的解决方案应对不同的测试失败事件,后期遇到测试失败事件时,能够快速地从大量的解决方案中提取相应的解决方案,进一步减少对人工分析的依赖,节约了大量的人力资源。此外,通过对历史测试失败事件与相适配的所述解决方案的对应关系进行更新,相当于在不断增加样本量,能够进 一步准确地从海量的解决方案中提取相适配的解决方案。Specifically, the current test failure event is used as a new historical test failure event to make the stored historical test failure event more and more, so as to improve the probability that the current test failure event and the historical test failure event are successfully matched. . More and more historical test events can also reflect the ability to provide a large number of solutions to different test failure events. When encountering test failure events in the future, they can quickly extract corresponding solutions from a large number of solutions, further reducing the number of solutions. The reliance on manual analysis saves a lot of human resources. In addition, by updating the correspondence between the historical test failure event and the adapted solution, it is equivalent to increasing the sample size and being able to enter Accurately extract the right solution from a massive solution in one step.
本实施例提供的测试方法,本实施例通过提取测试log信息中的测试关键特征数据能够快速准确地确定是否存储与当前测试失败事件匹配的历史测试失败事件;通过预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,当确定存在与当前测试失败事件匹配的历史测试失败事件时,可以通过索引等方式查询对应关系,进而快速地检索到新的解决方案,进一步地实现提高测试效率的目的;此外,通过将所述当前测试测试失败事件作为新的历史测试失败事件以使存储的历史测试失败事件越来越多,以提高当前测试失败事件与历史测试失败事件匹配成功的概率。In the test method provided by this embodiment, the present embodiment can quickly and accurately determine whether to store a historical test failure event that matches the current test failure event by extracting the test key feature data in the test log information; Corresponding relationship of the solution, when it is determined that there is a historical test failure event that matches the current test failure event, the corresponding relationship may be queried by indexing, etc., thereby quickly retrieving the new solution, further implementing The purpose of improving the efficiency of the test; in addition, by using the current test test failure event as a new historical test failure event to make the stored historical test failure event more and more, to improve the current test failure event and the historical test failure event successfully matched The probability.
图3为本发明另一实施例提供的测试方法的方法流程图。本实施例是对上述实施例提供的测试方法做进一步的补充说明,本实施例中,针对上述图1、图2实施例,出现了当前测试项失败事件,而测试服务器1不存在对应的解决方案,但是又需要对当前测试项继续进行测试。如图3所示,本实施例提供的测试方法包括:FIG. 3 is a flowchart of a method for testing a method according to another embodiment of the present invention. This embodiment is a further supplement to the test method provided in the foregoing embodiment. In this embodiment, for the foregoing embodiment of FIG. 1 and FIG. 2, the current test item failure event occurs, and the test server 1 does not have a corresponding solution. Solution, but need to continue testing the current test items. As shown in FIG. 3, the testing method provided in this embodiment includes:
步骤S301、将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配。Step S301: The current test failure event generated when the current test item fails to test according to the current test plan is matched with the pre-stored historical test failure event.
需要说明的是,本实施例中步骤S301实现方式与上述实施例中的步骤S101的实现方式相同,在此不在赘述。It should be noted that the implementation manner of step S301 in this embodiment is the same as the implementation manner of step S101 in the foregoing embodiment, and details are not described herein.
步骤S302、在不存在与当前测试失败事件匹配的历史测试失败事件时,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。Step S302: When there is no historical test failure event matching the current test failure event, obtain a solution to the current test failure event according to the manual analysis of the current test failure event to retest the test item. .
具体地,当测试服务器1不存在与当前测试失败事件匹配的历史测试失败事件,此时测试服务器1通过设置的接口将当前测试失败事件对应的测试log信息打包发给技术支持端3,技术支持端3的技术人员对当前测试失败事件进行人工分析并提供相应的解决方案通过设置的接口返回给测试服务器1,接着测试服务器1根据新的解决方案生成新的测试方案并注入到测试工具2中,接着测试工具2会依据新的测试方案中的新的解决方案对失败的测试项重新进行测试。Specifically, when the test server 1 does not have a historical test failure event that matches the current test failure event, the test server 1 packages the test log information corresponding to the current test failure event to the technical support terminal 3 through the set interface, and the technical support is provided. The technician of the end 3 manually analyzes the current test failure event and provides a corresponding solution to the test server 1 through the set interface, and then the test server 1 generates a new test plan according to the new solution and injects it into the test tool 2 Then, Test Tool 2 will retest the failed test items according to the new solution in the new test plan.
本实施例在确定不存在与当前测试失败事件匹配的历史测试失败事件, 还能够获取人工分析的解决方案,以进一步地确保测试通过率及可靠性。In this embodiment, it is determined that there is no historical test failure event that matches the current test failure event. It is also possible to obtain a solution for manual analysis to further ensure test pass rate and reliability.
在一种可能的实现方式中,步骤S302的具体实现方式为:在不存在与当前测试失败事件匹配的历史测试失败事件时,对当前测试失败事件进行标记。需要说明的是,执行步骤S302之后,就能够实现根据对标记的所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。In a possible implementation manner, the specific implementation manner of step S302 is: marking the current test failure event when there is no historical test failure event matching the current test failure event. It should be noted that, after performing step S302, it is possible to implement a solution for responding to the current test failure event according to the manual analysis of the current test failure event of the mark to retest the test item.
具体地,通过将当前测试失败事件标记为未解决的测试失败事件,能够直观地通知技术支持端3的技术人员需要对当前测试失败事件提供技术分析,能够极大地缩短通过人工分析而获取的解决方案的时间,进一步提高测试效率。Specifically, by marking the current test failure event as an unresolved test failure event, the technician of the technical support terminal 3 can be intuitively notified that the technical analysis of the current test failure event needs to be provided, which can greatly shorten the solution obtained by the manual analysis. The timing of the program further improves the efficiency of the test.
在又一种可能的实现方式中,步骤S302的具体实现方式为:对多个项目中同类型的多个当前测试失败事件进行人工分析以获取应对所述当前测试失败事件的解决方案。In a further possible implementation manner, the specific implementation manner of step S302 is: performing manual analysis on multiple current test failure events of the same type in multiple projects to obtain a solution to the current test failure event.
举例来说,不同生产地址的多条生成线即多个项目都在进行对多个测试对象的量产测试,若出现同类型的多个当前测试失败事件,先对同类型的多个当前测试失败事件进行标记为某种类型的测试失败事件,技术支持端3根据标记判断出多个当前测试失败事件为同类型的测试失败事件,这样技术支持端3可只进行一次人工分析来获取应对当前测试失败事件的解决方案,而无需对每一个同类型的当前测试失败事件都进行人工分析,从而提高了获取应对所述当前测试失败事件的解决方案的速度,同时也节省了人力成本。当然,本实施例中的项目不限于举例说明。For example, multiple production lines of different production addresses, that is, multiple items, are performing mass production tests on multiple test objects. If multiple current test failure events of the same type occur, multiple current tests of the same type are first tested. The failure event is marked as a certain type of test failure event, and the technical support terminal 3 determines that the plurality of current test failure events are the same type of test failure event according to the flag, so that the technical support terminal 3 can perform only one manual analysis to obtain the current response. Test the failure event solution without manual analysis of each of the same types of current test failure events, thereby increasing the speed of obtaining solutions to the current test failure events, while also saving labor costs. Of course, the items in this embodiment are not limited to the examples.
本实施例提供的测试方法,在确定不存在与当前测试失败事件匹配的历史测试失败事件,还能够获取人工分析的解决方案,以进一步地确保测试通过率及可靠性。此外,通过对当前测试失败事件进行标记,能够极大地缩短通过人工分析而获取的解决方案的时间,进一步提高测试效率。The test method provided in this embodiment can also obtain a solution of manual analysis in determining that there is no historical test failure event matching the current test failure event, so as to further ensure test pass rate and reliability. In addition, by marking the current test failure events, the time of the solution obtained by manual analysis can be greatly shortened, and the test efficiency can be further improved.
图4为本发明再一实施例提供的测试方法的方法流程图。如图4所示,本实施例提供的测试方法包括:FIG. 4 is a flowchart of a method for testing a method according to still another embodiment of the present invention. As shown in FIG. 4, the testing method provided in this embodiment includes:
步骤S401、将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配。 In step S401, the current test failure event generated when the current test item fails to test is matched with the pre-stored historical test failure event according to the current test plan.
步骤S402、在不存在与当前测试失败事件匹配的历史测试失败事件时,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。Step S402: When there is no historical test failure event matching the current test failure event, obtain a solution to the current test failure event according to the manual analysis of the current test failure event to retest the test item. .
需要说明的是,本实施例中步骤S401和步骤S402的实现方式与上述实施例中的步骤S301和步骤S302的实现方式相同,在此不在赘述。It should be noted that the implementation manners of step S401 and step S402 in this embodiment are the same as the implementation manners of step S301 and step S302 in the foregoing embodiment, and are not described herein.
步骤S403、将所述当前测试测试失败事件作为新的历史测试失败事件,将通过所述人工分析获取到的应对所述当前测试失败事件的解决方案作为新的解决方案,以更新历史测试失败事件与相适配的所述解决方案的对应关系。Step S403: The current test failure event is used as a new historical test failure event, and the solution for the current test failure event obtained by the manual analysis is used as a new solution to update the historical test failure event. Correspondence with the adapted solution.
具体地,无论是否存在与当前测试失败事件匹配的历史测试失败事件,本实施例同样将所述当前测试测试失败事件作为新的历史测试失败事件并进行存储以使存储的历史测试失败事件越来越多,以提高当前测试失败事件与历史测试失败事件匹配的概率。Specifically, regardless of whether there is a historical test failure event that matches the current test failure event, the embodiment also uses the current test test failure event as a new historical test failure event and stores it so that the stored history test failure event comes. The more you increase the probability that the current test failure event matches the historical test failure event.
本实施例一方面不断更新预存的历史测试失败事件,另一方面不断更新历史测试失败事件与相适配的所述解决方案的对应关系比如映射表,以提高获取处理当前测试失败事件的解决方案的概率。On the one hand, the embodiment continuously updates the pre-stored historical test failure event, and on the other hand, continuously updates the correspondence between the historical test failure event and the adapted solution, such as a mapping table, to improve the solution for acquiring the current test failure event. The probability.
本实施例中,步骤S403中还可以对所述历史测试失败事件的解决方案进行优化或者提供全新的解决方案,再进一步更新历史测试失败事件与相适配的所述解决方案的对应关系;具体地,其可以包括:获取所述历史测试失败事件的发生频次;根据所述发生频次确定是否需要对历史测试失败事件进行人工分析;若确定需要对历史测试失败事件进行人工分析,则将通过所述人工分析获取到的应对所述历史测试失败事件的解决方案作为新的解决方案。In this embodiment, the solution of the historical test failure event may be optimized or a new solution may be provided in step S403, and the corresponding relationship between the historical test failure event and the adapted solution may be further updated; The method may include: obtaining an occurrence frequency of the historical test failure event; determining, according to the frequency of occurrence, whether a manual test failure event needs to be manually analyzed; if it is determined that a historical test failure event needs to be manually analyzed, A solution to the historical test failure event obtained by manual analysis is described as a new solution.
举例来说,在实际的测试过程中,测试失败事件可能是由于测试方案中设置不合适的测试项阈值造成临界误判情况而导致的,进而导致测试失败事件的发生频次高,这时就需要修正测试方案中的各种测试项阈值,以尽量避免临界误判的测试失败事件的出现。本实施例通过从当前测试项对应的关键特征数据中获取历史测试失败事件的发生频次,若判断出发生频次高,则确定对历史测试失败事件进行人工分析以获取应对历史测试失败事件的新的解决方案,同时更新历史测试失败事件与相适配的解决方案的对应关系。该新的解决方案可以是对测试服务器1上已有解决方案的优化,或者是经过人工分析后提供的全新的解决方案。 For example, in the actual test process, the test failure event may be caused by a critical misjudgment caused by setting an inappropriate test item threshold in the test plan, thereby causing the test failure event to occur frequently, and then it is required. Correct the various test item thresholds in the test plan to avoid the occurrence of critical failures in the test failure event. In this embodiment, the frequency of occurrence of the historical test failure event is obtained from the key feature data corresponding to the current test item. If it is determined that the frequency of occurrence is high, it is determined that the historical test failure event is manually analyzed to obtain a new response to the historical test failure event. The solution updates both the historical test failure event and the corresponding solution. The new solution can be an optimization of existing solutions on Test Server 1, or a completely new solution after manual analysis.
图5为本发明实施例提供的测试服务器的结构示意图。该服务器可以通过硬件、软件或硬件和软件相结合的方式实现。如图5所示,本实施例提供的测试服务器1包括:匹配模块11和确定模块12。FIG. 5 is a schematic structural diagram of a test server according to an embodiment of the present invention. The server can be implemented in hardware, software, or a combination of hardware and software. As shown in FIG. 5, the test server 1 provided in this embodiment includes: a matching module 11 and a determining module 12.
其中,匹配模块11用于将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配,在存在与当前测试失败事件匹配的历史测试失败事件时,则触发确定模块12。The matching module 11 is configured to match the current test failure event generated when the current test item fails the test according to the current test plan, and the pre-stored historical test failure event, when there is a historical test failure event that matches the current test failure event. , the determination module 12 is triggered.
在一种可能的实现方式中,所述匹配模块11,进一步用于:根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配。In a possible implementation, the matching module 11 is further configured to: match the current test log information corresponding to the current test failure event with the historical test log information corresponding to the historical test failure event stored in advance. .
其中,所述确定模块12,用于确定应对所述历史测试失败事件对应的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。The determining module 12 is configured to determine a solution corresponding to the historical test failure event, to retest the current test item according to the solution.
进一步地,所述测试服务器还包括:存储模块,用于存储的历史测试失败事件与相适配的所述解决方案的对应关系;Further, the test server further includes: a storage module, configured to store a historical test failure event and a corresponding relationship of the solution;
在一种可能的实现方式中,所述确定模块12,进一步用于:根据所述存储模块中预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,确定应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。In a possible implementation manner, the determining module 12 is further configured to: determine, according to a correspondence between a historical test failure event pre-stored in the storage module and the adapted solution, to determine the history A solution to test the failure event to retest the current test item according to the solution.
进一步地,所述测试服务器还包括:更新模块,用于将所述当前测试测试失败事件作为新的历史测试失败事件,以对所述存储模块中的历史测试失败事件与相适配的所述解决方案的对应关系进行更新。Further, the test server further includes: an update module, configured to use the current test test failure event as a new historical test failure event to match the historical test failure event in the storage module The correspondence of the solution is updated.
进一步地,在所述匹配模块11中不存在与当前测试失败事件匹配的历史测试失败事件时,则触发获取模块13;所述获取模块13用于根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。Further, when there is no historical test failure event matching the current test failure event in the matching module 11, the acquisition module 13 is triggered; the obtaining module 13 is configured to obtain according to the manual analysis of the current test failure event. A solution to the current test failure event should be addressed to retest the test item.
需要说明的是,本实施例的测试服务器1可以用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。It should be noted that the test server 1 of this embodiment may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and technical effects are similar, and details are not described herein again.
本实施例提供的测试服务器,先通过确定当前测试失败事件是否能够匹配到预先存储历史测试失败事件,在匹配到预先存储的历史测试失败事件时,就利用前期为解决历史测试失败事件而采用的解决方案对当前测试项重新测 试,这样能够极大地减少或避免人工分析,进而能够实现提高测试效率的目的。The test server provided in this embodiment first determines whether the current test failure event can be matched to the pre-stored historical test failure event, and when it matches the pre-stored historical test failure event, it uses the previous period to solve the historical test failure event. Solution retest the current test item Try to greatly reduce or avoid manual analysis, which can improve the efficiency of testing.
图6为本发明实施例提供的测试系统的结构示意图。如图6所示,本发明实施例提供的测试系统包括:上述实施例中的任一项所述的测试服务器1和测试工具2。FIG. 6 is a schematic structural diagram of a test system according to an embodiment of the present invention. As shown in FIG. 6, the test system provided by the embodiment of the present invention includes the test server 1 and the test tool 2 according to any one of the above embodiments.
所述测试服务器1,用于将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配,并在存在与当前测试失败事件匹配的历史测试失败事件时,确定应对所述历史测试失败事件对应的解决方案,以使得测试工具2根据所述解决方案对所述当前测试项重新进行测试。The test server 1 is configured to match a current test failure event generated when the current test item fails the test according to the current test plan with a pre-stored historical test failure event, and fail in the history test that matches the current test failure event. At the time of the event, a solution corresponding to the historical test failure event is determined to cause the test tool 2 to retest the current test item according to the solution.
所述测试工具2,用于根据所述解决方案对所述当前测试项重新进行测试。举例来说,通过测试工具2对产线端的测试对象实施测试方案。测试工具2的测试方案由测试服务器1注入,若遇到测试失败事件,测试工具2将当前测试失败事件上传到测试工具2,测试工具2根据当前测试失败事件与预先存储的历史测试失败事件进行匹配,当匹配成功时,则获取应对历史测试失败事件对应的解决方案,接着根据获得的新的解决方案更新当前测试方案以形成新的解决测试方案,将新的测试方案注入到测试工具2中,紧接着测试工具2会依据新的测试方案中的新的解决方案对失败的测试项重新进行测试。The testing tool 2 is configured to retest the current test item according to the solution. For example, the test tool 2 is used to implement a test plan for the test object at the production line end. The test solution of test tool 2 is injected by test server 1. If a test failure event is encountered, test tool 2 uploads the current test failure event to test tool 2, and test tool 2 performs according to the current test failure event and the pre-stored historical test failure event. Matching, when the matching is successful, obtain a solution corresponding to the historical test failure event, and then update the current test plan according to the obtained new solution to form a new solution test plan, and inject the new test plan into the test tool 2 Next, Test Tool 2 will retest the failed test items against the new solution in the new test plan.
进一步地,所示测试系统,还包括:技术支持端3,用于在所述测试服务器1不存在与当前测试失败事件匹配的历史测试失败事件时,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。举例来说,当测试服务器1中不存在与当前测试失败事件匹配的历史测试失败事件,这时测试服务器1会将当前测试失败事件打包发给技术支持端3,技术支持端3的技术人员对当前测试失败事件进行人工分析并提供相应的解决方案返回给测试服务器1,接着测试服务器1根据新的解决方案生成新的测试方案并注入到测试工具2中,接着测试工具2会依据新的测试方案中的新的解决方案对失败的测试项重新进行测试。Further, the test system further includes: a technical support end 3, configured to perform manual analysis on the current test failure event when the test server 1 does not have a historical test failure event matching the current test failure event A solution to the current test failure event is obtained to retest the test item. For example, when there is no historical test failure event matching the current test failure event in the test server 1, the test server 1 packages the current test failure event to the technical support terminal 3, and the technical support personnel of the technical support terminal 3 The current test failure event is manually analyzed and the corresponding solution is provided and returned to the test server 1. Then the test server 1 generates a new test plan according to the new solution and injects it into the test tool 2, and then the test tool 2 is based on the new test. The new solution in the scenario retests the failed test.
本实施例提供的测试系统,先通过确定当前测试失败事件是否能够匹配 到预先存储历史测试失败事件,在匹配到预先存储的历史测试失败事件时,就利用前期为解决历史测试失败事件而采用的解决方案对当前测试项重新测试,这样能够极大地减少或避免人工分析,进而能够实现提高测试效率的目的。此外,在确定不存在与当前测试失败事件匹配的历史测试失败事件,还能够获取人工分析的解决方案,以进一步地确保测试通过率。The test system provided in this embodiment first determines whether the current test failure event can be matched. To pre-store the historical test failure event, when matching the pre-stored historical test failure event, re-test the current test item with the solution adopted in the previous period to solve the historical test failure event, which can greatly reduce or avoid manual analysis. In turn, the purpose of improving test efficiency can be achieved. In addition, in determining that there is no historical test failure event that matches the current test failure event, a manual analysis solution can be obtained to further ensure the test pass rate.
最后应说明的是:以上实施例仅用以说明本申请实施例的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。的情况下,即可以理解并实施。Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the embodiments of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments may be modified, or some of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the spirit of the technical solutions of the embodiments of the present application. range. In the case of that, it can be understood and implemented.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,所述计算机可读记录介质包括用于以计算机(例如计算机)可读的形式存储或传送信息。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such an understanding, portions of the above technical solutions that contribute substantially or to the prior art may be embodied in the form of a software product that may be stored in a computer readable storage medium, the computer readable record The medium includes information for storing or transmitting information in a form readable by a computer (eg, a computer).
本领域的技术人员应明白,本发明实施例的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the embodiments of the invention may be provided as a method, apparatus (device), or computer program product. Thus, embodiments of the invention may be in the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, embodiments of the invention may take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明实施例是参照根据本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装 置。Embodiments of the invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Compilation of functions specified in one or more blocks of a flow or a flow and/or block diagram of a flow chart Set.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明实施例权利要求及其等同技术的范围之内,则本发明实施例也意图包含这些改动和变型在内。 While the preferred embodiment of the present invention has been described, it will be apparent that those skilled in the art can make various changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the embodiments of the invention. Therefore, it is intended that the present invention cover the modifications and variations of the embodiments of the present invention.

Claims (21)

  1. 一种测试方法,其特征在于,包括:A test method, comprising:
    将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配;The current test failure event generated when the current test item fails to test is matched with the pre-stored historical test failure event according to the current test plan;
    在存在与当前测试失败事件匹配的历史测试失败事件时,确定应对所述历史测试失败事件对应的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。When there is a historical test failure event that matches the current test failure event, a solution corresponding to the historical test failure event is determined to retest the current test item according to the solution.
  2. 根据权利要求1所述的方法,其特征在于,所述根据当前测试方案对测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配,包括:根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配。The method according to claim 1, wherein the matching the current test failure event generated when the test item fails to test according to the current test plan matches the pre-stored historical test failure event, including: failing according to the current test The current test log information corresponding to the event is matched with the historical test log information corresponding to the historical test failure event stored in advance.
  3. 根据权利要求2所述的方法,其特征在于,所述当前测试log信息包括对所述当前测试项执行当前测试方案的当前测试输入数据以及当前测试输出数据,所述历史测试log信息包括对所述历史测试项执行历史测试方案的历史测试输入数据以及历史测试输出数据;The method according to claim 2, wherein the current test log information comprises current test input data and current test output data of a current test scenario for the current test item, and the historical test log information includes Historical test input data and historical test output data of a history test item execution history test plan;
    其中,所述根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配,包括:The current test log information corresponding to the current test failure event is matched with the historical test log information corresponding to the historical test failure event stored in advance, including:
    根据所述当前测试失败事件的当前测试输入数据以及当前测试输出数据与预先存储的历史测试输入数据以及历史测试输出数据分别进行匹配。The current test input data according to the current test failure event and the current test output data are respectively matched with the pre-stored historical test input data and the historical test output data.
  4. 根据权利要求3所述的方法,其特征在于,还包括:根据设定的数据通讯协议对当前测试log信息进行分析以从中提取关键特征数据;The method according to claim 3, further comprising: analyzing the current test log information according to the set data communication protocol to extract key feature data therefrom;
    其中,根据所述当前测试失败事件的当前测试输入数据以及当前测试输出数据与预先存储的历史测试输入数据以及历史测试输出数据分别进行匹配包括:The matching between the current test input data of the current test failure event and the current test output data and the pre-stored historical test input data and the historical test output data respectively includes:
    根据所述当前测试失败事件的当前测试关键过程数据与预先存储的历史测试失败事件的历史测试关键过程数据分别进行匹配。The current test key process data according to the current test failure event is matched with the historical test key process data of the pre-stored historical test failure event.
  5. 根据权利要求4所述的方法,其特征在于,根据设定的数据通讯协议对当前log信息进行分析以从中提取关键特征数据包括:The method according to claim 4, wherein analyzing the current log information according to the set data communication protocol to extract key feature data therefrom comprises:
    根据设定的数据通讯协议对所述当前log信息进行拆分和提取以获取其 中的标记部分和数据部分;其中,所述标记部分用于标识不同的所述当前测试项,所述数据部分用于记载当前测试输入数据、当前测试输出数据以及当前测试关键过程数据。Decoding and extracting the current log information according to a set data communication protocol to obtain a mark portion and a data portion; wherein the mark portion is used to identify different current test items, and the data portion is used to record current test input data, current test output data, and current test key process data.
  6. 根据权利要求1所述的方法,其特征在于,所述确定应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试包括:The method of claim 1, wherein the determining a solution to the historical test failure event to retest the current test item according to the solution comprises:
    根据预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,确定应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。Determining a solution to the historical test failure event according to a correspondence between the pre-stored historical test failure event and the adapted solution to re-test the current test item according to the solution.
  7. 根据权利要求6所述的方法,其特征在于,所述根据预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,确定应对所述历史测试失败事件的解决方案包括:The method according to claim 6, wherein the determining, according to the correspondence between the pre-stored historical test failure event and the adapted solution, the solution to the historical test failure event comprises:
    根据预先存储的历史测试失败事件与相适配的所述解决方案的映射信息表,确定应对所述历史测试失败事件的解决方案,所述映射信息表用于指示所述历史测试失败事件与所述解决方案的对应关系。Determining, by the pre-stored historical test failure event and the mapping information table of the solution, the solution to the historical test failure event, where the mapping information table is used to indicate the historical test failure event and the The corresponding relationship of the solution.
  8. 根据权利要求7所述的方法,其特征在于,所述映射信息表映射一个或多个案例,所述案例关联所述历史测试失败事件的事件类型属性和/或数据特征值以及相应的解决方案。The method according to claim 7, wherein the mapping information table maps one or more cases, the case is associated with an event type attribute and/or a data feature value of the historical test failure event and a corresponding solution .
  9. 根据权利要求6所述的方法,其特征在于,还包括:The method of claim 6 further comprising:
    将所述当前测试测试失败事件作为新的历史测试失败事件,以对历史测试失败事件与相适配的所述解决方案的对应关系进行更新。The current test test failure event is used as a new historical test failure event to update the correspondence between the historical test failure event and the adapted solution.
  10. 根据权利要求1至9任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 9, further comprising:
    在不存在与当前测试失败事件匹配的历史测试失败事件时,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。When there is no historical test failure event matching the current test failure event, a solution to the current test failure event is obtained according to the manual analysis of the current test failure event to retest the test item.
  11. 根据权利要求10所述的方法,其特征在于,还包括:The method of claim 10, further comprising:
    在不存在与当前测试失败事件匹配的历史测试失败事件时,对当前测试失败事件进行标记。The current test failure event is flagged when there is no historical test failure event that matches the current test failure event.
  12. 根据权利要求10所述的方法,其特征在于,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项 重新进行测试包括:The method according to claim 10, wherein a solution to the current test failure event is obtained according to a manual analysis of the current test failure event to the test item Retesting includes:
    对多个项目中同类型的多个当前测试失败事件进行人工分析以获取应对所述当前测试失败事件的解决方案。Manual analysis of multiple current test failure events of the same type in multiple projects to obtain a solution to the current test failure event.
  13. 根据权利要求10所述的方法,其特征在于,还包括:The method of claim 10, further comprising:
    将所述当前测试测试失败事件作为新的历史测试失败事件,将通过所述人工分析获取到的应对所述当前测试失败事件的解决方案作为新的解决方案,以更新历史测试失败事件与相适配的所述解决方案的对应关系。Using the current test test failure event as a new historical test failure event, the solution to the current test failure event obtained by the manual analysis is used as a new solution to update the historical test failure event and the appropriate Correspondence of the solution.
  14. 根据权利要求10所述的方法,其特征在于,还包括:The method of claim 10, further comprising:
    获取所述历史测试失败事件的发生频次,根据所述发生频次确定是否需要对历史测试失败事件进行人工分析,在确定需要对历史测试失败事件进行人工分析时,将通过所述人工分析获取到的应对所述历史测试失败事件的解决方案作为新的解决方案,以更新历史测试失败事件与相适配的所述解决方案的对应关系。Obtaining a frequency of occurrence of the historical test failure event, determining, according to the frequency of occurrence, whether a manual analysis failure event needs to be manually analyzed, and when determining that a historical test failure event needs to be manually analyzed, the manual analysis is obtained. The solution to the historical test failure event should be used as a new solution to update the correspondence between the historical test failure event and the adapted solution.
  15. 一种测试服务器,其特征在于,包括:A test server, comprising:
    匹配模块,用于将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配,在存在与当前测试失败事件匹配的历史测试失败事件时,触发确定模块;The matching module is configured to match the current test failure event generated when the current test item fails the test according to the current test plan with the pre-stored historical test failure event, and trigger when there is a historical test failure event that matches the current test failure event. Determining module
    所述确定模块,用于确定应对所述历史测试失败事件对应的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。The determining module is configured to determine a solution corresponding to the historical test failure event, to retest the current test item according to the solution.
  16. 根据权利要求15所述的测试服务器,其特征在于,所述匹配模块,进一步用于:根据所述当前测试失败事件对应的当前测试log信息与预先存储的所述历史测试失败事件对应的历史测试log信息进行匹配。The test server according to claim 15, wherein the matching module is further configured to: perform a historical test corresponding to the pre-stored historical test failure event according to the current test log information corresponding to the current test failure event The log information is matched.
  17. 根据权利要求15所述的测试服务器,其特征在于,还包括:存储模块,用于存储的历史测试失败事件与相适配的所述解决方案的对应关系;The test server according to claim 15, further comprising: a storage module, configured to store a correspondence between a historical test failure event and the adapted solution;
    所述确定模块,进一步用于:根据所述存储模块中预先存储的历史测试失败事件与相适配的所述解决方案的对应关系,确定应对所述历史测试失败事件的解决方案,以根据所述解决方案对所述当前测试项重新进行测试。The determining module is further configured to: determine, according to a correspondence between the historical test failure event pre-stored in the storage module and the adapted solution, a solution to the historical test failure event, according to the solution The solution retests the current test item.
  18. 根据权利要求17所述的测试服务器,其特征在于,还包括:更新模块,用于将所述当前测试测试失败事件作为新的历史测试失败事件,以对所述存储模块中的历史测试失败事件与相适配的所述解决方案的对应关系进行更新。 The test server according to claim 17, further comprising: an update module, configured to use the current test test failure event as a new historical test failure event to record a historical test failure event in the storage module. The correspondence with the adapted solution is updated.
  19. 根据权利要求15至18任一项所述的测试服务器,其特征在于,在所述匹配模块中不存在与当前测试失败事件匹配的历史测试失败事件时,则触发获取模块;The test server according to any one of claims 15 to 18, wherein when there is no historical test failure event matching the current test failure event in the matching module, the acquisition module is triggered;
    所述获取模块用于根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。The obtaining module is configured to obtain a solution to the current test failure event according to a manual analysis of the current test failure event to retest the test item.
  20. 一种测试系统,其特征在于,包括:测试工具和测试服务器;A test system, comprising: a test tool and a test server;
    所述测试工具,用于根据所述解决方案对所述当前测试项重新进行测试;The testing tool is configured to retest the current test item according to the solution;
    所述测试服务器,用于将根据当前测试方案对当前测试项测试失败时生成的当前测试失败事件与预先存储的历史测试失败事件进行匹配,并在存在与当前测试失败事件匹配的历史测试失败事件时,确定应对所述历史测试失败事件对应的解决方案,以使得测试工具根据所述解决方案对所述当前测试项重新进行测试。The test server is configured to match a current test failure event generated when the current test item fails the test according to the current test plan with a pre-stored historical test failure event, and a historical test failure event that matches the current test failure event exists. A solution corresponding to the historical test failure event is determined to cause the test tool to retest the current test item according to the solution.
  21. 根据权利要求20所述的系统,其特征在于,还包括:技术支持端,用于在所述测试服务器不存在与当前测试失败事件匹配的历史测试失败事件时,根据对所述当前测试失败事件的人工分析获取应对所述当前测试失败事件的解决方案以对所述测试项重新进行测试。 The system according to claim 20, further comprising: a technical support end, configured to: when the test server does not have a historical test failure event matching the current test failure event, according to the current test failure event The manual analysis obtains a solution to the current test failure event to retest the test item.
PCT/CN2017/081974 2017-04-26 2017-04-26 Test method, test server, and system WO2018195795A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780000294.XA CN107223257B (en) 2017-04-26 2017-04-26 Test method, test server and test system
PCT/CN2017/081974 WO2018195795A1 (en) 2017-04-26 2017-04-26 Test method, test server, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/081974 WO2018195795A1 (en) 2017-04-26 2017-04-26 Test method, test server, and system

Publications (1)

Publication Number Publication Date
WO2018195795A1 true WO2018195795A1 (en) 2018-11-01

Family

ID=59953745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081974 WO2018195795A1 (en) 2017-04-26 2017-04-26 Test method, test server, and system

Country Status (2)

Country Link
CN (1) CN107223257B (en)
WO (1) WO2018195795A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582347A (en) * 2020-04-29 2020-08-25 北京旋极信息技术股份有限公司 Fault diagnosis method and device
CN111679973A (en) * 2020-05-25 2020-09-18 泰康保险集团股份有限公司 Software test scheduling method and device, computer equipment and readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108971025A (en) * 2018-08-17 2018-12-11 上海玉嵩机器人技术有限公司 A kind of visible detection method and vision detection system
CN111191863A (en) * 2018-11-15 2020-05-22 鸿富锦精密电子(成都)有限公司 Test information classification method, computer device and computer readable storage medium
CN111325367B (en) * 2018-12-13 2023-04-07 英业达科技有限公司 Test time prediction system and method thereof
CN110489257A (en) * 2019-07-23 2019-11-22 广东以诺通讯有限公司 A kind of production management method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041864A1 (en) * 2004-08-19 2006-02-23 International Business Machines Corporation Error estimation and tracking tool for testing of code
CN101226501A (en) * 2008-02-20 2008-07-23 福建星网锐捷网络有限公司 Method and device for monitoring test
CN101556550A (en) * 2009-05-22 2009-10-14 北京星网锐捷网络技术有限公司 Analysis method for automatic test log and device
CN105677567A (en) * 2016-01-10 2016-06-15 上海与德通讯技术有限公司 Automation testing method and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3792532B2 (en) * 2001-04-19 2006-07-05 エヌ・ティ・ティ・アドバンステクノロジ株式会社 Information sharing system
CN101052020B (en) * 2007-05-21 2010-06-09 中兴通讯股份有限公司 Monitor method and system for automatically measuring executing process
CN101118515B (en) * 2007-09-11 2010-06-23 腾讯科技(深圳)有限公司 Automatically testing method and apparatus for list
CN102131222A (en) * 2011-03-23 2011-07-20 中兴通讯股份有限公司 Intelligent inspection method, user terminal, server and system
CN102999417B (en) * 2012-11-14 2015-12-02 迈普通信技术股份有限公司 Automatic test management system and method
CN103902590B (en) * 2012-12-27 2017-11-10 联芯科技有限公司 Premises automation method of testing and its device
CN103399815A (en) * 2013-07-16 2013-11-20 广东欧珀移动通信有限公司 Automated testing method and automated testing device
CN104778124B (en) * 2015-04-13 2017-12-05 上海新炬网络信息技术股份有限公司 A kind of software application automated testing method
CN105320600A (en) * 2015-11-26 2016-02-10 上海斐讯数据通信技术有限公司 Test case execution monitoring method and system based on automatic testing platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041864A1 (en) * 2004-08-19 2006-02-23 International Business Machines Corporation Error estimation and tracking tool for testing of code
CN101226501A (en) * 2008-02-20 2008-07-23 福建星网锐捷网络有限公司 Method and device for monitoring test
CN101556550A (en) * 2009-05-22 2009-10-14 北京星网锐捷网络技术有限公司 Analysis method for automatic test log and device
CN105677567A (en) * 2016-01-10 2016-06-15 上海与德通讯技术有限公司 Automation testing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582347A (en) * 2020-04-29 2020-08-25 北京旋极信息技术股份有限公司 Fault diagnosis method and device
CN111582347B (en) * 2020-04-29 2023-09-12 北京旋极信息技术股份有限公司 Fault diagnosis method and device
CN111679973A (en) * 2020-05-25 2020-09-18 泰康保险集团股份有限公司 Software test scheduling method and device, computer equipment and readable storage medium
CN111679973B (en) * 2020-05-25 2023-09-08 泰康保险集团股份有限公司 Software test scheduling method, device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN107223257A (en) 2017-09-29
CN107223257B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
WO2018195795A1 (en) Test method, test server, and system
CN106951364B (en) Test method and device
CN109062809B (en) Online test case generation method and device and electronic equipment
WO2019169757A1 (en) Test control and test execution device and method, and computer storage medium
WO2019214109A1 (en) Monitoring device and method for testing process, and computer readable storage medium
US20180300229A1 (en) Root cause analysis of non-deterministic tests
WO2018177205A1 (en) Regression testing method, device, computer apparatus, and storage medium
CN102789405A (en) Automated testing method and system for mainboard
CN112306495A (en) Picture verification method and device, computer equipment and computer-readable storage medium
CN109067605B (en) Storage subsystem fault diagnosis method and device, terminal and storage medium
CN104123212A (en) System test method of USB chip
CN112671878B (en) Block chain information subscription method, device, server and storage medium
CN111666200A (en) Testing method and terminal for time consumption of cold start of PC software
CN107562593A (en) A kind of automated testing method and system for verifying internal memory ECC functions
WO2016202085A1 (en) Method and device for drawing planisphere of optical module, and virtual vector analyzer
CN111124809A (en) Test method and device for server sensor system
CN115794638A (en) Test method, system and computer equipment based on code change analysis engine
CN105391602B (en) A kind of data acquisition test method and apparatus
WO2020199789A1 (en) Information processing method and apparatus
CN113591147A (en) Data extraction method and device, computer equipment and storage medium
CN113672514A (en) Test method, test device, server and storage medium
CN107885640B (en) Hard disk management method and device
CN114860549B (en) Buried data verification method, buried data verification device, buried data verification equipment and storage medium
CN111338956A (en) Automatic pressure measurement method, device, equipment and storage medium
CN111722886A (en) Tool starting method and device, computer equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17907930

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17907930

Country of ref document: EP

Kind code of ref document: A1