JMeter——jmx脚本文件解析_jmx文件线程组解析-CSDN博客
<?xml version="1.0" encoding="UTF-8"?> <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.5"> <hashTree> <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> <stringProp name="TestPlan.comments"></stringProp> <boolProp name="TestPlan.functional_mode">false</boolProp> <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp> <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> <collectionProp name="Arguments.arguments"/> </elementProp> <stringProp name="TestPlan.user_define_classpath"></stringProp> </TestPlan> <hashTree> <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true"> <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> <boolProp name="LoopController.continue_forever">false</boolProp> <intProp name="LoopController.loops">-1</intProp> </elementProp> <stringProp name="ThreadGroup.num_threads">${__P(thread_count,)}</stringProp> <stringProp name="ThreadGroup.ramp_time">${__P(ramp_up_period,)}</stringProp> <boolProp name="ThreadGroup.scheduler">true</boolProp> <stringProp name="ThreadGroup.duration">${__P(duration,)}</stringProp> <stringProp name="ThreadGroup.delay"></stringProp> <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> </ThreadGroup> <hashTree> <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Transaction Controller" enabled="true"> <boolProp name="TransactionController.includeTimers">false</boolProp> <boolProp name="TransactionController.parent">false</boolProp> </TransactionController> <hashTree> <net.xmeter.samplers.ConnectSampler guiclass="net.xmeter.gui.ConnectSamplerUI" testclass="net.xmeter.samplers.ConnectSampler" testname="MQTT Connect" enabled="true"> <stringProp name="mqtt.server">192.168.20.144</stringProp> <stringProp name="mqtt.port">991</stringProp> <stringProp name="mqtt.version">3.1</stringProp> <stringProp name="mqtt.conn_timeout">300</stringProp> <stringProp name="mqtt.protocol">SSL</stringProp> <stringProp name="mqtt.ws_path"></stringProp> <boolProp name="mqtt.dual_ssl_authentication">true</boolProp> <stringProp name="mqtt.clientcert_file_path">pkcs12.CN.ECC-个人证书.pfx</stringProp> <stringProp name="mqtt.clientcert_password"></stringProp> <stringProp name="mqtt.user_name"></stringProp> <stringProp name="mqtt.password"></stringProp> <stringProp name="mqtt.client_id_prefix">conn_</stringProp> <boolProp name="mqtt.client_id_suffix">true</boolProp> <stringProp name="mqtt.conn_keep_alive">300</stringProp> <stringProp name="mqtt.conn_attampt_max">0</stringProp> <stringProp name="mqtt.reconn_attampt_max">0</stringProp> <stringProp name="mqtt.conn_clean_session">true</stringProp> </net.xmeter.samplers.ConnectSampler> <hashTree/> <net.xmeter.samplers.DisConnectSampler guiclass="net.xmeter.gui.DisConnectSamplerUI" testclass="net.xmeter.samplers.DisConnectSampler" testname="MQTT DisConnect" enabled="true"/> <hashTree/> </hashTree> </hashTree> </hashTree> </hashTree> </jmeterTestPlan>
标签:jmx,解析,false,guiclass,testclass,testname,JMeter,true From: https://www.cnblogs.com/daizichuan/p/18409753