Authored by Rong

commit by shell

... ... @@ -1789,7 +1789,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="resetInterpreter">false</boolProp>
<stringProp name="parameters">${product_id} ${uid}</stringProp>
<stringProp name="parameters">${SNCP} ${product_id} ${uid}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -1799,7 +1799,7 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version = &quot;android7.1.1:vivo_X20Plus_A&quot;;
String req = &quot;app_version=6.6.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_ProductDetail&amp;gender=1,3&amp;id=&quot;+bsh.args[0]+&quot;&amp;method=app.favorite.isFavoriteNew&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x2040&amp;session_key=d99017a864d27b7772fa494bc2edc8e3&amp;udid=867476033141296577e6dba2096f180&amp;uid=&quot;+bsh.args[1]+&quot;&amp;v=7&amp;vip_level=1&amp;yh_channel=1&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;fromPage=aFP_ProductDetail&amp;gender=1,3&amp;id=&quot;+bsh.args[1]+&quot;&amp;method=app.favorite.isFavoriteNew&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x2040&amp;session_key=d99017a864d27b7772fa494bc2edc8e3&amp;udid=867476033141296577e6dba2096f180&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;vip_level=1&amp;yh_channel=1&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -1814,7 +1814,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req = &quot;app_version=6.6.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_ProductDetail&amp;gender=1,3&amp;id=&quot;+bsh.args[0]+&quot;&amp;method=app.favorite.isFavoriteNew&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x2040&amp;session_key=d99017a864d27b7772fa494bc2edc8e3&amp;udid=867476033141296577e6dba2096f180&amp;uid=&quot;+bsh.args[1]+&quot;&amp;v=7&amp;vip_level=1&amp;yh_channel=1&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;fromPage=aFP_ProductDetail&amp;gender=1,3&amp;id=&quot;+bsh.args[1]+&quot;&amp;method=app.favorite.isFavoriteNew&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x2040&amp;session_key=d99017a864d27b7772fa494bc2edc8e3&amp;udid=867476033141296577e6dba2096f180&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;vip_level=1&amp;yh_channel=1&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ...