AW: Extending JMeter. Very confused..

2003-04-03 Thread Wolfram Rittmeyer
Have you already read the JMeter-WIKI? There is a "chapter" dealing with
JMeter-development. Just follow the links on the JMeter-page or use this one
as a shortcut:

http://nagoya.apache.org/wiki/apachewiki.cgi?JMeterDevelopment/DeveloperDocu
mentation

Greetings,

Wolfram


> -Ursprüngliche Nachricht-
> Von: Alexandre Kiss [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 2. April 2003 22:37
> An: [EMAIL PROTECTED]
> Betreff: Extending JMeter. Very confused..
>
>
>
>
> Hi,
>
>   I'm trying use JMeter 1.8.1 to test one of our applications, but
> to do this I would have to develop my own extensions.  I've
> started, but
> have encountered a few problems.
>
>   The documentation on jakarta.apache.org appears to be out of
> date.
> (http://jakarta.apache.org/jmeter/extending/JMeter%20Extension
%20Scenari
o.html and http://jakarta.apache.org/jmeter/extending/index.html).  Is
there any plan to have an up to date version or is one available
somewhere?

The documentation mentioned above seems to fit with the source
of v1.7, but there are a lot of classes/methods missing in v1.8.1, for
example abstractConfigElement.  If the updated documentation is not
available, is there something like a list of changes in the source code?
Something that could help me try to make sense out of what is a
testElement, what method replaced updatePropertyIfAbsent(), what
happened to abstractConfigElement, was is it replaced by
abstractTestElement?

Thanks,

Alexandre Kiss




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



AW: AW: Jmeter -SESSION problem

2003-04-03 Thread Wolfram Rittmeyer
Hi Joseph,

there is of course no way how JMeter can interact directly with your
forwarding-chain. So there must be parameters missing for your
"whateveraction.do". Obviously some parameters are missing in your request
and therefore are not set from inside your servlet prior to the JSP. You
should check carefully where the missing parameter is set under "normal"
circumstances and what conditions have to be met therefore. After that you
should see what is missing from inside of JMeter. Maybe you have to tick
"Encode" or to tick "Include Equals" (BTW: Haven't found anything on this
one) to pass the parameters as wanted.

Greetings,

Wolfram


> -Ursprüngliche Nachricht-
> Von: Joseph chowalloor [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 22. Januar 2003 06:15
> An: JMeter Users List
> Betreff: Re: AW: Jmeter -SESSION problem
>
>
> Im calling the servlet alias(say blabla.do) only.
> this jsp is the last member in the loop.its going through a
> front controller
> ,htmlAction class, ejbcontroller
> coming back to frontcontroller then to template mechanism
> then to the this
> jsp.
> Its going through all other classes perfectly   fine but this jsp.
> Thanks
> Joseph
>
>
>
> - Original Message -
> From: "Wolfram Rittmeyer" <[EMAIL PROTECTED]>
> To: "'JMeter Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 01, 2003 9:15 PM
> Subject: AW: AW: Jmeter -SESSION problem
>
>
> > Well, obviously there is neither an attribute named
> > "FilterEventResponse"
> > nor one named "EventResponse". So where is it set?
> >
> > From your mail I guess you use forwarding from your servlet. So if
> > that's
> > the case you have to call the servlet (or its alias) not
> the JSP-page
> > from
> > within JMeter. The servlet is than setting the request-attributes,
> > forwards
> > to your JSP and you get the contents of the JSP-page as the content
> > displayed in JMeter.
> >
> > Greetings,
> >
> > Wolfram
> >
> >
> >
> >
> >
> > > -Ursprüngliche Nachricht-
> > > Von: Joseph chowalloor [mailto:[EMAIL PROTECTED]
> > > Gesendet: Dienstag, 21. Januar 2003 16:28
> > > An: JMeter Users List; [EMAIL PROTECTED]
> > > Betreff: Re: AW: Jmeter -SESSION problem
> > >
> > >
> > > Hi
> > > Im using jmeter to test a j2ee application
> > > If i call the program through the browser it works perferctly
> > > fine...problem comes when i test using the Jmeter
> > >
> > > here is the jsp code that creating problem
> > >
> > > //***
> > > if(request.getAttribute("FilterEventResponse") != null)
> > > {
> > > eventResponse =
> > > (EventResponse)request.getAttribute("FilterEventResponse");
> > >
> > > }
> > > else
> > > {
> > > eventResponse =
> > > (EventResponse)request.getAttribute("EventResponse");
> > >
> > > }
> > > String eventName = eventResponse.getEventName();
> > >
> > > //
> > >
> > > the problem is  eventResponse in the above code when im
> > > running jmeter is null so when in call
> > > eventResponse.getEventName(); it will create problem
> > > is there any restriction in getting request.getAttribute() ?
> > > It is set from a servlet in the execution loop,So im not
> > > setting it from the testplan
> > >
> > > here is the error im getting.
> > > javax.servlet.ServletException
> > >
> > > at
> > > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > PageContextImpl.java:604)
> > >
> > > at
> > > bla.bla._INTLPP_0005fpartsPricingTitle_jsp_3._jspService(_INTL
> > > PP_0005fpartsPricingTitle_jsp_3.java:258)
> > >
> > > at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
> > >
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >
> > > at
> > > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> > > (JspServlet.java:300)
> > >
> > > at
> > > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> > > .java:430)
> > >
> > > at
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
> > >
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.StrictServletInstance.doService(
> > ServletManager.java:827)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(
> > StrictLifecycleServlet.java:167)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.ServicingServletState.service(St
> > rictLifecycleServlet.java:317)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(S
> > trictLifecycleServlet.java:110)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.ServletInstance.service(ServletM
> > anager.java:472)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispa
> > > tch(ServletManager.java:1012)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatc
> > > h(ServletManager.java:913)
> > >
> > > at
> > > com.ibm.servlet.engine.webapp.WebAppReq

Q: How to get from http to https?

2003-04-03 Thread Jurkiewicz, Robert

Welcome back, of course I have another question.

I have to requests: request1 and request2.

In the response for the request1 is included value which has to be passed as
the parameter in the request2.

Do you know how to do this?

Thank you in advance for your help.

Cheers,
Robert

___
Robert Jurkiewicz,  
GTECH UK Ltd.
Link House, 19 Radlett Road, Watford, WD24 4JL, United Kingdom
* 
*+44 1923 474831 7+44 1923 474830

CONFIDENTIALITY NOTICE
  _  

This message is intended only for the recipient and may contain information
that is privileged, confidential and/or exempt from disclosure under
applicable law. If you are not the intended recipient, or the recipient's
agent for delivery, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited, and
you are requested to notify us immediately by telephone and return the
original message to us.
  _  



-
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]



RE: How to get from http to https?

2003-04-03 Thread Jurkiewicz, Robert

I am responding myself.

SOLUTION: Use HTTP URL Re-writing Modifier and set name of the parameter
from the reponse. Request2 will have it included. Refer to JMeter
documentation.

-Original Message-
From: Jurkiewicz, Robert [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 10:58
To: 'JMeter Users List'
Subject: Q: How to get from http to https?



Welcome back, of course I have another question.

I have to requests: request1 and request2.

In the response for the request1 is included value which has to be passed as
the parameter in the request2.

Do you know how to do this?

Thank you in advance for your help.

Cheers,
Robert

___
Robert Jurkiewicz,  
GTECH UK Ltd.
Link House, 19 Radlett Road, Watford, WD24 4JL, United Kingdom
* 
*+44 1923 474831 7+44 1923 474830

CONFIDENTIALITY NOTICE
  _  

This message is intended only for the recipient and may contain information
that is privileged, confidential and/or exempt from disclosure under
applicable law. If you are not the intended recipient, or the recipient's
agent for delivery, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited, and
you are requested to notify us immediately by telephone and return the
original message to us.
  _  



-
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]

-
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]



