Commit 8dc058ee by dongfeng li

新增接口

parent 13869ad6
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
<stringProp name="Header.value">application/x-www-form-urlencoded; charset=UTF-8</stringProp> <stringProp name="Header.value">application/x-www-form-urlencoded; charset=UTF-8</stringProp>
</elementProp> </elementProp>
<elementProp name="" elementType="Header"> <elementProp name="" elementType="Header">
<stringProp name="Header.name">Cookie</stringProp>
<stringProp name="Header.value">PHPSESSID=3f6lb65b8d7s5dli62qkvk7fd4; href=https%3A%2F%2Ftest2.jwsmed.com%2F; Hm_lvt_83391ad49960d57ae4a33547b2f9be91=1622430660,1622623956,1622770913; accessId=5076b3a0-7588-11ea-b6cd-33339bcf0069; SERVITIZATION_SUP=so6d2fcfdce6699b1071730640a63afe97; SERVITIZATION_FRONT=3f6lb65b8d7s5dli62qkvk7fd4; USERKEY=JVS_SHOP_JVS_SHOP_USERINFO3f6lb65b8d7s5dli62qkvk7fd4; SERVITIZATION_BACKEND=bus9673ea0329c54e08ffadd276911409d9; qimo_seosource_5076b3a0-7588-11ea-b6cd-33339bcf0069=%E7%AB%99%E5%86%85; qimo_seokeywords_5076b3a0-7588-11ea-b6cd-33339bcf0069=; qimo_xstKeywords_5076b3a0-7588-11ea-b6cd-33339bcf0069=; USERSESSION=pod0f38f883cca23979dc5162217912e55; token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdUeXBlIjoiQUdFTkNZIiwicmVhbE5hbWUiOiJEZW1vJUU1JThDJUJCJUU3JTk0JTlGMyIsImdyb3VwSWQiOjI1MjEsIm1vYmlsZSI6IjE2ODEyMzQ1NjcxIiwiZWRpdGlvbiI6MjEsImFnZW5jeUlkIjo2MzA2LCJ1c2VySWQiOjczODYsImlhdCI6MTYyMzM3NjEzOCwiYXV0aG9yaXRpZXMiOlsiMTgiLCIyNiIsIjIiLCI0IiwiMjYiLCIxIiwiMiIsIjMiLCI0IiwiNSIsIjYiLCIyMCIsIjIxIiwiMjMiLCIyNCIsIjI1IiwiNyIsIjgiLCI5IiwiMTAiLCIxMSIsIjEyIiwiMTMiLCIxNCIsIjE1IiwiMTYiLCIxNyIsIjE5IiwiMjIiLCIyNyIsIjI5IiwiMTgiXSwidXNlcm5hbWUiOiJwb18xNTMyMzUyMzA5XzYzMDYiLCJpcCI6IlVua25vdyIsImVudiI6InRlc3QifQ.fe8da-S94ZTglAAJYFVwnVvZ7CZ2wpEAUx6SpQd-yjg; Hm_lpvt_83391ad49960d57ae4a33547b2f9be91=1623376260; pageViewNum=83</stringProp>
</elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Accept</stringProp> <stringProp name="Header.name">Accept</stringProp>
<stringProp name="Header.value">application/json, text/javascript, */*; q=0.01</stringProp> <stringProp name="Header.value">application/json, text/javascript, */*; q=0.01</stringProp>
</elementProp> </elementProp>
<elementProp name="" elementType="Header">
<stringProp name="Header.name">cookie</stringProp>
<stringProp name="Header.value">${cookie}</stringProp>
</elementProp>
</collectionProp> </collectionProp>
</HeaderManager> </HeaderManager>
<hashTree/> <hashTree/>
...@@ -153,43 +153,124 @@ ...@@ -153,43 +153,124 @@
<stringProp name="HTTPSampler.response_timeout"></stringProp> <stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy> </HTTPSamplerProxy>
<hashTree> <hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="1910424632">佳沃思客服测试诊所</stringProp>
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="Assertion.custom_message"></stringProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true"> <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true">
<collectionProp name="HeaderManager.headers"> <collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header"> <elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp> <stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/json; charset=UTF-8</stringProp> <stringProp name="Header.value">application/json;charset=UTF-8</stringProp>
</elementProp> </elementProp>
</collectionProp> </collectionProp>
</HeaderManager> </HeaderManager>
<hashTree/> <hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="获取token" 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">username=16812345671&amp;password=16812345671&amp;orgId=5474&amp;orgType=AGENCY&amp;bindToUnionId=</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.domain">res1.jwsmed.com</stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/rest/user-service/Authentication/login</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</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.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
<collectionProp name="Asserion.test_strings"> <collectionProp name="Asserion.test_strings">
<stringProp name="1910424632">佳沃思客服测试诊所</stringProp>
<stringProp name="49586">200</stringProp> <stringProp name="49586">200</stringProp>
</collectionProp> </collectionProp>
<stringProp name="Assertion.custom_message"></stringProp> <stringProp name="Assertion.custom_message"></stringProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp> <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp> <boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp> <intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion> </ResponseAssertion>
<hashTree/> <hashTree/>
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="正则表达式提取器" enabled="true">
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
<stringProp name="RegexExtractor.refname">cookie</stringProp>
<stringProp name="RegexExtractor.regex">(.+)</stringProp>
<stringProp name="RegexExtractor.template">$1$</stringProp>
<stringProp name="RegexExtractor.default">null</stringProp>
<stringProp name="RegexExtractor.match_number">1</stringProp>
</RegexExtractor>
<hashTree/>
</hashTree> </hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="登商城" enabled="true"> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="登商城" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"> <collectionProp name="Arguments.arguments">
<elementProp name="" elementType="HTTPArgument"> <elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp> <boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">username=16812345671&amp;password=112233&amp;orgId=5474&amp;orgType=AGENCY&amp;bindToUnionId=</stringProp> <stringProp name="Argument.value">token=${cookie}</stringProp>
<stringProp name="Argument.metadata">=</stringProp> <stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
</collectionProp> </collectionProp>
</elementProp> </elementProp>
<stringProp name="HTTPSampler.domain">res1.jwsmed.com</stringProp> <stringProp name="HTTPSampler.domain">test2.jwsmed.com</stringProp>
<stringProp name="HTTPSampler.port"></stringProp> <stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp> <stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp> <stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/rest/user-service/Authentication/login</stringProp> <stringProp name="HTTPSampler.path">/user/login</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</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.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
<collectionProp name="Asserion.test_strings"/>
<stringProp name="Assertion.custom_message">200</stringProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">2</intProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="搜索商品" 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">{&quot;keyword&quot;:&quot;可乐&quot;}</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp name="HTTPSampler.domain">test2.jwsmed.com</stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/JARVIS-SERVITIZATION-REST/servitization/search/shop/completion</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp> <stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp> <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp> <boolProp name="HTTPSampler.auto_redirects">false</boolProp>
...@@ -202,14 +283,23 @@ ...@@ -202,14 +283,23 @@
<hashTree> <hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
<collectionProp name="Asserion.test_strings"> <collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp> <stringProp name="46730161">10000</stringProp>
</collectionProp> </collectionProp>
<stringProp name="Assertion.custom_message"></stringProp> <stringProp name="Assertion.custom_message"></stringProp>
<stringProp name="Assertion.test_field">Assertion.response_code</stringProp> <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp> <boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">16</intProp> <intProp name="Assertion.test_type">2</intProp>
</ResponseAssertion> </ResponseAssertion>
<hashTree/> <hashTree/>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true">
<collectionProp name="HeaderManager.headers">
<elementProp name="" elementType="Header">
<stringProp name="Header.name">Content-Type</stringProp>
<stringProp name="Header.value">application/json;charset=UTF-8</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
</hashTree> </hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="查看商品详情" enabled="true"> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="查看商品详情" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
...@@ -236,7 +326,18 @@ ...@@ -236,7 +326,18 @@
<stringProp name="HTTPSampler.connect_timeout"></stringProp> <stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp> <stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy> </HTTPSamplerProxy>
<hashTree>
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
<collectionProp name="Asserion.test_strings">
<stringProp name="49586">200</stringProp>
</collectionProp>
<stringProp name="Assertion.custom_message"></stringProp>
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
<boolProp name="Assertion.assume_success">false</boolProp>
<intProp name="Assertion.test_type">2</intProp>
</ResponseAssertion>
<hashTree/> <hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="加入购物车" enabled="true"> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="加入购物车" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
...@@ -263,7 +364,7 @@ ...@@ -263,7 +364,7 @@
<stringProp name="HTTPSampler.response_timeout"></stringProp> <stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy> </HTTPSamplerProxy>
<hashTree/> <hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="进入购物车" enabled="true"> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="查看购物车" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"> <collectionProp name="Arguments.arguments">
...@@ -288,18 +389,34 @@ ...@@ -288,18 +389,34 @@
<stringProp name="HTTPSampler.connect_timeout"></stringProp> <stringProp name="HTTPSampler.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp> <stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy> </HTTPSamplerProxy>
<hashTree> <hashTree/>
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true"> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="全选购物车商品" enabled="true">
<collectionProp name="HeaderManager.headers"> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="" elementType="Header"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<stringProp name="Header.name">Content-Type</stringProp> <collectionProp name="Arguments.arguments">
<stringProp name="Header.value">application/json; charset=UTF-8</stringProp> <elementProp name="" elementType="HTTPArgument">
<boolProp name="HTTPArgument.always_encode">false</boolProp>
<stringProp name="Argument.value">detail%5B0%5D%5BskuCode%5D=10000760&amp;detail%5B0%5D%5BorderCnt%5D=1&amp;detail%5B0%5D%5BisCheck%5D=1&amp;detail%5B1%5D%5BskuCode%5D=10236742&amp;detail%5B1%5D%5BorderCnt%5D=1&amp;detail%5B1%5D%5BisCheck%5D=1&amp;detail%5B2%5D%5BskuCode%5D=10218795&amp;detail%5B2%5D%5BorderCnt%5D=1&amp;detail%5B2%5D%5BisCheck%5D=1&amp;detail%5B3%5D%5BskuCode%5D=10231883&amp;detail%5B3%5D%5BorderCnt%5D=1&amp;detail%5B3%5D%5BisCheck%5D=1</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp> </elementProp>
</collectionProp> </collectionProp>
</HeaderManager> </elementProp>
<stringProp name="HTTPSampler.domain">test2.jwsmed.com</stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/user/saveSku</stringProp>
<stringProp name="HTTPSampler.method">POST</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</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.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree/> <hashTree/>
</hashTree> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="结算" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="保存草稿" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp> <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments"> <collectionProp name="Arguments.arguments">
...@@ -325,6 +442,25 @@ ...@@ -325,6 +442,25 @@
<stringProp name="HTTPSampler.response_timeout"></stringProp> <stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy> </HTTPSamplerProxy>
<hashTree/> <hashTree/>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="退出商城" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="HTTPSampler.domain">test2.jwsmed.com</stringProp>
<stringProp name="HTTPSampler.port"></stringProp>
<stringProp name="HTTPSampler.protocol">https</stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">/user/logout</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</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.connect_timeout"></stringProp>
<stringProp name="HTTPSampler.response_timeout"></stringProp>
</HTTPSamplerProxy>
<hashTree/>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="察看结果树" enabled="true"> <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="察看结果树" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp> <boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp> <objProp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment