Hierarchical reference name component lookup failed for 'uvm_test_top'

In reply to Reuben:

I do not understand your question. Your “testcase” has the env_o variable in it. There is no need to get the name of the test.