deepa k | 3 Jul 2006 06:54
Picon

Which object contains the result of the test plan ?

I am running JMeter in the non-gui mode.  With this i am able to run the
.jmx file which is the test-plan file.  I would want to display only the
aggregate report details.  Hence i want to know which object in the JMeter
contains the result of the test-plan.
Claus | 3 Jul 2006 10:20
Picon

Javascript function

Hello,

I'm fighting with a bit with the Javascript function in Jmeter. In a test
script I 
want to run the following expression:

${__javaScript((9000 * (parseInt('${VarA}') + (parseInt('${VarB}') %
10000))) % 9800)}

All I see in the output is "NaN"

Tested so far:

- the Javascript is tested and works (with JS variables of course)
- as the manual is a bit short on the used syntax and notations, I tried
different 
	quoting for the Jmeter variables

How can I make this ork?

Thanks in advance,

Claus
Vitalie Valache | 3 Jul 2006 11:59

Re: Javascript function

Hi, 
Nothing wrong with your function,  I've tested and it works!
I think maybe the "NaN" value is a result of accessing/assigning  wrong  value to variable

Make sure you're not doing this

VarA	10
VarB	${__javaScript((9000 * (parseInt('${VarA}') + (parseInt('${VarB}') % 10000))) % 9800)}

best of all,
--

-- 
DISCLAIMER:
Any e-mail messages from the National Bank of Moldova are sent in good faith, but shall not be binding nor
construed as constituting any obligation on the part of the Bank.
The information transmitted is intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material. If you received this in error, please contact the
sender and delete the material from any computer.
eric craven | 3 Jul 2006 12:36
Picon

bean shell pre/post-processor

i would like to read in a config file before any thread
 group is run, set a few variables that are valid for all
 thread groups, and then, after all thread groups have
 finished, write back some of these variables to a file..
 i have to use beanshell for this :)

i ran into the following problems:
* vars.put does not set a variable for anything *outside* 
  the current thread group
* i cannot have any beanshell scripts outside a thread group
* is there any way i can access the current loop counter for 
  the current thread
group?
* is there a way to run a beanshell script at a certain point 
  in the tree, for side effects? not a sampler, not a function,
  just run a script?

thanks for any help!

eric
Richa Pant | 3 Jul 2006 23:41
Picon
Favicon

Setting format of counter

Hi,

  I was looking for a way to specify the counter values as two digits e.g...1 as 01, 2 as 02....11 as 11.
  In Jmeter Help, it specifies that such format can be entered in the Counter , but in Jmeter 2.1.1 , I am not
seeing any Format entry in Preprocessors -> Counter.
  Has that been deprecated.
  Is there any other way to specify that,

  Thanks,

  Richa Pant

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Willingham Geoff | 4 Jul 2006 10:31
Picon

How to create a script with multiple Sequential thread groups ?

Greetings

Im trying to develop a test script to perform a number of steps in
sequence.  The tricky bit involves the number of simulated users
required at each stage.

The high-level outline of the test is:

1) prepare the data
2) process the data
3) produce a report

The way the system has been developed, points 1 + 3 can only be
performed by one user.  In order to fully test the processing
functionality, a minimum of 20 users is required.

The problem I am having related to organising the script, and working
out which components to use to achieve the changes in the number of
users.

Currently, I use three thread groups - one for each step.  However,
sometimes it appears as though the second / third thread groups start
before the previous group has finished processing.

Can anyone think of anything I could do to the script to reduce this
issue ?

Cheers

Geoff
(Continue reading)

Frank_Lindner | 4 Jul 2006 11:03
Picon

Need some assistance in creating an IBM-DB2 test


Greetings,

I hope somebody can help me.
I need to create a JMeter test for an IBM-DB2 Database connection.

Has anybody some experience how to start?
The manual only lists MySQL, PostgreSQL, Oracle and Ingres (2006)
connection strings.

I just need the correct setup for the connection configuration.

Thank you.

Best regards
Frank
Andy Dawson | 4 Jul 2006 11:17
Picon

Monitor Results - Thread Count

Hi All,

I´m experimenting with JMeter 2.2, Java 1.5, running on Windows XP 
testing against a Tomcat server running NT.

I´ve set up a results monitor, but irrespective of the actual number of 
threads used, the thread % reports 0 (memory and load show variation, 
health is always 100% right up until I crash the sever and it stops 
responding..). Browsing "/manager/status?XML=true" manually I can see 
that the active thread count is not 0 and varies. I´ve done a quick 
search but can´t find a reason for this - anybody got any tips?

Cheers,

Andy Dawson
PS. Does anybody use the irc channel..?
Amin Abbaspour | 4 Jul 2006 14:36
Picon
Favicon

Finding JUnit Test Plan

Hi,

I developed a JAR file containing JUnit test plan and placed it in
lib/junit, but JMeter does not seem to find and reflect it in JUnit
section.

It just finds JMeter's own sample (i.e. woolfel). I also tried to compile
'woolfel' and pack it again myself, but the same thing happened and jmeter
failed to load and show it.

I taught may be its some thing about my JDK ( I use 1.5 ), and changed it
to JDK 1.4, but this trick did not work either.

I don't think this is a problem in test plan source code since as I said,
I compiled the code with JMeter itself and it did not work too.

Thanks for your attention and help,
Sincerely,
Amin

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Claus | 4 Jul 2006 16:31
Picon

RE: Javascript function

Hi,

Thanks for the answer. The function was indeed assigned to another variable,
assigning the function direct to query parameter works fine.

-----Original Message-----
From: Vitalie Valache [mailto:Vitalie.Valache <at> bnm.org] 
Sent: maandag 3 juli 2006 12:00
To: jmeter-user <at> jakarta.apache.org
Subject: Re: Javascript function

Hi, 
Nothing wrong with your function,  I've tested and it works!
I think maybe the "NaN" value is a result of accessing/assigning  wrong
value to variable

Make sure you're not doing this

VarA	10
VarB	${__javaScript((9000 * (parseInt('${VarA}') + (parseInt('${VarB}') %
10000))) % 9800)}

best of all,
--

-- 
DISCLAIMER:
Any e-mail messages from the National Bank of Moldova are sent in good
faith, but shall not be binding nor construed as constituting any obligation
on the part of the Bank.
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
(Continue reading)


Gmane