Im not sure why you need to do this, but i think you can do
val= $root.testbench.env.variable
val is transaction class local variable
Im not sure why you need to do this, but i think you can do
val= $root.testbench.env.variable
val is transaction class local variable