View results tree

2009-09-22 Thread nanduri
Hello, Imn doing parmeterization for multiple logins and my script is checking for two logins for.After running script when i go to view results tree when i click on response data it was showing like this for user 1 -logged244Array ( [user_sessionid] => 24 [role_sessionid] => 4 ) 0 for

Re: junit first samples slow

2009-09-22 Thread sebb
On 21/09/2009, Brian Sweeney wrote: > Hi guys, > > I've been playing with different structures for my tests. I have a single > unit test under a thread group so the results are in a nice form for another > tool. I've set up the thread group to run the test 10 times and noticed the > first ru

Re: Recording issues

2009-09-22 Thread Deepak Shetty
hi Some factors are a. Cookie managers/ session ids / authorization related data (e.g. old session ids in the url) b. dynamic data that is dependent on the previous step (e.g. __Viewstate in asp.net , duplicate form submit tokens ) c. Inherent unrepeatability of certain tests (e.g. registering with

Re: Recording issues

2009-09-22 Thread sebb
On 23/09/2009, Mark Stephen S. Florencio wrote: > Good day, > > I have a question. I am not sure if this is already addressed or not. > > Sometimes recorded scripts by HTTP proxy fails during replay. What are the > factors contributing to this? The browser handles cookies; JMeter needs a Cooki

Recording issues

2009-09-22 Thread Mark Stephen S. Florencio
Good day, I have a question. I am not sure if this is already addressed or not. Sometimes recorded scripts by HTTP proxy fails during replay. What are the factors contributing to this? My situation is like this. I did trials of recording scripts via the proxy. It worked well. After a while, I

Re: Question on Jmeter RegEx PostProcessor

2009-09-22 Thread Mark Stephen S. Florencio
Thanks Sebb! It was a trailing space afterall! Thanks... Sorry.. Should have been more careful. Best regards, Stephen Florencio. - Original Message - From: "sebb" To: "JMeter Users List" Sent: Wednesday, September 23, 2009 9:52:23 AM Subject: Re: Question on Jmeter RegEx PostProcess

Re: Question on Jmeter RegEx PostProcessor

2009-09-22 Thread sebb
On 23/09/2009, Mark Stephen S. Florencio wrote: > Good day. > > Hello sebb, I will now answer your inquiries. > > 1. I expect to see a very long string of random numbers and letters. As I > said, I put a debug sampler on top of the sampler where the viewState > variable is used. I inspected it

Re: Question on Jmeter RegEx PostProcessor

2009-09-22 Thread Mark Stephen S. Florencio
Good day. Hello sebb, I will now answer your inquiries. 1. I expect to see a very long string of random numbers and letters. As I said, I put a debug sampler on top of the sampler where the viewState variable is used. I inspected it and it was stored as a parameter I will be using. However whe

Re: Question on using the JUnit Sampler with JMeter

2009-09-22 Thread sebb
On 22/09/2009, Anupindi, Satish wrote: > > > > > Hi, > > As a proof of concept, I created a sample JUNit Test Java > file (which is attached), compiled fine, created a jar file out of the > package defined for it. I then, copied the jar file to the > "JMeter_root_dir\lib\junit" di

Question on using the JUnit Sampler with JMeter

2009-09-22 Thread Anupindi, Satish
Hi, As a proof of concept, I created a sample JUNit Test Java file (which is attached), compiled fine, created a jar file out of the package defined for it. I then, copied the jar file to the "JMeter_root_dir\lib\junit" directory, and restarted JMeter. But I could not find the Sam

Re: Shouldn't the jmeter source code have some if (log.isDebugEnabled() ) checks in certain places?

2009-09-22 Thread sebb
On 22/09/2009, Rick wrote: > I was just looking at some of the source code in trunk and I noticed > for instance that several of the methods in JavaSampler have code > like: > > log.debug(whoAmI() + "\trunTest"); > > From my understanding without an if (log.isDebugEnabled() ) check > before t

Shouldn't the jmeter source code have some if (log.isDebugEnabled() ) checks in certain places?

2009-09-22 Thread Rick
I was just looking at some of the source code in trunk and I noticed for instance that several of the methods in JavaSampler have code like: log.debug(whoAmI() + "\trunTest"); >From my understanding without an if (log.isDebugEnabled() ) check before that statement, whoAmI() will ALWAYS be called

Re: Best Practice? I want to run different CsvDataSets depending on what environment I'm going to, is using ant file substitution ok?

2009-09-22 Thread Rick
On Tue, Sep 22, 2009 at 4:55 PM, Rick wrote: > >> You might consider passing the environment as a Jmeter property  in which >> case you can specify a default. >> ${__property(run.env,dev)}_myDataSet.txt This is working wonderfully, much better than the ant approach. -

Re: Best Practice? I want to run different CsvDataSets depending on what environment I'm going to, is using ant file substitution ok?

2009-09-22 Thread Rick
On Tue, Sep 22, 2009 at 3:54 PM, Deepak Shetty wrote: > if you can use ant  sure.  However note that your test wont work from gui or > without this pre step > > You might consider passing the environment as a Jmeter property  in which > case you can specify a default. > ${__property(run.env,,dev)}

Re: JMeter high volume httpsampler context reset

2009-09-22 Thread Craig Flichel
Turns out this won't work for me - I need timed execution that isn't dependent on the amount of time it takes for previous executions to respond. Also, I can't run more jmeter instances - not enough resources! I'll continue to use my thread pool jmeter patch. Thanks anyway. Deepak Shetty wro

Re: Calling a stored procedure

2009-09-22 Thread Deepak Shetty
well then replicate the values into your Jmeter. for e.g. In your java client is this "CALL ..GET_BANK_HOLIDAYS (P_BANK_HOLIDAYS_O)" what you specify in the query for callable statement? Is "Parameter Types - OUT ..bank_holiday_cur_type" what you specify in your type?-- shouldnt this be an intege

Re: Best Practice? I want to run different CsvDataSets depending on what environment I'm going to, is using ant file substitution ok?

2009-09-22 Thread Deepak Shetty
if you can use ant sure. However note that your test wont work from gui or without this pre step You might consider passing the environment as a Jmeter property in which case you can specify a default. ${__property(run.env,,dev)}_myDataSet.txt something similar at http://theworkaholic.blogspot

Re: Calling a stored procedure

2009-09-22 Thread rpaliath
I am able to execute this SP from a Java client as well as from an oracle client. rpaliath wrote: > > Hi, I am trying to call a stored procedure using jmeter (Version - 2.3.4 > r785646) and hitting all kind of errors. I have been using some posts to > try various combinations: > > SQL Query -

Best Practice? I want to run different CsvDataSets depending on what environment I'm going to, is using ant file substitution ok?

2009-09-22 Thread Rick
I'm new to jmeter, but looked over the faq and wiki and dind't see anything on this... Currently each of my tests has a CSV DataSet associated with it. (I'm doing this by setting up a ThreadGroup then my Sample test underneath and then my CSV DataSet added to the test, hopefully that's the right w

Re: Calling a stored procedure

2009-09-22 Thread Deepak Shetty
get your SP working from a standard Java client first. regards deepak On Tue, Sep 22, 2009 at 10:54 AM, rpaliath wrote: > > Hi, I am trying to call a stored procedure using jmeter (Version - 2.3.4 > r785646) and hitting all kind of errors. I have been using some posts to > try > various combin

Calling a stored procedure

2009-09-22 Thread rpaliath
Hi, I am trying to call a stored procedure using jmeter (Version - 2.3.4 r785646) and hitting all kind of errors. I have been using some posts to try various combinations: SQL Query - CALL ..GET_BANK_HOLIDAYS (P_BANK_HOLIDAYS_O) Parameter Values - NULL Parameter Types - OUT -10 Variable Names - P

Re: JMeter high volume httpsampler context reset

2009-09-22 Thread Deepak Shetty
Hi Clear the cookies (assuming you are using JSESSIONID in cookies) at the end of the iteration (or use bsh). If your application is using urlrewriting (the sessionid is part of the url) then for the first request in the loop, use a url without the sessionid another option is run multiple jmeter

Re: JMeter high volume httpsampler context reset

2009-09-22 Thread sebb
On 22/09/2009, Craig Flichel wrote: > I have to test high-volume of users - over 20k. > > JMeter creates/starts a thread for each of these even though many of them > are scheduled to execute after a very long delay. My jmeter slaves cannot > handle so many running threads. > > An option that wa

Re: help needed - Regular Expressions

2009-09-22 Thread Deepak Shetty
XPATH extractor with HTML works with the tidy option checked. regards deepak On Tue, Sep 22, 2009 at 4:16 AM, Barnabas Davoti wrote: > Noel O'Brien wrote: > >> Why not use the following XPath extractor instead: >> //sele...@name="A"]/option/@value >> > > That's a good news... I was wondering why

Re: Output from a stored procedure

2009-09-22 Thread rpaliath
Thanks. My SP is returning a ref cursor. Here is the code: DECLARE P_BANK_HOLIDAYS_O ..bank_holiday_cur_type; BEGIN P_BANK_HOLIDAYS_O := NULL; ..GET_BANK_HOLIDAYS (P_BANK_HOLIDAYS_O); END; I tried the following combinations: Parameter Values - NULL Parameter Types - OUT ..bank_holiday_cur

Re: Problems with Oracle & JDBC query

2009-09-22 Thread Chris Hall
Another point - I reverted to my original ojdbc14.jar - and it works fine too. No need to update to latest version. Chris From: sebb To: JMeter Users List Sent: Tuesday, September 22, 2009 5:08:25 PM Subject: Re: Problems with Oracle & JDBC query On 22/09/20

JMeter high volume httpsampler context reset

2009-09-22 Thread Craig Flichel
I have to test high-volume of users - over 20k. JMeter creates/starts a thread for each of these even though many of them are scheduled to execute after a very long delay. My jmeter slaves cannot handle so many running threads. An option that was presented to me was to have them looping and

Re: Problems with Oracle & JDBC query

2009-09-22 Thread sebb
On 22/09/2009, Chris Hall wrote: > moving the Request as a Sibling and not a child solved the problem. So simple > when you know how :) It's not supposed to be possible to add Samplers to Config elements - one cannot do so for most (any?) of the others. Not sure why JDBC Config allows this; it's

Re: Problems with Oracle & JDBC query

2009-09-22 Thread Chris Hall
moving the Request as a Sibling and not a child solved the problem. So simple when you know how :) The responses are appearing in both listeners now btw. Thanks Sebb From: sebb To: JMeter Users List Sent: Tuesday, September 22, 2009 4:55:17 PM Subject: Re: P

