Bertrand,
I added jython.jar to the java -classpath for starting the agents, which=20
eliminated that error and produced a new error, which I may ask you=20
about later.
Thanks,
Paul
Paul R Bennett wrote:
> Bertrand,
>
> Hi - when I use the new http plugin to record both httpscript.py and=20
> RecordedScenario_clx.py simultaneously and then try to run these=20
> scripts, httpscript.py runs fine. But I get the error below when=20
> trying to run RecordedScenario_clx.py. I'm using Brinder version 3.23.=20
> The scripts are attached. Any suggestions would be greatly appreciated!
>
> Thanks a lot,
>
> Paul
>
> --------------------------
>
> 3/22/05 10:32:08 AM (process BENNETTP-DEV2-0): Error running worker=20
> process (Jython error encountered initialising test script)
> (Nested exception) Traceback (innermost last):
> File=20
> "G:\Tech\Architecture\Prototypes\Grinder3.23\grinder-3.0-beta23\WPNI_PR=
OTOTYPE\.\BENNETTP-DEV2-file-store\current\RecordedScenario_clx.py",=20
> line 12, in ?
> File=20
> "G:\Tech\Architecture\Prototypes\Grinder3.23\grinder-3.0-beta23\WPNI_PR=
OTOTYPE\.\BENNETTP-DEV2-file-store\current\WebUtils.py",=20
> line 1, in ?
> ImportError: *No module named modules*
>
> at org.python.core.Py.ImportError(Py.java)
> at org.python.core.imp.import_logic(imp.java)
> at org.python.core.imp.import_name(imp.java)
> at org.python.core.imp.importName(imp.java)
> at org.python.core.ImportFunction.load(__builtin__.java)
> at org.python.core.ImportFunction.__call__(__builtin__.java)
> at org.python.core.PyObject.__call__(PyObject.java)
> at org.python.core.__builtin__.__import__(__builtin__.java)
> at org.python.core.imp.importFromAs(imp.java)
> at org.python.core.imp.importFrom(imp.java)
> at=20
> WebUtils$py.f$0(G:\Tech\Architecture\Prototypes\Grinder3.23\grinder-3.0=
-beta23\WPNI_PROTOTYPE\.\BENNETTP-DEV2-file-store\current\WebUtils.py:1)
> at=20
> WebUtils$py.call_function(G:\Tech\Architecture\Prototypes\Grinder3.23\g=
rinder-3.0-beta23\WPNI_PROTOTYPE\.\BENNETTP-DEV2-file-store\current\WebUt=
ils.py)
> at org.python.core.PyTableCode.call(PyTableCode.java)
> at org.python.core.PyCode.call(PyCode.java)
> at org.python.core.imp.createFromCode(imp.java)
> at org.python.core.imp.createFromSource(imp.java)
> at org.python.core.imp.loadFromPath(imp.java)
> at org.python.core.imp.loadFromPath(imp.java)
> at org.python.core.imp.load(imp.java)
> at org.python.core.imp.import_next(imp.java)
> at org.python.core.imp.import_name(imp.java)
> at org.python.core.imp.importName(imp.java)
> at org.python.core.ImportFunction.load(__builtin__.java)
> at org.python.core.ImportFunction.__call__(__builtin__.java)
> at org.python.core.PyObject.__call__(PyObject.java)
> at org.python.core.__builtin__.__import__(__builtin__.java)
> at org.python.core.imp.importFromAs(imp.java)
> at org.python.core.imp.importFrom(imp.java)
> at=20
> org.python.pycode._pyx0.f$0(G:\Tech\Architecture\Prototypes\Grinder3.23=
\grinder-3.0-beta23\WPNI_PROTOTYPE\.\BENNETTP-DEV2-file-store\current\Rec=
ordedScenario_clx.py:12)
> at=20
> org.python.pycode._pyx0.call_function(G:\Tech\Architecture\Prototypes\G=
rinder3.23\grinder-3.0-beta23\WPNI_PROTOTYPE\.\BENNETTP-DEV2-file-store\c=
urrent\RecordedScenario_clx.py)
> at org.python.core.PyTableCode.call(PyTableCode.java)
> at org.python.core.PyCode.call(PyCode.java)
> at org.python.core.Py.runCode(Py.java)
> at org.python.core.__builtin__.execfile_flags(__builtin__.java)
> at org.python.util.PythonInterpreter.execfile(PythonInterpreter.jav=
a)
> at=20
> net.grinder.engine.process.JythonScript.<init>(JythonScript.java:77)
> <truncated>
>
> net.grinder.engine.process.JythonScriptExecutionException: Jython=20
> error encountered initialising test script
> at=20
> net.grinder.engine.process.JythonScript.<init>(JythonScript.java:80)
> at=20
> net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:219)
> at=20
> net.grinder.engine.process.GrinderProcess.main(GrinderProcess.java:109)
>
>
>
>
> avebertrand wrote:
>
>>Yes, you are right.=20
>>
>>Paul has got to copy this file in the same directory than his recorded
>>script.
>>
>>WebUtils.py contains a lot of useful methods.
>>
>>Regards, bertrand
>>
>>-----Message d'origine-----
>>De : grinder-use-admin@...
>>[mailto:grinder-use-admin@...] De la part de Tom Heal=
ey
>>Envoy=E9 : vendredi 4 mars 2005 21:44
>>Cc : grinder-use@...
>>Objet : Re: FW: [Grinder-use] Grinder 3 install
>>
>>I had to copy WebUtils.py from the "grinder_dir"/contrib/httpplugin dir=
=20
>>to the same directory as the grinder script (in this case the same dir=20
>>as RecordedScenario_clx.py).
>>
>>Hope that helps.
>>
>>Tom
>>
>>Paul R Bennett wrote:
>> =20
>>
>>>Hi Bertrand,
>>>
>>>Here's a new problem. I did a fresh install on a different machine and=
=20
>>>set up all the configuration as I had before. I could record a v2 scri=
pt=20
>>>okay, but when I tried to run it from the console, I got the error bel=
ow=20
>>>about not being able to find the WebUtils module. The module is presen=
t,=20
>>>however. I doublechecked everything without any luck.
>>>
>>>Thanks, and let me know if you want more information.
>>>
>>>Paul
>>>
>>>3/3/05 1:29:15 PM (process BENNETTP-DEV2-0): Error running worker=20
>>>process (Jython error encountered initialising test script)
>>>(Nested exception) Traceback (innermost last):
>>> File "C:\Documents and Settings\BENNETTP\Desktop\Grinder 3.23=20
>>>
>>> =20
>>>
>>fresh\grinder-3.0-beta23\WPNI_PROTOTYPE\.\BENNETTP-DEV2-file-store\curr=
ent\R
>>ecordedScenario_clx.py",=20
>> =20
>>
>>>line 12, in ?
>>>ImportError: no module named WebUtils
>>>
>>> at org.python.core.Py.ImportError(Py.java)
>>> at org.python.core.imp.import_first(imp.java)
>>> at org.python.core.imp.import_name(imp.java)
>>> at org.python.core.imp.importName(imp.java)
>>> at org.python.core.ImportFunction.load(__builtin__.java)
>>> at org.python.core.ImportFunction.__call__(__builtin__.java)
>>> at org.python.core.PyObject.__call__(PyObject.java)
>>> at org.python.core.__builtin__.__import__(__builtin__.java)
>>> at org.python.core.imp.importFromAs(imp.java)
>>> at org.python.core.imp.importFrom(imp.java)
>>> at org.python.pycode._pyx0.f$0(C:\Documents and=20
>>>Settings\BENNETTP\Desktop\Grinder 3.23=20
>>>
>>> =20
>>>
>>fresh\grinder-3.0-beta23\WPNI_PROTOTYPE\.\BENNETTP-DEV2-file-store\curr=
ent\R
>>ecordedScenario_clx.py:12)=20
>> =20
>>
>>> at org.python.pycode._pyx0.call_function(C:\Documents and=20
>>>Settings\BENNETTP\Desktop\Grinder 3.23=20
>>>
>>> =20
>>>
>>fresh\grinder-3.0-beta23\WPNI_PROTOTYPE\.\BENNETTP-DEV2-file-store\curr=
ent\R
>>ecordedScenario_clx.py)=20
>> =20
>>
>>> at org.python.core.PyTableCode.call(PyTableCode.java)
>>> at org.python.core.PyCode.call(PyCode.java)
>>> at org.python.core.Py.runCode(Py.java)
>>> at org.python.core.__builtin__.execfile_flags(__builtin__.java)
>>> at org.python.util.PythonInterpreter.execfile(PythonInterpreter.jav=
a)
>>> at net.grinder.engine.process.JythonScript.<init>(JythonScript.java=
:77)
>>> <truncated>
>>>
>>>net.grinder.engine.process.JythonScriptExecutionException: Jython erro=
r=20
>>>encountered initialising test script
>>> at net.grinder.engine.process.JythonScript.<init>(JythonScript.java=
:80)
>>> at=20
>>>net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:219)
>>> at=20
>>>net.grinder.engine.process.GrinderProcess.main(GrinderProcess.java:109=
)
>>>
>>>
>>>
>>>-------------------------------------------------------
>>>SF email is sponsored by - The IT Product Guide
>>>Read honest & candid reviews on hundreds of IT Products from real user=
s.
>>>Discover which products truly live up to the hype. Start reading now.
>>>http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
>>>_______________________________________________
>>>Grinder-use mailing list
>>>Grinder-use@...
>>>https://lists.sourceforge.net/lists/listinfo/grinder-use
>>>
>>> =20
>>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
>>_______________________________________________
>>Grinder-use mailing list
>>Grinder-use@...
>>https://lists.sourceforge.net/lists/listinfo/grinder-use
>>
>>
>> =20
>>
>------------------------------------------------------------------------
>
>#
># The Grinder version 3.0-beta23
>#
># Script recorded by the TCPProxy at Mar 8, 2005 4:53:04 PM
>#
>
>from httpscript_tests import *
>from net.grinder.script.Grinder import grinder
>
>class TestRunner:
> def __call__(self):
>
> tests[0].GET('http://www.washingtonpost.com:80/')
>
> grinder.sleep(594)
> tests[1].GET('http://watchlist.stockpoint.com:80/servlet/WatchLi=
st',
> ( NVPair('symbol', '$INDU,$COMPQ,$SPX'),=20
> NVPair('field', 'NCrG'),=20
> NVPair('name', 'DJIA,NASDAQ,S&P 500'),=20
> NVPair('column', 'wp_columns'),=20
> NVPair('scheme', 'wp_scheme'),=20
> NVPair('Source', 'WPOST'),=20
> NVPair('adr', '3'),=20
> NVPair('Ignore', '1334333 PM'),=20
> NVPair('clientid', 'WPOST'),=20
> NVPair('width', '185'),=20
> NVPair('height', '48'), ))
>
> grinder.sleep(47)
> tests[2].GET('http://ad.doubleclick.net:80/adj/wpni.washingtonpo=
st.com/',
> ( NVPair('dcopt', 'ist;pos=3Dad26;A=3D1;D=3D4;C=3D0;B=3D7;=
B=3D32;B=3D75;B=3D102;VS=3D3;;kw=3Dhomepage;ad=3Dbb;!category=3Dlittlebig=
box;sz=3D300x250;tile=3D26;ord=3D311298?'), ))
>
> grinder.sleep(15)
> tests[3].GET('http://altfarm.mediaplex.com:80/ad/bn/4834-26205-2=
151-0',
> ( NVPair('mpt', '247679'), ))
>
> grinder.sleep(31)
> tests[4].GET('http://ad.doubleclick.net:80/adi/wpni.washingtonpo=
st.com/',
> ( NVPair('pos', 'ad11;A=3D1;D=3D4;C=3D0;B=3D7;B=3D32;B=3D7=
5;B=3D102;VS=3D3;;kw=3Dcommemorative;ad=3Dss;!category=3Diframe;sz=3D160x=
600;tile=3D11;ord=3D311298?'), ))
>
> grinder.sleep(109)
> tests[5].GET('http://altfarm.mediaplex.com:80/ad/js/41393',
> ( NVPair('mpt', '1586148'),=20
> NVPair('mpvc', 'http://ad.doubleclick.net/click;h=3Dv3|3235|=
3|0|*|q;14481267;0-0;1;3645792;2321-160|600;9253942|9271838|1;;~sscs=3D?'=
), ))
>
> grinder.sleep(109)
> tests[6].GET('http://view.atdmt.com:80/BEL/iview/rlmddsbu0010000=
125bel/direct/01',
> ( NVPair('click', ''), ))
>
> grinder.sleep(109)
> tests[7].GET('http://view.atdmt.com:80/QTS/iview/wpnxxcsv0010000=
122qts/direct/01/1585914',
> ( NVPair('click', 'http://ad.doubleclick.net/click;h=3Dv3|=
3235|3|0|*|l;14476107;0-0;2;3645792;4307-300|250;9165729|9183625|1;;~sscs=
=3D?'), ))
>
> grinder.sleep(78)
> tests[8].GET('http://stats.surfaid.ihost.com:80/crc/images/uc.GI=
F?1.17&wpost&wpost&http%3A//www.washingtonpost.com/&&wpniuser%3DbennettpU=
PROF%3DWU9CPTE5NTQrRz1tYWxlK1pJUD0yMjIwMStVVD1leHBsaWNpdCtDPUFuZ3VpbGxhK0=
I9UFJPRkVTK0I9SVQrQj1NRURJQStCPVNJWkVfMw%3D%3D&1&3&300&32x1152x864&69&&&6=
67390861110318840765')
> =20
>
>------------------------------------------------------------------------
>
>#
># The Grinder version 3.0-beta23
>#
># Script recorded by the TCPProxy at Mar 8, 2005 4:53:04 PM
>#
>
>from HTTPClient import NVPair
>from net.grinder.plugin.http import HTTPRequest
>from net.grinder.script import Test
>
>tests =3D {}
>
>
>headers0 =3D ( NVPair('Accept', 'text/xml,application/xml,application/xh=
tml+xml,text/html;q=3D0.9,text/plain;q=3D0.8,image/png,*/*;q=3D0.5'),=20
> NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7=
'),=20
> NVPair('Accept-Encoding', 'gzip,deflate'),=20
> NVPair('Accept-Language', 'en-us,en;q=3D0.5'),=20
> NVPair('User-Agent', 'Mozilla/4.1 (compatible; MSIE 6.0; Win=
dows NT 5.0)'), )
>request0 =3D HTTPRequest(headers =3D headers0)
>tests[0] =3D Test(0, 'GET ').wrap(request0)
>
>
>headers1 =3D ( NVPair('Accept', 'image/png,*/*;q=3D0.5'),=20
> NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7=
'),=20
> NVPair('Accept-Encoding', 'gzip,deflate'),=20
> NVPair('Accept-Language', 'en-us,en;q=3D0.5'),=20
> NVPair('Referer', 'http://www.washingtonpost.com/'),=20
> NVPair('User-Agent', 'Mozilla/4.1 (compatible; MSIE 6.0; Win=
dows NT 5.0)'), )
>request1 =3D HTTPRequest(headers =3D headers1)
>tests[1] =3D Test(1, 'GET WatchList').wrap(request1)
>
>
>headers2 =3D ( NVPair('Accept', '*/*'),=20
> NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7=
'),=20
> NVPair('Accept-Encoding', 'gzip,deflate'),=20
> NVPair('Accept-Language', 'en-us,en;q=3D0.5'),=20
> NVPair('Referer', 'http://www.washingtonpost.com/'),=20
> NVPair('User-Agent', 'Mozilla/4.1 (compatible; MSIE 6.0; Win=
dows NT 5.0)'), )
>request2 =3D HTTPRequest(headers =3D headers2)
>tests[2] =3D Test(2, 'GET ').wrap(request2)
>
>
>request3 =3D HTTPRequest(headers =3D headers1)
>tests[3] =3D Test(3, 'GET 4834-26205-2151-0').wrap(request3)
>
>
>headers4 =3D ( NVPair('Accept', 'text/xml,application/xml,application/xh=
tml+xml,text/html;q=3D0.9,text/plain;q=3D0.8,image/png,*/*;q=3D0.5'),=20
> NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7=
'),=20
> NVPair('Accept-Encoding', 'gzip,deflate'),=20
> NVPair('Accept-Language', 'en-us,en;q=3D0.5'),=20
> NVPair('Referer', 'http://www.washingtonpost.com/'),=20
> NVPair('User-Agent', 'Mozilla/4.1 (compatible; MSIE 6.0; Win=
dows NT 5.0)'), )
>request4 =3D HTTPRequest(headers =3D headers4)
>tests[4] =3D Test(4, 'GET ').wrap(request4)
>
>
>headers5 =3D ( NVPair('Accept', '*/*'),=20
> NVPair('Accept-Charset', 'ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7=
'),=20
> NVPair('Accept-Encoding', 'gzip,deflate'),=20
> NVPair('Accept-Language', 'en-us,en;q=3D0.5'),=20
> NVPair('Referer', 'http://ad.doubleclick.net/adi/wpni.washin=
gtonpost.com/;pos=3Dad11;A=3D1;D=3D4;C=3D0;B=3D7;B=3D32;B=3D75;B=3D102;VS=
=3D3;;kw=3Dcommemorative;ad=3Dss;!category=3Diframe;sz=3D160x600;tile=3D1=
1;ord=3D311298?'),=20
> NVPair('User-Agent', 'Mozilla/4.1 (compatible; MSIE 6.0; Win=
dows NT 5.0)'), )
>request5 =3D HTTPRequest(headers =3D headers5)
>tests[5] =3D Test(5, 'GET 41393').wrap(request5)
>
>
>request6 =3D HTTPRequest(headers =3D headers4)
>tests[6] =3D Test(6, 'GET 01').wrap(request6)
>
>
>request7 =3D HTTPRequest(headers =3D headers4)
>tests[7] =3D Test(7, 'GET 1585914').wrap(request7)
>
>
>request8 =3D HTTPRequest(headers =3D headers1)
>tests[8] =3D Test(8, 'GET uc.GIF').wrap(request8)
> =20
>
>------------------------------------------------------------------------
>
>#
># The Grinder version 3.0-beta23
>#
># Script recorded by the TCPProxy at Mar 8, 2005 4:53:04 PM
>#
>
>
>from HTTPClient import NVPair
>from net.grinder.script.Grinder import grinder
>from net.grinder.script import Test
>from net.grinder.plugin.http import HTTPRequest
>from WebUtils import extractJSESSION
>
>headers1 =3D ( NVPair('Accept', 'text/html, image/png, image/jpeg, image=
/gif, image/x-xbitmap, */*;q=3D0.1'),=20
> NVPair('Accept-Charset', 'windows-1252, utf-8, utf-16, iso-8859-1;q=3D=
0.6, *;q=3D0.1'),=20
> NVPair('Accept-Encoding', 'deflate, gzip, x-gzip, identity, *;q=3D0'=
),=20
> NVPair('Accept-Language', 'en;q=3D1.0'),=20
> NVPair('User-Agent', 'Mozilla/4.1 (compatible; MSIE 6.0; Windows NT =
5.0)'), )
>
>request =3D HTTPRequest(headers =3D headers1)
>
>class TestRunner:
>
> # jsession value
> jsess =3D ''
>
>
>
> def page0(self):
> HtmlResult =3D request.GET('http://www.washingtonpost.com:80/')
> self.jsess =3D extractJSESSION ('JSESSIONID', HtmlResult, grinde=
r, 0)
> return HtmlResult
>
>
> def page1(self):
> HtmlResult =3D request.GET('http://watchlist.stockpoint.com:80/s=
ervlet/WatchList',
> ( NVPair('symbol', '$INDU,$COMPQ,$SPX'),=20
> NVPair('field', 'NCrG'),=20
> NVPair('name', 'DJIA,NASDAQ,S&P 500'),=20
> NVPair('column', 'wp_columns'),=20
> NVPair('scheme', 'wp_scheme'),=20
> NVPair('Source', 'WPOST'),=20
> NVPair('adr', '3'),=20
> NVPair('Ignore', '1334333 PM'),=20
> NVPair('clientid', 'WPOST'),=20
> NVPair('width', '185'),=20
> NVPair('height', '48'),=20
> NVPair('symbol', '$INDU,$COMPQ,$SPX'),=20
> NVPair('field', 'NCrG'),=20
> NVPair('name', 'DJIA,NASDAQ,S&P 500'),=20
> NVPair('column', 'wp_columns'),=20
> NVPair('scheme', 'wp_scheme'),=20
> NVPair('Source', 'WPOST'),=20
> NVPair('adr', '3'),=20
> NVPair('Ignore', '1334333 PM'),=20
> NVPair('clientid', 'WPOST'),=20
> NVPair('width', '185'),=20
> NVPair('height', '48'), ))
> return HtmlResult
>
>
> def page2(self):
> HtmlResult =3D request.GET('http://ad.doubleclick.net:80/adj/wpn=
i.washingtonpost.com/',
> ( NVPair('dcopt', 'ist;pos=3Dad26;A=3D1;D=3D4;C=3D0;B=3D7;B=3D32=
;B=3D75;B=3D102;VS=3D3;;kw=3Dhomepage;ad=3Dbb;!category=3Dlittlebigbox;sz=
=3D300x250;tile=3D26;ord=3D311298'), ))
> return HtmlResult
>
>
> def page3(self):
> HtmlResult =3D request.GET('http://altfarm.mediaplex.com:80/ad/b=
n/4834-26205-2151-0',
> ( NVPair('mpt', '247679'),=20
> NVPair('mpt', '247679'), ))
> return HtmlResult
>
>
> def page4(self):
> HtmlResult =3D request.GET('http://ad.doubleclick.net:80/adi/wpn=
i.washingtonpost.com/',
> ( NVPair('pos', 'ad11;A=3D1;D=3D4;C=3D0;B=3D7;B=3D32;B=3D75;B=3D=
102;VS=3D3;;kw=3Dcommemorative;ad=3Dss;!category=3Diframe;sz=3D160x600;ti=
le=3D11;ord=3D311298'), ))
> return HtmlResult
>
>
> def page5(self):
> HtmlResult =3D request.GET('http://altfarm.mediaplex.com:80/ad/j=
s/41393',
> ( NVPair('mpt', '1586148'),=20
> NVPair('mpvc', 'http://ad.doubleclick.net/click;h=3Dv3|3235|=
3|0|*|q;14481267;0-0;1;3645792;2321-160|600;9253942|9271838|1;;~sscs=3D?'=
),=20
> NVPair('mpt', '1586148'),=20
> NVPair('mpvc', 'http://ad.doubleclick.net/click;h=3Dv3|3235|=
3|0|*|q;14481267;0-0;1;3645792;2321-160|600;9253942|9271838|1;;~sscs=3D?'=
), ))
> return HtmlResult
>
>
> def page6(self):
> HtmlResult =3D request.GET('http://view.atdmt.com:80/BEL/iview/r=
lmddsbu0010000125bel/direct/01',
> ( NVPair('click', ''),=20
> NVPair('click', ''), ))
> return HtmlResult
>
>
> def page7(self):
> HtmlResult =3D request.GET('http://view.atdmt.com:80/QTS/iview/w=
pnxxcsv0010000122qts/direct/01/1585914',
> ( NVPair('click', 'http://ad.doubleclick.net/click;h=3Dv3|3235|3=
|0|*|l;14476107;0-0;2;3645792;4307-300|250;9165729|9183625|1;;~sscs=3D?')=
,=20
> NVPair('click', 'http://ad.doubleclick.net/click;h=3Dv3|3235=
|3|0|*|l;14476107;0-0;2;3645792;4307-300|250;9165729|9183625|1;;~sscs=3D?=
'), ))
> return HtmlResult
>
>
> def page8(self):
> HtmlResult =3D request.GET('http://stats.surfaid.ihost.com:80/cr=
c/images/uc.GIF?1.17&wpost&wpost&http%3A//www.washingtonpost.com/&&wpnius=
er%3DbennettpUPROF%3DWU9CPTE5NTQrRz1tYWxlK1pJUD0yMjIwMStVVD1leHBsaWNpdCtD=
PUFuZ3VpbGxhK0I9UFJPRkVTK0I9SVQrQj1NRURJQStCPVNJWkVfMw%3D%3D&1&3&300&32x1=
152x864&69&&&667390861110318840765')
> return HtmlResult
>
> def __init__(self):
> self.page0Test =3D Test(0, 'Page0').wrap(self.page0)
> self.page1Test =3D Test(1, 'Page1').wrap(self.page1)
> self.page2Test =3D Test(2, 'Page2').wrap(self.page2)
> self.page3Test =3D Test(3, 'Page3').wrap(self.page3)
> self.page4Test =3D Test(4, 'Page4').wrap(self.page4)
> self.page5Test =3D Test(5, 'Page5').wrap(self.page5)
> self.page6Test =3D Test(6, 'Page6').wrap(self.page6)
> self.page7Test =3D Test(7, 'Page7').wrap(self.page7)
> self.page8Test =3D Test(8, 'Page8').wrap(self.page8)
> =20
>
> def __call__(self):
> self.page0Test()
> grinder.sleep(594)
> self.page1Test()
> grinder.sleep(47)
> self.page2Test()
> grinder.sleep(15)
> self.page3Test()
> grinder.sleep(31)
> self.page4Test()
> grinder.sleep(109)
> self.page5Test()
> grinder.sleep(109)
> self.page6Test()
> grinder.sleep(109)
> self.page7Test()
> grinder.sleep(78)
> self.page8Test()
> =20
>
>------------------------------------------------------------------------
>
>#
># Example grinder.properties
>#
>grinder.jvm.arguments=3D-Dpython.home=3DC:\Grinder3.23\grinder-3.0-beta2=
3\lib\jython.jar
>
>grinder.processes=3D1
>grinder.threads=3D1
>grinder.runs=3D1
>
>#grinder.useConsole=3Dfalse
>
>grinder.logDirectory=3Dlog
>grinder.numberOfOldLogs=3D2
>
>#grinder.initialSleepTime=3D500
>grinder.sleepTimeFactor=3D0.01
>#grinder.sleepTimeVariation=3D0.005
>
>grinder.script=3DRecordedScenario_clx.py
>
>#grinder.script=3Dhelloworld.py
>#grinder.script=3Dhttp.py
>#grinder.script=3Dscenario.py
>#grinder.script=3Dfba.py
>#grinder.script=3Dcookies.py
>#grinder.script=3Dform.py
>#grinder.script=3Dejb.py
>#grinder.script=3Djdbc.py
>#grinder.script=3Damazon.py
>#grinder.script=3Djaxrpc.py
>#grinder.script=3Dhelloworldfunctions.py
>#grinder.script=3Dstatistics.py
>#grinder.script=3Djmssender.py
>#grinder.script=3Djmsreceiver.py
>#grinder.script=3Dconsole.py
>#grinder.script=3Dscriptlifecycle.py
>#grinder.script=3Dhttpunit.py
>#grinder.script=3Demail.py
>#grinder.script=3Dcomposite.py
>#grinder.script=3Dproportion.py
>
> =20
>
>------------------------------------------------------------------------
>
># Number tests from <n>; usefull to concate several scripts (v1 and v2)
>initialTest=3D0
>
># sleep time ms (>=3D0 enabled; <0 disabled) (v1 and v2)
>sleepTime=3D-1000
>
># User-Agent (v2 only)
>userAgent=3DMozilla/4.1 (compatible; MSIE 6.0; Windows NT 5.0)
>
># Cookie name, Default is JSESSIONID (v2 only)
>cookieName=3DJSESSIONID
>
># Pattern to identify page where to find cookie value, default is ^.*?ho=
me.jsp$ (v2 only)
>#searchedPagePattern=3D^.*?Accueil.jsp$
>searchedPagePattern=3D^.*?/$
>
># display debug information (on|off) (v1 and v2)
>debug=3Don
>
># suffix to identify resource, default is .gif;.css;.js;.jpg;.ico (v2 on=
ly)
>resources=3D.gif;.css;.js;.jpg;.ico;.swf;.GIF;.CSS;.JS;.JPG;.ICO;.SWF
>
># exclude resource or not (on|off) (v2 only)
>excludeResource=3Don
>
># relative directory and name of the script file without extension (v1 o=
nly)
>#scriptFileV1=3D.\\httpscript
>
># relative directory and name of the script file without extension (v2 o=
nly)
>scriptFileV2=3D.\\RecordedScenario_clx
>
># pattern to identify discarded pages (max. 10 patterns) (v2 only)
>#discardPattern0=3D^.*/application;.*?redirectToSamePage=3Dtrue$
>#discardPattern1=3D^.*?Accueil.jsp$
>#discardPattern2=3D^.*?/$
>discardPattern0=3Dmedia\.washingtonpost\.com
>discardPattern1=3Dwpni\.overture\.com
>discardPattern2=3Dad\.doubleclick\.net
>discardpattern3=3Dstockpoint
>discardpattern4=3Dwpni\.overture\.com
>discardpattern5=3Dsurfaid\.ihost\.com
>discardpattern6=3Dedge\.ru4\.com
>discardpattern7=3Dads\.pointroll\.com
>discardpattern8=3Daltfarm\.mediaplex\.com
>discardpattern9=3Dwatchlist
>
|