Some forms of circuit test provide an engineer with large volumes of test results. To assist the engineer in managing and referring to these test results, each test result may be associated with a test number. Typically, the assignment of test numbers begins with some arbitrary base number (e.g., 1 or 1000). A new test number is then generated by merely incrementing the base, or last-assigned, test number.
Several aspects of the invention are embodied in methods for assigning test numbers. Common to each method is the maintenance of current testflow context information during execution of a testflow.
A first of the methods proceeds as follows. If one or more test number factors have been specified for one or more levels of the current testflow context, the test number factors are used to determine a base number for a current test number range. Otherwise the base number is set to a default base number. Upon execution of a subtest in the testflow, the result of the subtest is then assigned a next test number in the current test number range.
In a second of the methods, upon execution of a subtest, a database of test numbers is indexed using index information comprising 1) an identifier of the subtest, and 2) the current testflow context information. If a test number corresponding to the index information exists in the database, the test number is assigned to a result of the subtest. If a test number corresponding to the index information does not exist in the database, a new test number is assigned to the result, and the index information and new test number are associated in the database. The new test number is assigned as follows. If one or more test number factors have been specified for a level of the current testflow context, the test number factors are used to determine a base number for a current test number range. Otherwise the base number is set to a default base number. The new test number is then set to a next test number in the current test number range.
In a third of the methods, upon execution of a subtest in a testflow, a database of test numbers is indexed using index information comprising i) an identifier of the subtest, and ii) the current testflow context information. If a test number corresponding to the index information exists in the database, the test number is assigned to a result of the subtest. If a test number corresponding to the index information does not exist in the database, a new test number is formed by applying an increment to a previously assigned test number (with said increment corresponding to a level of the current testflow context). The new test number is then assigned to the result of the subtest, and the index information and new test number are associated in the database.
Another aspect of the invention is embodied in a test number engine. The test number engine comprises computer readable media, and program code that is stored on the computer readable media. The program code comprises code to, if one or more test number factors have been specified for one or more levels of the current testflow context, use the test number factors to determine a base number for a current test number range, or otherwise set the base number to a default base number. The program code further comprises code to, upon execution of a subtest in the testflow, assign a result of the subtest a next test number in the current test number range.
Other embodiments of the invention are also disclosed.
Illustrative and presently preferred embodiments of the invention are illustrated in the drawings, in which:
As defined herein, a “testflow” is any portion of a test program that is used to specify the type, number or order of tests that may be executed during circuit test. Testflow context information may comprise any information that assists in defining what portion of a test program is being executed. By way of example, testflow context information may comprise information such as a test suite designator, a port designator, a vector label, a vector designator, or a pin designator. Testflow context information may also comprise a loop designator and/or loop iteration designator for each of a number of loop layers (e.g., nested loops) that have been entered during execution of a testflow. As used herein, the term “designator” encompasses a string, number or any other means that can be used to designate a test suite, loop or other testflow context.
If one or more test number factors have been specified for one or more levels of the current testflow context, the test number factors are used 104 by the method 100 to determine a base number (e.g., a beginning number or reference number) for a current test number range. Otherwise, the base number is set to a default base number.
In one embodiment of the method 100, the base number is compiled by aggregating (e.g., summing or multiplying) a plurality of test number factors that have been specified for various levels of the current testflow context. By way of example, the test number factors may comprise increments or addends that are specified at any or all of: a loop level, a test suite level, or a subtest level.
In another embodiment of the method 100, a user may only be allowed to specify a single base number per testflow context. In this embodiment, the base number for the current test number range is determined by merely setting the base number equal to the user-specified base number. In this method, there is no aggregation of test number factors. However, a user may still provide base numbers at various points in a testflow, thereby causing certain test numbers to be grouped, for example. Further, because the base numbers are set contextually, test numbers that are assigned for a later test suite do not need to continue from the test numbers assigned for an earlier test suite. Further, if a base number is specified for one test suite, it is not automatically preserved for use with the next test suite.
Upon execution of a subtest in the testflow, the result of the subtest is then assigned 106 a next test number in the current test number range. A “subtest”, as defined herein, may be a test that produces multiple test results, but is preferably a test or portion of a test that produces only a single test result.
Upon entry into the test suite BBB, the testflow context then changes to “BBB:L1”. Note that, for ease of reading, the testflow contexts shown in
Upon first entering Loop_Y, the testflow context changes to “L1:L1”. The identities of Loop_X and Loop_Y are therefore inferred from the number and order of loop iterations maintained in the testflow context. However, the identities of the loops could also be called out with specificity, such as by noting the context as “X1:Y1”.
Various contexts of the testflow 200 are associated with test number factors. That is, Loop_X is associated with the addend 10,000, test suite BBB is associated with the addend 200, test suite CCC is associated with the addend 220, Loop_Y is associated with the addend 2000, and test suite DDD is associated with the increment 5. Adjacent each testflow context,
If a test number factor is provided at a loop level (e.g., the addend 10,000 associated with Loop_X), the loop's test number factor may be factored into a base number repeated times. For example, consider the execution of test suite DDD during the second iteration of Loop_X and third iteration of Loop_Y. The base number for this context can be calculated as (10,000*2)+(2,000*3), or 26,000.
Assume now that each of the test suites 202-210 shown in
Note that, for some testflows, different contexts of the testflow might intentionally (or unintentionally) share the same test number range. However, test numbers assigned to the two test suites will not collide, because each subtest draws a “next number” from the range, regardless of whether other test suites have already drawn numbers from the range.
Also note that two or more test suites may not only have the same base number, but may be associated with test number ranges that overlap or are interleaved. For example, if two test suites were respectively associated with base numbers of 1200 and 1201, and an increment of five, one test suite might be associated with the test numbers 1200,1205 and 1210, while the other test suite might be associated with the test numbers 1201, 1206 and 1211. An overlap of test numbers might similarly result from test suites that are respectively associated with the base numbers 1200 and 1301, and an increment of two.
If the base number that is compiled for the current test number range is new, the base number may be used to initialize a new test number range in a database 400 of test number ranges. Then, for each test number range in the database 400, the test numbers that have been assigned from the test number range may be tracked. One way to do this is to store each range 402 along with the maximum test number 404 that has been assigned from the range. Then, each time a new test number is assigned from a range, its previous maximum test number may be incremented. Depending on the test factors that a user has assigned to a testflow, the increment may be a default increment, or an increment that a user has specified for a particular level or levels of the testflow (e.g., an increment that is associated with a level of a current testflow context).
As test numbers are assigned to results, a test number database may be compiled by storing each test number along with the base number from which it was derived. Optionally, the test number database may be integrated with a results database, such that a result, its test number, and the base number from which the test number was derived, are all stored in the same database. A portion of such a database 500 is shown in
After storing the database 500 or 700, but prior to a subsequent testflow execution, the database 500 or 700 may be read to identify the various base numbers stored therein. For each identified base number, a test number range may be initialized, and the database 500 or 700 may be parsed to determine the extent of test numbers that have already been derived from the test number range. Then, during a subsequent testflow execution, the initialized test number ranges may be used to assign any new test numbers corresponding to the initialized test number ranges.
In one embodiment, the method 100 may be combined with the method for assigning test numbers disclosed in the United States patent application of Robert S. Kolman, et al. entitled “Method and Apparatus for Assigning Test Numbers” (Atty. Dckt. No. 10040433-1, filed the same day as this application). In accordance with this combination,
Turning again to the exemplary testflow 200, upon execution of the first subtest in the testflow 200, index information comprising an identifier of the subtest (Subtest1) and the current testflow context information (AAA) is used to index a database of test numbers. If this is the first execution of the testflow 200, the database will be empty, and a new test number (e.g., 1) will be assigned to the result of Subtest1. The new test number (1) and index information (AAA:Subtest1) will also be associated in the database. During the first execution of the testflow 200, these steps continue, with the use of each successive index resulting in a database “miss”, thereby causing a new test number, its associated index information (and possibly the base number from which it was derived) to be added to the database. Thus, after a first execution of the testflow 200, the database of test numbers 700 shown in
Preferably, each of the subtests within a test suite is provided a unique subtest name, and enough testflow context information is maintained to ensure that each index into the database of test numbers 700 forms a unique subtest identifier. It is also preferred that each new test number entered into the database 700 is unique from all other test numbers in the database. However, the method 400 can often provide useful test numbers even when the above controls are not maintained.
Any of the above methods may be implemented using program code. By way of example,
As shown, the test number engine 1000 may comprise code 1002 to, if one or more test number factors have been specified for one or more levels of the current testflow context, use the test number factors to determine a base number for a current test number range, or otherwise set the base number to a default base number. In one embodiment, the code 1002 does this by aggregating a plurality of test number factors that have been specified for various levels of a current testflow context. The program code also comprises code 1004 to, upon execution of a subtest in the testflow, assign a result of the subtest a next test number in the current test number range. In one embodiment of the test number engine 1000, the code 1006 increments a previous maximum test number that has been assigned from the current test number range, by an increment specified for a level of the current testflow context.
While illustrative and presently preferred embodiments of the invention have been described in detail herein, it is to be understood that the inventive concepts may be otherwise variously embodied and employed, and that the appended claims are intended to be construed to include such variations, except as limited by the prior art.