RE: Cookie Manager

2003-04-04 Thread Jurkiewicz, Robert

Leave it empty unless you want to set some Value in the session.

Please describe your problem in detail. For now I don't know where is your
problem

Cheers,
Robert

-Original Message-
From: Renee Dunn [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 6:23 PM
To: jmeter-user
Subject: Cookie Manager


Is there any manuals/documentation/articles other than what is listed 
 at http://jakarta.apache.org/jmeter/ that explains in more detail how 
to use the cookie manager, both to accept and to manually add existing 
cookies.  I have not been able to get this to work sucessfully yet.  

Thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



URL-Rewriting Modifier adds a ';'

2003-04-04 Thread Jens von Pilgrim
Hello,

I'm using JMeter for a PHP-web-application test. It's working fine, but the
HTTP URL-Rewriting Modifier seems to add a ';' to the Session-ID.

That is, the URL

http://somehost/somepath?PHPSESSID=12345678

is rewritten to

http://somehost/somepath?PHPSESSID=12345678;
   ^
 that's the problem ;-)


The PHP session management produces an error if the session id contains
non-aplhanumeric characters.
So far, I added a workaround in my php application (removing the ';'), but
I'm still wondering whether this is a bug or a feature. I'm using the lates
stable release version 1.8.1.

Regards,

Jens

BTW: The property language in jmeter.properties seems to be ignored.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL-Rewriting Modifier adds a ';'

2003-04-04 Thread Jens von Pilgrim
Hello,

 It's probably because of the way your web pages are setting the
 session ID - there
 might be a redirect page and the redirect location string ends with
 PHPSESSID=12345678; - JMeter is picking up the semi-colon as part of the
 session ID.

Thank you for answering so quickly. But - no - there's no ';' in the parsed
URL. And no redirect page. None of my pages produces ';'...

 You could change to using a regular expression
 function to grab the
 session ID and use it over and over again in your test.

Good idea, but I must concede that I'm a JMeter newbie :). As I wrote I
added a workaround in my php application. But the ';' is definitly produced
by JMeter.

Regards,

Jens


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: URL-Rewriting Modifier adds a ';'

2003-04-04 Thread Jens von Pilgrim
Hello,

ah! I found the reason, why JMeter adds the ';'
Reading the full response, I found the ';':
Set-Cookie: PHPSESSID=b1517aa97c569ea499accaa6fac4cb7a; path=/

That's the only location where a semicolon occurs. Is this a PHP bug or a
JMeter bug? Is it a php bug adding this semicolon in the header, or is it a
JMeter bug copying the semicolon to the URL?

Regards,

Jens


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JavaSampler.teardownTest() not being called

2003-04-04 Thread Gardner, Chris
I downloaded the 20030331 build.  I have a test plan that has 1 thread
but loops three times. 
The order of setupTest(), runTest(), and teardownTest() is interesting: 

BookCreationSampler.setupTest(JavaSamplerContext javaSamplerContext) 
BookCreationSampler.runTest(JavaSamplerContext javaSamplerContext) 
BookCreationSampler.createBook() 
BookCreationSampler.setupTest(JavaSamplerContext javaSamplerContext) 
BookCreationSampler.runTest(HashMap) 
BookCreationSampler.createBook() 
BookCreationSampler.setupTest(JavaSamplerContext javaSamplerContext) 
BookCreationSampler.runTest(HashMap) 
BookCreationSampler.createBook() 
BookCreationSampler.teardownTest() 
BookCreationSampler.teardownTest() 
BookCreationSampler.teardownTest() 

Note that createBook() is called within runTest().  Why is setupTest()
being called before each loop, but teardownTest() called is after the
all the loops have completed?  I guess I was expected the JUnit paradigm
of setUp(), test(), tearDown().

-Original Message- 
From: Jeremy Arnold [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ] 
Sent: Thursday, April 03, 2003 1:35 PM 
To: JMeter Users List 
Subject: Re: JavaSampler.teardownTest() not being called 


Hello, 
The JavaSampler was broken in 1.8.1 (and earlier versions -- I don't

know the whole history, but I don't think it has ever worked quite the 
way you would expect it to).  The good news is that it has been fixed in

the last month or so.  So if you're willing to use a recent nightly 
build or pull it from CVS then it should work for you. 

Note, however, that the API has also changed a bit, so you'll have 
to make a few modifications to your JavaSamplerClient implementation.  
They are pretty simple changes though.  Take a look at the new 
org.apache.jmeter.protocol.java.test.SleepTest code and the JavaDoc for 
some tips on how to do it.  Finally, you shouldn't have been extending 
JavaSampler (not that it would have made a difference).  So you will 
need to change it to extend the new AbstractJavaSamplerClient (or 
implement the JavaSamplerClient interface directly). 

Let me know if you have any questions. 

Jeremy 

Gardner, Chris wrote: 

In jmeter 1.8.1 on Windows 2K, I've created a class that extends 
JavaSampler to call a Java object.  I overrode teardownTest() to remove

the data from a database that the called Java object effectively 
inserted.  Unfortunately, teardownTest() is not being called.  What am
I 
doing wrong? 
 
Thanks. 
 
Chris Gardner 
 
 
  
 



- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]