# The Grinder 3.4
# HTTP script recorded by TCPProxy at Apr 14, 2010 6:14:58 PM

from net.grinder.script import Test as StandardTest

import script_offset

def Test(number, description):
    # Adjust to the appropriate offset.
    return StandardTest(number + script_offset.get_offset(), description) #@UndefinedVariable

from net.grinder.script.Grinder import grinder
from net.grinder.plugin.http import HTTPPluginControl, HTTPRequest
from HTTPClient import NVPair
connectionDefaults = HTTPPluginControl.getConnectionDefaults()
connectionDefaults.setFollowRedirects(0)
httpUtilities = HTTPPluginControl.getHTTPUtilities()

import thread_data as td #@UnusedImport
import text_processor as tp #@UnusedImport
import pool_data as pd #@UnusedImport

# To use a proxy server, uncomment the next line and set the host and port.
# connectionDefaults.setProxyServer("localhost", 8001)

# These definitions at the top level of the file are evaluated once,
# when the worker process is started.

connectionDefaults.defaultHeaders = \
    [ NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322)'), ]

headers0= \
    [ NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*'),
        NVPair('Referer', 'http://10.1.3.16:8080/sustain/cms/case?id=3914617&formId=309&caseId=3914617'), ]

headers1= \
    [ NVPair('Accept', '*/*'),
        NVPair('Referer', 'http://10.1.3.16:8080/sustain/cms/case?caseNumber=10RCT000612'), ]

