In reply to saikanthan7798:
You have a race condition where you are starting your test prior to setting the testname, hence the generator is creating nothing.
You should be sequencing getting/setting the test name and creating/running your environment at the top level. Don’t use an intermediate tb to start the environment.