Picon

Trouble

Hello! 

I can't start scripts without console. 
I use the Grinder version 3.0-beta26 with following grinder.properties: 

         grinder.jvm.arguments=-Xms16m -Xmx256m -Xss128k -Dpython.home=C:/jython
-DHTTPClient.disableKeepAlives=true 
         grinder.processes=1 
         grinder.threads=50 
         grinder.runs=1 
         grinder.useConsole=false 
         grinder.logDirectory=log 
         grinder.numberOfOldLogs=100 
         grinder.initialSleepTime=10000 
         grinder.sleepTimeFactor=1 
         grinder.sleepTimeVariation=0.9 
         grinder.plugin.parameter.disablePersistentConnections=true 
         grinder.plugin.parameter.useHTTPClient=true 
When I run script using console (grinder.useConsole=true), everything works correctly. 
But when I run  runScript.bat file with following content: 
         java -Dgrinder.script=MyScript/MainScript.py net.grinder.Grinder 
         pause 
my script cannot connect to the web application 

Please, help me in my problem. 

Regards, 
Nataliya Reshitnik, 
QA engineer, 
G2X, Minsk
(Continue reading)

sebastien.lemeunier | 1 Jul 2005 13:54
Favicon

Re: Trouble


Can you send the output and the log files. It would help to troubleshoot the issue.

-seb



Наталья Решитник <reshitnik <at> mail.ru>
Sent by: grinder-use-admin <at> lists.sourceforge.net

01/07/2005 08:44
Please respond to Наталья Решитник

       
        To:        grinder-use <at> lists.sourceforge.net
        cc:        (bcc: Sebastien Lemeunier/PH/Novartis)
        Subject:        [Grinder-use] Trouble

        Category:        




Hello!

I can't start scripts without console.
I use the Grinder version 3.0-beta26 with following grinder.properties:

        grinder.jvm.arguments=-Xms16m -Xmx256m -Xss128k -Dpython.home=C:/jython -DHTTPClient.disableKeepAlives=true
        grinder.processes=1
        grinder.threads=50
        grinder.runs=1
        grinder.useConsole=false
        grinder.logDirectory=log
        grinder.numberOfOldLogs=100
        grinder.initialSleepTime=10000
        grinder.sleepTimeFactor=1
        grinder.sleepTimeVariation=0.9
        grinder.plugin.parameter.disablePersistentConnections=true
        grinder.plugin.parameter.useHTTPClient=true
When I run script using console (grinder.useConsole=true), everything works correctly.
But when I run  runScript.bat file with following content:
        java -Dgrinder.script=MyScript/MainScript.py net.grinder.Grinder
        pause
my script cannot connect to the web application

Please, help me in my problem.

Regards,
Nataliya Reshitnik,
QA engineer,
G2X, Minsk


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Grinder-use mailing list
Grinder-use <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use


Picon

Error


Hi:

I am working in grinder 2 under Windows 2000 Server and have the following error.

1/07/05 10:57:22 AM: (thread 18 cycle 0 test 1) Aborting cycle - plug-in threw
net.grinder.plugin.http.HTTPHandlerException: Premature EOF encountered, nested exception:
HTTPClient.RetryException: Premature EOF encountered
net.grinder.plugin.http.HTTPHandlerException: Premature EOF encountered, nested exception:
HTTPClient.RetryException: Premature EOF encountered
	at net.grinder.plugin.http.HTTPClientHandler.sendRequest(HTTPClientHandler.java:271)
	at net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks.doTest(HttpPlugin.java:552)
	at net.grinder.engine.process.ThreadContext.invokeTest(ThreadContext.java:166)
	at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:176)
	at java.lang.Thread.run(Unknown Source)

	Nested exception stack trace: HTTPClient.RetryException: Premature EOF encountered
	at HTTPClient.StreamDemultiplexor.retry_requests(StreamDemultiplexor.java:526)
	at HTTPClient.StreamDemultiplexor.close(StreamDemultiplexor.java:494)
	at HTTPClient.StreamDemultiplexor.read(StreamDemultiplexor.java:365)
	at HTTPClient.RespInputStream.read(RespInputStream.java:155)
	at HTTPClient.RespInputStream.read(RespInputStream.java:115)
	at HTTPClient.Response.readResponseHeaders(Response.java:971)
	at HTTPClient.Response.getHeaders(Response.java:693)
	at HTTPClient.Response.getHeader(Response.java:359)
	at HTTPClient.CookieModule.responsePhase1Handler(CookieModule.java:394)
	at HTTPClient.HTTPResponse.handleResponse(HTTPResponse.java:724)
	at HTTPClient.HTTPResponse.getStatusCode(HTTPResponse.java:190)
	at net.grinder.plugin.http.HTTPClientHandler.sendRequest(HTTPClientHandler.java:233)
	at net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks.doTest(HttpPlugin.java:552)
	at net.grinder.engine.process.ThreadContext.invokeTest(ThreadContext.java:166)
	at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:176)
	at java.lang.Thread.run(Unknown Source)