Re: Output from a stored procedure

2009-09-22 Thread sebb
On 22/09/2009, rpaliath wrote: > > no and no...can you please tell me how to specify the parameter values, > parameter types and variable names. http://jakarta.apache.org/jmeter/usermanual/component_reference.html#JDBC_Request > > rpaliath wrote: > > > > Hi, I am quite new to jmeter and hav

Re: Output from a stored procedure

2009-09-22 Thread rpaliath
no and no...can you please tell me how to specify the parameter values, parameter types and variable names. rpaliath wrote: > > Hi, I am quite new to jmeter and have been working on executing some PLSQL > stored procedures using it. I had a question. After the stored procedure > is executed, all

Re: Problems with Oracle & JDBC query

2009-09-22 Thread sebb
On 22/09/2009, Chris Hall wrote: > > My test is as follows now: > > Plan > - View Results Tree > - Aggregate Report > - Thread Group > - Java Request > - JDBC Configuration > - JDBC Request Try making the JDBC Request a sibling of the Config - rather than a child. > -

Re: Problems with Oracle & JDBC query

2009-09-22 Thread Chris Hall
My test is as follows now: Plan - View Results Tree - Aggregate Report - Thread Group - Java Request - JDBC Configuration - JDBC Request - Java Request 2009/09/22 16:44:38 INFO - jmeter.engine.StandardJMeterEngine: Running the test! >2009/09/22 16:44:39 INFO - jmet

