Reputation: 834
I tried to use Functional test mode in Jmeter. But not able to find any difference. How to use Functional test mode in Jmeter ? Where it stores Response and Sampler data?
Upvotes: 0
Views: 3249
Reputation: 168002
If you run your test using JMeter GUI - nowhere. The results are being kept in memory and can be visualized using View Results Tree listener
According to the documentation you will only see the difference if:
You add the following line to user.properties
jmeter.save.saveservice.output_format=xml
Run JMeter in command-line non-GUI mode like:
jmeter -n -t test.jmx -l result.xml
If Functional Test Mode
will be unticked - only basic information will be stored in result.xml
file (according to what is specified in results file configuration - see ), i.e.
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<httpSample t="298" it="0" lt="297" ct="54" ts="1540368444288" s="true" lb="HTTP Request" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="1597" sby="115" ng="1" na="1">
<java.net.URL>http://example.com/</java.net.URL>
</httpSample>
</testResults>
If Functional Test Mode
will be ticked - everything will be stored in results.xml
file including request and response details:
<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<httpSample t="176" it="0" lt="176" ct="43" ts="1540368457253" s="true" lb="HTTP Request" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="1613" sby="115" ng="1" na="1">
<responseData class="java.lang.String"><!doctype html>
<html>
<head>
<title>Example Domain</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type="text/css">
body {
background-color: #f0f0f2;
margin: 0;
padding: 0;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
div {
width: 600px;
margin: 5em auto;
padding: 50px;
background-color: #fff;
border-radius: 1em;
}
a:link, a:visited {
color: #38488f;
text-decoration: none;
}
@media (max-width: 700px) {
body {
background-color: #fff;
}
div {
width: auto;
margin: 0 auto;
border-radius: 0;
padding: 1em;
}
}
</style>
</head>
<body>
<div>
<h1>Example Domain</h1>
<p>This domain is established to be used for illustrative examples in documents. You may use this
domain in examples without prior coordination or asking for permission.</p>
<p><a href="http://www.iana.org/domains/example">More information...</a></p>
</div>
</body>
</html>
</responseData>
<cookies class="java.lang.String"></cookies>
<method class="java.lang.String">GET</method>
<queryString class="java.lang.String"></queryString>
<java.net.URL>http://example.com/</java.net.URL>
</httpSample>
</testResults>
More information:
Upvotes: 1