|
JMeter example source code file (IfTest.jmx)
The JMeter IfTest.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"> <boolProp name="TestPlan.functional_mode">false <stringProp name="TestPlan.comments"> <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 <stringProp name="TestPlan.user_define_classpath"> </TestPlan> <hashTree> <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="IF" enabled="true"> <stringProp name="ThreadGroup.ramp_time">1 <boolProp name="ThreadGroup.scheduler">false <stringProp name="ThreadGroup.on_sample_error">continue <longProp name="ThreadGroup.start_time">1096150006000 <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">3 </elementProp> <stringProp name="ThreadGroup.num_threads">1 <stringProp name="ThreadGroup.duration"> <stringProp name="ThreadGroup.delay"> <longProp name="ThreadGroup.end_time">1096150006000 </ThreadGroup> <hashTree> <CounterConfig guiclass="CounterConfigGui" testclass="CounterConfig" testname="Counter" enabled="true"> <boolProp name="CounterConfig.per_user">false <stringProp name="CounterConfig.name">COUNT <stringProp name="CounterConfig.incr">1 <stringProp name="CounterConfig.end">100 <stringProp name="CounterConfig.start">1 <stringProp name="CounterConfig.format"> </CounterConfig> <hashTree/> <IfController guiclass="IfControllerPanel" testclass="IfController" testname="If Controller" enabled="true"> <stringProp name="IfController.condition">2!=${COUNT} <stringProp name="IfController.evaluateAll">false </IfController> <hashTree> <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="If" 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">If ${COUNT} <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"> <stringProp name="Argument.metadata">= </elementProp> </collectionProp> </elementProp> <stringProp name="classname">org.apache.jmeter.protocol.java.test.JavaTest </JavaSampler> <hashTree/> </hashTree> <JavaSampler guiclass="JavaTestSamplerGui" testclass="JavaSampler" testname="Always" 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">Always ${COUNT} <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"> <stringProp name="Argument.metadata">= </elementProp> </collectionProp> </elementProp> <stringProp name="classname">org.apache.jmeter.protocol.java.test.JavaTest </JavaSampler> <hashTree/> <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" testname="View Results in Table" 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>false <assertions>true <subresults>true <responseData>false <samplerData>false <xml>true <fieldNames>false <responseHeaders>false <requestHeaders>false <responseDataOnError>false <saveAssertionResultsFailureMessage>false <assertionsResultsToSave>0 <bytes>true </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 IfTest.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.