Thanks.

Att: Ruth 

 
____________________
Sent via the WebMail system at ecoinfo.com.co
Enviado a través del sistema WebMail de ecoinfo.com.co

______
[Email scanned for viruses by Panda Consulting -www.pandacons.com-]
[Email escaneado contra virus por Panda Consulting -www.pandacons.com-]

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
Philip Aston | 3 Jul 2005 17:35

RE: Grinder beta 26, J2SE 1.4 and custom statistics


VANDENSCHRICK Vincent writes on 22 June 2005 17:25:
 > 
 > First of all, thanks for developping this product. It has been a
 > pleasure to use it. We've built a bunch of load scripts on beta24
 > with a lot of success to challenge the scalability of a J2EE
 > application with a rich swing java client (RMI/IIOP).
 > 
 > Our scripts have been developped using the cient side api of the
 > application. We conider this aproach much more robust against
 > changes than a network capture/variabilization/replay strategy. One
 > of our constraint is to inject the load against WebSphere 4.x
 > servers. I've just read that the beta26 did not support 1.3 J2SE
 > anymore (this is the JVM level used by WebSphere 4.x, and as a
 > consequence, by our swing client). Is it true for the Console, the
 > Agents or even for the WorkerProcesses ? If 1.4 JVM is a
 > requirement for WorkerProcess, this would mean that we would be
 > stuck to beta24 (or 25) until we migrate the architecture (or try
 > to use a 1.4 JVM on the client-side but with potential
 > side-effects), right ?

Yes, you'll have to stick to b24 I'm afraid.

The 1.4 requirement applies across The Grinder (console, agent,
woker processes, TCPProxy). 

 > Another question about custom statistics. on beta 24, we've
 > implemented a custom test statistics ("userLong0") which represents
 > the test weight. For each test execution, the scripts fill-in this
 > custom value depending on some business data. It allows us to
 > declare in the console a custom reported value (the test
 > performance) using the expression: (/ timedTestTime userLong0) As
 > of beta25, "timedTestTime" has gone away and has been replaced(?)
 > by the sample statistics "timedTests". I was thinking about a
 > replacement expression like : (/ (sum timedTests) userLong0)

That's the equivalent expession. The more complex expression syntax
(and a different type of statistic object of which timedTests is an
instance) was necessary in order to support variance calculations.

 > but how will be handled "userLong0" on a sample which may contain
 > multiple timedTests with for each of them different "userLong0" ? I
 > may not understand it fully but it doesn't seem easy to implement
 > now...

There's no difference in behaviour between b24 and b26 - just a
difference in the expression you have to use.

When the expression (/ (sum timedTests) userLong0) is applied to a set
of test statistics, it evaluates to the sum of all of the times
divided by the sum of all the userLong0's. You end up with an average.

- Phil

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
Philip Aston | 3 Jul 2005 17:35

RE: Help


gagan gagan writes on 21 June 2005 12:40:
 > 
 > I have a doubt that may sound funny. But if we create or delete an
 > email (or any other similar thing like subscripting for a news
 > letter) while recording through TCPProxy, evreything is recorded in
 > the script. When this kind of activity is recorded, when we run the
 > script using grinder, will it perform the same things.
 > 
 > I mean, when we run grinder with that particular script of
 > subscribing from a website, are we trying to subscribe to it again
 > and again depending on the number of users? Would grinder ask for
 > subsciption number of times depending upon the number of users?

The Grinder will run the script in multiple threads, simulating the
behaviour of multiple concurrent users.

Typically, you would edit the script so that each thread behaves
differently, e.g. subscribe using a different user name.

- Phil

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
Philip Aston | 3 Jul 2005 19:15

RE: need help


