The application discloses a vehicle
network simulation test environment construction method and
system based
on protocol definition driving, relates to the field of automobile electronic test technology, and loads new and old protocol definition files to extract physical semantic tuples containing
signal physical meaning and
data type conversion functions to generate a normalized intermediate representation layer, constructs an
abstract syntax dependency graph, performs semantic level difference calculation, marks semantic change source nodes and
layout change source nodes in the
abstract syntax dependency graph, calculates an influence
radius through a
graph traversal algorithm according to the out-degree and in-degree of the change source nodes, identifies affected function clusters affected, extracts test cases covering the changed signals from a historical
test sequence library based on the affected function cluster identification to generate a minimum disturbance regression
test set, and outputs an incremental configuration description file used for indicating a virtual
electronic control unit identification
list that needs to be locally reloaded in a
simulation environment, so that intelligent
pruning of regression test cases and local reloading of a
simulation model are realized.