# One config file vs a variety of config files(config file per test)

**URL:** <https://verificationacademy.com/forums/t/one-config-file-vs-a-variety-of-config-files-config-file-per-test/32467>\
**Category:** UVM\
**Tags:** UVM, configuration, configdb\
**Created:** [October 30, 2016, 5:03pm UTC](https://verificationacademy.com/forums/t/one-config-file-vs-a-variety-of-config-files-config-file-per-test/32467 "2016-10-30T17:03:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saritr](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/df705f/32.png) [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Post date:** [October 30, 2016, 5:03pm UTC](https://verificationacademy.com/forums/t/one-config-file-vs-a-variety-of-config-files-config-file-per-test/32467/1 "2016-10-30T17:03:44Z")

</div>

I have varaibles in the sequence and in the transaction that I want to change each test.

What is the best option? To have config file to each test, or to have one config file and set the val of the varaibles in the test file (uvm\_test)?

---

<div class="post-metadata">

**Author:** ![mayurkubavat](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/a9a28c/32.png) [@mayurkubavat](https://verificationacademy.com/forums/u/mayurkubavat)\
**Post date:** [November 2, 2016, 3:26pm UTC](https://verificationacademy.com/forums/t/one-config-file-vs-a-variety-of-config-files-config-file-per-test/32467/2 "2016-11-02T15:26:31Z")

</div>

_In reply to [saritr](https://verificationacademy.com/forums/t/one-config-file-vs-a-variety-of-config-files-config-file-per-test/32467):_

You can have a common configuration class object with all different parameters. Direct/randomize it from the test and set/get it using config\_db.
