Token 'env' should be a valid type. Please declare it virtual if it is an Interface

In reply to rajashekar.merugu:

where is your EDA playground link?
uvm_test is a component, and you should use

`uvm_component_utils

to register it with factory, not object.

Consequently, use this “new” prototype for a component:

function new( string name, uvm_component parent );
  super.new( name ,parent );
endfunction

Your run_phase should look like (inherited from uvm_component->uvm_test):

task run_phase(uvm_phase phase);
endtask

See if any of that helps first…