![]() ![]()
|
Addanc Reference Manual
|
![]() ![]() |
Brick User Guide |
| XML Specification |
Notes |
| <script
id="Script_ID"> ...
script page entries ...
</script> |
The id
specification is mandatory. The id
argument must be surrounded by single or double quotes. The <script> entry contains one or more <page> entries. |
| <page
id="Page_ID"> ...
page URL entries ...
<wait>N.NNN</wait> </page> |
The id
specification is optional. The id argument
must be surrounded by single or double quotes. The <wait>
entry specifies the time, in seconds, to wait before proceeding to the
next page in the script after fetching the last <url>
entry in this page. If a <wait>
entry is not specified, Addanc uses a wait time of 0.000 seconds.A page entry contains one or more <url> entries. |
| <url
id="url_ID"> HTTP/HTTPS
entries
</url> <url id="url_id" op="GET|POST" > HTTP/HTTPS URL </url> |
The id
specification is optional. The id argument
must be surrounded by single or double quotes. The scheme of the specified URL may be either http:// or https:// The op specification is used to select the http method used to fetch the specified URL. The op specification may be omitted, it defaults to GET. |
| <url> <querystring> <addfield key="key" value="value"> </querystring> </url> |
Specify
a query string to be attached to the specified URL. |
| <url> <formfield name="key" TYPE = "HIDDEN|RADIO|TEXT|OPTION..." value="value"> </formfield> </url> |
Specify
the form fields and contents to be returned as a POST for this form. Note: The "value" of the form field may be specified either through the value option inside the formfield specification. |
The following is a properly formatted AddancBrick script that includes form submits and querystrings:
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Enter your XML here -->
<script id ='CGI_Test_001' code="code_file_name.py">
<page id='WestWingHome'>
<url id="Potus">http://addanc.testsite.downright.com/cgi-bin/potus-v1</url>
<wait>2.000</wait>
</page>
<!-- Try some operation tag syntax -->
<page id='WestWingLogin'>
<url id="PotusLogin" op="post">http://addanc.testsite.downright.com/cgi-bin/potus-v1
<formfield name="loginid" type="text">joeg</formfield>
<formfield name="passwd" type="password">geoj</formfield>
</url>
<wait>2.000</wait>
</page>
<page id='WWFederalist'>
<url id="FederalistQuery" op="get">http://addanc.testsite.downright.com/cgi-bin/potus-v1
<querystring>
<addfield key="dz" value="joeg" />
<addfield key="pp">ral</addfield>
</querystring>
</url>
</page>
<page id='WWQuaker'>
<url id="QuakerQuery" op="post">http://addanc.testsite.downright.com/cgi-bin/potus-v1
<formfield name="pp" type="radio"></formfield>
<formfield name="re" type="option">Quaker</formfield>
<formfield name="dz" type="hidden">ok</formfield>
</url>
</page>
<page id='WestWingLogout'>
<url id="Logout">http://addanc.testsite.downright.com/cgi-bin/potus-v1
<querystring>
<addfield key="loginid" value="joeg" />
<addfield key="logout">ok</addfield>
</querystring>
</url>
</page>
</script>

Previous: Brick
Configuration Files Up: Brick
User Guide Next: Instrumentation
File
Page Updated: 01/20/2004