Hello , I am trying to override following sequences from build_phase of test .
virtual function void build_phase(uvm_phase phase);
env_configuration::type_id::set_type_override(config_one::get_type()); //config_one is a class having configurations
sequence_base::type_id::set_type_override(default_sequence_1::get_type());
env_configuration::type_id::set_type_override(config_two::get_type()); // different configurations .
sequence_base::type_id::set_type_override(default_sequence_2::get_type());
// Execute the build_phase of AFTER all factory overrides have been created.
super.build_phase(phase);
endfunction
I understand why above code is not working (only the last ovverides executes ). However I would like to know how do I override it in this way sequentially , one after the another . So first set of ovverides executes then another. The requirement is I can changes configurations from overrides .