RE: How to get from http to https?

2003-04-03 Thread Mike Stover
Also look up the regexFunction, or the regex Config Element if you're using the 
latest nightly code.

-Mike

On 3 Apr 2003 at 5:31, Jurkiewicz, Robert wrote:

> 
> I am responding myself.
> 
> SOLUTION: Use HTTP URL Re-writing Modifier and set name of the parameter
> from the reponse. Request2 will have it included. Refer to JMeter
> documentation.
> 
> -Original Message-
> From: Jurkiewicz, Robert [mailto:[EMAIL PROTECTED]
> Sent: 03 April 2003 10:58
> To: 'JMeter Users List'
> Subject: Q: How to get from http to https?
> 
> 
> 
> Welcome back, of course I have another question.
> 
> I have to requests: request1 and request2.
> 
> In the response for the request1 is included value which has to be passed as
> the parameter in the request2.
> 
> Do you know how to do this?
> 
> Thank you in advance for your help.
> 
> Cheers,
> Robert
> 
> ___
> Robert Jurkiewicz,  
> GTECH UK Ltd.
> Link House, 19 Radlett Road, Watford, WD24 4JL, United Kingdom
> * 
> *+44 1923 474831 7+44 1923 474830
> 
> CONFIDENTIALITY NOTICE
>   _  
> 
> This message is intended only for the recipient and may contain information
> that is privileged, confidential and/or exempt from disclosure under
> applicable law. If you are not the intended recipient, or the recipient's
> agent for delivery, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited, and
> you are requested to notify us immediately by telephone and return the
> original message to us.
>   _  
> 
> 
> 
> -
> 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]
> 
> -
> 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]
> 



--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

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



Corrupt test plan files

2003-04-03 Thread Renee Dunn
I am new to useing JMeter.  I have saved several test plans over the 
last few days.  At this point, for every single one of them, when I try 
to open them, I get an error that the program could not open the file 
because it may be corrupt.  Is there something that I can do to keep 
these files from getting corrupt?

Thanks in advance.

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


Remote Testing w/ Non-Default RMI Port

2003-04-03 Thread Sherwood, Steve
Anyone tried running rmiregistry on a non-default port and running a remote
test?

I am able to run a remote test if rmiregistry is started using the default
port but with the remote machine being shared, I need to use a different
port in my assigned range.  So, I start rmiregistry on port 5098 and then
edit jmeter.properties on my PC.  I don't see any settings for remote port
so I tried putting :5098 on the remote_hosts line.  With this
setting I try to start a remote test and get a "Bad call to remote host"
error message and a java.rmi.NotBoundException in jmeter.log.

Any suggestions on how I can change the port the GUI uses to connect to the
rmiregistry?

Thanks,
Steve



Cookie Manager

2003-04-03 Thread Renee Dunn
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]


Re: JavaSampler.teardownTest() not being called

2003-04-03 Thread Jeremy Arnold
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]


Re: Cookie Manager

2003-04-03 Thread Mike Stover
There is nothing complicated about the CookieManager that requires more 
explanation.  If you're having a problem, it is likely related to something else.

-Mike

On 3 Apr 2003 at 12:23, Renee Dunn wrote:

> 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]
> 



--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

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