Perez Antonino writes on 23 June 2005 17:22:
 > 
 > Good evening,
 > until now, i've used the Grinder as a tool to send http requests...
 > now, i should use it, to send requests by "LDAP" protocoll.
 > 
 > Is it possible?
 > If it's, how can i do it?

It should be straightforward.

You'll need a Java LDAP library - I believe SUN/Netscape have one. Then
you can use that library directly from a Grinder 3 script.

- Phil

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
gagan gagan | 4 Jul 2005 08:58
Picon
Favicon

Help

Hi, i am attaching a script file with this mail as i
want to simulate different users on the same
application. Please guide me to how would i change
this recorded script to have different usernames.

	

	
		
__________________________________________________________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com
#
# The Grinder version 3.0-beta26
#
# Script recorded by the TCPProxy at Jul 2, 2005 4:48:01 PM
#

from httpscript_tests import *
from net.grinder.script.Grinder import grinder

class TestRunner:
    def __call__(self):

        tests[0].GET('http://www.rediff.com:80/')

        grinder.sleep(125)
        tests[1].GET('http://in.rediff.com:80/uim/ads/ind-home-Middle.htm')

        grinder.sleep(469)
        tests[2].GET('http://in.rediff.com:80/index.html')

        tests[3].GET('http://in.rediff.com:80/uim/ads/ind-home-Bottom2.htm')

        grinder.sleep(78)
        tests[4].GET('http://in.rediff.com:80/uim/ads/ind-home-Bottom3.htm')

        tests[5].GET('http://im.rediff.com:80/uim/matri/nocaching/1513503N.gif')

        grinder.sleep(172)
        tests[6].GET('http://imadworks.rediff.com:80/AdWorks/ind-home-Bottom4.htm')

        grinder.sleep(156)
        tests[7].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediff.com/ind-home.htm/1666952312 <at> Bottom2',
          ( NVPair('g', '2'), 
            NVPair('a', '24'), 
            NVPair('c', '01'), 
            NVPair('s', '15'), 
            NVPair('cn', '099'), 
            NVPair('z', '560072'), 
            NVPair('p', '034'), 
            NVPair('e', '00'), 
            NVPair('d', '_04'), 
            NVPair('i', '12_'), 
            NVPair('REFERER', 'http://in.rediff.com/index.html'), ))

        grinder.sleep(156)
        tests[8].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediff.com/ind-home.htm/1623712441 <at> Bottom3',
          ( NVPair('g', '2'), 
            NVPair('a', '24'), 
            NVPair('c', '01'), 
            NVPair('s', '15'), 
            NVPair('cn', '099'), 
            NVPair('z', '560072'), 
            NVPair('p', '034'), 
            NVPair('e', '00'), 
            NVPair('d', '_04'), 
            NVPair('i', '12_'), 
            NVPair('REFERER', 'http://in.rediff.com/index.html'), ))

        grinder.sleep(78)
        tests[9].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediff.com/ind-home.htm/1136081594 <at> Middle',
          ( NVPair('g', '2'), 
            NVPair('a', '24'), 
            NVPair('c', '01'), 
            NVPair('s', '15'), 
            NVPair('cn', '099'), 
            NVPair('z', '560072'), 
            NVPair('p', '034'), 
            NVPair('e', '00'), 
            NVPair('d', '_04'), 
            NVPair('i', '12_'), 
            NVPair('REFERER', 'http://in.rediff.com/index.html'), ))

        grinder.sleep(203)
        tests[10].GET('http://imadworks.rediff.com:80/cgi-bin/AdWorks/impress.cgi/www.rediff.com/ind-home.htm/1050702167 <at> Bottom4',
          ( NVPair('OAS_query', 'null'), ))

        grinder.sleep(422)
        tests[11].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/ind-home.htm/1050702167 <at> Bottom4/6968_5970/6824/1',
          ( NVPair('OAS_QUERY', 'null'), 
            NVPair('REFERER', ''), 
            NVPair('R', '9843669677'), 
            NVPair('PARTNER', '0'), ))

        grinder.sleep(437)
        tests[12].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/ind-home.htm/1050702167 <at> Bottom4/8884_7758/8823/2',
          ( NVPair('OAS_QUERY', 'null'), 
            NVPair('REFERER', ''), 
            NVPair('R', '9843669677'), 
            NVPair('PARTNER', '0'), ))

        grinder.sleep(484)
        tests[13].GET('http://imads.rediff.com:80/RealMedia/ads/Creatives/Rediffbol05/dhtml_2people_bangalore_kolkatta03july.swf',
          ( NVPair('click',
'http://ads.rediff.com/RealMedia/ads/click_lx.ads/www.rediff.com/ind-home.htm/2062410377/Middle/Rediffbol05/dhtml_2people_bangalore_kolkatta03july.html/33643566633932663432383138626630?URL'), ))

        grinder.sleep(18015)
        tests[14].POST('http://mail.rediff.com:80/cgi-bin/login.cgi',
          ( NVPair('FormName', 'existing'), 
            NVPair('login', 'gagan_vvce'), 
            NVPair('passwd', 'gamin'), 
            NVPair('x', '0'), 
            NVPair('y', '0'), ))

        grinder.sleep(125)
        tests[15].GET('http://f2mail.rediff.com:80/bn/postlogin.cgi',
          ( NVPair('login', 'gagan_vvce'), 
            NVPair('session_id', '2K1KFKPDgdhxjJSK8Wrbv3mfhS10'), 
            NVPair('farm', '2'), ))

        grinder.sleep(125)
        tests[16].GET('http://f2mail.rediff.com:80/bn/folder.cgi',
          ( NVPair('formname', 'sh_folder'), 
            NVPair('folder', 'Inbox'), 
            NVPair('login', 'gagan_vvce'), 
            NVPair('session_id', '2K1KFKPDgdhxjJSK8Wrbv3mfhS10'), 
            NVPair('SrtFld', '2'), 
            NVPair('SrtOrd', '1'), 
            NVPair('MsgCnt', '0'), 
            NVPair('user_size', '1'), ))

        grinder.sleep(516)
        tests[17].GET('http://imadworks.rediff.com:80/AdWorks/inbox-Bottom4.htm')

        grinder.sleep(594)
        tests[18].GET('http://im.rediff.com:80/uim/content/inbox-left1.htm')

        grinder.sleep(141)
        tests[19].GET('http://f2mail.rediff.com:80/template/meta/inbox-Right.htm')

        grinder.sleep(157)
        tests[20].GET('http://imadworks.rediff.com:80/cgi-bin/AdWorks/impress.cgi/www.rediff.com/inbox.htm/1050702162 <at> Bottom4',
          ( NVPair('OAS_query', 'null'), ))

        grinder.sleep(47)
        tests[21].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediffmail.com/inbox.htm/1326080013 <at> Right',
          ( NVPair('g', '2'), 
            NVPair('a', '24'), 
            NVPair('c', '01'), 
            NVPair('s', '15'), 
            NVPair('cn', '099'), 
            NVPair('z', '560072'), 
            NVPair('p', '034'), 
            NVPair('e', '00'), 
            NVPair('d', '_04'), 
            NVPair('i', '12_'), ))

        grinder.sleep(344)
        tests[22].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702162 <at> Bottom4/8848_7722/8782/1',
          ( NVPair('OAS_QUERY', 'null'), 
            NVPair('REFERER', ''), 
            NVPair('R', '982352411'), 
            NVPair('PARTNER', '0'), ))

        grinder.sleep(360)
        tests[23].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702162 <at> Bottom4/8199_7117/8087/2',
          ( NVPair('OAS_QUERY', 'null'), 
            NVPair('REFERER', ''), 
            NVPair('R', '982352411'), 
            NVPair('PARTNER', '0'), ))

        grinder.sleep(12219)
        tests[24].POST('http://f2mail.rediff.com:80/bn/folder.cgi',
          ( NVPair('FormName', 'sh_folder'), 
            NVPair('folder', 'Inbox'), 
            NVPair('login', 'gagan_vvce'), 
            NVPair('session_id', '2K1KFKPDgdhxjJSK8Wrbv3mfhS10'), 
            NVPair('btn_name1', 'Move'), 
            NVPair('SrtFld', '2'), 
            NVPair('SrtOrd', '1'), 
            NVPair('MsgCnt', '0'), 
            NVPair('moveto_folder1', 'Trash'), 
            NVPair('SelMsg3', '1116573113.17407.webmail20.rediffmail.com.old'), 
            NVPair('total', '7'), ))

        grinder.sleep(344)
        tests[25].GET('http://f2mail.rediff.com:80/template/meta/inbox-Right.htm')

        grinder.sleep(406)
        tests[26].GET('http://imadworks.rediff.com:80/AdWorks/inbox-Bottom4.htm')

        grinder.sleep(31)
        tests[27].GET('http://im.rediff.com:80/uim/content/inbox-left1.htm')

        grinder.sleep(187)
        tests[28].GET('http://ads.rediff.com:80/RealMedia/ads/adstream_jx.ads/www.rediffmail.com/inbox.htm/1793012232 <at> Right',
          ( NVPair('g', '2'), 
            NVPair('a', '24'), 
            NVPair('c', '01'), 
            NVPair('s', '15'), 
            NVPair('cn', '099'), 
            NVPair('z', '560072'), 
            NVPair('p', '034'), 
            NVPair('e', '00'), 
            NVPair('d', '_04'), 
            NVPair('i', '12_'), ))

        grinder.sleep(187)
        tests[29].GET('http://imadworks.rediff.com:80/cgi-bin/AdWorks/impress.cgi/www.rediff.com/inbox.htm/1050702168 <at> Bottom4',
          ( NVPair('OAS_query', 'null'), ))

        grinder.sleep(344)
        tests[30].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702168 <at> Bottom4/8889_7763/8828/1',
          ( NVPair('OAS_QUERY', 'null'), 
            NVPair('REFERER', ''), 
            NVPair('R', '9885691787'), 
            NVPair('PARTNER', '0'), ))

        grinder.sleep(344)
        tests[31].GET('http://ads.rediff.com:80/cgi-bin/AdWorks/speclog.cgi/www.rediff.com/inbox.htm/1050702168 <at> Bottom4/8896_7770/8835/2',
          ( NVPair('OAS_QUERY', 'null'), 
            NVPair('REFERER', ''), 
            NVPair('R', '9870887599'), 
            NVPair('PARTNER', '0'), ))
