Hi, Can anybody give me the shortcut of specifying in testcase2 to pick up TOP_SEQ_NEW instead of TOP_SEQ without following entire hierarchy?

======> Existing Test Hierarchy <======

TESTCASE1:

 TOP_ENV

      TB_ENV_CFG

            TOP_SEQ

                 ENET_SEQ

======> Corner case new test Hierarchy <======

TESTCASE2 (No changes here)

 TOP_ENV                                 (No changes here)

      TB_ENV_CFG                     (No changes here)

            TOP_SEQ_NEW           (Changes made in this seq for corner case)

                 ENET_SEQ _NEW   (Changes made in this seq for corner case)

My Solution-1 (Entire hierarchy change)

TESTCASE2 (Just call ENV_NEW, rest of the code is same)

 TOP_ENV_NEW                      (Just call ENV_CFG_NEW, rest of the code is same)

      TB_ENV_CFG_NEW          (Just call TOP_SEQ_NEW, rest of the code is same))

            TOP_SEQ_NEW           (Changes made in this seq)

                 ENET_SEQ _NEW   (Changes made in this seq)

My Solution-2 (From the test override modified tow new seq)

TESTCASE2 (Override TOP_SEQ & ENET_SEQ with *_NEW)

 TOP_ENV                                 (No changes here)

      TB_ENV_CFG                     (No changes here)

            TOP_SEQ_NEW           (Changes made in this seq)

                 ENET_SEQ _NEW   (Changes made in this seq)

In reply to Jarvis_2304:

This is exactly what the UVM factory is for.