...
|
...
|
@@ -26,7 +26,7 @@ |
|
|
<collectionProp name="Arguments.arguments">
|
|
|
<elementProp name="HOST_API" elementType="Argument">
|
|
|
<stringProp name="Argument.name">HOST_API</stringProp>
|
|
|
<stringProp name="Argument.value">192.168.104.40:8999</stringProp>
|
|
|
<stringProp name="Argument.value">192.168.104.40:8080</stringProp>
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
...
|
...
|
@@ -89,7 +89,7 @@ |
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_API}/gateway?${searchValue}</stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_API}/gateway/?${searchValue}</stringProp>
|
|
|
<stringProp name="HTTPSampler.method">GET</stringProp>
|
|
|
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
...
|
...
|
@@ -113,7 +113,7 @@ int rd = new Random().nextInt(1); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "a=1&client_type="+clientType+"&private_key="+privateKey+"";
|
|
|
String req = "app_version=6.1.0&client_type="+clientType+"&fromPage=iFP_ProductDetail&method=app.product.test&os_version=9.1&physical_channel=1&private_key="+privateKey+"&screen_size=375x667&session_key=c9e62120b6a534dea8a06e8e3875e810&token=&udid=dbff80c827e771b3035a1a5ae80892d571860a8d&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
|