Re: Passing user defined variables with the jmeter -q command line option

2008-05-29 Thread Stuart Findlay

Properties aren't variables so you need to get them using the __P function

See http://jakarta.apache.org/jmeter/usermanual/functions.html#__P for 
details


Marc Rennhard wrote:

Dear all,

(see also https://issues.apache.org/bugzilla/show_bug.cgi?id=45009)

I'm trying to use the jmeter -q command line option to pass a
user.properties file (which contains user defined variables) to jmeter
and access these properties within a testcase, but so have failed to use
this correctly. I have tried this using the following:

- In user.properties: url=www.google.com

- In a sampler: ${url}

But it didn't work.

So my questions are the following:

- Can I use this to pass user defined variables to jmeter that can be
accessed within a testcase via ${var}?

- How does this work in detail?

- What format is required for user.properties?

Thanks for any help,
Marc


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



Re: Passing user defined variables with the jmeter -q command line option

2008-05-29 Thread Stuart Findlay
apologies - __P only works for properties supplied on the command line - 
it's the __property function you need.


http://jakarta.apache.org/jmeter/usermanual/functions.html#__property

in your example you would need ${__property(url)}



Stuart Findlay wrote:
Properties aren't variables so you need to get them using the __P 
function


See http://jakarta.apache.org/jmeter/usermanual/functions.html#__P for 
details


Marc Rennhard wrote:

Dear all,

(see also https://issues.apache.org/bugzilla/show_bug.cgi?id=45009)

I'm trying to use the jmeter -q command line option to pass a
user.properties file (which contains user defined variables) to jmeter
and access these properties within a testcase, but so have failed to use
this correctly. I have tried this using the following:

- In user.properties: url=www.google.com

- In a sampler: ${url}

But it didn't work.

So my questions are the following:

- Can I use this to pass user defined variables to jmeter that can be
accessed within a testcase via ${var}?

- How does this work in detail?

- What format is required for user.properties?

Thanks for any help,
Marc


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




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



Re: jmeter feasibility for running the scripts across various bandwidths

2008-05-19 Thread Stuart Findlay
just looked back on this old thread I was wondering if the bandwidth 
limitation works per thread or for the whole thread group?


Thanks, Stuart


sebb wrote:

JMeter is not a browser, but you can use the Header Manager to set the
appropriate User-Agent string.

There is also an option to simulate a slow connection. This only works
for the HttpClient sampler. See jmeter.properties:

httpclient.socket.http.cps=n
httpclient.socket.https.cps=n

On 11/09/2007, sameer15 [EMAIL PROTECTED] wrote:
  

i want to know how much Jmeter is feasibile of running the scripts across
various bandwidths and browser?
if possible how can i attained this.
Any special setting i need to make?
--
View this message in context: 
http://www.nabble.com/jmeter-feasibility-for-running-the-scripts-across-various-bandwidths-tf4423082.html#a12616307
Sent from the JMeter - User mailing list archive at Nabble.com.


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

  



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



Re: jmeter feasibility for running the scripts across various bandwidths

2008-05-19 Thread Stuart Findlay

Thanks Sebb

that's what I wanted to hear

Stuart


sebb wrote:

For the whole JMeter instance - all thread groups.

The calculation is done on a per-thread basis.
Each thread simulates the same bandwidth.

On 19/05/2008, Stuart Findlay [EMAIL PROTECTED] wrote:
  

just looked back on this old thread I was wondering if the bandwidth
limitation works per thread or for the whole thread group?

 Thanks, Stuart



 sebb wrote:



JMeter is not a browser, but you can use the Header Manager to set the
appropriate User-Agent string.

There is also an option to simulate a slow connection. This only works
for the HttpClient sampler. See jmeter.properties:

httpclient.socket.http.cps=n
httpclient.socket.https.cps=n

On 11/09/2007, sameer15 [EMAIL PROTECTED] wrote:


  

i want to know how much Jmeter is feasibile of running the scripts


across


various bandwidths and browser?
if possible how can i attained this.
Any special setting i need to make?
--
View this message in context:


http://www.nabble.com/jmeter-feasibility-for-running-the-scripts-across-various-bandwidths-tf4423082.html#a12616307


Sent from the JMeter - User mailing list archive at Nabble.com.





-


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]



  

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

  


Graceful unix shutdown in headless mode

2008-03-04 Thread Stuart Findlay

Hi

I was wondering if there is a signal I can send to the JMeter java 
process to cause a graceful shutdown similar to CTRL-. in the GUI?


Thanks, Stuart



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



Re: Address already in use:80

2007-09-24 Thread Stuart Findlay
your problem is nothing to do with JMeter - try accessing the URL in a 
browser and you'll see the same response.


Some other process on your machine is listening on port 80.

If you're on Linux netstat -anp | grep 80 should tell you what the 
offending process is


ramaj wrote:

hi,
I have installed Jetsped2.1
for jetspeed we use 80 port.
Installed application on server:
---jetspeed2.1
---ldap
---mysql

By using JMETER,i am doing stress testing for jetspeed.

URL:http://15.170.176.13/webportal/portal/defaul-page.psml.

For PortalHomePage,
steps:
 1. TestPlan
 ---Thread Group
  ---portalhome url
  ---aggregate group
In thread group:
 values are:
  number of Threads:500
  loop : 14

and

in server.xml
port defination as:
!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=80 maxHttpHeaderSize=8192
   maxThreads=600 minSpareThreads=125 maSpareThreads=250
   enableLookups=false redirectPort=8443 acceptCount=500
   connectionTimeout=2 disableUploadTimeout=true /


If i start JMETER clickin on RUN :for 2 requsts(see threads 500 and loop
14)
AFter some time it gives error like:
java.net.BindException rm=Non HTTP response message: Address already in
use: connect


If i used for less than 2 requests it does not  give this error.

plz give some solutions.

thanks ramjmeter
  




  



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



Re: JSON response data causing loading JMeter process

2007-09-21 Thread Stuart Findlay

Hi Sebb

I've narrowed down this issue to two RegularExpressionExtractors which 
successfully extract 2 URLS from the page in question. Strangely another 
RegularExpressionExtractor on the same data causes no problems. I'll log 
a bug next week.


Cheers, Stuart


Stuart Findlay wrote:
No - with regards to Tree View Listener and I just disabled 
Downloaded Embedded Resources with no improvement.


There are RegularExpressionExtractors on the offending request but I 
can't see that causing such a big effect. I'll write a unit test with 
HTMLParser and see if the problem shows up in isolation.


Thanks, Stuart


sebb wrote:

Are you using the Tree View Listener? If so, try disabling it.

Are you using Download embedded resources ?

This is the other area where parsing may take place.

On 20/09/2007, Stuart Findlay [EMAIL PROTECTED] wrote:
 

Hi all

I've been writing a script recently to test our new server application.
I've been down a few blind alleys investigating an issue where my 
script

is loading the 4xCPU SPARC machine it's running on at 95% CPU.

I've now narrowed this problem down to a group of widgets in the server
app. which are returning 32kB of JSON text and this seems to be
overloading the HTML Parser code in some way. Strangely the request in
question only takes about 100ms to execute but disabling it changes the
CPU usage of the JMeter process from ~96% to ~20%

Has anyone come across any issues like this and (hopefully) resolved 
them?


Cheers, Stuart



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

  



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



Match number in regular expression random match

2007-09-18 Thread Stuart Findlay

Hi all

In a Regular Expression post-processor with random match number, is 
there a variable set with the match number so subsequent regex's can be 
executed on the same response.


In the following example summary and field4 are always present but 
the other fields may or may not be:


  {
 summary: summary1,
 field1: field1 text,
 field2: field2 text,
 field4: field4 text
  },
  {
 summary: summary1,
 field1: field1 text,
 field2: field2 text,
 field3: field3 text,
 field4: field4 text
  },
  {
 summary: summary1,
 field1: field1 text,
 field3: field3 text,
 field4: field4 text
  },

I need to match summary at random with 0 match number and then get 
the corresponding field4 so if I matched the second group then I would 
like to perform the field4 match with match number 2.


Is such a variable set?

Thanks, Stuart




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



A question of efficiency

2007-09-10 Thread Stuart Findlay

Hi all

I'm looking for some answers and opinions in relation to using BeanShell 
functions and the efficiency of JMeter scripts calling them.


I'm load testing a calendar application and need to generate and 
manipulate random dates in the iCal DTSTAMP format i.e. 20070910T090800Z 
for the time of writing this mail.


I found that for some of the more complex operations such as generating 
random dates within a given timeframe and then adding hours, days or 
weeks onto these it was very cumbersome to do this using JMeter alone so 
I settled on BeanShell functions using the Calendar class to manipulate 
dates and the following functions to





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



A question of efficiency

2007-09-10 Thread Stuart Findlay

Hi all

I'm looking for some answers and opinions in relation to using BeanShell
functions and the efficiency of JMeter scripts calling them.

I'm load testing a calendar application and need to generate and
manipulate random dates in the iCal DTSTAMP format i.e. 20070910T090800Z
for the time of writing this mail.

I found that for some of the more complex operations such as generating
random dates within a given timeframe and then adding hours, days or
weeks onto these it was very cumbersome to do this using JMeter alone so
I settled on BeanShell functions using the Calendar class to manipulate
dates and the following functions to convert the dates:


// Convert Java Calendar object to iCal timestamp
String calendarToTS(Calendar cal) {
	String ret = String.format(%1$tY%1$tm%1$tdT%1$tH%1$tM%1$tSZ, new 
Object[] {cal});


return ret;
}

// Convert iCal timestamp to Java Calendar object
Calendar tsToCalendar(String ts) {
Calendar ret = Calendar.getInstance();

ret.set(Calendar.YEAR, new Integer(ts.substring(0,4)));
ret.set(Calendar.MONTH, new Integer(ts.substring(4,6)) - 1);
ret.set(Calendar.DATE, new Integer(ts.substring(6,8)));
ret.set(Calendar.HOUR_OF_DAY, new Integer(ts.substring(9,11)));
ret.set(Calendar.MINUTE, new Integer(ts.substring(11,13)));
ret.set(Calendar.SECOND, new Integer(ts.substring(13,15)));

return ret; 
}



When I run a load test the jmeter process uses about 90% of the cpu on a 
4 CPU solaris box which would normally only see about 20% load with an 
equivalent script which doesn't call any BeanShell functions.


Does anyone have any suggestions for a more efficient way off accessing 
Java functionality from JMeter.


Thanks, Stuart

ps - apologies for the half message sent by mistake beforehand.


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



Re: A question of efficiency

2007-09-10 Thread Stuart Findlay

Thanks Ian

just to clarify - are you referring to ExampleSampler.java and 
ExampleSamplerGui.java or JavaRequest?


Stuart


iblavins wrote:

G'day

It takes a few minutes to do but I would suggest creating a Java sampler to
act as a 'gateway' (in the non technical sense) to Java functionality.

You can pass parameters into the sampler via the normal sampler parameter
interface and use a regular expression parser to get the result back into
JMeter variables. The sampler can use arbitrary Java functionality to
transform the input to the output. (Just because it is a sampler doesn't
mean it has to call a server and normally you won't). 


You then add the sampler to your test plan in the normal way to compute
values wherever you need them.

Once you have one it is easy to either add more functionality to it or to
clone it for different functionality.

There is a sample Java sampler among the JMeter resources.

Be advised that, because JMeter runs in a single JVM on each JMeter server,
things like static variables work across all instances of the sampler on
that JMeter server (for good or bad).



Ian Blavins
Contract Performance Engineer
Temenos



-Original Message-
From: Stuart Findlay [mailto:[EMAIL PROTECTED] 
Sent: 10 September 2007 09:26

To: JMeter User Group
Subject: A question of efficiency

Hi all

I'm looking for some answers and opinions in relation to using BeanShell
functions and the efficiency of JMeter scripts calling them.

I'm load testing a calendar application and need to generate and
manipulate random dates in the iCal DTSTAMP format i.e. 20070910T090800Z
for the time of writing this mail.

I found that for some of the more complex operations such as generating
random dates within a given timeframe and then adding hours, days or
weeks onto these it was very cumbersome to do this using JMeter alone so
I settled on BeanShell functions using the Calendar class to manipulate
dates and the following functions to convert the dates:


// Convert Java Calendar object to iCal timestamp
String calendarToTS(Calendar cal) {
	String ret = String.format(%1$tY%1$tm%1$tdT%1$tH%1$tM%1$tSZ, new 
Object[] {cal});


return ret;
}

// Convert iCal timestamp to Java Calendar object
Calendar tsToCalendar(String ts) {
Calendar ret = Calendar.getInstance();

ret.set(Calendar.YEAR, new Integer(ts.substring(0,4)));
ret.set(Calendar.MONTH, new Integer(ts.substring(4,6)) - 1);
ret.set(Calendar.DATE, new Integer(ts.substring(6,8)));
ret.set(Calendar.HOUR_OF_DAY, new Integer(ts.substring(9,11)));
ret.set(Calendar.MINUTE, new Integer(ts.substring(11,13)));
ret.set(Calendar.SECOND, new Integer(ts.substring(13,15)));

return ret; 
}



When I run a load test the jmeter process uses about 90% of the cpu on a 
4 CPU solaris box which would normally only see about 20% load with an 
equivalent script which doesn't call any BeanShell functions.


Does anyone have any suggestions for a more efficient way off accessing 
Java functionality from JMeter.


Thanks, Stuart

ps - apologies for the half message sent by mistake beforehand.


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




This email (and any attachments) contains confidential information, and is intended 
only for the named recipient. Distribution or copying of this email by anyone 
other than the named recipient is prohibited. If you are not the named or 
intended recipient, please notify TEMENOS or the sender immediately and 
permanently destroy this email (and any attachments) and all copies of it. No 
member of TEMENOS Group AG or any of its associated or affiliated companies is 
liable for any errors or omissions in the content or transmission of this 
email. Any opinions contained in this email are solely those of the author and, 
unless clearly indicated otherwise in writing, are not endorsed by any member 
of TEMENOS Group AG or any of its associated and affiliated companies. 



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



Re: Randomly selecting one of several XPath matches

2007-08-20 Thread Stuart Findlay

You can generate a random function to generate a choice e.g:


${__Random(1,${refName_matchNr},n)}

you will then be able to utilise ${n} in a variable command to construct 
the reference:


$__V{refName_${n}}

Hope that helps, Stuart

Ronan Klyne wrote:

Hello all,

I need to be able to locate several values in a page, and randomly
select one. The regular expression extractor will let me do the random
selection, but I'd rather use the XPath extractor, as it's more suitable
for specifying bits of an HTML document...
Is there any way to have the XPath extractor match several nodes, and
return one of them at random?

Cheers,

Ronan

  



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



Re: Randomly selecting one of several XPath matches

2007-08-20 Thread Stuart Findlay

I should add that the XPathExtractor does return all nodes by default.

Stuart

Stuart Findlay wrote:

You can generate a random function to generate a choice e.g:


${__Random(1,${refName_matchNr},n)}

you will then be able to utilise ${n} in a variable command to 
construct the reference:


$__V{refName_${n}}

Hope that helps, Stuart

Ronan Klyne wrote:

Hello all,

I need to be able to locate several values in a page, and randomly
select one. The regular expression extractor will let me do the random
selection, but I'd rather use the XPath extractor, as it's more suitable
for specifying bits of an HTML document...
Is there any way to have the XPath extractor match several nodes, and
return one of them at random?

Cheers,

Ronan

  



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



Re: hi

2007-07-18 Thread Stuart Findlay

This all depends on what if meant by supporting AJAX

I can quite happily load my AJAX webapp with JMeter although things that 
involve timed refreshes and polling have to be introduced artificially 
into the JMeter script and will not happen as with a browser.


Stuart


Amit Kulkarni wrote:
JMeter does not support AJAX  am not sure with new relaese of 
JMeter 2.3


Amit


On 7/18/07, Mathumathi Palani Bommu, EAS-Chennai [EMAIL PROTECTED] 
wrote:



Hi



Can anyone help me in providing the steps to test GWT ajax based
application with jmeter...



Thanks in advance



mathumathi



DISCLAIMER:

--- 



The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily 
reflect

the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.


--- 









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



JTL file format.

2007-02-28 Thread Stuart Findlay

Hi all

Trying to experiment with CSV format while running a headless test on 
Solaris. My jmeter.properties has 
jmeter.save.saveservice.output_format=csv and I've tried supplying it on 
the command line but I always get XML output.


Any ideas?

Cheers, Stuart

ps - JMeter Version 2.1.2

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



Re: Using data from flat files with remote servers

2007-02-26 Thread Stuart Findlay
Surely you can split the user populations between two different csv 
files so each JMeter instance will only access a subset of your user 
population.


BTW - if your user pops have logical names such as user1 to user1 
then you can user a random generator in a per-thread variable setting


username | user${__Random(1,5000,n)} in script 1
username | user${__Random(5001,1,n)} in script 2

the variable ${username} can then be reused throughout the script as can 
the user number ${n}


Stuart




Matt wrote:

Hi folks,

I currently need to run two Jmeter servers against a Load Balancer to 
check

for sticky sessions.  I am reading values from a flat file to use for
creating new users.

I am loading this file in with the ${__StringFromFile(users.csv)} 
function.


I put this file in to the bin directory of two of my Jmeter linux 
servers.


When the test runs the threads pick up different values within the 
file, but
the Jmeter servers start from the same position in the file.  So i'm 
getting

duplicate values which causes problems in my test.

I dont' really want to create two different scripts for this.  Is 
there an

easy way to make the remote Jmeter servers get allocated unique data?

Thanks,

Matt



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



Re: [Newbie] java.lang.OutofMemory Exception

2007-02-25 Thread Stuart Findlay
It's recommended to have Xms=Xmx - the expansion model never really 
worked in the hotspot JVM which the current JDKs use.


Try monitoring the process size in task manager up to the OOM exception.

How big is your XML file?

sureshg wrote:

Yes. Has changed it to HEAP=-Xms256m -Xmx512m



Alexander Wallace-2 wrote:
  
have you played with the HEAP=-Xms256m -Xmx256m section of the  
startup script?


On Feb 24, 2007, at 10:16 PM, sureshg wrote:



Hi,

I was trying to extract data from a huge XML file using DOM.  
Sometimes when

i run the script it is closing itself down and all i see is a message
java.lang.OutofMemory Exception in the DOS window.

Can someone please help me in this matter?

 Thanks,
 Suresh

--
View this message in context: http://www.nabble.com/ 
java.lang.OutofMemory-Exception-tf3286101.html#a9140739

Sent from the JMeter - User mailing list archive at Nabble.com.


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






  


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



Re: Default request parameters wrapped up in multipart

2007-02-08 Thread Stuart Findlay

Thanks Sebb

I've logged the RFE as Bug #41566

One thing I'm still confused about is why the default parameters are 
delivered differently when a file is sent with the POST request.


When there is no file they are sent as one entity as Line-based text 
data but when a file is sent with the request they are each sent as 
individual parts on the multipart post.


Stuart

sebb wrote:

If by defaults, you mean that you have an HTTP Request Defaults
Configuration element in scope, then yes, you will have to ensure that
it is no longer in scope.

You may be able to do this by judicious use of an extra Simple
Controller - put the Defaults there, as well as all the samplers that
need them. But that may just make the test plan horribly
complicated...

You could also file a Bugzilla enhancement request, but that will take
rather longer, though still worth doing ...

S.
On 07/02/07, Stuart Findlay [EMAIL PROTECTED] wrote:

Yes that's what I tried but because they're defined in the defaults then
they still get wrapped in the multipart.

Would my only option be to remove them from the defaults?



sebb wrote:
 As a work-round, try adding the parameters to the path instead.

 On 07/02/07, Stuart Findlay [EMAIL PROTECTED] wrote:
 I should add that the default parameters are not needed in the 
POST as
 they in the URL so a possible workaround would be to disable the 
default

 parameters from this post if possible.



 Stuart Findlay wrote:
  Hi all
 
  I have a HTTPRequest POST which is attempting to upload a file 
to my

  server.
 
  It seems that when I define a file to be sent with the POST, 
JMeter is
  wrapping up my default request parameters in the multipart 
section of

  the post. This is causing the upload to fail.
 
  Any ideas if this is by design or a bug. If the latter is there a
  known workaround?
 
  Thanks, Stuart
 
 
 
  
-

  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]



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


--

Stuart Findlay

Senior QA Engineer - Stability

Critical Path

Critical Path Ireland

42-47, Lower Mount St.,

Dublin 2,

Ireland

Phone:  +353 1 241 5000
Fax:+353 1 241 5170
Yahoo IM:   stufindlay

www.criticalpath.net http://www.criticalpath.net

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



--

Stuart Findlay

Senior QA Engineer - Stability

Critical Path

Critical Path Ireland

42-47, Lower Mount St.,

Dublin 2,

Ireland

Phone:  +353 1 241 5000
Fax:+353 1 241 5170
Yahoo IM:   stufindlay

www.criticalpath.net http://www.criticalpath.net

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



Default request parameters wrapped up in multipart

2007-02-07 Thread Stuart Findlay

Hi all

I have a HTTPRequest POST which is attempting to upload a file to my 
server.


It seems that when I define a file to be sent with the POST, JMeter is 
wrapping up my default request parameters in the multipart section of 
the post. This is causing the upload to fail.


Any ideas if this is by design or a bug. If the latter is there a known 
workaround?


Thanks, Stuart



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



Re: Default request parameters wrapped up in multipart

2007-02-07 Thread Stuart Findlay
I should add that the default parameters are not needed in the POST as 
they in the URL so a possible workaround would be to disable the default 
parameters from this post if possible.




Stuart Findlay wrote:

Hi all

I have a HTTPRequest POST which is attempting to upload a file to my 
server.


It seems that when I define a file to be sent with the POST, JMeter is 
wrapping up my default request parameters in the multipart section of 
the post. This is causing the upload to fail.


Any ideas if this is by design or a bug. If the latter is there a 
known workaround?


Thanks, Stuart



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



Re: Default request parameters wrapped up in multipart

2007-02-07 Thread Stuart Findlay
Yes that's what I tried but because they're defined in the defaults then 
they still get wrapped in the multipart.


Would my only option be to remove them from the defaults?



sebb wrote:

As a work-round, try adding the parameters to the path instead.

On 07/02/07, Stuart Findlay [EMAIL PROTECTED] wrote:

I should add that the default parameters are not needed in the POST as
they in the URL so a possible workaround would be to disable the default
parameters from this post if possible.



Stuart Findlay wrote:
 Hi all

 I have a HTTPRequest POST which is attempting to upload a file to my
 server.

 It seems that when I define a file to be sent with the POST, JMeter is
 wrapping up my default request parameters in the multipart section of
 the post. This is causing the upload to fail.

 Any ideas if this is by design or a bug. If the latter is there a
 known workaround?

 Thanks, Stuart



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




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



--

Stuart Findlay

Senior QA Engineer - Stability

Critical Path

Critical Path Ireland

42-47, Lower Mount St.,

Dublin 2,

Ireland

Phone:  +353 1 241 5000
Fax:+353 1 241 5170
Yahoo IM:   stufindlay

www.criticalpath.net http://www.criticalpath.net

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



padding numbers with zeros

2007-01-25 Thread Stuart Findlay

Hi all

need to supply random dates to a request and I need to know if there's 
an elegant way in JMeter to pad a number with zeros so I want my month 
generator:


${__Random(1,12,MM)} to output 01-09,10,11,12

Or to create a hash/array which would store 01 in index 1 etc.

Thanks for any suggestions.

Stuart


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



Re: XPath Extractor problem

2007-01-20 Thread Stuart Findlay
You're looking at assignedCategories and not assignedContacts which is 
below availableContacts in my original mail


Stuart


Jens Voß wrote:

Stuart Findlay wrote:


Hi all

I'm trying to extract assignedContacts URLs from the folloing XML 
response



?xml version=1.0 encoding=UTF-8?
cp:root xmlns:cp=http://www.cp.net/cp; version=2.0
   cp:form_data
[...]
   cp:select name=assignedCategories/cp:select
   cp:select name=availableContacts
   cp:option 
value=PAB://jmeter.com/user1/main/cnt/CONTACT_5Blah 8d561/cp:option

[...]
   /cp:select
[...]
   /cp:form_data
/cp:root

According to all the information I have available the following XPath 
Extractor should work:


Reference Name: contact
XPath Query:
/cp:root/cp:form_data//cp:[EMAIL PROTECTED]assignedContacts]/cp:option/@value 


Default Value:  x

Use Tidy is unchecked

I put ${contact_matchNr} into the subsequent URL and the value is 
always zero.


Which is no surprise because as can be clearly seen above, the 
cp:select element with
name=assignedContacts does not contain any cp:option elements. Are 
you sure it

is not supposed to be [EMAIL PROTECTED]*available*Contacts]... ?

Regards,
Jens

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



--

Stuart Findlay

Senior QA Engineer - Stability

Critical Path

Critical Path Ireland

42-47, Lower Mount St.,

Dublin 2,

Ireland

Phone:  +353 1 241 5000
Fax:+353 1 241 5170
Yahoo IM:   stufindlay

www.criticalpath.net http://www.criticalpath.net

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



XPath Extractor problem

2007-01-19 Thread Stuart Findlay

Hi all

I'm trying to extract assignedContacts URLs from the folloing XML response


?xml version=1.0 encoding=UTF-8?
cp:root xmlns:cp=http://www.cp.net/cp; version=2.0
   cp:form_data
   cp:input value=Community 113d9 name=communityName/
   cp:input value=This is a comminuty from session 113d9 
name=description/

   cp:select name=availableCategories/cp:select
   cp:select name=assignedCategories/cp:select
   cp:select name=availableContacts
   cp:option 
value=PAB://jmeter.com/user1/main/cnt/CONTACT_5Blah 8d561/cp:option
   cp:option 
value=PAB://jmeter.com/user1/main/cnt/CONTACT_11Blah 99d68/cp:option
   cp:option 
value=PAB://jmeter.com/user1/main/cnt/CONTACT_6Blah d3721/cp:option
   cp:option 
value=PAB://jmeter.com/user1/main/cnt/CONTACT_9Blah d88d9/cp:option

   /cp:select
   cp:select name=assignedContacts
   cp:option 
value=PAB://jmeter.com/user1/main/cnt/CONTACT_4Blah 123d3/cp:option
   cp:option 
value=PAB://jmeter.com/user1/main/cnt/CONTACT_7Blah d46d1/cp:option

   /cp:select
   /cp:form_data
/cp:root

According to all the information I have available the following XPath 
Extractor should work:


Reference Name: contact
XPath Query:
/cp:root/cp:form_data//cp:[EMAIL PROTECTED]assignedContacts]/cp:option/@value

Default Value:  x

Use Tidy is unchecked

I put ${contact_matchNr} into the subsequent URL and the value is always 
zero.


Thanks, Stuart

And indeed does work in Purple Technology's XPath Explorer but 
unfortunately Doesn't in JMeter.




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



JTL Files

2007-01-17 Thread Stuart Findlay

Hi all

This seems to me like a stupid question but I've googled and googled and 
I can't find any information on how to examine my jtl (Aggregate graph 
etc.) files from a 10-hour run I made last night from the command line.


