|
JMeter example source code file (AuthManagerTestPlan.jmx)
The JMeter AuthManagerTestPlan.jmx source code<?xml version="1.0" encoding="UTF-8"?> <jmeterTestPlan version="1.2" properties="2.1"> <hashTree> <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> <collectionProp name="TestPlan.thread_groups"/> <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <boolProp name="TestPlan.serialize_threadgroups">false <boolProp name="TestPlan.functional_mode">false <stringProp name="TestPlan.comments"> </TestPlan> <hashTree> <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> <longProp name="ThreadGroup.start_time">0 <stringProp name="ThreadGroup.delay"> <stringProp name="ThreadGroup.duration"> <stringProp name="ThreadGroup.num_threads">1 <boolProp name="ThreadGroup.scheduler">false <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> <boolProp name="LoopController.continue_forever">false <stringProp name="LoopController.loops">1 </elementProp> <longProp name="ThreadGroup.end_time">0 <stringProp name="ThreadGroup.on_sample_error">continue <stringProp name="ThreadGroup.ramp_time">0 </ThreadGroup> <hashTree> <AuthManager guiclass="AuthPanel" testclass="AuthManager" testname="HTTP Authorization Manager" enabled="true"> <collectionProp name="AuthManager.auth_list"> <elementProp name="" elementType="Authorization"> <stringProp name="Authorization.url">http://localhost/secret <stringProp name="Authorization.username">kevin <stringProp name="Authorization.password">spot <stringProp name="Authorization.domain"> <stringProp name="Authorization.realm"> </elementProp> </collectionProp> </AuthManager> <hashTree/> <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true"> <stringProp name="HTTPSampler.path">/ <stringProp name="HTTPSampler.domain">localhost <stringProp name="HTTPSampler.protocol"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <stringProp name="HTTPSampler.port"> </ConfigTestElement> <hashTree/> <HTTPSampler guiclass="HttpTestSampleGui" testclass="HTTPSampler" testname="SecretPage1" enabled="true"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <stringProp name="HTTPSampler.path">/secret/index.html <stringProp name="HTTPSampler.method">GET <boolProp name="HTTPSampler.use_keepalive">false <stringProp name="HTTPSampler.protocol">http <boolProp name="HTTPSampler.image_parser">false <boolProp name="HTTPSampler.follow_redirects">false <stringProp name="HTTPSampler.port"> <stringProp name="HTTPSampler.domain"> <stringProp name="HTTPSampler.monitor">false <boolProp name="HTTPSampler.auto_redirects">false </HTTPSampler> <hashTree/> <HTTPSampler guiclass="HttpTestSampleGui" testclass="HTTPSampler" testname="SecretPage2" enabled="true"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <stringProp name="HTTPSampler.path">/secret/index2.html <stringProp name="HTTPSampler.method">GET <boolProp name="HTTPSampler.use_keepalive">false <stringProp name="HTTPSampler.protocol">http <boolProp name="HTTPSampler.image_parser">false <boolProp name="HTTPSampler.follow_redirects">false <stringProp name="HTTPSampler.port"> <stringProp name="HTTPSampler.domain"> <stringProp name="HTTPSampler.monitor">false <boolProp name="HTTPSampler.auto_redirects">false </HTTPSampler> <hashTree/> <HTTPSampler guiclass="HttpTestSampleGui" testclass="HTTPSampler" testname="NoSecretPage" enabled="true"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <stringProp name="HTTPSampler.path">/index.html <stringProp name="HTTPSampler.method">GET <boolProp name="HTTPSampler.use_keepalive">false <stringProp name="HTTPSampler.protocol">http <boolProp name="HTTPSampler.image_parser">false <boolProp name="HTTPSampler.follow_redirects">false <stringProp name="HTTPSampler.port"> <stringProp name="HTTPSampler.domain"> <stringProp name="HTTPSampler.monitor">false <boolProp name="HTTPSampler.auto_redirects">false </HTTPSampler> <hashTree/> <ResultCollector guiclass="GraphVisualizer" testclass="ResultCollector" testname="File Reporter" enabled="true"> <boolProp name="ResultCollector.error_logging">false <objProp> <name>saveConfig <value class="SampleSaveConfiguration"> <time>true <latency>true <timestamp>true <success>true <label>true <code>true <message>true <threadName>false <dataType>true <encoding>true <assertions>false <subresults>false <responseData>false <samplerData>false <xml>true <fieldNames>true <responseHeaders>false <requestHeaders>false <responseDataOnError>false <saveAssertionResultsFailureMessage>false <assertionsResultsToSave>0 </value> </objProp> <stringProp name="filename">auth-manager.dat </ResultCollector> <hashTree/> </hashTree> </hashTree> </hashTree> </jmeterTestPlan> Other JMeter examples (source code examples)Here is a short list of links related to this JMeter AuthManagerTestPlan.jmx source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
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.