Re: How to pass a variable as a parameter to random function

2007-06-12 Thread bvm101
I am sorry, I am looking at the example to define clientSize, but I can’t figure it out: print("Size=${clientSize}.";. Will you elaborate? sebb-2 wrote: > > On 12/06/07, bvm101 <[EMAIL PROTECTED]> wrote: >> >> I did try ${__Random(0,${clientSize} ,myRandom)};, however, I get >> following >> er

Re: How to pass a variable as a parameter to random function

2007-06-12 Thread sebb
On 12/06/07, bvm101 <[EMAIL PROTECTED]> wrote: I did try ${__Random(0,${clientSize} ,myRandom)};, however, I get following error (error log): There's a space after ${clientSize} - try removing it. If that does not help, make sure that clientSize is defined, e.g. by adding the following to the

Re: multiple user certs in single jmeter test?

2007-06-12 Thread sebb
The code currently does not support multiple user certificates; the first one (if any) is used. Looks like there were originally plans to allow choice of keys. The code to process the client keystore is in DefaultKeyStore. Does not look like it is possible to pick a different key from a multi-k

Re: How to pass a variable as a parameter to random function

2007-06-12 Thread bvm101
I did try ${__Random(0,${clientSize} ,myRandom)};, however, I get following error (error log): 2007/06/12 17:41:43 ERROR - jmeter.threads.JMeterThread: java.lang.NumberFormatException: For input string: "${clientSize}" at java.lang.NumberFormatException.forInputString(Unknown Source)

Re: How to pass a variable as a parameter to random function

2007-06-12 Thread sebb
On 12/06/07, bvm101 <[EMAIL PROTECTED]> wrote: Within a BeanShell PreProcessor I have a following code: java.util.List ids = new java.util.ArrayList(); ids.add("key1"); ids.add("key2"); ids.add("key3"); int clientSize = ids.size(); ${__Random(0,3 ,myRandom)}; The above line should give the

Pointing to multiple server names in HTTP Request Defaults.

2007-06-12 Thread Ankem, Balaji
Hi, I want to record when I am testing on my desktop browser. My website is linked to different servers. Once the request is changed to different server I am not getting the page as I kept the server name in HTTP Request defaults to a single server. Is there any way to direct the request to any

How to pass a variable as a parameter to random function

2007-06-12 Thread bvm101
Within a BeanShell PreProcessor I have a following code: java.util.List ids = new java.util.ArrayList(); ids.add("key1"); ids.add("key2"); ids.add("key3"); int clientSize = ids.size(); ${__Random(0,3 ,myRandom)}; vars.put("Col_65537", ids.get(${myRandom})); However, when callin

Re: Cleaning content of response before assertions (was: Question about XPath)

2007-06-12 Thread sebb
Have you tried the tolerant check-box? Assertions are processed after Post-Processors: http://jakarta.apache.org/jmeter/usermanual/test_plan.html#executionorder so you can use a BeanShell Post-Processor to update the sampleData and strip off the garbage. But really, the server ought to be fixe

question about use Constant timer with authentification via form: The time allowed for the login process has been exceeded.

2007-06-12 Thread GUERARD Elisabeth
Dear all, A question: Here an web application must be tested by using JMETER, this web application uses the authentification by form, it means Called a page /MyProject/j_security_check and send the following parameters with the request - j_username - j_password After this reque

Cleaning content of response before assertions (was: Question about XPath)

2007-06-12 Thread Knut Borchart
Hi, it seems my problem with xpath (assertion/extraction) i mentioned in another posting was caused by the application server sending a strange character at the end of the response (displayed like a rectangle, cannot paste here) \something How can i clean the response content before a

Re: Question about XPath Assertion/Extraction

2007-06-12 Thread sebb
Test plan sent privately. The plan works in 2.2 and later. The NPE was caused because I used the XPath for the Assertion in an Extractor by mistake. On 12/06/07, Knut Borchart <[EMAIL PROTECTED]> wrote: Hi Sebb, thanks for your response. Please send me a sample JMX if possible. Did you fix an

Re: Question about XPath Assertion/Extraction

2007-06-12 Thread Knut Borchart
Hi Sebb, thanks for your response. Please send me a sample JMX if possible. Did you fix anything, should i download a new build of jmeter? I am not sure from your comment about the NPE... Kind regards, peter 2007/6/10, sebb <[EMAIL PROTECTED]>: I was wrong - the samples work fine for me in JM