#
# The Grinder version 3.0-beta26
#
# HTTP tests recorded by the TCPProxy at Jul 2, 2005 4:48:01 PM
#

from HTTPClient import NVPair
from net.grinder.plugin.http import HTTPRequest
from net.grinder.script import Test

tests = {}

headers0 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request0 = HTTPRequest(headers = headers0)
tests[0] = Test(0, 'GET ').wrap(request0)

headers1 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://in.rediff.com/index.html'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request1 = HTTPRequest(headers = headers1)
tests[1] = Test(1, 'GET ind-home-Middle.htm').wrap(request1)

request2 = HTTPRequest(headers = headers0)
tests[2] = Test(2, 'GET index.html').wrap(request2)

request3 = HTTPRequest(headers = headers1)
tests[3] = Test(3, 'GET ind-home-Bottom2.htm').wrap(request3)

request4 = HTTPRequest(headers = headers1)
tests[4] = Test(4, 'GET ind-home-Bottom3.htm').wrap(request4)

headers5 = ( NVPair('Accept', '*/*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://in.rediff.com/index.html'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request5 = HTTPRequest(headers = headers5)
tests[5] = Test(5, 'GET 1513503N.gif').wrap(request5)

headers6 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('If-Modified-Since', 'Fri, 14 Jan 2005 14:01:11 GMT'), 
            NVPair('Referer', 'http://in.rediff.com/index.html'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request6 = HTTPRequest(headers = headers6)
tests[6] = Test(6, 'GET ind-home-Bottom4.htm').wrap(request6)

headers7 = ( NVPair('Accept', '*/*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://in.rediff.com/uim/ads/ind-home-Bottom2.htm'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request7 = HTTPRequest(headers = headers7)
tests[7] = Test(7, 'GET 1666952312 <at> Bottom2').wrap(request7)

headers8 = ( NVPair('Accept', '*/*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://in.rediff.com/uim/ads/ind-home-Bottom3.htm'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request8 = HTTPRequest(headers = headers8)
tests[8] = Test(8, 'GET 1623712441 <at> Bottom3').wrap(request8)

headers9 = ( NVPair('Accept', '*/*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://in.rediff.com/uim/ads/ind-home-Middle.htm'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request9 = HTTPRequest(headers = headers9)
tests[9] = Test(9, 'GET 1136081594 <at> Middle').wrap(request9)

headers10 = ( NVPair('Accept', '*/*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://imadworks.rediff.com/AdWorks/ind-home-Bottom4.htm'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request10 = HTTPRequest(headers = headers10)
tests[10] = Test(10, 'GET 1050702167 <at> Bottom4').wrap(request10)

request11 = HTTPRequest(headers = headers10)
tests[11] = Test(11, 'GET 1').wrap(request11)

request12 = HTTPRequest(headers = headers10)
tests[12] = Test(12, 'GET 2').wrap(request12)

headers13 = ( NVPair('Accept', '*/*'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request13 = HTTPRequest(headers = headers13)
tests[13] = Test(13, 'GET dhtml_2people_bangalore_kolkatta03july.swf').wrap(request13)

headers14 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://in.rediff.com/index.html'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), 
            NVPair('Content-Type', 'application/x-www-form-urlencoded'), )
request14 = HTTPRequest(headers = headers14)
tests[14] = Test(14, 'POST login.cgi').wrap(request14)

request15 = HTTPRequest(headers = headers1)
tests[15] = Test(15, 'GET postlogin.cgi').wrap(request15)

request16 = HTTPRequest(headers = headers1)
tests[16] = Test(16, 'GET folder.cgi').wrap(request16)

headers17 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('If-Modified-Since', 'Tue, 26 Apr 2005 06:36:22 GMT'), 
            NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request17 = HTTPRequest(headers = headers17)
tests[17] = Test(17, 'GET inbox-Bottom4.htm').wrap(request17)

headers18 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request18 = HTTPRequest(headers = headers18)
tests[18] = Test(18, 'GET inbox-left1.htm').wrap(request18)

headers19 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('If-Modified-Since', 'Sat, 23 Apr 2005 07:24:53 GMT'), 
            NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request19 = HTTPRequest(headers = headers19)
tests[19] = Test(19, 'GET inbox-Right.htm').wrap(request19)

headers20 = ( NVPair('Accept', '*/*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://imadworks.rediff.com/AdWorks/inbox-Bottom4.htm'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request20 = HTTPRequest(headers = headers20)
tests[20] = Test(20, 'GET 1050702162 <at> Bottom4').wrap(request20)

headers21 = ( NVPair('Accept', '*/*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://f2mail.rediff.com/template/meta/inbox-Right.htm'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request21 = HTTPRequest(headers = headers21)
tests[21] = Test(21, 'GET 1326080013 <at> Right').wrap(request21)

request22 = HTTPRequest(headers = headers20)
tests[22] = Test(22, 'GET 1').wrap(request22)

request23 = HTTPRequest(headers = headers20)
tests[23] = Test(23, 'GET 2').wrap(request23)

headers24 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer',
'http://f2mail.rediff.com/bn/folder.cgi?formname=sh_folder&folder=Inbox&login=gagan_vvce&session_id=2K1KFKPDgdhxjJSK8Wrbv3mfhS10&SrtFld=2&SrtOrd=1&MsgCnt=0&user_size=1'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), 
            NVPair('Content-Type', 'application/x-www-form-urlencoded'), )
request24 = HTTPRequest(headers = headers24)
tests[24] = Test(24, 'POST folder.cgi').wrap(request24)

headers25 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('If-Modified-Since', 'Sat, 23 Apr 2005 07:24:53 GMT'), 
            NVPair('Referer', 'http://f2mail.rediff.com/bn/folder.cgi'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request25 = HTTPRequest(headers = headers25)
tests[25] = Test(25, 'GET inbox-Right.htm').wrap(request25)

headers26 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('If-Modified-Since', 'Tue, 26 Apr 2005 06:36:22 GMT'), 
            NVPair('Referer', 'http://f2mail.rediff.com/bn/folder.cgi'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request26 = HTTPRequest(headers = headers26)
tests[26] = Test(26, 'GET inbox-Bottom4.htm').wrap(request26)

headers27 = ( NVPair('Accept', 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
application/x-shockwave-flash, */*'), 
            NVPair('Accept-Language', 'en-us'), 
            NVPair('Referer', 'http://f2mail.rediff.com/bn/folder.cgi'), 
            NVPair('User-Agent', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'), )
request27 = HTTPRequest(headers = headers27)
tests[27] = Test(27, 'GET inbox-left1.htm').wrap(request27)

request28 = HTTPRequest(headers = headers21)
tests[28] = Test(28, 'GET 1793012232 <at> Right').wrap(request28)

request29 = HTTPRequest(headers = headers20)
tests[29] = Test(29, 'GET 1050702168 <at> Bottom4').wrap(request29)

request30 = HTTPRequest(headers = headers20)
tests[30] = Test(30, 'GET 1').wrap(request30)

request31 = HTTPRequest(headers = headers20)
tests[31] = Test(31, 'GET 2').wrap(request31)
Patrick Zaloum | 4 Jul 2005 15:48
Picon

RE: Help

You might look at declaring an array with the usernames you want to see
log in and matching password array, and in the script where you enter
the username value (user and pass) you pick a random or sequential index
from your array as an input value.

Eg
users={"john","bill","paul","mary")
pass={"pass123","123pass","abc123","passabc"}

...

        tests[14].POST('http://mail.rediff.com:80/cgi-bin/login.cgi',
          ( NVPair('FormName', 'existing'), 
            NVPair('login', users[x]), 
            NVPair('passwd', pass[x]), 
            NVPair('x', '0'), 
            NVPair('y', '0'), ))
In this x is some indexed or random value... you choose how you want to
determine it.

Regards,
Pat
-----Original Message-----
From: grinder-use-admin@...
[mailto:grinder-use-admin@...] On Behalf Of gagan
gagan
Sent: Monday, July 04, 2005 2:58 AM
To: grinder
Subject: [Grinder-use] Help

Hi, i am attaching a script file with this mail as i
want to simulate different users on the same
application. Please guide me to how would i change
this recorded script to have different usernames.

	

	
		
__________________________________________________________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com
NOTICE: This email contains privileged and confidential information and is intended only for the
individual to whom it is addressed. If you are not the named addressee, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this
transmission by mistake and delete this communication from your system. E-mail transmission cannot be
guaranteed to be secured or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. 

AVIS: Le prsent courriel contient des renseignements de nature privilgie et confidentielle et nest
destin qu' la personne  qui il est adress. Si vous ntes pas le destinataire prvu, vous tes par les
prsentes aviss que toute diffusion, distribution ou reproduction de cette communication est
strictement interdite. Si vous avez reu ce courriel par erreur, veuillez en aviser immdiatement
lexpditeur et le supprimer de votre systme. Notez que la transmission de courriel ne peut en aucun cas
tre considr comme inviolable ou exempt derreur puisque les informations quil contient pourraient
tre intercepts, corrompues, perdues, dtruites, arrives en retard ou incompltes ou contenir un
virus. 

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
Patrick Zaloum | 4 Jul 2005 23:09
Picon

SQL Connection pooling

We are using an SQL server for our database connection. When grinder pounds our app it Tomcat starts to die with

 

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted

 

Does anyone have any hints to how I can get the pool to support more connections? I am using Tomcat 5.0.30

 

Best Regards,

 

Patrick Zaloum

IS Developer

 

NOTICE

: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.

AVIS: Le pr ent courriel contient des renseignements de nature privilégiée et confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous n’êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute diffusion, distribution ou reproduction de cette communication est strictement interdite.  Si vous avez reçu ce courriel par erreur, veuillez en aviser immédiatement l’expéditeur et le supprimer de votre système. Notez que la transmission de courriel ne peut en aucun cas être considéré comme inviolable ou exempt d’erreur puisque les informations qu’il contient pourraient être interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes ou contenir un virus.  

Altaf Hossain | 5 Jul 2005 19:45

Fwd: Re: Help

From: Altaf Hossain <AHossain@...>
Subject: Re: [Grinder-use] Help
Date: 2005-07-05 17:44:00 GMT
Hi Guys -

I am using win2k for grinder 3; How would I set up my proxy settings? for example:

how would I do: "CLASSPATH=/../../../lib/grinder.jar" and also how would I do "export CLASSPATH" from DOS?

I tried via IE ..> internet options >... and also the mozilla browser. When I run the "java
net.grinder.TCPProxy -httpplugin" it doesn't record anything, but the files "httpscript.py and
httpscripts_tests.py" get generated, and they are empty.

Any Idea what I am doing wrong here?

Thank you for your help.
Altaf

>>> gagan gagan <gagan_vvce@...> 07/04/05 02:58AM >>>
Hi, i am attaching a script file with this mail as i
want to simulate different users on the same
application. Please guide me to how would i change
this recorded script to have different usernames.

	

	
		
__________________________________________________________
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click

Gmane