Automation with dsClient Terminal
One of the automation options provided by dsTest is controlling dsClient Terminal with scripts. This allows you to develop automation scripts in the tool of your choice and embed dsClient command execution. You can read more about all of the features provided for test automation in Automated Testing Support.
You'll find examples using several scripting languages in /usr/local/devsol/dsTest/lib/.
The –c option enables you to specify a command as part of invoking dsClient:
dsClient -c <command>
In this usage dsClient executes the specified command, prints any response received from dsTest to standard out and then exits.
Note that the dsTest commands must be enclosed in quotes if there is a space character in the command.
dsClient -c "hlr:example_hlr start"
starts the HLR Node named example_hlr
dsClient -c "wait 1000"
causes the a wait period of one second
dsClient -c "hlr:example_hlr action event::cancel rate::10"
starts a cancel event at the rate of 10 events per-second on the HLR node example_hlr
The following examples are commands using TCL exec:
The examples below use the variable $dsClient, which equates to /usr/local/devsol/bin/dsClient.
exec $dsClient -d <IP_address> -c "<node_name> start"
sends a start command to the node node_name on the dsTest server at IP_address
exec $dsClient -d <IP_address> -c "source ConfigFile.xml"
sources the file ConfigFile.xml on the dsTest server at IP_address
exec $dsClient -d <IP_address> -c <node_name> "diameter socket ip_address <IP_address_2>"
sets the diameter socket IP address to IP_Address_2 on the node named Node_Name on the dsTest server at IP_Address
Refer to Commands and Syntax for more information about the syntax used to address elements, attributes, and values.