Re: HI - Http Proxy Server

2003-12-08 Thread andrew . roughan
If you have a proxy server in your environment, did you start JMeter with the -H and 
-P attributes to specify the proxy server?

Cheers,
Andrew

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



HI - Http Proxy Server

2003-12-08 Thread Ranjith K babu
Hi All

Am trying to record through Http Proxy Server , these are the steps i 
have followed ...
1. created a new test Plan with a thread group say TG1
2.Added one simple controller , and one assertion results.
3.added the Http Proxy server in the workbench  and set the port to 
8090 as i am using Jboss for diff application and port 8080 is been 
used.
4.now i changed port the lansetting in the IE to 8090 and ip to 
localhost  ! 

am not able to browse the sites i wanted to record , coz my sysmtem is 
using diff Ip (My proxy ip is diff-- i think that is the reason am not 
able to record).what can i do now , how can i record !

 am runnign an project in web and wanted to record ! this project 
uses Jboss so the port 8080 is been used by that .

** please can anyone suggest hwo can i proceed further to perform the 
testing..:

thanx in advance
have a nice time 
Ranjith
--
"Raise the Bar"

> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 09, 2003 12:40 AM
> Subject: Is it possible to Terminate JMeter based on results of 
response assertion?
> 
> 
> > I am using JMeter to send a request to a web service.
> > The web service will respond negatively for many iterations and 
then could either
> > respond positively once and then respond with an alternative 
negative response, or
> > simply respond with an alternate negative response
> >
> > What I'd like to do is to terminate sending requests after either 
the positive or the alternate negative response has been
> received.
> >
> > Is this possible? If so, how would it be done?
> 
> The following suggestions relate to builds after 1.9.1, so you would 
need to download one of the nightly builds.
> 
> The Thread Group now has a set of options for action to be taken on 
Sampler Error.
> You could set the action to Stop Thread or Stop Test, and then add 
the appropriate Assertions to cause the Sample to fail where
> required. This assumes that the web service encodes the 
positive/negative reponse in the data, rather than in the HTTP response
> code - i.e. the Sample responses must be successful; you can then use 
the Assertion to set the sample as failed.
> 
> [The plan was to extend the Stop on Error options to allow more fine-
grained control, but this has not yet been implemented.]
> 
> However, if you are prepared to code a short Java script, what you 
ask should be possible using the latest CVS build - provided that
> you get one with BeanShell support compiled in (the build log will 
tell you if so). You would also need to download the beanshell
> jar from www.beanshell.org as this is not distributed with JMeter.
> 
> The BeanShell Response Assertion allows you access to all the 
response fields and methods, including stopThread() and stopTest().
> 
> The response fields are accessible as the following variables 
(Strings):
> ResponseData - this is of type byte []
> ResponseCode
> ResponseMessage
> ResponseHeaders
> 
> So you could code something like:
> 
> if (ResponseCode.equals("123")) {
> Response.setStopThread(true);
> }
> 
> >
> > The nature of the web service is such that there will be an unknown 
number of initial negative iterations.
> >
> 
> Such is life!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Ranjith K Babu 
V&V Engineer ,
RELQ Software.
0044-7742933682
EmailId:[EMAIL PROTECTED]

__
RelQ Software (P) Ltd. - For Verification & Validation

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



Re: Is it possible to Terminate JMeter based on results of response assertion?

2003-12-08 Thread Sebastian Bazley
- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 09, 2003 12:40 AM
Subject: Is it possible to Terminate JMeter based on results of response assertion?


> I am using JMeter to send a request to a web service.
> The web service will respond negatively for many iterations and then could either
> respond positively once and then respond with an alternative negative response, or
> simply respond with an alternate negative response
>
> What I'd like to do is to terminate sending requests after either the positive or 
> the alternate negative response has been
received.
>
> Is this possible? If so, how would it be done?

The following suggestions relate to builds after 1.9.1, so you would need to download 
one of the nightly builds.

The Thread Group now has a set of options for action to be taken on Sampler Error.
You could set the action to Stop Thread or Stop Test, and then add the appropriate 
Assertions to cause the Sample to fail where
required. This assumes that the web service encodes the positive/negative reponse in 
the data, rather than in the HTTP response
code - i.e. the Sample responses must be successful; you can then use the Assertion to 
set the sample as failed.

[The plan was to extend the Stop on Error options to allow more fine-grained control, 
but this has not yet been implemented.]

However, if you are prepared to code a short Java script, what you ask should be 
possible using the latest CVS build - provided that
you get one with BeanShell support compiled in (the build log will tell you if so). 
You would also need to download the beanshell
jar from www.beanshell.org as this is not distributed with JMeter.