There seems to be no way to load these into JMeter again to look at the 
data.


Any suggestions?

Cheers, Stuart


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



User variable overwriting in single thread with multiple loops

2007-01-16 Thread Stuart Findlay

Hi all

I have a test plan which is loading a webmail UI.

- mailid=0
- Load Inbox page
- Regular Expression Extractor choosing mail at random - matching two 
values - mailid_g1 and mailid_g2

- IFController - '${mailid}' != '0' then
   - do some actions on mail
- else continue

This works fine for single loop runs but when I increase the loops at 
the thread group level then the following occurs:


1. works normally until first match to mailid_g1 and mailid_g2 is made
2. on next loop where a new match is not made, the IFController clause 
returns true and the subsequent actions are in error.


I'm guessing that the variable is not reinitialized because I'm matching 
two values in my reg.ex. and I've tried every to initialize the mailid 
variable at many different places but with no difference in behaviour. 
The double match is essential because I'm choosing a mail at random - if 
I was choosing the first mail then I could use seperate matches.


So my questions are:
1. is there any way I can reset the mailid variable after every loop to 
avoid this situation
2. if not is there another way around this. For example in a random 
match can I get the match number.


Thanks, Stuart




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



Re: User variable overwriting in single thread with multiple loops

2007-01-16 Thread Stuart Findlay

