In reply to Sriram Yalavatti:
After the connect_phase the testbench structure is stable and cannot be modified. But you can do some other thinks like displaying the topology etc. See here an example:
function void end_of_elaboration_phase(uvm_phase phase);
super.end_of_elaboration_phase(phase);
`uvm_info(get_type_name(), $psprintf("Verbosity level is set to: %d", get_report_verbosity_level()), UVM_MEDIUM)
uvm_top.print_topology();
`uvm_info(get_type_name(), "Print all Factory overrides", UVM_HIGH)
factory.print();
uvm_top.set_report_id_action_hier("ILLEGALNAME", UVM_NO_ACTION);
endfunction : end_of_elaboration_phase