The BeanShell Response Assertion allows you access to all the response fields and 
methods, including stopThread() and stopTest().

The response fields are accessible as the following variables (Strings):
ResponseData - this is of type byte []
ResponseCode
ResponseMessage
ResponseHeaders

So you could code something like:

if (ResponseCode.equals("123")) {
Response.setStopThread(true);
}

>
> The nature of the web service is such that there will be an unknown number of 
> initial negative iterations.
>

Such is life!


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



Is it possible to Terminate JMeter based on results of response assertion?

2003-12-08 Thread andrew . roughan
I am using JMeter to send a request to a web service.
The web service will respond negatively for many iterations and then could either
respond positively once and then respond with an alternative negative response, or
simply respond with an alternate negative response

What I'd like to do is to terminate sending requests after either the positive or the 
alternate negative response has been received.

Is this possible? If so, how would it be done?

The nature of the web service is such that there will be an unknown number of initial 
negative iterations.

Thanks,
Andrew
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


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



JMeter release criteria / schedule

2003-12-08 Thread Lancaster, Keith
I have recently begun using JMeter on a major development effort involving
county government. While I (as a consultant on the project) am comfortable
with building from CVS, the project leaders may be more comfortable in
general with the stable releases. What is the criteria used for creating a
new release, and when it is expected that 1.9.2 will be out? ( I am
currently working from CVS because I need a number of the features not in
1.9.1)

Thanks,
Keith Lancaster

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



RE: Extending Jmeter !

2003-12-08 Thread BAZLEY, Sebastian
> -Original Message-
> From: zze-Clic To Contact JEAN K ext FTRD/DMI/SOP
> [mailto:[EMAIL PROTECTED]
> Sent: 08 December 2003 14:59
> To: JMeter Users List
> Subject: Extending Jmeter !
> 
> 
> Hi,
> 
> In my application, I have to save the xml returned by the 
> HTTP server in
> a text file. For that, I guess I have to developp a new SampleListener
> which implements SampleListener and extends AbstractVisualizer. When i
> test,  the code contained in the method public void
> sampleOccurred(SampleEvent e) is not taken in account! Can anyone help
> me ?

The latest JMeter in CVS has got a ResultSaver, which can be added to any
part of the tree.
This saves the result to a file. Have you tried it?

S.

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



Extending Jmeter !

2003-12-08 Thread zze-Clic To Contact JEAN K ext FTRD/DMI/SOP
Hi,

In my application, I have to save the xml returned by the HTTP server in
a text file. For that, I guess I have to developp a new SampleListener
which implements SampleListener and extends AbstractVisualizer. When i
test,  the code contained in the method public void
sampleOccurred(SampleEvent e) is not taken in account! Can anyone help
me ?
Thanks
Karine



RE: User parameter as a loop counter works in the first iteration but not again

2003-12-08 Thread Burgaud, Mickael
I'm sorry I can't help you with your loop problem, but I have an other question about 
looping: Why does a loop always process even with a loopcount of 0? Thats a realy 
strange behaviour, is it possible to tell JMeter not to enter the loop in this case? 
Thanks for your help.

Mickael.



-Original Message-
From: Jordi Salvat i Alabart [mailto:[EMAIL PROTECTED]
Sent: Sunday 07 December 2003 01:30
To: JMeter Users List
Subject: Re: User parameter as a loop counter works in the first
iteration but not again


A mistake we all make when starting on JMeter is to view the test plan 
as a script -- it's not. The behaviour you describe is not very surprising.

Still, it could be interesting to have your specific case work: if 
you've needed this, other people may need it too. Could you please file 
a bug report?

-- 
Salut,

Jordi.

En/na Michael R. Wolfe ha escrit:
> I have:
> 
> . Loop Controller
>   . Simple controller
> . User Parameter
>   Name: NumItems User1: CSVRead(..)
>   And some other params, including one doing CSVRead(..,next())
> . Loop Controller
>   Loop Count: ${NumItems}
> 
> So that for each pass through my outer loop I want the number of
> iterations of the inner loop to be parameterized by the contents of the
> CSV file.
> 
> The behavior in 1.9.1 is that the first time through the loop it works
> fine (I tried it with a non-1 value) but every subsequent pass through
> uses the NumItems retrieved the first time instead of using the next one
> in the file (all the other params retrieved from that file get applied
> fine).
> 
> Questions:
> . Is it possible to use a User Parameter as a loop counter?
> . If not, how come it does work the first time, but not the second or
> beyond?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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


This mail has originated outside your organization,
either from an external partner or the Global Internet. 
Keep this in mind if you answer this message.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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