If controller - not evaluating to true

2005-04-01 Thread Ghananeel Gondhali
Hi, In a regular expression reference name - cusid regular expression - ,'(C\d+)' template - $1$ match no -0 default value = "nothing found" In the IF controller i want to execute http requests only if cusid not equals nothing found i tried ${cusid}!="nothing found" !${cusid}.equals("noth

Per Iteration

2005-04-01 Thread Mujahid Ali
Can someone explain to me what does the "Update Once Per Iteration" in User Parameters does? I read the man page, but I don't get it. I assume that if you have 5 threads looping 10 times, that would mean there are 50 iterations, and that each iteration would get a new value for a variable defined i

Re: Giving Http requests access to HttpSession in JMeter tests

2005-04-01 Thread sebb
Try adding a Cookie Manager to the test plan On Apr 1, 2005 6:45 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I am a newbie to JMeter and need to load test a Struts/Servlet Filter > application. I have created a test plan > in JMeter (version 2.0.2) running on JDK 1.4.2 and have a n

Giving Http requests access to HttpSession in JMeter tests

2005-04-01 Thread Alan . Mullane
Hi, I am a newbie to JMeter and need to load test a Struts/Servlet Filter application. I have created a test plan in JMeter (version 2.0.2) running on JDK 1.4.2 and have a number of struts actions that I am testing in sequence (login.do, homePage.do, etc). I am able to test individual page reque

How read JDBC SQL query results file with StringFromFile or CSVRead functions

2005-04-01 Thread Matteo Turra
I have a query, it extracts username & password from the DB for my web application and I write the result with a Simple Data Writer in a file. Now I need to read this file (with a strange name because jmeter adds an .unknown extension) and use it in authorization manager. I look different post

User Parameters

2005-04-01 Thread Mujahid Ali
I have a test case defined as follows: Test Plan Thread Group [5 Threads, Loop 10 times] HTTP Request View Results Tree User Parameters [135 Users, with 2 parameters each, Update Once Per Iteration] HTTP Cookie Manager Two questions: 1. I noticed in the

Re: Re: JDBC connection problem

2005-04-01 Thread Gerry Ilagan
I'll download the latest code and see if it works. Thanks. --- Michael Stover <[EMAIL PROTECTED]> wrote: > Yeah, it's a good bet the old connection pooling mechanism doesn't > support more than 1 database pool. The latest CVS code has a new > database pooling component that should be able to ha

Re: jmeter non-GUI exit status

2005-04-01 Thread Gerry Ilagan
Hi Matthew, One way I can think of is by doing the following: 1. Create a database containing a list of URL's you want to monitor put in additional fields like the status/result of the test. (the key is the a sequential number) 2. Create a Loop controller 3. Perform a JDBC Query using t

Re: Re: JDBC connection problem

2005-04-01 Thread Michael Stover
Yeah, it's a good bet the old connection pooling mechanism doesn't support more than 1 database pool. The latest CVS code has a new database pooling component that should be able to handle it though. -Mike On Fri, 2005-04-01 at 17:08 +0100, sebb wrote: > I imagine there's some shared resource th

Re: Re: JDBC connection problem

2005-04-01 Thread sebb
I imagine there's some shared resource that should be private. Any relevant messages in jmeter.log? It would be useful to know if it also fails with two MySQL connections - it's a lot easier to set up MySQL than Oracle for reproducing the error. S. On Apr 1, 2005 4:58 PM, Gerry Ilagan <[EMAIL PR

Re: help with regular expression

2005-04-01 Thread sebb
Depends on what other text there may be on the page, but I would start with: '\((C\d+)\)' and add more context as needed, e.g. ,'\((C\d+)\)', etc See http://wiki.apache.org/jakarta-jmeter/RegularExpressions for some info on REs. S. On Apr 1, 2005 4:12 AM, Ghananeel Gondhali <[EMAIL PROTECTED]

Fwd: Re: JDBC connection problem

2005-04-01 Thread Gerry Ilagan
I am using jmeter v2.0.2 The problem occurs whenever I connect to MySQL and Oracle or Oracle and another Oracle. I haven't tried connecting to two MySQL databases. Do you have an idea of what the problem is? Thanks. --- sebb <[EMAIL PROTECTED]> wrote: > Date: Wed, 30 Mar 2005 20:00:24 +0100 > F

Re: processing returnvar before httprequest in foreach controller

2005-04-01 Thread sebb
Perhaps try adding a Simple Controller between ForEach and its children? Or maybe loop with count=1? Might work... Otherwise, you could use a dummy JavaTest sampler instead of the UserParameter test element. Not ideal, as it would add extra samples to the output. S. On Apr 1, 2005 3:47 PM, Michae

Re: randomly selecting checkboxes and radio buttons

2005-04-01 Thread Michael Stover
It sounds more difficult than "just use a regular expression". If it would work to select each checkbox yes/no randomly independently, you could probably do that with regular expressions and the random function. If you need specifically to turn any "4" on, and only 4, I don't see a way of doing th

Re: jmeter non-GUI exit status

2005-04-01 Thread Michael Stover
Sounds like you should write your own listener to handle the logic of what you want to do in the event of errors and the like. It's not terribly hard, especially if you have no gui needs. Then, you can start up jmeter with your listener and let it do what you need. -Mike On Fri, 2005-04-01 at

Re: processing returnvar before httprequest in foreach controller

2005-04-01 Thread Michael Stover
I could be wrong, but I think what's happening is that UserParameter is a Pre-Processor - it's going to run first. You might try using the other user parameters config element instead of the pre-processor. -Mike On Fri, 2005-04-01 at 12:01 +0200, [EMAIL PROTECTED] wrote: > Hi all, > > I'm using

jmeter non-GUI exit status

2005-04-01 Thread Matthew Boeckman
Hello list! I've got a project to integrate Jmeter tests into our application monitoring framework. So far, the only way I can see to do this is with a shell script wrapper and grepping logs for status codes (200 good, 404, 500 bad). Ideally, I'd like jmeter to simply return an exit status of 1

processing returnvar before httprequest in foreach controller

2005-04-01 Thread jerome . dupont
Hi all, I'm using jmeter 2.0.3 for testing a webapplication. I have a testplan with this request: Foreach Controller (returnVar, inputVar) | |_UserParameter: ${__split(${returnVar},aValue)} | |_HttpRequest(aValue_1, with parameter aValue_2) My problem is that returnVar