# How UVM knows "my\_test" class? why/where do we need to import "my\_pkg::\*" that holds the class "my\_test"?

**URL:** <https://verificationacademy.com/forums/t/how-uvm-knows-my-test-class-why-where-do-we-need-to-import-my-pkg-that-holds-the-class-my-test/40545>\
**Category:** UVM\
**Tags:** import, uvm-package, UVM, factory, run\_test\
**Created:** [June 19, 2022, 1:45pm UTC](https://verificationacademy.com/forums/t/how-uvm-knows-my-test-class-why-where-do-we-need-to-import-my-pkg-that-holds-the-class-my-test/40545 "2022-06-19T13:45:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [June 19, 2022, 4:40pm UTC](https://verificationacademy.com/forums/t/how-uvm-knows-my-test-class-why-where-do-we-need-to-import-my-pkg-that-holds-the-class-my-test/40545/4 "2022-06-19T16:40:09Z")

</div>

_In reply to [uriyam](https://verificationacademy.com/forums/t/how-uvm-knows-my-test-class-why-where-do-we-need-to-import-my-pkg-that-holds-the-class-my-test/40545/3):_

Of course you can include this file. In your simple environment it does not make any difference.  
Packaging files belonging together like agent data in a package allows you to import these data in any place you need it like a different project.

---

_[View the full topic](https://verificationacademy.com/forums/t/how-uvm-knows-my-test-class-why-where-do-we-need-to-import-my-pkg-that-holds-the-class-my-test/40545)._
