Rinu Rajan | 2 Sep 2004 12:49
Picon
Favicon

Help Wanted

Hi sir,
           Sir this is Rinu here again, i wanted to know as to how do i get a HTTPServeletRequest object in my stringBean class...
 
                                Thank You
                               Rinu Rajan
                              Trigent Software Ltd.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Philip Aston | 2 Sep 2004 14:03

RE: Help Wanted

This isn't possible. HTTPServletRequest is a server side object. It is not available to clients.
 
- Phil

	-----Original Message----- 
	From: grinder-use-admin <at> lists.sourceforge.net on behalf of Rinu Rajan 
	Sent: Thu 02/09/2004 11:49 
	To: grinder-use <at> lists.sourceforge.net 
	Cc: 
	Subject: [Grinder-use] Help Wanted
	
	
	Hi sir,
	           Sir this is Rinu here again, i wanted to know as to how do i get a HTTPServeletRequest object in my stringBean class...
	 
	                                Thank You
	                               Rinu Rajan
	                              Trigent Software Ltd.

	__________________________________________________
	Do You Yahoo!?
	Tired of spam? Yahoo! Mail has the best spam protection around 
	http://mail.yahoo.com 

NHS^隊X'unZ ŨK!QBZ'+'auޖ^(*.y)ʇl ŨK!5Zmv,vw(9ӎږZ5<'$
Philip Aston | 2 Sep 2004 14:33

RE: Help Wanted

Servers typically return the session ID to the caller in a URLs contained within a page, or in an HTTP Cookie.
To get at this information, your string bean will have to implement
net.grinder.plugin.http.HTTPClientResponseListener and passe the URLs/cookies itself.
 
Much easier in G3.
 
- Phil
 

	-----Original Message----- 
	From: Rinu Rajan [mailto:rinurajan2002 <at> yahoo.com] 
	Sent: Thu 02/09/2004 13:22 
	To: Philip Aston 
	Cc: 
	Subject: RE: [Grinder-use] Help Wanted
	
	

	Hi sir,

	        Thank You for your response. But all the problem is that i want to get the session id, is there any way to get
the session object and get its id an various object ids associated with it, please help me out.

	                                   Thank You

	                                 Rinu Rajan

	
  _____  

	Do you Yahoo!?
	Express yourself with Y! Messenger! Free. Download now
<http://us.rd.yahoo.com/mail_us/taglines/msgr/evt=26089/*http://messenger.yahoo.com> .

Rinu Rajan | 2 Sep 2004 12:37
Picon
Favicon

Help Wanted

Hi sir,
           Sir this is Rinu here again, i wanted to know as to how do i get a HTTPServeletRequest object in my stringBean class...
 
                                Thank You
                               Rinu Rajan
                              Trigent Software Ltd.

Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
Rinu Rajan | 2 Sep 2004 16:09
Picon
Favicon

Help wanted.

Hi sir,
       I'am in a serious problem with the session objects
Here is the part of a grinder.properties file created by TCPSniffer (Grinder 2) for an application running on JBoss
 
Problem 1:
 
grinder.test101.parameter.url=http://demo.celequest.com:8080/celequest/dashboard/default.htm?sessionID=b3b67a8bc0a8005100eefca4c33fea0e&loginID=system
grinder.test101.sleepTime=1252
grinder.test101.description=default.htm
Here i think we will have to change the sessionID for each Test thread(cycle) and in that case we will have to use string bean but the problem is that if i create it randomly the server want be able to identify the session id (i think so), please tell me how to load test such a server.
 
 
Problem 2:
 
grinder.test161.parameter.url=http://demo.celequest.com:8080/celequest/Controller/PortletAction/Refresh/dbobject2/b3b748eac0a8005100bbec165bbc876e?CelequestSessionId=b3b67a8bc0a8005100eefca4c33fea0e&curr=1093957090591
grinder.test161.sleepTime=340
grinder.test161.description=b3b748eac0a8005100bbec165bbc876e
Even this is generated by TCPSniffer and for the same server.
Here it is requesting for a dynamic file (object i guess) and for every test/ cycle instance it has to change, how do i solve the problem
 
