The invention discloses an automatic framework model for
program structure analysis, which includes the following five basic modules: a
syntax analyzer, which is a complete compiling module, and the objects processed are a subset of standard languages; a strategy configurator, which is based on The test method to be adopted is used to design the support of the test model for
specific test activities; the instruction generator calculates the test work to be processed when the program is dynamically executed, generates a test
processing module and inserts it into the source program, and constitutes a
test program with self-contained test information , submitted to the
simulation execution module to run; the
test case generator, the test activity is repeated according to the completeness of the test; the instruction
simulation executor provides a
simulation execution environment inside the test framework. Compared with the prior art, the automatic framework model oriented to
program structure analysis can complete the
automatic testing process of the program, can reduce manual labor, improve the
automation degree of testing, has strong practicability, and is easy to popularize.