Re: Problems with Oracle & JDBC query

2009-09-22 Thread sebb
On 22/09/2009, Chris Hall wrote: > Hi Sebb, > ok - I disabled debug in log4j, lowered the thread count to 1 and added the > new java samplers before & after. > Neither appear in my results tree - but both do in my Aggregate Report > Listener. That will depend where you put the listeners; I

Re: Problems with Oracle & JDBC query

2009-09-22 Thread Chris Hall
Hi Sebb, ok - I disabled debug in log4j, lowered the thread count to 1 and added the new java samplers before & after. Neither appear in my results tree - but both do in my Aggregate Report Listener. The same problem exists - with no errors thrown in the console. My jmeter.log now looks

Re: Problems with Oracle & JDBC query

2009-09-22 Thread sebb
Try adding Java samplers before and after the JDBC sampler and make sure they show up in the listener. Check the console window for any errors - sometimes JMeter is unable to capture all errors. Unless you know the code well, I would switch off debug logging - it makes the log file harder to read

Re: Problems with Oracle & JDBC query

2009-09-22 Thread Chris Hall
Hi Rajiv, I tried the ojdbc5 and 6 jars (changing my java version appropriately) - but that didnt work. I have the same problem as I had originally. Chris From: rpaliath To: jmeter-user@jakarta.apache.org Sent: Tuesday, September 22, 2009 3:29:24 PM Subject:

Re: Problems with Oracle & JDBC query

2009-09-22 Thread rpaliath
Try using the 11g JDBC drivers. I had success when started using the "ojdbc6.jar". Rajiv Chris Hall wrote: > > Hi guys, > I've searched the forums for a similar problem - and I havent found any > like this one. > When I'm running a basic "select count(*)" - nothing seems to happen > i

Re: Problems with Oracle & JDBC query

2009-09-22 Thread Chris Hall
I already have one in place - nothing is being displayed there either. I can see the "green light" go - run for a second or so - then complete. From: sebb To: JMeter Users List Sent: Tuesday, September 22, 2009 3:27:21 PM Subject: Re: Problems with Oracle & JD

Re: Problems with Oracle & JDBC query

2009-09-22 Thread sebb
On 22/09/2009, Chris Hall wrote: > > Hi guys, > I've searched the forums for a similar problem - and I havent found any > like this one. > When I'm running a basic "select count(*)" - nothing seems to happen > in JMeter - and I've no errors etc in the logs. > > I added both classes12.

Re: Output from a stored procedure

2009-09-22 Thread sebb
On 22/09/2009, rpaliath wrote: > > Hi, I am quite new to jmeter and have been working on executing some PLSQL > stored procedures using it. I had a question. After the stored procedure is > executed, all I see on the Response Data is the following message - "-1 > updates. Output variables by p

Problems with Oracle & JDBC query

2009-09-22 Thread Chris Hall
Hi guys, I've searched the forums for a similar problem - and I havent found any like this one. When I'm running a basic "select count(*)" - nothing seems to happen in JMeter - and I've no errors etc in the logs. I added both classes12.jar & ojdbc14.jar to my %JMETER%/lib directory.

Output from a stored procedure

2009-09-22 Thread rpaliath
Hi, I am quite new to jmeter and have been working on executing some PLSQL stored procedures using it. I had a question. After the stored procedure is executed, all I see on the Response Data is the following message - "-1 updates. Output variables by position:" How do I see the output from these

Re: Sampler Error - Connection timed out: connect

2009-09-22 Thread sebb
On 22/09/2009, Alexandru Rotaru wrote: > Hi Sebb, > > Thanks for the fast reply. > I did check the documentation, but wasn't able to find the default value > for the response timeout. > I can try to set the Response Timeout in the HTTP Request Default to 3 > and see if the problem is still