i tried with diffrent browser instance(on same machine) it creates diffrent id's.
 
Please help sir, i'am in deep trouble
 
                                                 Thank You
                                               Rinu Rajan (Trigent Software Ltd)

Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
Philip Aston | 2 Sep 2004 16:31

RE: Help wanted.

Try taking out the sessionID parameter. JBoss probably only sends it for the first request because it can't
tell whether the client supports cookies.
 
- Phil

	-----Original Message----- 
	From: grinder-use-admin <at> lists.sourceforge.net on behalf of Rinu Rajan 
	Sent: Thu 02/09/2004 15:09 
	To: grinder-use <at> lists.sourceforge.net 
	Cc: 
	Subject: [Grinder-use] Help wanted.
	
	
	Hi sir,
	       I'am in a serious problem with the session objects
	Here is the part of a grinder.properties file created by TCPSniffer (Grinder 2) for an application
running on JBoss
	 
	Problem 1:
	 
	grinder.test101.parameter.url=http://demo.celequest.com:8080/celequest/dashboard/default.htm?sessionID=b3b67a8bc0a8005100eefca4c33fea0e&loginID=system

	grinder.test101.sleepTime=1252
	grinder.test101.description=default.htm
	
	Here i think we will have to change the sessionID for each Test thread(cycle) and in that case we will have to
use string bean but the problem is that if i create it randomly the server want be able to identify the
session id (i think so), please tell me how to load test such a server.
	 
	 
	Problem 2:
	 
	grinder.test161.parameter.url=http://demo.celequest.com:8080/celequest/Controller/PortletAction/Refresh/dbobject2/b3b748eac0a8005100bbec165bbc876e?CelequestSessionId=b3b67a8bc0a8005100eefca4c33fea0e&curr=1093957090591

	grinder.test161.sleepTime=340
	grinder.test161.description=b3b748eac0a8005100bbec165bbc876e
	
	Even this is generated by TCPSniffer and for the same server.
	Here it is requesting for a dynamic file (object i guess) and for every test/ cycle instance it has to
change, how do i solve the problem
	 
	i tried with diffrent browser instance(on same machine) it creates diffrent id's.
	 
	Please help sir, i'am in deep trouble
	 
	                                                 Thank You
	                                               Rinu Rajan (Trigent Software Ltd)

	
  _____  

	Do you Yahoo!?
	Win 1 of 4,000 free domain names from Yahoo! Enter now
<http://us.rd.yahoo.com/evt=26640/*http://promotions.yahoo.com/goldrush> .

Whipple, Eric | 2 Sep 2004 19:31

question

Hello,

I'm trying to generate the same representation of posted form data that is
generated by the recorder (proxy) as in the following recorded example.

request1 = HTTPRequest()
tests[1] = Test(1, 'POST pkmslogin.form').wrap(request1)

data1 = ( 117, 115, 101, 114, 110, 97, 109, 101, 61, 112, 54, 48, 48, 48,
50, 38, 112, 97, 115, 115, 119, 111, 114, 100, 61, 115, 97, 115, 116, 101,
115, 116, )

I have been looking in the HTTPPluginTCPProxyFilter class to attempt to
trace (with the source code) the place at which the recorder receives the
information (and exactly what it is comprised of).  I assume this is a
Stringified byte array with the posted form data in it.

Long story short, how can I construct this data array?  Is there a specific
place in the source code where I can see the proxy doing it?

thanks very much,
Eric Whipple

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
Philip Aston | 2 Sep 2004 20:52

RE: Help Wanted

You can't get directly to the session object from the client.   

To get the session ID (and I'm not convinced you need to do this -
cookies should handle this for you transparently) you can either do a
lot of work in a G2 StringBean or use the autuomatic support in
Bertrand's HTTPPlugin filter for The Grinder 3.

  - Phil

-----Original Message-----
From: Rinu Rajan [mailto:rinurajan2002@...]
Sent: 02 September 2004 13:43
To: Philip Aston
Subject: RE: [Grinder-use] Help Wanted

Hi sir,

        Thank You for your response. But all the problem is that i want to get the session id, is there any way to get the
