alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

JMeter example source code file (load_bug_list.jmx)

This example JMeter source code file (load_bug_list.jmx) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - JMeter tags/keywords

arguments, arguments, get, httpargument, httpargument, httpargumentspanel, httpsampler, httpsampler, httptestsamplegui, jmeter, jmeter, now, reuse, utf-8

The JMeter load_bug_list.jmx source code

<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.1">
  <hashTree>
    <HTTPSampler guiclass="HttpTestSampleGui" testclass="HTTPSampler" testname="load_bug_list" enabled="true">
      <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
        <collectionProp name="Arguments.arguments">
          <elementProp name="bug_status" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">.*
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">bug_status
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="bug_status" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">.*
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">bug_status
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="bug_status" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">.*
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">bug_status
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="email1" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">email1
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="emailtype1" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">substring
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">emailtype1
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="emailassigned_to1" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">1
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">emailassigned_to1
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="email2" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">email2
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="emailtype2" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">substring
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">emailtype2
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="emailreporter2" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">1
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">emailreporter2
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="bugidtype" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">include
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">bugidtype
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="bug_id" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">bug_id
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="changedin" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">changedin
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="votes" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">votes
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="chfieldfrom" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">chfieldfrom
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="chfieldto" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">Now
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">chfieldto
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="chfieldvalue" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">chfieldvalue
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="product" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">JMeter
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">product
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="short_desc" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">short_desc
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="short_desc_type" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">substring
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">short_desc_type
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="long_desc" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">long_desc
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="long_desc_type" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">substring
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">long_desc_type
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="bug_file_loc" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">bug_file_loc
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="bug_file_loc_type" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">substring
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">bug_file_loc_type
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="keywords" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <boolProp name="HTTPArgument.use_equals">true
            <stringProp name="Argument.name">keywords
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="keywords_type" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">anywords
            <stringProp name="Argument.name">keywords_type
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="field0-0-0" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">noop
            <stringProp name="Argument.name">field0-0-0
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="type0-0-0" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">noop
            <stringProp name="Argument.name">type0-0-0
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="value0-0-0" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">
            <stringProp name="Argument.name">value0-0-0
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="cmdtype" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">doit
            <stringProp name="Argument.name">cmdtype
            <boolProp name="HTTPArgument.always_encode">false
          </elementProp>
          <elementProp name="order" elementType="HTTPArgument">
            <stringProp name="Argument.metadata">=
            <stringProp name="Argument.value">Reuse same sort as last time
            <stringProp name="Argument.name">order
            <boolProp name="HTTPArgument.always_encode">true
          </elementProp>
        </collectionProp>
      </elementProp>
      <stringProp name="HTTPSampler.domain">issues.apache.org
      <stringProp name="HTTPSampler.port">80
      <stringProp name="HTTPSampler.protocol">http
      <stringProp name="HTTPSampler.contentEncoding">
      <stringProp name="HTTPSampler.path">/bugzilla/buglist.cgi
      <stringProp name="HTTPSampler.method">GET
      <boolProp name="HTTPSampler.follow_redirects">false
      <boolProp name="HTTPSampler.auto_redirects">false
      <boolProp name="HTTPSampler.use_keepalive">true
      <boolProp name="HTTPSampler.DO_MULTIPART_POST">false
      <stringProp name="HTTPSampler.FILE_NAME">
      <stringProp name="HTTPSampler.FILE_FIELD">
      <stringProp name="HTTPSampler.mimetype">
      <stringProp name="HTTPSampler.monitor">false
      <stringProp name="HTTPSampler.embedded_url_re">
    </HTTPSampler>
    <hashTree/>
  </hashTree>
</jmeterTestPlan>

Other JMeter examples (source code examples)

Here is a short list of links related to this JMeter load_bug_list.jmx source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.