12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037 |
- <?xml version="1.0" encoding="UTF-8"?>
- <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.4.3">
- <hashTree>
- <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="顺德WMS@入库之验收提交(立体库)" 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>
- <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="环境变量-本地环境" enabled="false">
- <collectionProp name="Arguments.arguments">
- <elementProp name="thread_count" elementType="Argument">
- <stringProp name="Argument.name">thread_count</stringProp>
- <stringProp name="Argument.value">100</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="server" elementType="Argument">
- <stringProp name="Argument.name">server</stringProp>
- <stringProp name="Argument.value">127.0.0.1</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="port" elementType="Argument">
- <stringProp name="Argument.name">port</stringProp>
- <stringProp name="Argument.value">8085</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="wh_id" elementType="Argument">
- <stringProp name="Argument.name">wh_id</stringProp>
- <stringProp name="Argument.value">1000001</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="owner_id" elementType="Argument">
- <stringProp name="Argument.name">owner_id</stringProp>
- <stringProp name="Argument.value">1096478673436938240</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="system_key" elementType="Argument">
- <stringProp name="Argument.name">system_key</stringProp>
- <stringProp name="Argument.value">eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ5dmFuLXNlY3VyaXR5IiwiX191aWQiOiIzMTUwNzI4MTM1MDc1NDMwNDUiLCJhdWQiOiJ5dmFuLSoiLCJzdWIiOiJhZG1pbiIsImxvZ2luX2lkIjozMTYzNTczNDM4MTE5OTM2MDksImV4cCI6MTcyNTk5NzUwMCwiaWF0IjoxNzIzNDQ3NTA5LCJqdGkiOiI0MjczNTg1NTc3MjY4NDAzNjQifQ.g5JO8RAqDcipomhOs9pmpfuz-b_nznlssihFY0pCpSPBpkd3L6dr6_FAX8g-oD_EpBoK3Ng_Lh9eqI06Wg2LftxzPn0AagQHmKVtUlY_vDJOQweAmoZRGSFL57xV-UVGI2pgY47nWZVbWS0iFu8s5LgzbvfZABNKfiYYR8VlfN7xL63jfxyjX1uCKxLvGWtzpxDnKWtxJshpBazxyR1qgUci1s2Q_mD9Ljxc2hiwopaizhCuIVytBjAvwS6nYKGqGbyKEdnFt5SFu5EctYkwrEjuk8wtAlGgAiUoT1wb2_JwiS9d_zh24CFYchjiAWrKgmHRSeWekRlszJV_se-Mtw</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </Arguments>
- <hashTree/>
- <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="环境变量-SD测试" enabled="true">
- <collectionProp name="Arguments.arguments">
- <elementProp name="server" elementType="Argument">
- <stringProp name="Argument.name">server</stringProp>
- <stringProp name="Argument.value">wms-system.test.sdl.com</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="port" elementType="Argument">
- <stringProp name="Argument.name">port</stringProp>
- <stringProp name="Argument.value">8000</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="wh_id" elementType="Argument">
- <stringProp name="Argument.name">wh_id</stringProp>
- <stringProp name="Argument.value">1000001</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="system_key" elementType="Argument">
- <stringProp name="Argument.name">system_key</stringProp>
- <stringProp name="Argument.value">eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ5dmFuLXNlY3VyaXR5IiwiX191aWQiOiIzMTUwNzI4MTM1MDc1NDMwNDUiLCJhdWQiOiJ5dmFuLSoiLCJzdWIiOiJhZG1pbiIsImxvZ2luX2lkIjozMTYzNTczNDM4MTE5OTM2MDksImV4cCI6MTcyNjg2MTUwMCwiaWF0IjoxNzI0MzEyMDgxLCJqdGkiOiI0MzQ2MTExMDkwMTkyNjA0NzgifQ.Vor5psK98IdvpxcN1LNV2L0bXNnLHx6b5R4cKS2VwbywoWyfaUtHCXh1xv3qeCphy5GuSeXrvepTsQdXkt81l7Gx_4Lg-qUXs32mYhaclpFlvjhprcAx6cKm8_PgtSNWSEiWZ5gKP5dH3GWlaSxNQPviIY1SXIGdChUGkhwlFN-EXBBQTtJbMYHxhXjJwd3HCKfyH6qP1RYK4MN_lFd_mQRWnS3lCFrU4pd1aWaeqCowy8PNP4alAnzYQRbVL9yL8gItp2i6hIJggtDG83T5tBBE6euamN3jvXOM8O0tflxDL5oRVCX2I59Qo_F-LkrWsmm5pqBlegaWdlG8Ue1aEg</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="poLineNum" elementType="Argument">
- <stringProp name="Argument.name">poLineNum</stringProp>
- <stringProp name="Argument.value">200</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="sequence_start_value" elementType="Argument">
- <stringProp name="Argument.name">sequence_start_value</stringProp>
- <stringProp name="Argument.value">20000</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </Arguments>
- <hashTree/>
- <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="环境变量-测试环境" enabled="false">
- <collectionProp name="Arguments.arguments">
- <elementProp name="thread_count" elementType="Argument">
- <stringProp name="Argument.name">thread_count</stringProp>
- <stringProp name="Argument.value">100</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="server" elementType="Argument">
- <stringProp name="Argument.name">server</stringProp>
- <stringProp name="Argument.value">122.9.140.63</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="port" elementType="Argument">
- <stringProp name="Argument.name">port</stringProp>
- <stringProp name="Argument.value">8006</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="wh_id" elementType="Argument">
- <stringProp name="Argument.name">wh_id</stringProp>
- <stringProp name="Argument.value">1000001</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- <elementProp name="system_key" elementType="Argument">
- <stringProp name="Argument.name">system_key</stringProp>
- <stringProp name="Argument.value">eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJ5dmFuLXNlY3VyaXR5IiwiX191aWQiOiIzMTUwNzI4MTM1MDc1NDMwNDUiLCJhdWQiOiJ5dmFuLSoiLCJzdWIiOiJhZG1pbiIsImxvZ2luX2lkIjozMTYzNTczNDM4MTE5OTM2MDksImV4cCI6MTcyNTk5NzUwMCwiaWF0IjoxNzIzNDQ3NTA5LCJqdGkiOiI0MjczNTg1NTc3MjY4NDAzNjQifQ.g5JO8RAqDcipomhOs9pmpfuz-b_nznlssihFY0pCpSPBpkd3L6dr6_FAX8g-oD_EpBoK3Ng_Lh9eqI06Wg2LftxzPn0AagQHmKVtUlY_vDJOQweAmoZRGSFL57xV-UVGI2pgY47nWZVbWS0iFu8s5LgzbvfZABNKfiYYR8VlfN7xL63jfxyjX1uCKxLvGWtzpxDnKWtxJshpBazxyR1qgUci1s2Q_mD9Ljxc2hiwopaizhCuIVytBjAvwS6nYKGqGbyKEdnFt5SFu5EctYkwrEjuk8wtAlGgAiUoT1wb2_JwiS9d_zh24CFYchjiAWrKgmHRSeWekRlszJV_se-Mtw</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </Arguments>
- <hashTree/>
- <kg.apc.jmeter.threads.SteppingThreadGroup guiclass="kg.apc.jmeter.threads.SteppingThreadGroupGui" testclass="kg.apc.jmeter.threads.SteppingThreadGroup" testname="入库之验收提交(立体库)" enabled="true">
- <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
- <stringProp name="ThreadGroup.num_threads">100</stringProp>
- <stringProp name="Threads initial delay">0</stringProp>
- <stringProp name="Start users count">10</stringProp>
- <stringProp name="Start users count burst">0</stringProp>
- <stringProp name="Start users period">30</stringProp>
- <stringProp name="Stop users count">5</stringProp>
- <stringProp name="Stop users period">1</stringProp>
- <stringProp name="flighttime">60</stringProp>
- <stringProp name="rampUp">5</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>
- </kg.apc.jmeter.threads.SteppingThreadGroup>
- <hashTree>
- <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <ResultCollector guiclass="RespTimeGraphVisualizer" testclass="ResultCollector" testname="Response Time Graph" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- </ResultCollector>
- <hashTree/>
- <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ThreadsStateOverTimeGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Active Threads Over Time" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- <longProp name="interval_grouping">500</longProp>
- <boolProp name="graph_aggregated">false</boolProp>
- <stringProp name="include_sample_labels"></stringProp>
- <stringProp name="exclude_sample_labels"></stringProp>
- <stringProp name="start_offset"></stringProp>
- <stringProp name="end_offset"></stringProp>
- <boolProp name="include_checkbox_state">false</boolProp>
- <boolProp name="exclude_checkbox_state">false</boolProp>
- </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
- <hashTree/>
- <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.ResponseTimesOverTimeGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Response Times Over Time" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- <longProp name="interval_grouping">500</longProp>
- <boolProp name="graph_aggregated">false</boolProp>
- <stringProp name="include_sample_labels"></stringProp>
- <stringProp name="exclude_sample_labels"></stringProp>
- <stringProp name="start_offset"></stringProp>
- <stringProp name="end_offset"></stringProp>
- <boolProp name="include_checkbox_state">false</boolProp>
- <boolProp name="exclude_checkbox_state">false</boolProp>
- </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
- <hashTree/>
- <kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass="kg.apc.jmeter.vizualizers.TransactionsPerSecondGui" testclass="kg.apc.jmeter.vizualizers.CorrectedResultCollector" testname="jp@gc - Transactions per Second" enabled="true">
- <boolProp name="ResultCollector.error_logging">false</boolProp>
- <objProp>
- <name>saveConfig</name>
- <value class="SampleSaveConfiguration">
- <time>true</time>
- <latency>true</latency>
- <timestamp>true</timestamp>
- <success>true</success>
- <label>true</label>
- <code>true</code>
- <message>true</message>
- <threadName>true</threadName>
- <dataType>true</dataType>
- <encoding>false</encoding>
- <assertions>true</assertions>
- <subresults>true</subresults>
- <responseData>false</responseData>
- <samplerData>false</samplerData>
- <xml>false</xml>
- <fieldNames>true</fieldNames>
- <responseHeaders>false</responseHeaders>
- <requestHeaders>false</requestHeaders>
- <responseDataOnError>false</responseDataOnError>
- <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
- <assertionsResultsToSave>0</assertionsResultsToSave>
- <bytes>true</bytes>
- <sentBytes>true</sentBytes>
- <url>true</url>
- <threadCounts>true</threadCounts>
- <idleTime>true</idleTime>
- <connectTime>true</connectTime>
- </value>
- </objProp>
- <stringProp name="filename"></stringProp>
- <longProp name="interval_grouping">1000</longProp>
- <boolProp name="graph_aggregated">false</boolProp>
- <stringProp name="include_sample_labels"></stringProp>
- <stringProp name="exclude_sample_labels"></stringProp>
- <stringProp name="start_offset"></stringProp>
- <stringProp name="end_offset"></stringProp>
- <boolProp name="include_checkbox_state">false</boolProp>
- <boolProp name="exclude_checkbox_state">false</boolProp>
- </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
- <hashTree/>
- <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
- <collectionProp name="HeaderManager.headers">
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">whId</stringProp>
- <stringProp name="Header.value">${wh_id}</stringProp>
- </elementProp>
- <elementProp name="" elementType="Header">
- <stringProp name="Header.name">systemkey</stringProp>
- <stringProp name="Header.value">${system_key}</stringProp>
- </elementProp>
- </collectionProp>
- </HeaderManager>
- <hashTree/>
- <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
- <stringProp name="delimiter">,</stringProp>
- <stringProp name="fileEncoding">UTF-8</stringProp>
- <stringProp name="filename">./02_顺德WMS@入库之验收提交CSV.csv</stringProp>
- <boolProp name="ignoreFirstLine">false</boolProp>
- <boolProp name="quotedData">true</boolProp>
- <boolProp name="recycle">false</boolProp>
- <stringProp name="shareMode">shareMode.group</stringProp>
- <boolProp name="stopThread">true</boolProp>
- <stringProp name="variableNames">inspect_id</stringProp>
- </CSVDataSet>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Acceptance@queryInspectItem" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{
- "args": [
- {
- "path": "/com/galaxis/wms/inbound/acceptance/Acceptance",
- "pagination": true,
- "sqlId": "tab1_grid2QueryData",
- "limit": 1000,
- "page": 1,
- "start": 0,
- "inspect_id": "${inspect_id}",
- "condition": []
- }
- ]
- }</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${server}</stringProp>
- <stringProp name="HTTPSampler.port">${port}</stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
- <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/Dev@executeSQL?path=/com/galaxis/wms/inbound/acceptance/Acceptance@tab1_grid2QueryData</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
- <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
- <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
- <stringProp name="JSON_PATH">$.success</stringProp>
- <stringProp name="EXPECTED_VALUE">true</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Inspect Item Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">inspect_item_list</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$.data.[*]</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers">-1</stringProp>
- </JSONPostProcessor>
- <hashTree/>
- </hashTree>
- <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="Acceptance ForEach" enabled="true">
- <stringProp name="ForeachController.inputVal">inspect_item_list</stringProp>
- <stringProp name="ForeachController.returnVal">inspect_item</stringProp>
- <boolProp name="ForeachController.useSeparator">true</boolProp>
- <stringProp name="ForeachController.startIndex">0</stringProp>
- <stringProp name="ForeachController.endIndex">${inspect_item_list_matchNr}</stringProp>
- </ForeachController>
- <hashTree>
- <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="Container Data Config" enabled="true">
- <stringProp name="delimiter">,</stringProp>
- <stringProp name="fileEncoding">UTF-8</stringProp>
- <stringProp name="filename">./1005_container_data_config.csv</stringProp>
- <boolProp name="ignoreFirstLine">false</boolProp>
- <boolProp name="quotedData">true</boolProp>
- <boolProp name="recycle">false</boolProp>
- <stringProp name="shareMode">shareMode.group</stringProp>
- <boolProp name="stopThread">true</boolProp>
- <stringProp name="variableNames">containerCode</stringProp>
- </CSVDataSet>
- <hashTree/>
- <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="false">
- <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
- import java.math.RoundingMode;
- com.JMeterUtil util = com.Yvan.init(vars, log, ctx);
- Map inspectItem = util.parseJson(vars.get("inspect_item"), Map.class);
- // 质检数量
- BigDecimal qty = new BigDecimal(inspectItem.get("qty"));
- // 已质检数量
- BigDecimal inspectQty = new BigDecimal(inspectItem.get("inspect_qty"));
- // 已拒收数量
- BigDecimal receiptQty = new BigDecimal(inspectItem.get("reject_qty"));
- // 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
- BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);
- // 包装数量
- BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get("pack_meas")));
- // 质检整件数
- BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
- // 质检零散数
- BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));
- vars.put("qualityWholeQty", qualityWholeQty.toString());
- vars.put("qualityLessQty", qualityLessQty.toString());
- //inspectItem.put("quality_less_qty", qualityLessQty.toString());
- //inspectItem.put("quality_whole_qty", qualityWholeQty.toString());
- //inspectItem.put("quality_qty", qualityQty.toString());
- //inspectItem.put("put_intent_less", "0001");
- //inspectItem.put("put_intent_whole", "0001");
- //inspectItem.put("quality_assert", "0001");
- //inspectItem.put("quality_staff_id1", "315072813507543045");
- Map saveInspectParam = new HashMap();
- //saveInspectParam.put("inspect_id", String.valueOf(inspectItem.get("inspect_id")));
- //saveInspectParam.put("inspect_line_nos", String.valueOf(inspectItem.get("inspect_line_nos")));
- saveInspectParam.put("item_id", String.valueOf(inspectItem.get("item_id")));
- saveInspectParam.put("pack_id", String.valueOf(inspectItem.get("pack_id")));
- saveInspectParam.put("lot_id", String.valueOf(inspectItem.get("lot_id")));
- saveInspectParam.put("quality_reject_qty", "0");
- saveInspectParam.put("order_biz_type", "C");
- //saveInspectParam.put("order_type", String.valueOf(inspectItem.get("order_type"));
- //saveInspectParam.put("order_biz_type", String.valueOf(inspectItem.get("order_biz_type"));
- saveInspectParam.put("quality_less_qty", qualityLessQty.toString());
- saveInspectParam.put("quality_whole_qty", qualityWholeQty.toString());
- saveInspectParam.put("quality_qty", qualityQty.toString());
- //saveInspectParam.put("put_intent_less", "0001");
- //saveInspectParam.put("put_intent_whole", "0001");
- //saveInspectParam.put("quality_assert", "0001");
- //saveInspectParam.put("quality_staff_id1", "315072813507543045");
- //saveInspectParam.put("quality_staff_id1", vars.get("staff_id"));
- vars.put("queryPutIntentParam", util.toJson(saveInspectParam));</stringProp>
- <stringProp name="BeanShellSampler.filename"></stringProp>
- <stringProp name="BeanShellSampler.parameters"></stringProp>
- <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
- </BeanShellSampler>
- <hashTree/>
- <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="false">
- <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
- import java.math.RoundingMode;
- com.JMeterUtil util = com.Yvan.init(vars, log, ctx);
- Map inspectItem = util.parseJson(vars.get("inspect_item"), Map.class);
- // 质检数量
- BigDecimal qty = new BigDecimal(inspectItem.get("qty"));
- // 已质检数量
- BigDecimal inspectQty = new BigDecimal(inspectItem.get("inspect_qty"));
- // 已拒收数量
- BigDecimal receiptQty = new BigDecimal(inspectItem.get("reject_qty"));
- // 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
- BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);
- // 包装数量
- BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get("pack_meas")));
- // 质检整件数
- BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
- // 质检零散数
- BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));
- //inspectItem.put("quality_less_qty", qualityLessQty.toString());
- //inspectItem.put("quality_whole_qty", qualityWholeQty.toString());
- //inspectItem.put("quality_qty", qualityQty.toString());
- //inspectItem.put("put_intent_less", "0001");
- //inspectItem.put("put_intent_whole", "0001");
- //inspectItem.put("quality_assert", "0001");
- //inspectItem.put("quality_staff_id1", "315072813507543045");
- Map saveInspectParam = new HashMap();
- //saveInspectParam.put("inspect_id", String.valueOf(inspectItem.get("inspect_id")));
- //saveInspectParam.put("inspect_line_nos", String.valueOf(inspectItem.get("inspect_line_nos")));
- saveInspectParam.put("item_id", String.valueOf(inspectItem.get("item_id")));
- saveInspectParam.put("pack_id", String.valueOf(inspectItem.get("pack_id")));
- saveInspectParam.put("lot_id", String.valueOf(inspectItem.get("lot_id")));
- saveInspectParam.put("quality_reject_qty", "0");
- saveInspectParam.put("order_biz_type", "C");
- //saveInspectParam.put("order_type", String.valueOf(inspectItem.get("order_type"));
- //saveInspectParam.put("order_biz_type", String.valueOf(inspectItem.get("order_biz_type"));
- saveInspectParam.put("quality_less_qty", "1");
- //saveInspectParam.put("quality_less_qty", qualityLessQty.toString());
- saveInspectParam.put("quality_whole_qty", "0");
- //saveInspectParam.put("quality_qty", qualityQty.toString());
- //saveInspectParam.put("put_intent_less", "0001");
- //saveInspectParam.put("put_intent_whole", "0001");
- //saveInspectParam.put("quality_assert", "0001");
- //saveInspectParam.put("quality_staff_id1", "315072813507543045");
- //saveInspectParam.put("quality_staff_id1", vars.get("staff_id"));
- vars.put("queryPutIntentParam", util.toJson(saveInspectParam));</stringProp>
- <stringProp name="BeanShellSampler.filename"></stringProp>
- <stringProp name="BeanShellSampler.parameters"></stringProp>
- <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
- </BeanShellSampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Less Acceptance@queryPutIntent" enabled="false">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{
- "args": [
- {
- "row_data": ${queryPutIntentParam}
- }
- ]
- }</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${server}</stringProp>
- <stringProp name="HTTPSampler.port">${port}</stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
- <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/inbound/acceptance/Acceptance@queryPutIntent</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
- <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
- <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
- <stringProp name="JSON_PATH">$.success</stringProp>
- <stringProp name="EXPECTED_VALUE">true</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Less Put Intent Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">lessPutIntent</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$.data</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
- </JSONPostProcessor>
- <hashTree/>
- </hashTree>
- <IfController guiclass="IfControllerPanel" testclass="IfController" testname="Has Less Quality Qty Controller" enabled="false">
- <stringProp name="IfController.condition">${__jexl3(${qualityLessQty} > 0)}</stringProp>
- <boolProp name="IfController.evaluateAll">false</boolProp>
- <boolProp name="IfController.useExpression">true</boolProp>
- </IfController>
- <hashTree>
- <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="true">
- <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
- import java.math.RoundingMode;
- com.JMeterUtil util = com.Yvan.init(vars, log, ctx);
- Map inspectItem = util.parseJson(vars.get("inspect_item"), Map.class);
- // 质检数量
- BigDecimal qty = new BigDecimal(inspectItem.get("qty"));
- // 已质检数量
- BigDecimal inspectQty = new BigDecimal(inspectItem.get("inspect_qty"));
- // 已拒收数量
- BigDecimal receiptQty = new BigDecimal(inspectItem.get("reject_qty"));
- // 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
- BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);
- // 包装数量
- BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get("pack_meas")));
- // 质检整件数
- BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
- // 质检零散数
- BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));
- //inspectItem.put("quality_less_qty", qualityLessQty.toString());
- //inspectItem.put("quality_whole_qty", qualityWholeQty.toString());
- //inspectItem.put("quality_qty", qualityQty.toString());
- //inspectItem.put("put_intent_less", "0001");
- //inspectItem.put("put_intent_whole", "0001");
- //inspectItem.put("quality_assert", "0001");
- //inspectItem.put("quality_staff_id1", "315072813507543045");
- Map saveInspectParam = new HashMap();
- //saveInspectParam.put("inspect_id", String.valueOf(inspectItem.get("inspect_id")));
- //saveInspectParam.put("inspect_line_nos", String.valueOf(inspectItem.get("inspect_line_nos")));
- saveInspectParam.put("item_id", String.valueOf(inspectItem.get("item_id")));
- saveInspectParam.put("pack_id", String.valueOf(inspectItem.get("pack_id")));
- saveInspectParam.put("lot_id", String.valueOf(inspectItem.get("lot_id")));
- saveInspectParam.put("quality_reject_qty", "0");
- saveInspectParam.put("order_biz_type", "C");
- //saveInspectParam.put("order_type", String.valueOf(inspectItem.get("order_type"));
- //saveInspectParam.put("order_biz_type", String.valueOf(inspectItem.get("order_biz_type"));
- saveInspectParam.put("quality_less_qty", qualityLessQty.toString());
- saveInspectParam.put("quality_whole_qty", "0");
- //saveInspectParam.put("quality_qty", qualityQty.toString());
- //saveInspectParam.put("put_intent_less", "0001");
- //saveInspectParam.put("put_intent_whole", "0001");
- //saveInspectParam.put("quality_assert", "0001");
- //saveInspectParam.put("quality_staff_id1", "315072813507543045");
- //saveInspectParam.put("quality_staff_id1", vars.get("staff_id"));
- vars.put("queryPutIntentParam", util.toJson(saveInspectParam));</stringProp>
- <stringProp name="BeanShellSampler.filename"></stringProp>
- <stringProp name="BeanShellSampler.parameters"></stringProp>
- <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
- </BeanShellSampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Less Acceptance@queryPutIntent" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{
- "args": [
- {
- "row_data": ${queryPutIntentParam}
- }
- ]
- }</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${server}</stringProp>
- <stringProp name="HTTPSampler.port">${port}</stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
- <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/inbound/acceptance/Acceptance@queryPutIntent</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
- <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
- <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
- <stringProp name="JSON_PATH">$.success</stringProp>
- <stringProp name="EXPECTED_VALUE">true</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Less Put Intent Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">lessPutIntent</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$.data</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
- </JSONPostProcessor>
- <hashTree/>
- </hashTree>
- </hashTree>
- <IfController guiclass="IfControllerPanel" testclass="IfController" testname="Has Whole Quality Qty Controller" enabled="false">
- <stringProp name="IfController.condition">${__jexl3(${qualityWholeQty} > 0)}</stringProp>
- <boolProp name="IfController.evaluateAll">false</boolProp>
- <boolProp name="IfController.useExpression">true</boolProp>
- </IfController>
- <hashTree>
- <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="QueryPutIntent Param Sampler" enabled="true">
- <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
- import java.math.RoundingMode;
- com.JMeterUtil util = com.Yvan.init(vars, log, ctx);
- Map inspectItem = util.parseJson(vars.get("inspect_item"), Map.class);
- // 质检数量
- BigDecimal qty = new BigDecimal(inspectItem.get("qty"));
- // 已质检数量
- BigDecimal inspectQty = new BigDecimal(inspectItem.get("inspect_qty"));
- // 已拒收数量
- BigDecimal receiptQty = new BigDecimal(inspectItem.get("reject_qty"));
- // 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
- BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);
- // 包装数量
- BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get("pack_meas")));
- // 质检整件数
- BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
- // 质检零散数
- BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));
- //inspectItem.put("quality_less_qty", qualityLessQty.toString());
- //inspectItem.put("quality_whole_qty", qualityWholeQty.toString());
- //inspectItem.put("quality_qty", qualityQty.toString());
- //inspectItem.put("put_intent_less", "0001");
- //inspectItem.put("put_intent_whole", "0001");
- //inspectItem.put("quality_assert", "0001");
- //inspectItem.put("quality_staff_id1", "315072813507543045");
- Map saveInspectParam = new HashMap();
- //saveInspectParam.put("inspect_id", String.valueOf(inspectItem.get("inspect_id")));
- //saveInspectParam.put("inspect_line_nos", String.valueOf(inspectItem.get("inspect_line_nos")));
- saveInspectParam.put("item_id", String.valueOf(inspectItem.get("item_id")));
- saveInspectParam.put("pack_id", String.valueOf(inspectItem.get("pack_id")));
- saveInspectParam.put("lot_id", String.valueOf(inspectItem.get("lot_id")));
- saveInspectParam.put("quality_reject_qty", "0");
- saveInspectParam.put("order_biz_type", "C");
- //saveInspectParam.put("order_type", String.valueOf(inspectItem.get("order_type"));
- //saveInspectParam.put("order_biz_type", String.valueOf(inspectItem.get("order_biz_type"));
- saveInspectParam.put("quality_less_qty", "");
- saveInspectParam.put("quality_whole_qty", qualityWholeQty.toString());
- //saveInspectParam.put("quality_qty", qualityQty.toString());
- //saveInspectParam.put("put_intent_less", "0001");
- //saveInspectParam.put("put_intent_whole", "0001");
- //saveInspectParam.put("quality_assert", "0001");
- //saveInspectParam.put("quality_staff_id1", "315072813507543045");
- //saveInspectParam.put("quality_staff_id1", vars.get("staff_id"));
- vars.put("queryPutIntentParam", util.toJson(saveInspectParam));</stringProp>
- <stringProp name="BeanShellSampler.filename"></stringProp>
- <stringProp name="BeanShellSampler.parameters"></stringProp>
- <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
- </BeanShellSampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Whole Acceptance@queryPutIntent" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{
- "args": [
- {
- "row_data": ${queryPutIntentParam}
- }
- ]
- }</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${server}</stringProp>
- <stringProp name="HTTPSampler.port">${port}</stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
- <stringProp name="HTTPSampler.path">/api/com/galaxis/wms/inbound/acceptance/Acceptance@queryPutIntent</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
- <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
- <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
- <stringProp name="JSON_PATH">$.success</stringProp>
- <stringProp name="EXPECTED_VALUE">true</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- <JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="Whole Put Intent Extractor" enabled="true">
- <stringProp name="JSONPostProcessor.referenceNames">wholePutIntent</stringProp>
- <stringProp name="JSONPostProcessor.jsonPathExprs">$.data</stringProp>
- <stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
- </JSONPostProcessor>
- <hashTree/>
- </hashTree>
- </hashTree>
- <BeanShellSampler guiclass="BeanShellSamplerGui" testclass="BeanShellSampler" testname="Acceptance Param Sampler" enabled="true">
- <stringProp name="BeanShellSampler.query">import java.math.BigDecimal;
- import java.math.RoundingMode;
- com.JMeterUtil util = com.Yvan.init(vars, log, ctx);
- Map inspectItem = util.parseJson(vars.get("inspect_item"), Map.class);
- log.info("inspect_id = " + String.valueOf(inspectItem.get("inspect_id")));
- // 质检数量
- BigDecimal qty = new BigDecimal(inspectItem.get("qty"));
- // 已质检数量
- BigDecimal inspectQty = new BigDecimal(inspectItem.get("inspect_qty"));
- // 已拒收数量
- BigDecimal receiptQty = new BigDecimal(inspectItem.get("reject_qty"));
- // 需质检数量 = 质检数量 - 已质检数量 - 已拒收数量
- BigDecimal qualityQty = qty.subtract(inspectQty).subtract(receiptQty);
- // 包装数量
- BigDecimal packMeas = new BigDecimal(String.valueOf(inspectItem.get("pack_meas")));
- // 质检整件数
- BigDecimal qualityWholeQty = qualityQty.divide(packMeas, 0, RoundingMode.FLOOR);
- // 质检零散数
- BigDecimal qualityLessQty = qualityQty.subtract(qualityWholeQty.multiply(packMeas));
- //inspectItem.put("quality_less_qty", qualityLessQty.toString());
- //inspectItem.put("quality_whole_qty", qualityWholeQty.toString());
- //inspectItem.put("quality_qty", qualityQty.toString());
- //inspectItem.put("put_intent_less", "0001");
- //inspectItem.put("put_intent_whole", "0001");
- //inspectItem.put("quality_assert", "0001");
- //inspectItem.put("quality_staff_id1", "315072813507543045");
- Map saveInspectParam = new HashMap();
- saveInspectParam.put("inspect_id", String.valueOf(inspectItem.get("inspect_id")));
- saveInspectParam.put("inspect_line_nos", String.valueOf(inspectItem.get("inspect_line_nos")));
- saveInspectParam.put("item_id", String.valueOf(inspectItem.get("item_id")));
- saveInspectParam.put("pack_id", String.valueOf(inspectItem.get("pack_id")));
- saveInspectParam.put("lot_id", String.valueOf(inspectItem.get("lot_id")));
- saveInspectParam.put("quality_reject_qty", "0");
- // 入立体库 需要容器号
- saveInspectParam.put("container_code", vars.get("containerCode"));
- //saveInspectParam.put("is_chinese_medicine", String.valueOf(inspectItem.get("is_chinese_medicine")));
- //saveInspectParam.put("order_type", String.valueOf(inspectItem.get("order_type"));
- //saveInspectParam.put("order_biz_type", String.valueOf(inspectItem.get("order_biz_type"));
- saveInspectParam.put("quality_less_qty", "0");
- //saveInspectParam.put("quality_less_qty", qualityLessQty.toString());
- saveInspectParam.put("quality_whole_qty", "1");
- //saveInspectParam.put("quality_whole_qty", qualityWholeQty.toString());
- saveInspectParam.put("quality_qty", packMeas.toString());
- //saveInspectParam.put("quality_qty", qualityQty.toString());
- //saveInspectParam.put("put_intent_less", vars.get("lessPutIntent"));
- saveInspectParam.put("put_intent_less", "0001");
- saveInspectParam.put("put_intent_whole", "0003");
- //saveInspectParam.put("put_intent_whole", vars.get("wholePutIntent"));
- saveInspectParam.put("quality_assert", "0001");
- saveInspectParam.put("quality_staff_id1", "315072813507543045");
- //saveInspectParam.put("quality_staff_id1", vars.get("staff_id"));
- vars.put("saveInspectParam", util.toJson(saveInspectParam));
- </stringProp>
- <stringProp name="BeanShellSampler.filename"></stringProp>
- <stringProp name="BeanShellSampler.parameters"></stringProp>
- <boolProp name="BeanShellSampler.resetInterpreter">false</boolProp>
- </BeanShellSampler>
- <hashTree/>
- <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="Acceptance@inspectSave" enabled="true">
- <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
- <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
- <collectionProp name="Arguments.arguments">
- <elementProp name="" elementType="HTTPArgument">
- <boolProp name="HTTPArgument.always_encode">false</boolProp>
- <stringProp name="Argument.value">{
- "args": [
- {
- "form_data": ${saveInspectParam}
- }
- ]
- }</stringProp>
- <stringProp name="Argument.metadata">=</stringProp>
- </elementProp>
- </collectionProp>
- </elementProp>
- <stringProp name="HTTPSampler.domain">${server}</stringProp>
- <stringProp name="HTTPSampler.port">${port}</stringProp>
- <stringProp name="HTTPSampler.protocol"></stringProp>
- <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
- <stringProp name="HTTPSampler.path">api/com/galaxis/wms/inbound/acceptance/Acceptance@inspectSave</stringProp>
- <stringProp name="HTTPSampler.method">POST</stringProp>
- <boolProp name="HTTPSampler.follow_redirects">false</boolProp>
- <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
- <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
- <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
- <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
- <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp>
- <stringProp name="HTTPSampler.connect_timeout">1500</stringProp>
- <stringProp name="HTTPSampler.response_timeout">15000</stringProp>
- </HTTPSamplerProxy>
- <hashTree>
- <JSONPathAssertion guiclass="JSONPathAssertionGui" testclass="JSONPathAssertion" testname="success" enabled="true">
- <stringProp name="JSON_PATH">$.success</stringProp>
- <stringProp name="EXPECTED_VALUE">true</stringProp>
- <boolProp name="JSONVALIDATION">true</boolProp>
- <boolProp name="EXPECT_NULL">false</boolProp>
- <boolProp name="INVERT">false</boolProp>
- <boolProp name="ISREGEX">false</boolProp>
- </JSONPathAssertion>
- <hashTree/>
- </hashTree>
- </hashTree>
- </hashTree>
- </hashTree>
- </hashTree>
- </jmeterTestPlan>
|