Advanced HTTP Tester

進歩したHTTPテスター

The Advanced HTTP Tester's purpose is to control the logic of sampling web URL's.

進歩したHTTPテスターの目的は、ウェブのURLのサンプルを取るロジックをコントロールすることです。

The GUI for the Advanced HTTP Tester lets you do the following:

進歩したHTTPテスター用のGUIでは、以下のようなことができます:

Enable cookies
By clicking the checkbox enabling cookies, you enable JMeter to store and return cookies to and from your test pages. Optionally, if you configure the cookies setup, you can select a Netscape-style cookie file to start JMeter off with any cookies you like.
クッキーを有効にする
クッキーを有効にするチェックボックスをクリックすると、JMeterにクッキーを蓄えたり、 テストページからクッキーを返したりします。Optionally, クッキーの設定をすると、 Netscapeスタイルのファイルを選択して、好きなクッキーを使ってJMeterをスタートします。
Enable authorization
By selecting this checkbox, you enable JMeter to enter authorization information (for pop-up style authorization requests) if it is requested by the webserver. Hit "Configure" and enter in your authorization information.

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).

認証を有効にする
このチェックボックスを選択すると、ウェブサーバーに要求されると(ポップアップスタイルの認証要求用に) JMeterが認証情報を入力します "Configure(設定)"ボタンを押して、認証情報を入力します。

もしフォームを使った認証を使っているならば、適当な値を入力するページにアクセスする テストサンプルを手動で設定する必要があります。 (JMeterが繰り返し認証ページのサンプルを取らないように) テストサンプル用に"only hit this URL once (このURLに一度だけアクセスする)"チェックボックスをテストサンプル用にクリックしてください。

Create and edit test samples
using the drop down select list, choose a type of test sample you wish to create, and click the "create" button. As you create more and more, they will be added to your list. To edit one, simply select it from the list, and click the "edit" icon. To delete samples, select all the samples you wish to delete, and click the trashcan icon.

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.

テストサンプルを作成し、変更する
ドロップダウンの選択リストを使って、作りたいテストサンプルのタイプを選択し、"create"ボタンをクリックします。 作るごとにリストに追加されます。修正するには、リストから選択し、"edit"アイコンをクリックします。 サンプルを削除するには、削除したいサンプルをすべて選択し、ゴミ箱アイコンをクリックします。

さらに、(xerces.jarのような)SAX XMLパーサーがクラスパスに追加されていれば、saveload用の 二つのアイコンが追加されているのが確認できるでしょう。 すべてのテストサンプルを保存するには、saveをクリックし、保存するディレクトリとファイル名を選択します。
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: 注意:JMeterは選択したディレクトリの中に"testsamples"と呼ばれるディレクトリを作ります。 各テストサンプルは、このディレクトリの中に個別のファイルを保存します。 選択したファイルは、中に含まれるテストサンプルのすべてを一覧にした"スクリプト"ファイルです。 しかし、単に各テストサンプルファイルへの参照を持っているだけです。 これにより、たくさんのテストサンプルを保存することができ、好きなようにそれぞれをわけて使うことができます。 現在、JMeterは警告もなくファイルを上書きするので、注意してください。 テストサンプルについては、以下の部分を参照してください:

HTTPBaseTestSample

HTTPベースのテストサンプル

HTTPBaseTestSample requires the following input:

HTTPベースのテストサンプルは次のような入力が必要です:

URL
Enter the URL of the page you wish to test. Do not include any argument-value pairs
URL
テストするページのURLを入力します。名前-値の組み合わせを含んではいけません
GET or POST
Select either the GET or POST checkbox to indicate the method that should be used to sample the URL
GETかPOST
URLのサンプルを取るのに使うメソッドを示すため、GETかPOSTのチェックボックスを選択します
Hit URL once only
Indicate to JMeter if you wish this URL to be dropped from the sample list after it is first sampled. This can be used for login pages so that JMeter will login once, but will not do so repeatedly.
Hit URL once only (URLに一度だけアクセスする)
最初にサンプルを取った後にサンプルリストからこのURLを取り除くかどうかをJMeterに示します。 これは、JMeterが一度だけログインして、何度も繰り返さないようにするために、ログインページに使います。
Interleave
Indicate to JMeter that multiple test entries generated from this test sample should be sampled one-at-a-time - ie interleaved with entries from other test samples. This is relevant only if multiple argument values have been entered for one or more arguments.
Interleave(インタリーブ)
このテストサンプルから作り出された複数のテスト項目が、 一度に一つだけサンプルされるようにJMeterに指示します。 つまり、他のテストサンプルからエントリーでインタリーブされます。 複数の値が複数のキーように入力されているときに有効です。
Select one or more thread groups
This test sample will be part of whichever thread groups you select here.
Select one or more thread groups(一つ以上のスレッドグループを選択する)
このテストサンプルはここで選択したスレッドグループの一部になります。
Arguments
You may add as many name-value pairs as you wish here. Be sure to hit 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.
Arguments(値)
ここでは希望の名前-値の組み合わせを追加します。 値が表に追加されるように、最後の項目を入力した後に Enterを忘れずに押し、 マウスで"OK"をクリックしてください。 値が表に保存されても、Enterが押されるまでJMeterはそれを知ることができません。 これはバグです。

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.

一つの名前に対して複数の値を入力することも可能です。 列を選択して、"edit" ボタンを押すのがいちばん簡単です。 こうすると、好きなだけフィールドに追加できるダイアログがポップアップします。 また、複数の値をカンマ区切りで入力してもできます。

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.

一つのフィールドに複数の値を入力すると、JMeterは名前-値の考えうる組み合わせの分だけ自動的にテスト項目を作成します。 こうすることで、時間が節約できます。 使い方の例としては、検索スクリプトのテストがしたくて、たくさんの異なる検索文字列を試したい場合が考えられます。 通常、URLやメソッド、他の要素がテストサンプル全体で同じであっても、 検索文字列ごとに新しいテストサンプルを作成しなければいけません。 しかし、この方法を使うと、一つだけテストサンプルを作って、複数の値で検索文字列を読み込むことができます。

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.

テストサンプルがたくさんの値を持っていて、しかも"Interleave"を選択していると、 JMeterはテストサンプルのリスト(ランダムではなく、連続しています)の中から毎回サンプルを取る組み合わせのうち一つを使います。 しかし、Jmeterはテストサンプルが変わるたびに、すべての組み合わせを試します。

Copyright (c) 1999 The Java Apache Project.
$Id: httpsamplercontroller.html,v 1.1.1.1 2003/04/14 11:47:16 ami Exp $
All rights reserved.