Re: Sampler Error - Connection timed out: connect

2009-09-22 Thread Alexandru Rotaru
Hi Sebb, Thanks for the fast reply. I did check the documentation, but wasn't able to find the default value for the response timeout. I can try to set the Response Timeout in the HTTP Request Default to 3 and see if the problem is still there. Do you happen to know a way to find out w

Re: Sampler Error - Connection timed out: connect

2009-09-22 Thread sebb
On 22/09/2009, Alexandru Rotaru wrote: > Hi all, > > I am currently using JMeter 2.3.4 to execute some tests with 50 and 100 > concurrent users. > Some of the samplers return: > Load time: 21249 > Latency: 0 > Size in bytes: 1661 > Sample Count: 1 > Error

Re: help needed - Regular Expressions

2009-09-22 Thread sebb
On 22/09/2009, Barnabas Davoti wrote: > Noel O'Brien wrote: > > > Why not use the following XPath extractor instead: > > //sele...@name="A"]/option/@value > > > > That's a good news... I was wondering why should we use regular expressions > for extracting data from an XML document... of course as

Re: Question on Jmeter RegEx PostProcessor

2009-09-22 Thread sebb
On 22/09/2009, Mark Stephen S. Florencio wrote: > Good day, > > I have a question on how the RegEx Post Processor work. > > I have a JSF application under test. I followed the article in the Wiki > about how to setup tests for JSF applications. I am having problems with the > viewState variabl

Re: help needed - Regular Expressions

2009-09-22 Thread Barnabas Davoti
Noel O'Brien wrote: Why not use the following XPath extractor instead: //sele...@name="A"]/option/@value That's a good news... I was wondering why should we use regular expressions for extracting data from an XML document... of course as far as it's XML (XHTML), but anyway in this case it's p

Sampler Error - Connection timed out: connect

2009-09-22 Thread Alexandru Rotaru
Hi all, I am currently using JMeter 2.3.4 to execute some tests with 50 and 100 concurrent users. Some of the samplers return: Load time: 21249 Latency: 0 Size in bytes: 1661 Sample Count: 1 Error Count: 1 Response code: Non HTTP response code: j

Re: help needed - Regular Expressions

2009-09-22 Thread Noel O'Brien
Why not use the following XPath extractor instead: //sele...@name="A"]/option/@value Regards, Noel - "Silvester Pozarnik" wrote: > Hi all, > > I am stuck with the following problem. Given the response with data > containing: > > > none > first > second > > > > none > fi

help needed - Regular Expressions

2009-09-22 Thread Silvester Pozarnik
Hi all, I am stuck with the following problem. Given the response with data containing: none first second none first second what is a way of getting JMeter to loop thorough values of options for the "block A" _only_? I need values "", "01" and "02" only to loop thorough. I can

Re: Paremeterization

2009-09-22 Thread Noel O'Brien
Hi, Looks like there's an extra comma "," after the last param to the CSVRead function, making it appear like there are three parameters instead of two: ${__CSVRead(login.csv,0,)}-A ${__CSVRead(login.csv,0)}-A Regards, Noel - "nanduri" wrote: > > hello, > im Dong paramterizxation

Paremeterization

2009-09-22 Thread nanduri
hello, im Dong paramterizxation using csv file and im using function _csv read.My csv file consists usename and password and i created three parameters ${__CSVRead(login.csv,0,)}-A ${__CSVRead(login.csv,1,)}-B ${__CSVRead(login.csv,next,)}-next \ i replaced in logins sampler in place of email,

Question on Jmeter RegEx PostProcessor

2009-09-22 Thread Mark Stephen S. Florencio
Good day, I have a question on how the RegEx Post Processor work. I have a JSF application under test. I followed the article in the Wiki about how to setup tests for JSF applications. I am having problems with the viewState variable discussed in the article. I looked at the Debug Sampler an