The Advanced HTTP Tester's purpose is to control the logic of sampling web URL's.
The GUI for the Advanced HTTP Tester lets you do the following:
If you are using forms-based authorization, you will have to manually configure a Test Sample to hit that page with the appropriate arguments. Please be sure to click the "only hit this URL once" checkbox for the Test Sample (so that JMeter doesn't repeatedly sample the authorization page).
Additionally, if you have added a SAX XML parser to your classpath (such as xerces.jar), you will see two additional icons -
for save and load. To save all the test samples, hit save and choose a directory and filename to save to.
Note:JMeter creates a directory called "testsamples" within the directory you select, and each Test Sample is saved
in an individual file within this created directory. The file you specifically selected is an "script" file that lists all the
Test Samples that it contains - but it simply contains pointers to the individual Test Sample files. This allows you to save large
lists of Test Samples, and still be able to use them separately from each other as you like. Currently, JMeter overwrites files
without warning you, so be careful.
Test Samples available:
HTTPBaseTestSample requires the following input:
Enter
after your last entry since it is
possible to enter a value into the table, and then click "OK" with the mouse. Although the value
is saved in the table, JMeter will not see it until you hit Enter
. This is a bug.
It is also possible to enter multiple values for a single argument name. The easiest way to do this is to select a row and then hit the "edit" button. This will pop up a dialog by which you can add as many values as you like to the field. Another way to do it is enter multiple values, each quoted and separated by commas.
If you enter multiple values for a field, JMeter will create separate test entries automatically for each possible combination of name-value pairs. This is a time-saving device. An example of use would be if you wish to test a search script, and you want to test a large number of different search strings. Normally, you would have to create a new test sample for each search term, even though the URL, the method, and all the other arguments are the same across all the test samples. Using this method, however, you only need to create one test sample, and load the search string argument with multiple values.
If your test sample has multiple values, AND you've selected "Interleave", JMeter will use just one of the combinations to sample each time through the list of test samples (it's not random, they still go in succession). Otherwise, JMeter will do all the combinations each time the test sample comes around.
Copyright (c) 1999 The
Java Apache Project.
$Id: httpsamplercontroller.html,v 1.6 2000/09/19 03:18:10 mstover Exp $
All rights reserved.