The present invention provides a
test case generation method, device,
system, and medium based on an AI model. The method includes: obtaining a
requirement document, at least one title keyword, and business keywords input by a user, and being able to automatically
traverse the
requirement document to automatically distinguish different requirement modules by the target title and create corresponding first and second documents; when traversing to a target image, extracting first content from the target
image based on an OCR module and writing it into the first document, and being able to
record the first content recognized by the OCR module from the
flowchart through the first document; when traversing to a new target title, triggering the input of the first document into the AI model to obtain target test cases and first
inference information, improving the generation efficiency of test cases, and at the same time recording the
inference information of the test cases in the first document, providing a basis for the
inference process for testers to judge the reliability of the test cases.