qacafe - ip test solutions
Knowledge Base > How can I override CDRouter configuration file settings on the command-line?

How can I override CDRouter configuration file settings on the command-line?

Test Execution

It is possible to override or add additional testvar settings directly from the command-line. This can be done using the -testvar option. The format for the -testvar option is testvarName=value.

Examples

Here's a simple example using a single testvar:

  # buddy -testvar eapType=eap-sim -module eapol.tcl -trace

Here's another example using a two testvars:

  # buddy -testvar wanIspIp=12.12.12.1 -testvar wanIspAssignIp=12.12.12.2 -module basic.tcl

If the testvar is part of a testvar_group, the -testvar_group option should be used instead. The format for the -testvar_group option is group:testvarName=value:

  # buddy -testvar_group lan2:lanSSID=testnet

If the value contains any whitespace then it must be enclosed in quotes:

  # buddy -testvar firewallTcpOpenPorts="22 443"

Related articles that may also be helpful: