Authored by Rong

commit by shell

... ... @@ -1949,7 +1949,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_selectedAndQryCart_single" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_selectedAndQryCart_forcomm" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
... ... @@ -1974,25 +1974,25 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
<boolProp name="HTTPSampler.monitor">false</boolProp>
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
<stringProp name="TestPlan.comments"></stringProp>
<stringProp name="TestPlan.comments">&#32473;&#29992;&#21048;&#30340;&#36873;&#25321;&#36141;&#29289;&#36710;</stringProp>
</HTTPSamplerProxy>
<hashTree>
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="resetInterpreter">false</boolProp>
<stringProp name="parameters">${SNCP} ${__RandomString(1,YN,)} ${sku_edit} ${uid_edit}</stringProp>
<stringProp name="parameters">${SNCP} ${sku_edit} ${uid_edit}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
String[] clientTypes = {&quot;android&quot;,&quot;iphone&quot;};
String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb0674e08986c6b115d5e3a4884fa&quot;};
int rd = new Random().nextInt(2);
String[] clientTypes = {&quot;android&quot;};
String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;};
int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version = &quot;yohobuy:h5&quot;;
String product_sku_list = &quot;[{\&quot;goods_type\&quot;:\&quot;ordinary\&quot;,\&quot;selected\&quot;:\&quot;&quot;+bsh.args[1]+&quot;\&quot;,\&quot;product_sku\&quot;:&quot;+bsh.args[2]+&quot;,\&quot;promotion_id\&quot;:\&quot;\&quot;,\&quot;buy_number\&quot;:\&quot;1\&quot;}]&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.6.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;is_support_mlp=Y&amp;method=app.Shopping.selectedAndQryCart&amp;os_version=&quot;+os_version+&quot;&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6129aba5f69e35fe760f6d702a62c016&amp;shopping_key=488815cfce9b9d0e739d16ede4c13f29&amp;udid=c5490c5d-308c-44f7-8d15-f5ed91fdd103&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&quot;;
String product_sku_list = &quot;[{\&quot;goods_type\&quot;:\&quot;ordinary\&quot;,\&quot;selected\&quot;:\&quot;Y\&quot;,\&quot;product_sku\&quot;:&quot;+bsh.args[1]+&quot;,\&quot;promotion_id\&quot;:\&quot;\&quot;,\&quot;buy_number\&quot;:\&quot;1\&quot;}]&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.6.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;is_support_mlp=Y&amp;method=app.Shopping.selectedAndQryCart&amp;os_version=&quot;+os_version+&quot;&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6129aba5f69e35fe760f6d702a62c016&amp;shopping_key=488815cfce9b9d0e739d16ede4c13f29&amp;udid=c5490c5d-308c-44f7-8d15-f5ed91fdd103&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -2008,7 +2008,7 @@ for(byte b : btResult){
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
product_sku_list=URLEncoder.encode(product_sku_list);
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.6.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;is_support_mlp=Y&amp;method=app.Shopping.selectedAndQryCart&amp;os_version=&quot;+os_version+&quot;&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6129aba5f69e35fe760f6d702a62c016&amp;shopping_key=488815cfce9b9d0e739d16ede4c13f29&amp;udid=c5490c5d-308c-44f7-8d15-f5ed91fdd103&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&quot;;
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.6.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;is_support_mlp=Y&amp;method=app.Shopping.selectedAndQryCart&amp;os_version=&quot;+os_version+&quot;&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6129aba5f69e35fe760f6d702a62c016&amp;shopping_key=488815cfce9b9d0e739d16ede4c13f29&amp;udid=c5490c5d-308c-44f7-8d15-f5ed91fdd103&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ...