Previous: Brick Configuration FilesUp: Brick User GuideNext: Instrumentation File

Addanc Reference Manual
Addanc User Guide

Addanc HomeIndexTable of Contents

Brick User Guide


Script Files

Script file XML Specification

The Addanc script file lists the specific URLs that should be accessed during a test run. Each Virtual Client will generate  HTTP/HTTPS Post or Get transactions to the URLs specified in the script file. Multiple URLs may be grouped into pages (representing either framesets or the basic HTML of a page and its associated graphics.) Pages and individual URLs may be given user specified identification strings that can be used as identification tags when analyzing the response time instrumentation files..

The specific script XML specifications are:

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>
  <add
field key="key" value="value">
 </
querystring>
</url>
Specify a query string to be attached to the specified URL.
<url>
 <f
ormfield 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.

Sample Script XML

The following is a properly formatted AddancBrick script:

<?xml version="1.0" encoding="iso-8859-1"?>
<script id ='MyScript'>
    <page id="Page1">
        <url id="TestSite">http://testsite.downright.com/</url>
        <wait>1.000</wait>
    </page>
    <page id='PageA'>
        <url id="Potus">http://testsite.downright.com/cgi-bin/potus-v1</url>
        <wait>2.000</wait>
    </page>
    <page id='PageB'>
        <url>http://testsite.downright.com/cgi-bin/westwing.py</url>
        <url>http://testsite.downright.com/images/whlogo-big-stripe.gif</url>
        <url>http://testsite.downright.com/images/whfront1.jpg</url>
        <wait>4.000</wait>
    </page>
</script>


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