Patent ID: 8140901

Claim:
A method for creating a self-generating test program, the method comprising: generating a plurality of groups of instructions and storing the groups of instructions in an instruction group table, wherein instructions sharing a same instruction format are included in a same group; generating a plurality of test cases and storing information pertaining to each test case in a test program information table, wherein each test case includes one or more instructions from one or more of the plurality of groups; and performing an execution cycle, the execution cycle including: selecting a first test case for execution, wherein on the condition that a test case has been flagged as a next test case to execute in the execution cycle, the flagged test case is selected as the first test case; executing the first test case; introducing a break in the execution of the first test case and during the break in execution: selecting a second test case from among the plurality of test cases that is different from the first test case; generating a new test case from the selected second test case; and assigning a flag to the new test case that indicates that the new test case is the next test case to execute in the execution cycle; and resuming execution of the first test case, wherein the execution cycle is repeated on the condition that an execution result of the first test case is validated.