The application discloses a kind of chaos test
fault injection methods and systems for financial multi-corporation, belong to
software testing technical field.The method includes: in
enterprise service bus entrance routing node and
message queue consumer end deployment unified message interceptor, intercept business message;Extract strategy chain containing multiple extraction strategies executed according to priority is used to extract business field from different positions of message and aggregate into
business context object;
Business context object is matched with the rule in fault rule base supporting multi-dimensional combination matching, and the rule that matches successfully is activated;According to the rule activated,
fault injection is executed in message transmission layer;After sending to downstream
system after implanting
fault injection mark in message header, and the mark is removed after
processing is completed.The application reduces the deployment cost of chaos test by unified interception in transmission layer, multi-source business field extraction, multi-dimensional
rule matching and fault mark transparent transmission, and realizes unified fault injection without downstream invasion.