session object and get its id an various object ids associated with it, please help me out.

                                   Thank You

                                 Rinu Rajan

  _____  

Do you Yahoo!?
Yahoo! Mail
<http://us.rd.yahoo.com/mail_us/taglines/50x/*http://promotions.yahoo.com/new_mail/static/efficiency.html>
- 50x more storage than other providers!

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
Rinu Rajan | 3 Sep 2004 08:05
Picon
Favicon

Help Wanted

Hi sir,
 
9/3/04 11:18:19 AM: (thread 0) Plug-in initialize() threw net.grinder.plugininterface.PluginException: An instance of the string bean class 'GetNewSessionBean' could not be created., nested exception: java.lang.IllegalAccessException: Class net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks can not access a member of class GetNewSessionBean with modifiers ""
net.grinder.plugininterface.PluginException: An instance of the string bean class 'GetNewSessionBean' could not be created., nested exception: java.lang.IllegalAccessException: Class net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks can not access a member of class GetNewSessionBean with modifiers ""
 at net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks.initialize(HttpPlugin.java:494)
 at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:121)
 at java.lang. Thread.run(Thread.java:536)
 Nested exception stack trace: java.lang.IllegalAccessException: Class net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks can not access a member of class GetNewSessionBean with modifiers ""
 at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
 at java.lang.Class.newInstance0(Class.java:300)
 at java.lang.Class.newInstance(Class.java:259)
 at net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks.initialize(HttpPlugin.java:455)
 at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:121)
 at java.lang.Thread.run(Thread.java:536)
This is the o/p of the error log, i made my string bean GetNewSessionBean as simple as possible only implementing HTTPClientResponseListener, please tell me what could be the possible ewrror.
 
                                                                           Thank You
                                                                        Rinu Rajan (TSL)

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Philip Aston | 3 Sep 2004 10:53

RE: Help Wanted

StringBean classes must be public, and have a public default constructor.

	-----Original Message----- 
	From: grinder-use-admin <at> lists.sourceforge.net on behalf of Rinu Rajan 
	Sent: Fri 03/09/2004 07:05 
	To: grinder-use <at> lists.sourceforge.net 
	Cc: 
	Subject: [Grinder-use] Help Wanted
	
	
	Hi sir,
	 
	9/3/04 11:18:19 AM: (thread 0) Plug-in initialize() threw
net.grinder.plugininterface.PluginException: An instance of the string bean class
'GetNewSessionBean' could not be created., nested exception: java.lang.IllegalAccessException:
Class net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks can not access a member of
class GetNewSessionBean with modifiers ""
	net.grinder.plugininterface.PluginException: An instance of the string bean class
'GetNewSessionBean' could not be created., nested exception: java.lang.IllegalAccessException:
Class net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks can not access a member of
class GetNewSessionBean with modifiers ""
	 at net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks.initialize(HttpPlugin.java:494)
	 at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:121)
	 at java.lang.Thread.run(Thread.java:536)
	 Nested exception stack trace: java.lang.IllegalAccessException: Class
net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks can not access a member of class
GetNewSessionBean with modifiers ""
	 at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
	 at java.lang.Class.newInstance0(Class.java:300)
	 at java.lang.Class.newInstance(Class.java:259)
	 at net.grinder.plugin.http.HttpPlugin$HTTPPluginThreadCallbacks.initialize(HttpPlugin.java:455)
	 at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:121)
	 at java.lang.Thread.run(Thread.java:536)
	
	This is the o/p of the error log, i made my string bean GetNewSessionBean as simple as possible only
implementing HTTPClientResponseListener, please tell me what could be the possible ewrror.
	 
	                                                                           Thank You
	                                                                        Rinu Rajan (TSL)

	__________________________________________________
	Do You Yahoo!?
	Tired of spam? Yahoo! Mail has the best spam protection around 
	http://mail.yahoo.com 

NHS^隊X'unZ ŨK!QBZ'+'auޖ^(*.y)ʇl ŨK!5Zmv,vw(9ӎږZ5<'$

Gmane