PDA

View Full Version : how to update the variable before new constructor



kpsubu
04-20-2009, 05:25 AM
Hi,

can anyone sove my problem.

i am using variable in the driver and it is also registered in the factory.

i want assign the value of variable from test.

it should update the value of variable before driver constructor execution.

How to do it.

Regards,
Subramaniam

dave_59
04-20-2009, 07:50 AM
Subramaniam,

You can't assign to a variable before it exists, which is what happens during construction.

What you can do is make an assignment to a config variable in your test using set_config, and read that variable back using get_config in your build phase.

Dave

kpsubu
04-20-2009, 10:02 PM
Hi Dave,

Thanks a lot.

It is working fine.

Best regards,
Subbu