The application provides a
test data closed-loop generation and runtime backwrite reinjection method, device, equipment and medium, and relates to the technical field of
automation testing; the method generates a data requirement
label in a preset format by analyzing the
precondition,
test data and expected result field of a
test case; the
label is used as a matching condition to query and detect reusable data in real time from a current environment isolation registry, and the data is automatically created when a hit is missed or invalid; after
verification, the data is backfilled to an environment configuration file and injected into a
test script; background management class scripts are preferentially executed, runtime data is captured and standardized as runtime constants, and the front-end script is executed for
verification; when it is detected that the data does not meet the state requirement or the
verification condition, a self-healing process of reanalysis, reconstruction, verification, backfilling and retry is triggered; the
test data is automatically generated by the
test case, managed according to the environment isolation and delivered in a
closed loop across stages, and the test stability and data
traceability are improved.