JMeter – Java Request Defaults

JMeter - Java Request Defaults

In JMeter, ‘Java Request Defaults’ is used to set default parameters to pass them into Java Request. Java Request Defaults config element is added under the Test Plan. The parameter values can be overridden using Java Request. 

JMeter - Java Request Defaults
Figure 01: JMeter – Java Request Defaults

How to add ‘Java Request Defaults’?

You can follow below steps to add Java Request Defaults

  1. Select the ‘Test Plan’ node
  2. Right-click on the ‘Test Plan’ node
  3. Hover the mouse on ‘Add’
  4. Hover the mouse on ‘Config Element
  5. 5. Click “Java Request Defaults” 

Input fields/Parameters

“Java Request Defaults” has below input fields or parameters:

  • Name: To provide element name
  • Comments: To provide arbitrary comments (if any)
  • Classname: It has two values either .JavaTest or .SleepTest.
  • Sleep_time
  • Sleep_mask
  • Lebel
  • Response Code
  • ResponseMessage
  • Status
  • SamplerData
  • ResultData

Leave a Reply

Your email address will not be published. Required fields are marked *