useful to you, feel free to come visit at
https://github.com/FlyingRhenquest
--
Bruce Ide
flyingrhenqu...@gmail.com
]+)
--
Bruce Ide
flyingrhenqu...@gmail.com
fine.)
If you need to dynamically compute parameters that you're sending back for
some reason, you can use a BSF preprocessor and use groovy to compute the
string. There's a nifty article at
http://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.html.
--
Bruce Ide
flyingrhenqu
applications I'm testing though.
--
Bruce Ide
flyingrhenqu...@gmail.com
variable substitution in the file name field, but
most samplers do so again I'm optimistic that will work.
There are a lot of ifs in here, but that's what makes testing fun, isn't
it?
--
Bruce Ide
flyingrhenqu...@gmail.com
of the
test, too...
--
Bruce Ide
flyingrhenqu...@gmail.com
. These are stored out on my github repository
if you ever need to do anything like that. I have a feeling that sort of
thing should be used sparingly though; it does make it very hard to look at
the test and understand what's going on in it.
--
Bruce Ide
flyingrhenqu...@gmail.com
at the moment.
--
Bruce Ide
flyingrhenqu...@gmail.com
file I/O would
have to indicate that they support the functionality and build a chain of
filters. Once implemented, it shouldn't be any harder to support than
regular java file I/O.
Also, I wonder how many people would actually use it.
Might be a fun project to poke at over a weekend...
--
Bruce
, and it does
a good job of summarizing the results and the trend for the last few runs.
--
Bruce Ide
flyingrhenqu...@gmail.com
location at the start of it.
Don't forget to document all this, especially if your company has any sort
of business process they have to conform with.
--
Bruce Ide
flyingrhenqu...@gmail.com
Hmm. Are you certain it's actually looping 100 times? I would guess that
something in your loop condition is causing the test to exit prematurely. Is
the test set up to exit if a sampler fails?
--
Bruce Ide
flyingrhenqu...@gmail.com
Hmm. It's unusual for a sampler to have no data at all -- even if someone
doesn't respond you should still get a result. Are any exceptions showing up
in the jmeter log? It's usually located either in the jmeter bin directory
or the directory you were in when you started jmeter.
--
Bruce Ide
= ${accumulatorVar} + myFloat;
vars.put(accumulatorVar, Float.toString(accumulate));
It's kind of a long way to go to get that, though. Perhaps someone can
suggest an easier method.
You may prefer to use Double than Float, depending on how big/small your
numbers are.
--
Bruce Ide
flyingrhenqu...@gmail.com
threads and at the end of your setup thread. When it runs, the first two
threads will decrement the counter to 1 and go to sleep. When the setup
thread hits the sampler, it'll decrement to 0 and wake the sleeping threads.
--
Bruce Ide
flyingrhenqu...@gmail.com
tests, try disabling those and see if you still have
memory trouble.
--
Bruce Ide
flyingrhenqu...@gmail.com
a compelling reason to upgrade to 2.4., and
working include controllers apparently isn't enough. Fortunately it wasn't
hard to back-port the 2.4 include controller to 2.3.4. I'll lobby for a
jmeter upgrade again when setup and teardown threads go in.
--
Bruce Ide
flyingrhenqu...@gmail.com
changes.
--
Bruce Ide
flyingrhenqu...@gmail.com
in your current one (Barring
trickery :-)
--
Bruce Ide
flyingrhenqu...@gmail.com
you send to
the backend if you bypass that checking...) but it does not do any sort of
UI validation. So you'll still need someone to go through the UI and make
sure buttons still work and stuff.
--
Bruce Ide
flyingrhenqu...@gmail.com
again? If it's created by the
Javascript side of the application, I would expect the java side to just
accept whatever you tell it that ID is.
--
Bruce Ide
flyingrhenqu...@gmail.com
Add another response assertion?
--
Bruce Ide
flyingrhenqu...@gmail.com
thinks they're so simple that examples aren't documented.
--
Bruce Ide
flyingrhenqu...@gmail.com
the correct login
and password. When you go to the next page, the assertion will look for the
error text, not find it and cause a test failure.
--
Bruce Ide
flyingrhenqu...@gmail.com
The only thing I can think of that would cause that is that your web browser
isn't using the proxy for local addresses. If you're using firefox, do you
have anything at all in the No proxy for: in your network settings? If so,
remove it and try again.
--
Bruce Ide
flyingrhenqu...@gmail.com
to see if they're expired before sending
them back.
I'd be really hesitant to change the behavior of the test environment to
mask a bug you uncovered, though. Sending expired cookies IS a bug, and it's
something the guys running the server should fix.
--
Bruce Ide
flyingrhenqu...@gmail.com
you to manipulate explicit
cookie values? That'd be a bit more work, but might be more palatable.
--
Bruce Ide
flyingrhenqu...@gmail.com
did, in fact, retrieve columns from the database. Then
look at the debug sampler and see how it created the variables for you to
use.
--
Bruce Ide
flyingrhenqu...@gmail.com
?
You just want it to do the same thing at the same time in all threads? You
could use a synchronizing timer to block all threads until they all reach
the timer.
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Synchronizing_Timer
--
Bruce Ide
flyingrhenqu...@gmail.com
have to throw
together a jmeter test to exercise it in the morning.
--
Bruce Ide
flyingrhenqu...@gmail.com
, requesting that the
behavior of the app be modified to allow multiple administrative logins or
print an error message if the same admin user attempts to log in instead of
kicking the current session out. But then I'd have to talk to developers
(heh heh heh.)
--
Bruce Ide
flyingrhenqu...@gmail.com
solution would be to modify the application to
print an error that the user is already logged in. Jmeter could detect that
with a XPath or Regex postprocessor and retry until the system allows it to
log in. We'll see if the intersection between ideal and real world allows
for that!
--
Bruce Ide
else while requesting tiles, or if you want it
to start requesting tiles at one point in the test, and then stop later on
(While still doing other stuff,) that could get more complicated.
--
Bruce Ide
flyingrhenqu...@gmail.com
could even maintain
different datasets to simulate light or heavy usage.
--
Bruce Ide
flyingrhenqu...@gmail.com
with
swing than because of jmeter.
--
Bruce Ide
flyingrhenqu...@gmail.com
understand why a car engine is
beautiful.
--
Bruce Ide
flyingrhenqu...@gmail.com
all crazy
with the emacs and the maven and all those kind thing.
--
Bruce Ide
flyingrhenqu...@gmail.com
later,
and log everything. Then you can look in your jmeter log and see how far
your class got, or if it get anywhere at all.
--
Bruce Ide
flyingrhenqu...@gmail.com
I usually make a class BeanInfo class with the bean information. I haven't
yet needed to make a more complex UI than just Enter a string here. I
might have to soon, though!
--
Bruce Ide
flyingrhenqu...@gmail.com
with subsamples myself, I've just noted that there
seems to be that capability while digging around in the source code.
--
Bruce Ide
flyingrhenqu...@gmail.com
actually could only have
a single session. If you tried to have more than that, they'd overwrite each
other in unpredictable ways.
--
Bruce Ide
flyingrhenqu...@gmail.com
they're cool?
* Do I really understand what threads are used for?
Note that if only the answer to #3 is incorrect, the Don't do that...
unless you really want to rule kicks in, but generally you're on your own
if you do it anyway! :-D
--
Bruce Ide
flyingrhenqu...@gmail.com
heh
--
Bruce Ide
flyingrhenqu...@gmail.com
that
handles ntlm already, someone could probably use the source as the
foundation for one. Assuming that there's not a suitable java library that
could be used instead...
--
Bruce Ide
flyingrhenqu...@gmail.com
Some people, when confronted with a problem, think I know! I'll use regular
expressions! Now they have two problems.
--
Bruce Ide
flyingrhenqu...@gmail.com
performance. It sounds like you're dealing with a fairly small
response, though.
I often find that looking at the response in the view results tree sheds
some light on the problem. Usually it's something my regex didn't anticipate
being possible.
--
Bruce Ide
flyingrhenqu...@gmail.com
.
The redirects now show up as sub-samples to the main sampler, which works
fine for my test.
--
Bruce Ide
flyingrhenqu...@gmail.com
probably could down-cast it to SampleResult when you're done with it, which
I would do just to make the OOP crowd burst a blood vessel!)
--
Bruce Ide
flyingrhenqu...@gmail.com
in...
--
Bruce Ide
flyingrhenqu...@gmail.com
Yep. Each user is executed in a separate thread, and gets a different
session with the authorization manager. Just set number of users to 10 in
your thread group and you're done.
--
Bruce Ide
flyingrhenqu...@gmail.com
That would actually be pretty cool. I'm always forgetting to disable my
listeners. Most of my tests don't run out of memory anyway, but there's no
point in using it if you don't have to!
--
Bruce Ide
flyingrhenqu...@gmail.com
thing into
memory at once. I ended up just making them give me a smaller file to work
with.
--
Bruce Ide
flyingrhenqu...@gmail.com
I am a scientist, sir! I can never be absolutely positive! ;-)
--
Bruce Ide
flyingrhenqu...@gmail.com
know of a controller or other jmeter plugin that would provide
local variable functionality?
--
Bruce Ide
flyingrhenqu...@gmail.com
Sweet, that may be all I need to control my variable explosion. I'm
definitely going to experiment with that!
--
Bruce Ide
flyingrhenqu...@gmail.com
to either the results or to the sampler label.
--
Bruce Ide
flyingrhenqu...@gmail.com
that sort of problem.
If none of those apply, I'm stumped for possible jmeter causes. At that
point I'd start looking at the system to see if there are signs of a faulty
disk or other hardware that might be causing files to become corrupt.
--
Bruce Ide
flyingrhenqu...@gmail.com
on what the string in the variable is:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#If_Controller
--
Bruce Ide
flyingrhenqu...@gmail.com
potential hardware issues,
because your files should not be getting corrupted like that. I'd start with
a virus checker and maybe run disk and RAM diagnostics.
--
Bruce Ide
flyingrhenqu...@gmail.com
.
--
Bruce Ide
flyingrhenqu...@gmail.com
I thought I saw that IterationListener had an iterationEnd event added at
some point but I'm not seeing it in the checkout of the 2.4 source I have.
Was that added in a later version?
--
Bruce Ide
flyingrhenqu...@gmail.com
predefined
functions in jmeter! :-D
--
Bruce Ide
flyingrhenqu...@gmail.com
to do that, you could probably do it with a beanshell function or
something.
--
Bruce Ide
flyingrhenqu...@gmail.com
Is your test able to shut down in non-GUI mode if it just exits normally?
There have been problems in the past with third-party addons preventing
jmeter from exiting while in non-GUI mode.
--
Bruce Ide
flyingrhenqu...@gmail.com
not be what you want.
The second one gives you the class name of the object. That's pretty cool.
I'm not sure if you can get at the sampler's generic name though. If you
just want Java Request no matter what the Name field is, I don't know how
you'd get at that.
--
Bruce Ide
flyingrhenqu
spiffy. Of course, I probably shouldn't be doing things like that with
jmeter anyway.
--
Bruce Ide
flyingrhenqu...@gmail.com
Yikes, every one? I wonder if it would change if you put that code in an
http header manager config element up at the top of the test? That would be
outlandishly cool if that would actually work...
--
Bruce Ide
flyingrhenqu...@gmail.com
in there. You're probably sending the old session ID
somehow, and it's just a matter of finding the old one and removing it so
that the cookie manager can do its job.
--
Bruce Ide
flyingrhenqu...@gmail.com
looking for to a variable with an
xpath or regex post-processor.
You can use a cookie manager for session management.
--
Bruce Ide
flyingrhenqu...@gmail.com
If you click on your Test Plan node, there's an option to Run Thread
Groups Consecutively which is probably what you want. If you need more
intra-thread control, you might need to look into some of the timers. Give
that a try first though.
--
Bruce Ide
flyingrhenqu...@gmail.com
in separate
sessions is really the only reason I'd run multiple threads, and I wrote the
aforementioned plugin to support something like that.
--
Bruce Ide
flyingrhenqu...@gmail.com
. You could probably set it up to pull its data from
java properties files too.
--
Bruce Ide
flyingrhenqu...@gmail.com
specify a default
value like that and it assigns the default. It'll put 5000 in keyval, not
keyval_1.
--
Bruce Ide
flyingrhenqu...@gmail.com
the xpath extractor over the regexp extractor when I can use
it, as it takes much less fiddling to make it work. Usually with the xpath
extractor I just need to remember to click use tidy and I'm good.
--
Bruce Ide
flyingrhenqu...@gmail.com
I've always wondered why use tidy isn't on by default. My Xpath usually
looks good to me, but it doesn't ever actually work unless I actually select
that option. It's like having an option, Make this component actually work
that is disabled by default.
--
Bruce Ide
flyingrhenqu...@gmail.com
BOTH samplevar.jmx and
testSampleVars.jmx, so that the include controller refreshes its tree
correctly.
--
Bruce Ide
flyingrhenqu...@gmail.com
-
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional
, but
you should be able to turn up some good examples if you google around on
Jmeter BSF Preprocessor.
--
Bruce Ide
flyingrhenqu...@gmail.com
(That you can disable when not
debugging the test) and one or more debug samplers at various points in the
test. That makes it very easy to see what the test is doing, and what
variables are being created at various points in the test.
--
Bruce Ide
flyingrhenqu...@gmail.com
the
systemwide environment settings.
--
Bruce Ide
flyingrhenqu...@gmail.com
It's fine, just ignore it.
--
Bruce Ide
flyingrhenqu...@gmail.com
to Javascript you'll just have to compute a constant execution time
that's added by the Javascript. If this is the case you'll probably want to
compute different ones for each browser, too, since Chrome handles
Javascript a lot faster than Firefox does.
--
Bruce Ide
flyingrhenqu...@gmail.com
do this in an __eval or __javascript or something, but I
don't know if it really buys you any more or less trying to do it that way.
I tend to prefer BSF samplers (With Groovy) for being more readiable. To a
java programmer anyway...
--
Bruce Ide
flyingrhenqu...@gmail.com
, as their syntax may not be what you expect.
--
Bruce Ide
flyingrhenqu...@gmail.com
There's an open source NTLM proxy, cntlm, which might let you work around
it. It wasn't terribly difficult to configure when I looked at it. Works on
UNIX too. If you're really hard up...
--
Bruce Ide
flyingrhenqu...@gmail.com
to be a
bit... unorthodox... though.
--
Bruce Ide
flyingrhenqu...@gmail.com
I would swear that I've used the SOAP request for that in the past. My
service wanted a post in XML format, but it doesn't seem to provide a WSDL
or anything I'd normally associate with SOAP. If your service wants some
XML, I'd suggest giving that a try.
--
Bruce Ide
flyingrhenqu...@gmail.com
Could you use a synchronizing timer to insure your threads run more
consistently? I find them to be underrated, and they're worth taking a look
at if you haven't yet.
--
Bruce Ide
flyingrhenqu...@gmail.com
if the property isn't defined, you can put it in there.
--
Bruce Ide
flyingrhenqu...@gmail.com
You don't need to use + to convert bshFoo into a String! It's already a
String! And using + to convert something to a String is the wrong way to
do that, anyway!
God!
;-)
--
Bruce Ide
flyingrhenqu...@gmail.com
+ megabyte Strings on a regular basis. You definitely don't
want to create any more copies of those than you have to!
--
Bruce Ide
flyingrhenqu...@gmail.com
, I haven't had my coffee yet.
If it didn't make sense to you, I'll try to dig up some additional
information about it from my research on the subject for you.
--
Bruce Ide
flyingrhenqu...@gmail.com
to take place before you
attempt to log in to the webap. I keep mine in a separately included module
that acquires the strong names for all the functions I use in the webapp.
Once you get your login test recoded, play it back and make sure it works.
Then you can tinker with it.
--
Bruce Ide
Couldn't you just use a JDBC config element and sampler?
--
Bruce Ide
flyingrhenqu...@gmail.com
replace
your static variable ID with the jmeter variable you're using in your
ForEach loop.
--
Bruce Ide
flyingrhenqu...@gmail.com
don't know if it does much other than that. One of my co-workers is
fond of using them but I haven't used them all that much in my test. Do any
further statements in the controller execute once one fails? I could see it
being useful if it prevented any from executing after that point.
--
Bruce Ide
to the
local exceptions and if the application you're attempting to test is on the
internal network with that exception set up, jmeter won't record any of
those pages.
--
Bruce Ide
flyingrhenqu...@gmail.com
You do this in a User Defined Variables Configuration Element, or in the
test plan element configuration page. Either one will work.
--
Bruce Ide
flyingrhenqu...@gmail.com
to recognize messages in that protocol and use the appropriate sampler for
them.
--
Bruce Ide
flyingrhenqu...@gmail.com
the start and end times in the scheduler to
${__P(START_TIME,)} and ${__P(END_TIME,)}, but I'm not positive if that
would work or not.
--
Bruce Ide
flyingrhenqu...@gmail.com
that does something like that uses two listeners that write
successful and failed requests to disk. I can just fire it up and if I see
any failed requests then I know my test failed.
--
Bruce Ide
flyingrhenqu...@gmail.com
1 - 100 of 103 matches
Mail list logo