headers2= \
    [ NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*'), ]

headers3= \
    [ NVPair('Accept', '*/*'),
        NVPair('Referer', 'http://10.1.3.16:8080/sustain/cms/user/event/schedule?dispatch=onView&id=3914617&caseId=3914617'), ]

headers4= \
    [ NVPair('Referer', 'http://10.1.3.16:8080/sustain/cms/user/event/schedule?dispatch=onView&id=3914617&caseId=3914617'),
        NVPair('Accept', 'text/javascript, text/html, application/xml, text/xml, */*'), ]

headers5= \
    [ NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*'),
        NVPair('Referer', 'http://10.1.3.16:8080/sustain/cms/user/event/schedule?dispatch=onView&id=3914617&caseId=3914617'), ]

headers6= \
    [ NVPair('Accept', '*/*'),
        NVPair('Referer', 'http://10.1.3.16:8080/sustain/cms/user/event/schedule?dispatch=onScheduleEvent'), ]

url0 = grinder.getProperties().getProperty('ecourt.url', 'http://10.1.3.16:8080')

# Create an HTTPRequest for each request, then replace the
# reference to the HTTPRequest with an instrumented version.
# You can access the unadorned instance using request101.__target__.
request101 = HTTPRequest(url=url0, headers=headers0)
request101 = Test(101, 'GET navigation').wrap(request101)

request102 = HTTPRequest(url=url0, headers=headers0)
request102 = Test(102, 'GET case').wrap(request102)

request103 = HTTPRequest(url=url0, headers=headers1)
request103 = Test(103, 'GET close.gif').wrap(request103)

request104 = HTTPRequest(url=url0, headers=headers1)
request104 = Test(104, 'GET skin.css').wrap(request104)

request105 = HTTPRequest(url=url0, headers=headers1)
request105 = Test(105, 'GET base.css').wrap(request105)

request106 = HTTPRequest(url=url0, headers=headers1)
request106 = Test(106, 'GET tabbase.css').wrap(request106)

request107 = HTTPRequest(url=url0, headers=headers1)
request107 = Test(107, 'GET roundedCorners.png').wrap(request107)

request108 = HTTPRequest(url=url0, headers=headers1)
request108 = Test(108, 'GET roundedBorderNS.png').wrap(request108)

request109 = HTTPRequest(url=url0, headers=headers1)
request109 = Test(109, 'GET roundedBorderWE.png').wrap(request109)

request110 = HTTPRequest(url=url0, headers=headers1)
request110 = Test(110, 'GET shadowCorners.png').wrap(request110)

request111 = HTTPRequest(url=url0, headers=headers1)
request111 = Test(111, 'GET shadowNS.png').wrap(request111)

request112 = HTTPRequest(url=url0, headers=headers1)
request112 = Test(112, 'GET shadowWE.png').wrap(request112)

request113 = HTTPRequest(url=url0, headers=headers1)
request113 = Test(113, 'GET shadowC.png').wrap(request113)

request114 = HTTPRequest(url=url0, headers=headers1)
request114 = Test(114, 'GET main-background.jpg').wrap(request114)

request115 = HTTPRequest(url=url0, headers=headers1)
request115 = Test(115, 'GET topnav-icons.png').wrap(request115)

request116 = HTTPRequest(url=url0, headers=headers1)
request116 = Test(116, 'GET eCourt-logo-small.png').wrap(request116)

request117 = HTTPRequest(url=url0, headers=headers1)
request117 = Test(117, 'GET magnifier.png').wrap(request117)

request118 = HTTPRequest(url=url0, headers=headers1)
request118 = Test(118, 'GET corners.png').wrap(request118)

request119 = HTTPRequest(url=url0, headers=headers1)
request119 = Test(119, 'GET arrows-left.png').wrap(request119)

request120 = HTTPRequest(url=url0, headers=headers1)
request120 = Test(120, 'GET eCourt-logo-mini.png').wrap(request120)

request121 = HTTPRequest(url=url0, headers=headers1)
request121 = Test(121, 'GET arrows-right.png').wrap(request121)

request122 = HTTPRequest(url=url0, headers=headers1)
request122 = Test(122, 'GET leftnav_bg.png').wrap(request122)

request123 = HTTPRequest(url=url0, headers=headers1)
request123 = Test(123, 'GET tn.gif').wrap(request123)

request124 = HTTPRequest(url=url0, headers=headers1)
request124 = Test(124, 'GET ln.gif').wrap(request124)

request125 = HTTPRequest(url=url0, headers=headers1)
request125 = Test(125, 'GET case-header-bg.png').wrap(request125)

request126 = HTTPRequest(url=url0, headers=headers1)
request126 = Test(126, 'GET icon-note-add.png').wrap(request126)

request127 = HTTPRequest(url=url0, headers=headers1)
request127 = Test(127, 'GET icon-print.png').wrap(request127)

request128 = HTTPRequest(url=url0, headers=headers1)
request128 = Test(128, 'GET icon-case-status.png').wrap(request128)

request129 = HTTPRequest(url=url0, headers=headers1)
request129 = Test(129, 'GET transparent-white.png').wrap(request129)

request130 = HTTPRequest(url=url0, headers=headers1)
request130 = Test(130, 'GET x.gif').wrap(request130)

request131 = HTTPRequest(url=url0, headers=headers1)
request131 = Test(131, 'GET bg_button_a-selected.png').wrap(request131)

request132 = HTTPRequest(url=url0, headers=headers1)
request132 = Test(132, 'GET bg_button_span-selected.png').wrap(request132)

request133 = HTTPRequest(url=url0, headers=headers1)
request133 = Test(133, 'GET ajax-loader.gif').wrap(request133)

request134 = HTTPRequest(url=url0, headers=headers1)
request134 = Test(134, 'GET caseislandheader-default-bg.png').wrap(request134)

request135 = HTTPRequest(url=url0, headers=headers1)
request135 = Test(135, 'GET caseSubislandheader-default-bg.png').wrap(request135)

request136 = HTTPRequest(url=url0, headers=headers1)
request136 = Test(136, 'GET island-shadow-top-right-corner.png').wrap(request136)

request137 = HTTPRequest(url=url0, headers=headers1)
request137 = Test(137, 'GET island-shadow-bottom-left-corner.png').wrap(request137)

request138 = HTTPRequest(url=url0, headers=headers1)
request138 = Test(138, 'GET spacer.png').wrap(request138)

request139 = HTTPRequest(url=url0, headers=headers1)
request139 = Test(139, 'GET case-toolbar-bg-selected.jpg').wrap(request139)

request140 = HTTPRequest(url=url0, headers=headers1)
request140 = Test(140, 'GET island-shadow-right-repeat.png').wrap(request140)

request141 = HTTPRequest(url=url0, headers=headers1)
request141 = Test(141, 'GET island-shadow-bottom-repeat.png').wrap(request141)

request142 = HTTPRequest(url=url0, headers=headers1)
request142 = Test(142, 'GET island-shadow-bottom-right-corner.png').wrap(request142)

request143 = HTTPRequest(url=url0, headers=headers1)
request143 = Test(143, 'GET casetoolbar-default-bg.png').wrap(request143)

request144 = HTTPRequest(url=url0, headers=headers1)
request144 = Test(144, 'GET cti-view-person.gif').wrap(request144)

request145 = HTTPRequest(url=url0, headers=headers1)
request145 = Test(145, 'GET icon-insert-or-add.png').wrap(request145)

request146 = HTTPRequest(url=url0, headers=headers1)
request146 = Test(146, 'GET icon-special.png').wrap(request146)

request147 = HTTPRequest(url=url0, headers=headers1)
request147 = Test(147, 'GET icon-edit.png').wrap(request147)

request148 = HTTPRequest(url=url0, headers=headers1)
request148 = Test(148, 'GET cti-audit-log.gif').wrap(request148)

request149 = HTTPRequest(url=url0, headers=headers1)
request149 = Test(149, 'GET bg_button_a.png').wrap(request149)

request150 = HTTPRequest(url=url0, headers=headers1)
request150 = Test(150, 'GET bg_button_span.png').wrap(request150)

request151 = HTTPRequest(url=url0, headers=headers1)
request151 = Test(151, 'GET boxminus-blu.gif').wrap(request151)

request152 = HTTPRequest(url=url0, headers=headers1)
request152 = Test(152, 'GET ygtvlinklabel-hover-bg.png').wrap(request152)

request201 = HTTPRequest(url=url0, headers=headers2)
request201 = Test(201, 'GET schedule').wrap(request201)

request202 = HTTPRequest(url=url0, headers=headers3)
request202 = Test(202, 'GET close.gif').wrap(request202)

request203 = HTTPRequest(url=url0, headers=headers3)
request203 = Test(203, 'GET skin.css').wrap(request203)

request204 = HTTPRequest(url=url0, headers=headers3)
request204 = Test(204, 'GET base.css').wrap(request204)

request205 = HTTPRequest(url=url0, headers=headers3)
request205 = Test(205, 'GET tabbase.css').wrap(request205)

request206 = HTTPRequest(url=url0, headers=headers3)
request206 = Test(206, 'GET roundedBorderWE.png').wrap(request206)

request207 = HTTPRequest(url=url0, headers=headers3)
request207 = Test(207, 'GET roundedBorderNS.png').wrap(request207)

request208 = HTTPRequest(url=url0, headers=headers3)
request208 = Test(208, 'GET roundedCorners.png').wrap(request208)

request209 = HTTPRequest(url=url0, headers=headers3)
request209 = Test(209, 'GET shadowCorners.png').wrap(request209)

request210 = HTTPRequest(url=url0, headers=headers3)
request210 = Test(210, 'GET shadowNS.png').wrap(request210)

request211 = HTTPRequest(url=url0, headers=headers3)
request211 = Test(211, 'GET shadowWE.png').wrap(request211)

request212 = HTTPRequest(url=url0, headers=headers3)
request212 = Test(212, 'GET shadowC.png').wrap(request212)

request213 = HTTPRequest(url=url0, headers=headers3)
request213 = Test(213, 'GET main-background.jpg').wrap(request213)

request214 = HTTPRequest(url=url0, headers=headers3)
request214 = Test(214, 'GET topnav-icons.png').wrap(request214)

request215 = HTTPRequest(url=url0, headers=headers3)
request215 = Test(215, 'GET magnifier.png').wrap(request215)

request216 = HTTPRequest(url=url0, headers=headers3)
request216 = Test(216, 'GET eCourt-logo-small.png').wrap(request216)

request217 = HTTPRequest(url=url0, headers=headers3)
request217 = Test(217, 'GET corners.png').wrap(request217)

request218 = HTTPRequest(url=url0, headers=headers3)
request218 = Test(218, 'GET arrows-left.png').wrap(request218)

request219 = HTTPRequest(url=url0, headers=headers3)
request219 = Test(219, 'GET eCourt-logo-mini.png').wrap(request219)

request220 = HTTPRequest(url=url0, headers=headers3)
request220 = Test(220, 'GET arrows-right.png').wrap(request220)

request221 = HTTPRequest(url=url0, headers=headers3)
request221 = Test(221, 'GET leftnav_bg.png').wrap(request221)

request222 = HTTPRequest(url=url0, headers=headers3)
request222 = Test(222, 'GET tn.gif').wrap(request222)

request223 = HTTPRequest(url=url0, headers=headers3)
request223 = Test(223, 'GET ln.gif').wrap(request223)

request224 = HTTPRequest(url=url0, headers=headers3)
request224 = Test(224, 'GET case-header-bg.png').wrap(request224)

request225 = HTTPRequest(url=url0, headers=headers3)
request225 = Test(225, 'GET icon-note-add.png').wrap(request225)

request226 = HTTPRequest(url=url0, headers=headers3)
request226 = Test(226, 'GET icon-print.png').wrap(request226)

request227 = HTTPRequest(url=url0, headers=headers3)
request227 = Test(227, 'GET icon-case-status.png').wrap(request227)

request228 = HTTPRequest(url=url0, headers=headers3)
request228 = Test(228, 'GET transparent-white.png').wrap(request228)

request229 = HTTPRequest(url=url0, headers=headers3)
request229 = Test(229, 'GET x.gif').wrap(request229)

request230 = HTTPRequest(url=url0, headers=headers3)
request230 = Test(230, 'GET bg_button_a.png').wrap(request230)

request231 = HTTPRequest(url=url0, headers=headers3)
request231 = Test(231, 'GET bg_button_a-selected.png').wrap(request231)

request232 = HTTPRequest(url=url0, headers=headers3)
request232 = Test(232, 'GET bg_button_span-selected.png').wrap(request232)

request233 = HTTPRequest(url=url0, headers=headers3)
request233 = Test(233, 'GET bg_button_a.png').wrap(request233)

request234 = HTTPRequest(url=url0, headers=headers3)
request234 = Test(234, 'GET bg_button_span.png').wrap(request234)

request235 = HTTPRequest(url=url0, headers=headers3)
request235 = Test(235, 'GET scheduleEvent.js').wrap(request235)

request236 = HTTPRequest(url=url0, headers=headers3)
request236 = Test(236, 'GET caseislandheader-default-bg.png').wrap(request236)

request237 = HTTPRequest(url=url0, headers=headers3)
request237 = Test(237, 'GET caseSubislandheader-default-bg.png').wrap(request237)

request238 = HTTPRequest(url=url0, headers=headers3)
request238 = Test(238, 'GET img.gif').wrap(request238)

request239 = HTTPRequest(url=url0, headers=headers3)
request239 = Test(239, 'GET input_bg.gif').wrap(request239)

request240 = HTTPRequest(url=url0, headers=headers3)
request240 = Test(240, 'GET plusblu.gif').wrap(request240)

request241 = HTTPRequest(url=url0, headers=headers3)
request241 = Test(241, 'GET minusblu.gif').wrap(request241)

request242 = HTTPRequest(url=url0, headers=headers3)
request242 = Test(242, 'GET icon-loading.gif').wrap(request242)

request301 = HTTPRequest(url=url0, headers=headers4)
request301 = Test(301, 'GET schedule').wrap(request301)

request401 = HTTPRequest(url=url0, headers=headers4)
request401 = Test(401, 'POST schedule').wrap(request401)

request501 = HTTPRequest(url=url0, headers=headers5)
request501 = Test(501, 'POST schedule').wrap(request501)

request502 = HTTPRequest(url=url0, headers=headers6)
request502 = Test(502, 'GET close.gif').wrap(request502)

request503 = HTTPRequest(url=url0, headers=headers6)
request503 = Test(503, 'GET skin.css').wrap(request503)

request504 = HTTPRequest(url=url0, headers=headers6)
request504 = Test(504, 'GET base.css').wrap(request504)

request505 = HTTPRequest(url=url0, headers=headers6)
request505 = Test(505, 'GET tabbase.css').wrap(request505)

request506 = HTTPRequest(url=url0, headers=headers6)
request506 = Test(506, 'GET roundedCorners.png').wrap(request506)

request507 = HTTPRequest(url=url0, headers=headers6)
request507 = Test(507, 'GET roundedBorderNS.png').wrap(request507)

request508 = HTTPRequest(url=url0, headers=headers6)
request508 = Test(508, 'GET roundedBorderWE.png').wrap(request508)

request509 = HTTPRequest(url=url0, headers=headers6)
request509 = Test(509, 'GET shadowCorners.png').wrap(request509)

request510 = HTTPRequest(url=url0, headers=headers6)
request510 = Test(510, 'GET shadowNS.png').wrap(request510)

request511 = HTTPRequest(url=url0, headers=headers6)
request511 = Test(511, 'GET shadowWE.png').wrap(request511)

request512 = HTTPRequest(url=url0, headers=headers6)
request512 = Test(512, 'GET shadowC.png').wrap(request512)

request513 = HTTPRequest(url=url0, headers=headers6)
request513 = Test(513, 'GET main-background.jpg').wrap(request513)

request514 = HTTPRequest(url=url0, headers=headers6)
request514 = Test(514, 'GET topnav-icons.png').wrap(request514)

request515 = HTTPRequest(url=url0, headers=headers6)
request515 = Test(515, 'GET magnifier.png').wrap(request515)

request516 = HTTPRequest(url=url0, headers=headers6)
request516 = Test(516, 'GET eCourt-logo-small.png').wrap(request516)

request517 = HTTPRequest(url=url0, headers=headers6)
request517 = Test(517, 'GET corners.png').wrap(request517)

request518 = HTTPRequest(url=url0, headers=headers6)
request518 = Test(518, 'GET arrows-left.png').wrap(request518)

request519 = HTTPRequest(url=url0, headers=headers6)
request519 = Test(519, 'GET eCourt-logo-mini.png').wrap(request519)

request520 = HTTPRequest(url=url0, headers=headers6)
request520 = Test(520, 'GET arrows-right.png').wrap(request520)

request521 = HTTPRequest(url=url0, headers=headers6)
request521 = Test(521, 'GET leftnav_bg.png').wrap(request521)

request522 = HTTPRequest(url=url0, headers=headers6)
request522 = Test(522, 'GET tn.gif').wrap(request522)

request523 = HTTPRequest(url=url0, headers=headers6)
request523 = Test(523, 'GET ln.gif').wrap(request523)

request524 = HTTPRequest(url=url0, headers=headers6)
request524 = Test(524, 'GET case-header-bg.png').wrap(request524)

request525 = HTTPRequest(url=url0, headers=headers6)
request525 = Test(525, 'GET icon-note-add.png').wrap(request525)

request526 = HTTPRequest(url=url0, headers=headers6)
request526 = Test(526, 'GET icon-print.png').wrap(request526)

request527 = HTTPRequest(url=url0, headers=headers6)
request527 = Test(527, 'GET icon-case-status.png').wrap(request527)

request528 = HTTPRequest(url=url0, headers=headers6)
request528 = Test(528, 'GET transparent-white.png').wrap(request528)

request529 = HTTPRequest(url=url0, headers=headers6)
request529 = Test(529, 'GET x.gif').wrap(request529)

request530 = HTTPRequest(url=url0, headers=headers6)
request530 = Test(530, 'GET bg_button_a-selected.png').wrap(request530)

request531 = HTTPRequest(url=url0, headers=headers6)
request531 = Test(531, 'GET bg_button_span-selected.png').wrap(request531)

request532 = HTTPRequest(url=url0, headers=headers6)
request532 = Test(532, 'GET caseislandheader-default-bg.png').wrap(request532)

request533 = HTTPRequest(url=url0, headers=headers6)
request533 = Test(533, 'GET caseSubislandheader-default-bg.png').wrap(request533)

request534 = HTTPRequest(url=url0, headers=headers6)
request534 = Test(534, 'GET img.gif').wrap(request534)

request535 = HTTPRequest(url=url0, headers=headers6)
request535 = Test(535, 'GET input_bg.gif').wrap(request535)

request536 = HTTPRequest(url=url0, headers=headers6)
request536 = Test(536, 'GET bg_button_a.png').wrap(request536)

request537 = HTTPRequest(url=url0, headers=headers6)
request537 = Test(537, 'GET bg_button_span.png').wrap(request537)

request538 = HTTPRequest(url=url0, headers=headers6)
request538 = Test(538, 'GET plusblu.gif').wrap(request538)

request539 = HTTPRequest(url=url0, headers=headers6)
request539 = Test(539, 'GET minusblu.gif').wrap(request539)


class TestRunner:
    """A TestRunner instance is created for each worker thread."""

    # A method for each recorded page.
    def page1(self):
        """GET navigation (requests 101-152)."""
        self.token_cmd = \
            '10RCT000612'
        
        # Expecting 302 'Moved Temporarily'
        result = request101.GET('/sustain/cms/user/navigation' +
            '?cmd=' +
            self.token_cmd)
        tp.process_result()
        self.token_caseNumber = \
            httpUtilities.valueFromLocationURI('caseNumber') # '10RCT000612'

        grinder.sleep(20)
        request102.GET('/sustain/cms/case' +
            '?caseNumber=' +
            self.token_caseNumber)
        tp.process_result()
        self.token_dispatch = \
            httpUtilities.valueFromBodyURI('dispatch') # 'onForm'
        self.token_xrefClass = \
            httpUtilities.valueFromBodyURI('xrefClass') # 'com.sustain.cases.model.Case'
        self.token_xrefId = \
            httpUtilities.valueFromBodyURI('xrefId') # '3914617'
        # 23 different values for token_formId found in response, using the first one.
        self.token_formId = \
            httpUtilities.valueFromBodyURI('formId') # '359'
        # 11 different values for token_id found in response, using the first one.
        self.token_id = \
            httpUtilities.valueFromBodyURI('id') # '3914617'
        self.token_caseId = \
            httpUtilities.valueFromBodyURI('caseId') # '3914617'
        self.token_data7588 = \
            httpUtilities.valueFromHiddenInput('data(7588)') # 'Defendant'
        self.token_orgapachestrutstaglibhtmlTOKEN = \
            httpUtilities.valueFromHiddenInput('org.apache.struts.taglib.html.TOKEN') # 'de56b6d485d98ad5f03d3f971c090f2b'

        grinder.sleep(20)
        request103.GET('/sustain/common/images/close.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"849-1271277700000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        self.token_build = \
            '44855'
        request104.GET('/sustain/assets/skins/pacificScene/skin.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"764-1271277682000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request105.GET('/sustain/assets/css/base.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"109340-1271277682000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request106.GET('/sustain/common/css/tabs/tabbase.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:42 GMT'),
                NVPair('If-None-Match', 'W/\"729-1271277702000\"'), ))
        tp.process_result()

        request107.GET('/sustain/assets/img/roundedCorners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"1092-1271277684000\"'), ))
        tp.process_result()

        request108.GET('/sustain/assets/img/roundedBorderNS.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2864-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request109.GET('/sustain/assets/img/roundedBorderWE.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2898-1271277684000\"'), ))
        tp.process_result()

        request110.GET('/sustain/assets/img/shadowCorners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3037-1271277684000\"'), ))
        tp.process_result()

        request111.GET('/sustain/assets/img/shadowNS.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3014-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request112.GET('/sustain/assets/img/shadowWE.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3091-1271277684000\"'), ))
        tp.process_result()

        request113.GET('/sustain/assets/img/shadowC.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"6735-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request114.GET('/sustain/assets/img/main-background.jpg', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"622-1271277684000\"'), ))
        tp.process_result()

        request115.GET('/sustain/assets/img/icons/topnav-icons.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"41101-1271277682000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request116.GET('/sustain/assets/img/eCourt-logo-small.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2846-1271277684000\"'), ))
        tp.process_result()

        request117.GET('/sustain/assets/img/magnifier.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"716-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request118.GET('/sustain/assets/skins/pacificScene/corners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"660-1271277682000\"'), ))
        tp.process_result()

        request119.GET('/sustain/assets/img/arrows-left.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"350-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request120.GET('/sustain/assets/img/eCourt-logo-mini.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"1347-1271277684000\"'), ))
        tp.process_result()

        request121.GET('/sustain/assets/img/arrows-right.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"348-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request122.GET('/sustain/assets/img/leftnav_bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"163-1271277684000\"'), ))
        tp.process_result()

        request123.GET('/sustain/assets/img/tn.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"504-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request124.GET('/sustain/assets/img/ln.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"142-1271277684000\"'), ))
        tp.process_result()

        request125.GET('/sustain/assets/img/case-header-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"21172-1271277684000\"'), ))
        tp.process_result()

        request126.GET('/sustain/assets/img/icon-note-add.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"488-1271277684000\"'), ))
        tp.process_result()

        request127.GET('/sustain/assets/img/icon-print.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"687-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request128.GET('/sustain/assets/img/icon-case-status.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"389-1271277684000\"'), ))
        tp.process_result()

        request129.GET('/sustain/assets/img/transparent-white.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"4646-1271277684000\"'), ))
        tp.process_result()

        request130.GET('/sustain/common/images/x.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"43-1271277700000\"'), ))
        tp.process_result()

        request131.GET('/sustain/assets/img/bg_button_a-selected.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"663-1271277684000\"'), ))
        tp.process_result()

        request132.GET('/sustain/assets/img/bg_button_span-selected.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"844-1271277684000\"'), ))
        tp.process_result()

        request133.GET('/sustain/common/images/ajax-loader.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"701-1271277700000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request134.GET('/sustain/assets/img/caseislandheader-default-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"357-1271277684000\"'), ))
        tp.process_result()

        request135.GET('/sustain/assets/img/caseSubislandheader-default-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"4102-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request136.GET('/sustain/assets/img/island-shadow-top-right-corner.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2847-1271277684000\"'), ))
        tp.process_result()

        request137.GET('/sustain/assets/img/island-shadow-bottom-left-corner.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2847-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request138.GET('/sustain/common/images/spacer.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"110-1271277700000\"'), ))
        tp.process_result()

        request139.GET('/sustain/assets/img/case-toolbar-bg-selected.jpg', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"728-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request140.GET('/sustain/assets/img/island-shadow-right-repeat.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2858-1271277684000\"'), ))
        tp.process_result()

        request141.GET('/sustain/assets/img/island-shadow-bottom-repeat.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2849-1271277684000\"'), ))
        tp.process_result()

        request142.GET('/sustain/assets/img/island-shadow-bottom-right-corner.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"158-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request143.GET('/sustain/assets/img/casetoolbar-default-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"4510-1271277684000\"'), ))
        tp.process_result()

        request144.GET('/sustain/assets/img/cti-view-person.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"558-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request145.GET('/sustain/assets/img/icon-insert-or-add.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"399-1271277684000\"'), ))
        tp.process_result()

        request146.GET('/sustain/assets/img/icon-special.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"761-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request147.GET('/sustain/assets/img/icon-edit.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"664-1271277684000\"'), ))
        tp.process_result()

        request148.GET('/sustain/assets/img/cti-audit-log.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"559-1271277684000\"'), ))
        tp.process_result()

        request149.GET('/sustain/assets/img/bg_button_a.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3424-1271277684000\"'), ))
        tp.process_result()

        request150.GET('/sustain/assets/img/bg_button_span.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3607-1271277684000\"'), ))
        tp.process_result()

        request151.GET('/sustain/common/images/boxminus-blu.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"826-1271277700000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request152.GET('/sustain/assets/img/ygtvlinklabel-hover-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"154-1271277684000\"'), ))
        tp.process_result()

        return result

    def page2(self):
        """GET schedule (requests 201-242)."""
        self.token_dispatch = \
            'onView'
        result = request201.GET('/sustain/cms/user/event/schedule' +
            '?dispatch=' +
            self.token_dispatch +
            '&id=' +
            self.token_id +
            '&caseId=' +
            self.token_caseId)
        tp.process_result()
        self.token_dispatch = \
            httpUtilities.valueFromBodyURI('dispatch') # 'onForm'
        # 9 different values for token_formId found in response; the first matched
        # the last known value of token_formId - don't update the variable.
        self.token_caseType = \
            httpUtilities.valueFromHiddenInput('caseType') # 'CT'
        self.token_hideLayout = \
            httpUtilities.valueFromHiddenInput('hideLayout') # ''
        self.token_repeatFrequency = \
            httpUtilities.valueFromHiddenInput('repeatFrequency') # '0'
        self.token_startTime = \
            httpUtilities.valueFromHiddenInput('startTime') # 'Schedule'

        grinder.sleep(20)
        request202.GET('/sustain/common/images/close.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"849-1271277700000\"'), ))
        tp.process_result()

        request203.GET('/sustain/assets/skins/pacificScene/skin.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"764-1271277682000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request204.GET('/sustain/assets/css/base.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"109340-1271277682000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request205.GET('/sustain/common/css/tabs/tabbase.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:42 GMT'),
                NVPair('If-None-Match', 'W/\"729-1271277702000\"'), ))
        tp.process_result()

        request206.GET('/sustain/assets/img/roundedBorderWE.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2898-1271277684000\"'), ))
        tp.process_result()

        request207.GET('/sustain/assets/img/roundedBorderNS.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2864-1271277684000\"'), ))
        tp.process_result()

        request208.GET('/sustain/assets/img/roundedCorners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"1092-1271277684000\"'), ))
        tp.process_result()

        request209.GET('/sustain/assets/img/shadowCorners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3037-1271277684000\"'), ))
        tp.process_result()

        request210.GET('/sustain/assets/img/shadowNS.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3014-1271277684000\"'), ))
        tp.process_result()

        request211.GET('/sustain/assets/img/shadowWE.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3091-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request212.GET('/sustain/assets/img/shadowC.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"6735-1271277684000\"'), ))
        tp.process_result()

        request213.GET('/sustain/assets/img/main-background.jpg', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"622-1271277684000\"'), ))
        tp.process_result()

        request214.GET('/sustain/assets/img/icons/topnav-icons.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"41101-1271277682000\"'), ))
        tp.process_result()

        request215.GET('/sustain/assets/img/magnifier.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"716-1271277684000\"'), ))
        tp.process_result()

        request216.GET('/sustain/assets/img/eCourt-logo-small.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2846-1271277684000\"'), ))
        tp.process_result()

        request217.GET('/sustain/assets/skins/pacificScene/corners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"660-1271277682000\"'), ))
        tp.process_result()

        request218.GET('/sustain/assets/img/arrows-left.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"350-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request219.GET('/sustain/assets/img/eCourt-logo-mini.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"1347-1271277684000\"'), ))
        tp.process_result()

        request220.GET('/sustain/assets/img/arrows-right.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"348-1271277684000\"'), ))
        tp.process_result()

        request221.GET('/sustain/assets/img/leftnav_bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"163-1271277684000\"'), ))
        tp.process_result()

        request222.GET('/sustain/assets/img/tn.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"504-1271277684000\"'), ))
        tp.process_result()

        request223.GET('/sustain/assets/img/ln.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"142-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request224.GET('/sustain/assets/img/case-header-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"21172-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request225.GET('/sustain/assets/img/icon-note-add.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"488-1271277684000\"'), ))
        tp.process_result()

        request226.GET('/sustain/assets/img/icon-print.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"687-1271277684000\"'), ))
        tp.process_result()

        request227.GET('/sustain/assets/img/icon-case-status.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"389-1271277684000\"'), ))
        tp.process_result()

        request228.GET('/sustain/assets/img/transparent-white.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"4646-1271277684000\"'), ))
        tp.process_result()

        request229.GET('/sustain/common/images/x.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"43-1271277700000\"'), ))
        tp.process_result()

        request230.GET('/sustain/assets/img/bg_button_a.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3424-1271277684000\"'), ))
        tp.process_result()

        request231.GET('/sustain/assets/img/bg_button_a-selected.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"663-1271277684000\"'), ))
        tp.process_result()

        request232.GET('/sustain/assets/img/bg_button_span-selected.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"844-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request233.GET('/sustain/assets/img/bg_button_a.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3424-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request234.GET('/sustain/assets/img/bg_button_span.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3607-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request235.GET('/sustain/common/js/user/scheduleEvent.js' +
            '?build=' +
            self.token_build)
        tp.process_result()
        self.token_assignmentsindexassignmentRole = \
            httpUtilities.valueFromHiddenInput('assignments[#{index}].assignmentRole') # '#{role}'
        self.token_personIdsindex = \
            httpUtilities.valueFromHiddenInput('personIds[#{index}]') # '#{personId}'
        self.token_assignmentsindexid = \
            httpUtilities.valueFromHiddenInput('assignments[#{index}].id') # '#{assignmentId}'

        grinder.sleep(20)
        request236.GET('/sustain/assets/img/caseislandheader-default-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"357-1271277684000\"'), ))
        tp.process_result()

        request237.GET('/sustain/assets/img/caseSubislandheader-default-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"4102-1271277684000\"'), ))
        tp.process_result()

        request238.GET('/sustain/common/images/img.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"379-1271277700000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request239.GET('/sustain/assets/img/input_bg.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"195-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request240.GET('/sustain/assets/img/plusblu.gif')
        tp.process_result()

        request241.GET('/sustain/assets/img/minusblu.gif')
        tp.process_result()

        grinder.sleep(20)
        request242.GET('/sustain/assets/img/icon-loading.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"1737-1271277684000\"'), ))
        tp.process_result()

        return result

    def page3(self):
        """GET schedule (request 301)."""
        self.token_eventType = \
            'ARR'
        self.token_locationId = \
            ''
        self.token_resource = \
            ''
        self.token_roleId = \
            'JUD'
        self.token_partyIds = \
            '6675588'
        self.token_eventDate = \
            '4/14/10'
        self.token_recurrenceType = \
            ''
        self.token_monthlyRecurrenceType = \
            '5'
        self.token_numberOfOcurrences = \
            ''
        self.token_recurrenceEndType = \
            '0'
        self.token_recurrenceEndDate = \
            '4/14/10'
        self.token_numberOfSlotsToReturn = \
            '5'
        self.token_startTime = \
            ''
        self.token_endTime = \
            ''
        self.token_dispatch = \
            'onSlotSearch'
        result = request301.GET('/sustain/cms/user/event/schedule' +
            '?&caseId=' +
            self.token_caseId +
            '&caseType=' +
            self.token_caseType +
            '&hideLayout=' +
            self.token_hideLayout +
            '&eventType=' +
            self.token_eventType +
            '&locationId=' +
            self.token_locationId +
            '&resource=' +
            self.token_resource +
            '&roleId=' +
            self.token_roleId +
            '&partyIds=' +
            self.token_partyIds +
            '&eventDate=' +
            self.token_eventDate +
            '&recurrenceType=' +
            self.token_recurrenceType +
            '&repeatFrequency=' +
            self.token_repeatFrequency +
            '&monthlyRecurrenceType=' +
            self.token_monthlyRecurrenceType +
            '&numberOfOcurrences=' +
            self.token_numberOfOcurrences +
            '&recurrenceEndType=' +
            self.token_recurrenceEndType +
            '&recurrenceEndDate=' +
            self.token_recurrenceEndDate +
            '&numberOfSlotsToReturn=' +
            self.token_numberOfSlotsToReturn +
            '&startTime=' +
            self.token_startTime +
            '&endTime=' +
            self.token_endTime +
            '&dispatch=' +
            self.token_dispatch)
        tp.process_result()

        return result

    def page4(self):
        """POST schedule (request 401)."""
        self.token_startTime = \
            '1271260800000'
        result = request401.POST('/sustain/cms/user/event/schedule',
            ( NVPair('caseId', '3914617'),
                NVPair('caseType', self.token_caseType),
                NVPair('hideLayout', self.token_hideLayout),
                NVPair('eventType', 'ARR'),
                NVPair('locationId', ''),
                NVPair('resource', ''),
                NVPair('roleId', 'JUD'),
                NVPair('partyIds', '6675588'),
                NVPair('eventDate', 'Wed Apr 14 09:00:00 PDT 2010'),
                NVPair('recurrenceType', ''),
                NVPair('repeatFrequency', self.token_repeatFrequency),
                NVPair('monthlyRecurrenceType', '5'),
                NVPair('numberOfOcurrences', ''),
                NVPair('recurrenceEndType', '0'),
                NVPair('recurrenceEndDate', '4/14/10'),
                NVPair('numberOfSlotsToReturn', '5'),
                NVPair('selectedSlotInfo', '1271260800000|1271289600000|||'),
                NVPair('startTime', self.token_startTime),
                NVPair('endTime', '1271289600000'),
                NVPair('dispatch', 'onCheckConflicts'), ),
            ( NVPair('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'), ))
        tp.process_result()

        return result

    def page5(self):
        """POST schedule (requests 501-539)."""
        self.token_dispatch = \
            'onScheduleEvent'
        result = request501.POST('/sustain/cms/user/event/schedule' +
            '?dispatch=' +
            self.token_dispatch,
            ( NVPair('caseId', '3914617'),
                NVPair('caseType', self.token_caseType),
                NVPair('hideLayout', self.token_hideLayout),
                NVPair('eventType', 'ARR'),
                NVPair('locationId', ''),
                NVPair('resource', ''),
                NVPair('roleId', 'JUD'),
                NVPair('partyIds', '6675588'),
                NVPair('eventDate', 'Wed Apr 14 09:00:00 PDT 2010'),
                NVPair('recurrenceType', ''),
                NVPair('repeatFrequency', self.token_repeatFrequency),
                NVPair('monthlyRecurrenceType', '5'),
                NVPair('numberOfOcurrences', ''),
                NVPair('recurrenceEndType', '0'),
                NVPair('recurrenceEndDate', '4/14/10'),
                NVPair('numberOfSlotsToReturn', '5'),
                NVPair('selectedSlotInfo', '1271260800000|1271289600000|||'),
                NVPair('startTime', self.token_startTime),
                NVPair('endTime', '1271289600000'), ),
            ( NVPair('Content-Type', 'application/x-www-form-urlencoded'), ))
        tp.process_result()
        self.token_dispatch = \
            httpUtilities.valueFromBodyURI('dispatch') # 'onForm'
        # 9 different values for token_formId found in response; the first matched
        # the last known value of token_formId - don't update the variable.
        self.token_startTime = \
            httpUtilities.valueFromHiddenInput('startTime') # 'Schedule'

        grinder.sleep(20)
        request502.GET('/sustain/common/images/close.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"849-1271277700000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request503.GET('/sustain/assets/skins/pacificScene/skin.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"764-1271277682000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request504.GET('/sustain/assets/css/base.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"109340-1271277682000\"'), ))
        tp.process_result()

        request505.GET('/sustain/common/css/tabs/tabbase.css' +
            '?build=' +
            self.token_build, None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:42 GMT'),
                NVPair('If-None-Match', 'W/\"729-1271277702000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request506.GET('/sustain/assets/img/roundedCorners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"1092-1271277684000\"'), ))
        tp.process_result()

        request507.GET('/sustain/assets/img/roundedBorderNS.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2864-1271277684000\"'), ))
        tp.process_result()

        request508.GET('/sustain/assets/img/roundedBorderWE.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2898-1271277684000\"'), ))
        tp.process_result()

        request509.GET('/sustain/assets/img/shadowCorners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3037-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request510.GET('/sustain/assets/img/shadowNS.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3014-1271277684000\"'), ))
        tp.process_result()

        request511.GET('/sustain/assets/img/shadowWE.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3091-1271277684000\"'), ))
        tp.process_result()

        request512.GET('/sustain/assets/img/shadowC.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"6735-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request513.GET('/sustain/assets/img/main-background.jpg', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"622-1271277684000\"'), ))
        tp.process_result()

        request514.GET('/sustain/assets/img/icons/topnav-icons.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"41101-1271277682000\"'), ))
        tp.process_result()

        request515.GET('/sustain/assets/img/magnifier.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"716-1271277684000\"'), ))
        tp.process_result()

        request516.GET('/sustain/assets/img/eCourt-logo-small.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"2846-1271277684000\"'), ))
        tp.process_result()

        request517.GET('/sustain/assets/skins/pacificScene/corners.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:22 GMT'),
                NVPair('If-None-Match', 'W/\"660-1271277682000\"'), ))
        tp.process_result()

        request518.GET('/sustain/assets/img/arrows-left.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"350-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request519.GET('/sustain/assets/img/eCourt-logo-mini.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"1347-1271277684000\"'), ))
        tp.process_result()

        request520.GET('/sustain/assets/img/arrows-right.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"348-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request521.GET('/sustain/assets/img/leftnav_bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"163-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request522.GET('/sustain/assets/img/tn.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"504-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request523.GET('/sustain/assets/img/ln.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"142-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request524.GET('/sustain/assets/img/case-header-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"21172-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request525.GET('/sustain/assets/img/icon-note-add.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"488-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request526.GET('/sustain/assets/img/icon-print.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"687-1271277684000\"'), ))
        tp.process_result()

        request527.GET('/sustain/assets/img/icon-case-status.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"389-1271277684000\"'), ))
        tp.process_result()

        request528.GET('/sustain/assets/img/transparent-white.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"4646-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request529.GET('/sustain/common/images/x.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"43-1271277700000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request530.GET('/sustain/assets/img/bg_button_a-selected.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"663-1271277684000\"'), ))
        tp.process_result()

        request531.GET('/sustain/assets/img/bg_button_span-selected.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"844-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request532.GET('/sustain/assets/img/caseislandheader-default-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"357-1271277684000\"'), ))
        tp.process_result()

        request533.GET('/sustain/assets/img/caseSubislandheader-default-bg.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"4102-1271277684000\"'), ))
        tp.process_result()

        request534.GET('/sustain/common/images/img.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:40 GMT'),
                NVPair('If-None-Match', 'W/\"379-1271277700000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request535.GET('/sustain/assets/img/input_bg.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"195-1271277684000\"'), ))
        tp.process_result()

        request536.GET('/sustain/assets/img/bg_button_a.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3424-1271277684000\"'), ))
        tp.process_result()

        grinder.sleep(20)
        request537.GET('/sustain/assets/img/bg_button_span.png', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"3607-1271277684000\"'), ))
        tp.process_result()

        request538.GET('/sustain/assets/img/plusblu.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"866-1271277684000\"'), ))
        tp.process_result()

        request539.GET('/sustain/assets/img/minusblu.gif', None,
            ( NVPair('If-Modified-Since', 'Wed, 14 Apr 2010 20:41:24 GMT'),
                NVPair('If-None-Match', 'W/\"862-1271277684000\"'), ))
        tp.process_result()

        return result

    def __call__(self):
        """This method is called for every run performed by the worker thread."""
        self.init_data = td.import_data(self.__module__)
        self.page1()      # GET navigation (requests 101-152)

        grinder.sleep(20)
        self.page2()      # GET schedule (requests 201-242)

        grinder.sleep(20)
        self.page3()      # GET schedule (request 301)

        grinder.sleep(20)
        self.page4()      # POST schedule (request 401)

        grinder.sleep(20)
        self.page5()      # POST schedule (requests 501-539)


def instrumentMethod(test, method_name, c=TestRunner):
    """Instrument a method with the given Test."""
    unadorned = getattr(c, method_name)
    import new
    method = new.instancemethod(test.wrap(unadorned), None, c)
    setattr(c, method_name, method)

# Replace each method with an instrumented version.
# You can call the unadorned method using self.page1.__target__().
instrumentMethod(Test(100, 'Page 1'), 'page1')
instrumentMethod(Test(200, 'Page 2'), 'page2')
instrumentMethod(Test(300, 'Page 3'), 'page3')
instrumentMethod(Test(400, 'Page 4'), 'page4')
instrumentMethod(Test(500, 'Page 5'), 'page5')