That did the trick AJ

Thanks muchly, Stuart

git wrote:

Dood,

I have seen this before.  I found a trick to it - there might be a nicer
way.

What you do is put a java sample after the if controller:  
1) You set the class the JavaTest

2) You sleep time to 0 and sleep mask to F
3) Label = blank
4) Response message = blank
5) Status OK
6) Sampler Data = blank
7) ResultDate = Something that next time around the if will reject -
like 'false' or 'no-match'

Next you add a regex extractor to take the return value of the
javasampler and put it in your variable.
This will force your variable to be reset each time around the loop.

e.g
1) Reference Name = your var name
2) Regular expression = (.*)
3) Template  = $1$
4) Match No = 1
5) default = false

Cheers

AJ

On Tue, 2007-01-16 at 13:38 +, Stuart Findlay wrote:

  

Hi all

I have a test plan which is loading a webmail UI.

- mailid=0
- Load Inbox page
- Regular Expression Extractor choosing mail at random - matching two 
values - mailid_g1 and mailid_g2

- IFController - '${mailid}' != '0' then
- do some actions on mail
- else continue

This works fine for single loop runs but when I increase the loops at 
the thread group level then the following occurs:


1. works normally until first match to mailid_g1 and mailid_g2 is made
2. on next loop where a new match is not made, the IFController clause 
returns true and the subsequent actions are in error.


I'm guessing that the variable is not reinitialized because I'm matching 
two values in my reg.ex. and I've tried every to initialize the mailid 
variable at many different places but with no difference in behaviour. 
The double match is essential because I'm choosing a mail at random - if 
I was choosing the first mail then I could use seperate matches.


So my questions are:
1. is there any way I can reset the mailid variable after every loop to 
avoid this situation
2. if not is there another way around this. For example in a random 
match can I get the match number.


Thanks, Stuart




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






www.cubicalland.com
www.nerds-central.blogspot.com




  


--

Stuart Findlay

Senior QA Engineer - Stability

Critical Path

Critical Path Ireland

42-47, Lower Mount St.,

Dublin 2,

Ireland

Phone:  +353 1 241 5000
Fax:+353 1 241 5170
Yahoo IM:   stufindlay

www.criticalpath.net http://www.criticalpath.net

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