Set_type_override_by_type

i am trying to override the seq1 with seq2 using the set_typr_override_by_type but when i run the code the sequence is generating all zeros. can any one please give the solution for this

In reply to SHRI12326:

I hope you are overriding in the build_phase of testcase.
After overriding, add the code “factory.print();” to check if seq1 was replaced by seq2

//TC BUILD PHASE
virtual function void build_phase(...);
//seq1::type_id::set_type_override(seq2::get_type);
...
factory.print();      
endfunction