The invention discloses an automatic
test case generation and execution method, which comprises the following steps: obtaining input content uploaded by a user, and analyzing the input content uploaded by the user to obtain structured key data; generating a preliminary
test case according to the structured key data and a general rule of a
knowledge base, optimizing the preliminary
test case according to historical data and a
code coverage rate, and generating a test case; compiling a
test script according to the test case, and executing the
test script; analyzing and
processing the
test execution result, and generating an execution structure and a test
case analysis report; and performing optimization
processing on the
test execution result and the historical data, and dynamically adjusting a
test strategy according to an optimization
processing result. The invention further discloses a
system for realizing the automatic test case generation and execution method. The
test efficiency is improved, the test coverage rate is increased, the execution performance is improved, and automatic
continuous testing is supported.