Hello,
I'd like to set variables based upon attribute values found by my tests. How can this be done?
Thanks,
AC
Dynamically Setting Variables?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Dynamically Setting Variables?
Hi,
you can simply access the module variables within user code items of your recordings and overwrite them.
If you have e.g. a variable called "$test" in your recording, you can overwrite it by adding a user code item to your recording and adding following line of code to this user code item:
Global parameters - recordings' variables binding
Regards,
Tobias
Support Team
you can simply access the module variables within user code items of your recordings and overwrite them.
If you have e.g. a variable called "$test" in your recording, you can overwrite it by adding a user code item to your recording and adding following line of code to this user code item:
test = "<your value>";If you'd like to overwrite parameters of your test case please have a look at following forum post which might help you solving your issue:
Global parameters - recordings' variables binding
Regards,
Tobias
Support Team