See the Rational Test Virtualization Server Reference Guide for more information on scenarios on Rational Test Control Panel.
Important: To improve forward compatibility of clients of the REST API, no manual construction of URLs should be performed, except for the construction of the Query URL.
URLs should be generated by resolving the relative hrefs provided in the XML. These should be resolved against the URL that they were returned from.
<scenarios> <scenario id="id" name="name" href="relative URL" /> <scenario id="id" name="name" href="relative URL" /> ... </scenarios>
<scenario id="" name="" owner="owner username" status="RUNNING|STOPPING|STARTING|STOPPED"> <stubs> <stub id="UUID" name="name" version="1.1" href="relative URL"> <configuration> <tags> <tag name="my tag 1" value="default value" /> <tag name="my tag 2" value="" /> <!-- Default to empty string --> <tag name="my tag 3" /> <!-- Default to null --> ... </tags> <behaviours> <behaviour name="behaviour instance name"> <parameters> <parameter name="parameter name" value="default value" /> ... </parameters> </behaviour> ... </behaviours> <logging level="DEFAULT|NONE|NORMAL|DEBUG" /> <response-time distribution="FIXED|UNIFORM|GAUSSIAN" minimum="0" maximum="1000" /> </configuration> <agents> <agent host="host name or IP (as specified by agent)"> <attributes> <attribute value="attribute name" /> ... </attributes> </agent> </agents> </stub> ... </stubs> </scenario>
<start-scenario> <settings> <before> <stop-stubs option="all|operations" /> </before> </settings> </start-scenario>
To start the scenario with default settings, just send:
<start-scenario />
There is only ever at most one instance of a scenario at any given time.