|
JMeter example source code file (RenderTreeTest.jmx)
The JMeter RenderTreeTest.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"> <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"> <stringProp name="TestPlan.user_define_classpath"> </TestPlan> <hashTree> <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> <longProp name="ThreadGroup.start_time">1114154647000 <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">1114154647000 <stringProp name="ThreadGroup.on_sample_error">continue <stringProp name="ThreadGroup.ramp_time">1 </ThreadGroup> <hashTree> <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Recipe Request" enabled="true"> <elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" enabled="true"> <collectionProp name="Arguments.arguments"> <elementProp name="Sleep_Time" elementType="Argument"> <stringProp name="Argument.name">Sleep_Time <stringProp name="Argument.value">100 <stringProp name="Argument.metadata">= </elementProp> <elementProp name="Sleep_Mask" elementType="Argument"> <stringProp name="Argument.name">Sleep_Mask <stringProp name="Argument.value">0xFF <stringProp name="Argument.metadata">= </elementProp> <elementProp name="Label" elementType="Argument"> <stringProp name="Argument.name">Label <stringProp name="Argument.value">Recipe Fine XML Test <stringProp name="Argument.metadata">= </elementProp> <elementProp name="ResponseCode" elementType="Argument"> <stringProp name="Argument.name">ResponseCode <stringProp name="Argument.value"> <stringProp name="Argument.metadata">= </elementProp> <elementProp name="ResponseMessage" elementType="Argument"> <stringProp name="Argument.name">ResponseMessage <stringProp name="Argument.value"> <stringProp name="Argument.metadata">= </elementProp> <elementProp name="Status" elementType="Argument"> <stringProp name="Argument.name">Status <stringProp name="Argument.value">OK <stringProp name="Argument.metadata">= </elementProp> <elementProp name="SamplerData" elementType="Argument"> <stringProp name="Argument.name">SamplerData <stringProp name="Argument.value"> <stringProp name="Argument.metadata">= </elementProp> <elementProp name="ResultData" elementType="Argument"> <stringProp name="Argument.name">ResultData <stringProp name="Argument.value"><?xml version="1.0"?> <recipe name="Black Pepper Shrimp" description="Black Pepper shrimp dishes is very tasty."> <!--COMMENT TEST--><ingredients> <ingredient index="1" amount="3 pounds" description="fresh shrimp, unpeeled" /> <ingredient index="2" amount="8 tablespoons" description="butter" /> <ingredient index="3" amount="4 tablespoons" description="freshly ground pepper" /> </ingredients> <steps> <step index="1" description="Wash and drain shrimp, and place in a shallow baking pan." /> <step index="1" description="In a saucepan, melt the butter, add the garlic, and saute for 3 to 4 minutes." /> <step index="1" description="Pour the butter mixture over the shrimp and toss to coat." />Content Value of steps <step index="1" description="Bake until pink, approximately 5 minutes, turn, bake a few minutes longer, and pepper again." /> </steps> </recipe> <stringProp name="Argument.metadata">= </elementProp> </collectionProp> </elementProp> <stringProp name="classname">org.apache.jmeter.protocol.java.test.JavaTest </JavaSampler> <hashTree/> <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Recipe-Error Request" enabled="true"> <elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" enabled="true"> <collectionProp name="Arguments.arguments"> <elementProp name="Sleep_Time" elementType="Argument"> <stringProp name="Argument.name">Sleep_Time <stringProp name="Argument.value">100 <stringProp name="Argument.metadata">= </elementProp> <elementProp name="Sleep_Mask" elementType="Argument"> <stringProp name="Argument.name">Sleep_Mask <stringProp name="Argument.value">0xFF <stringProp name="Argument.metadata">= </elementProp> <elementProp name="Label" elementType="Argument"> <stringProp name="Argument.name">Label <stringProp name="Argument.value">Recipe Error XML Test <stringProp name="Argument.metadata">= </elementProp> <elementProp name="ResponseCode" elementType="Argument"> <stringProp name="Argument.name">ResponseCode <stringProp name="Argument.value"> <stringProp name="Argument.metadata">= </elementProp> <elementProp name="ResponseMessage" elementType="Argument"> <stringProp name="Argument.name">ResponseMessage <stringProp name="Argument.value"> <stringProp name="Argument.metadata">= </elementProp> <elementProp name="Status" elementType="Argument"> <stringProp name="Argument.name">Status <stringProp name="Argument.value">OK <stringProp name="Argument.metadata">= </elementProp> <elementProp name="SamplerData" elementType="Argument"> <stringProp name="Argument.name">SamplerData <stringProp name="Argument.value"> <stringProp name="Argument.metadata">= </elementProp> <elementProp name="ResultData" elementType="Argument"> <stringProp name="Argument.name">ResultData <stringProp name="Argument.value"><?xml version="1.0"?> <recipe name=Black Pepper Shrimp description=Black Pepper shrimp dishes is very tasty."> <ingredients> <ingredient index="1" amount="3 pounds" description="fresh shrimp, unpeeled" /> <ingredient index="2" amount="8 tablespoons" description="butter" /> <ingredient index="3" amount="4 tablespoons" description="freshly ground pepper" /> </ingredients> <steps> <step index="1" description="Wash and drain shrimp, and place in a shallow baking pan." /> <step index="1" description="In a saucepan, melt the butter, add the garlic, and saute for 3 to 4 minutes." /> <step index="1" description="Pour the butter mixture over the shrimp and toss to coat." /> <step index="1" description="Bake until pink, approximately 5 minutes, turn, bake a few minutes longer, and pepper again." /> </steps> </recipe> <stringProp name="Argument.metadata">= </elementProp> </collectionProp> </elementProp> <stringProp name="classname">org.apache.jmeter.protocol.java.test.JavaTest </JavaSampler> <hashTree/> <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="Recipe Results Tree" 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>true <dataType>true <encoding>true <assertions>true <subresults>true <responseData>false <samplerData>true <xml>true <fieldNames>false <responseHeaders>true <requestHeaders>true <responseDataOnError>false <saveAssertionResultsFailureMessage>false <assertionsResultsToSave>0 </value> </objProp> <stringProp name="filename"> </ResultCollector> <hashTree/> </hashTree> </hashTree> </hashTree> </jmeterTestPlan> Other JMeter examples (source code examples)Here is a short list of links related to this JMeter RenderTreeTest.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.