The invention provides an automatic generation method and
system for an expected function security scenarized
test case, and the method comprises the steps: constructing an SOTIF real scene
library based on an AI model, and the real scene
library comprises scene
metadata, an environment parameter template, an interference variable template and a security criterion template; a scene keyword input by a user is received,
keyword analysis, scene
library matching, parameter instantiation and case
assembly are carried out through an AI model, and a scene
test case is automatically generated; and scene logic
verification is carried out according to the generated test cases, in response to meeting the scene logic
verification, the priority
score of each
test case is calculated based on a pre-constructed priority
ranking model, and the sequence of the test cases is determined according to the priority scores. According to the method, the test coverage rate is improved, the research and
development period is shortened, the generated use case meets the ISO21448 standard, the method can be directly used for expected function safety test
verification, and safe development and landing of intelligent driving products are supported.