How to set variable from test to a specific sequence?

In reply to warnerrs:

Hi Warners,

Thanks for the reply. In the link that you have sent has example where uvm components are set and get. Here I have a config variable in the test which I want to set and get the variable.

So when I set a value say 2 from the testcase, and when I do a get I should get the value 2. How can I do this using uvm_config_db set and get methods.

Thanks