In reply to Yash_wanth12345:
There are 2 Issues with your code ::
[ 1 ] The 1st string Argument to set_inst_overide_by_type is “relative_inst_path” . . You have passed Absolute Path !! ( Error 1 )
[ 2 ] The hierarchy of agent in 1st argument is Incorrect .
You start sequence on fifo_agt whereas in the string argument you have written fifo_agt1 ( Error 2 )
Change to the following in build_phase() of test ::
set_inst_override_by_type("fifo_env.fifo_agt.*",uvm_fifo_transaction::get_type(),child_fifo_transaction::get_type());
You would observe child_fifo_transaction being created by Factory !!