Extend task: main_phase in extended test class, members of the base task are not visiable

In reply to Michael54:

main_drain_time is not a member of the base_test class, it is a local automatic variable of the method base_test::main_phase. You cannot access automatic variables from outside the scope of their declaration.

You probably want to move the declaration of main_drain_time into the base class.