Showing
1 changed file
with
11 additions
and
11 deletions
@@ -36,23 +36,23 @@ | @@ -36,23 +36,23 @@ | ||
36 | <stringProp name="shareMode">shareMode.all</stringProp> | 36 | <stringProp name="shareMode">shareMode.all</stringProp> |
37 | </CSVDataSet> | 37 | </CSVDataSet> |
38 | <hashTree/> | 38 | <hashTree/> |
39 | - <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_sesame_flowering_higher" enabled="true"> | 39 | + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_passport_signinByOpenID" enabled="true"> |
40 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> | 40 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
41 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> | 41 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> |
42 | <boolProp name="LoopController.continue_forever">false</boolProp> | 42 | <boolProp name="LoopController.continue_forever">false</boolProp> |
43 | <intProp name="LoopController.loops">-1</intProp> | 43 | <intProp name="LoopController.loops">-1</intProp> |
44 | </elementProp> | 44 | </elementProp> |
45 | - <stringProp name="ThreadGroup.num_threads">100</stringProp> | 45 | + <stringProp name="ThreadGroup.num_threads">10</stringProp> |
46 | <stringProp name="ThreadGroup.ramp_time">10</stringProp> | 46 | <stringProp name="ThreadGroup.ramp_time">10</stringProp> |
47 | <longProp name="ThreadGroup.start_time">1488865571000</longProp> | 47 | <longProp name="ThreadGroup.start_time">1488865571000</longProp> |
48 | <longProp name="ThreadGroup.end_time">1488865571000</longProp> | 48 | <longProp name="ThreadGroup.end_time">1488865571000</longProp> |
49 | <boolProp name="ThreadGroup.scheduler">false</boolProp> | 49 | <boolProp name="ThreadGroup.scheduler">false</boolProp> |
50 | <stringProp name="ThreadGroup.duration"></stringProp> | 50 | <stringProp name="ThreadGroup.duration"></stringProp> |
51 | <stringProp name="ThreadGroup.delay"></stringProp> | 51 | <stringProp name="ThreadGroup.delay"></stringProp> |
52 | - <stringProp name="TestPlan.comments"></stringProp> | 52 | + <stringProp name="TestPlan.comments">第三方登录</stringProp> |
53 | </ThreadGroup> | 53 | </ThreadGroup> |
54 | <hashTree> | 54 | <hashTree> |
55 | - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_sesame_flowering_higher" enabled="true"> | 55 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_passport_signinByOpenID" enabled="true"> |
56 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | 56 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
57 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | 57 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
58 | <collectionProp name="Arguments.arguments"> | 58 | <collectionProp name="Arguments.arguments"> |
@@ -77,13 +77,13 @@ | @@ -77,13 +77,13 @@ | ||
77 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | 77 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
78 | <boolProp name="HTTPSampler.monitor">false</boolProp> | 78 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
79 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | 79 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
80 | - <stringProp name="TestPlan.comments"></stringProp> | 80 | + <stringProp name="TestPlan.comments">第三方登录</stringProp> |
81 | </HTTPSamplerProxy> | 81 | </HTTPSamplerProxy> |
82 | <hashTree> | 82 | <hashTree> |
83 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 83 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
84 | <stringProp name="TestPlan.comments"></stringProp> | 84 | <stringProp name="TestPlan.comments"></stringProp> |
85 | <boolProp name="resetInterpreter">false</boolProp> | 85 | <boolProp name="resetInterpreter">false</boolProp> |
86 | - <stringProp name="parameters">${mobile_test}</stringProp> | 86 | + <stringProp name="parameters">${open_id_test}</stringProp> |
87 | <stringProp name="filename"></stringProp> | 87 | <stringProp name="filename"></stringProp> |
88 | <stringProp name="script">import java.security.MessageDigest; | 88 | <stringProp name="script">import java.security.MessageDigest; |
89 | import java.util.Random; | 89 | import java.util.Random; |
@@ -92,8 +92,8 @@ String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb | @@ -92,8 +92,8 @@ String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb | ||
92 | int rd = new Random().nextInt(2); | 92 | int rd = new Random().nextInt(2); |
93 | String clientType = clientTypes[rd]; | 93 | String clientType = clientTypes[rd]; |
94 | String privateKey = privateKeys[rd]; | 94 | String privateKey = privateKeys[rd]; |
95 | -String password = "HFCwrxLEBegZqq8OEZxwJQ=="; | ||
96 | -String req = "app_version=6.0.0&client_type="+clientType+"&fromPage=iFP_NLogin&isSkip=N&method=sesame.flowering.higher&os_version=10.3.2&password="+password+"&physical_channel=1&private_key="+privateKey+"&profile="+bsh.args[0]+"&screen_size=375x667&shopping_key=&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid=0&v=7"; | 95 | +String os_version = "yohobuy:h5"; |
96 | +String req = "app_version=5.9.0&client_type="+clientType+"&method=app.passport.signinByOpenID&nickname=&openId="+bsh.args[0]+"&os_version="+os_version+"&private_key="+privateKey+"&screen_size=720x1280&shoppingKey=&source_type=wechat&v=7"; | ||
97 | MessageDigest md = MessageDigest.getInstance("MD5"); | 97 | MessageDigest md = MessageDigest.getInstance("MD5"); |
98 | byte[] btInput = req.getBytes(); | 98 | byte[] btInput = req.getBytes(); |
99 | md.update(btInput); | 99 | md.update(btInput); |
@@ -107,8 +107,8 @@ for(byte b : btResult){ | @@ -107,8 +107,8 @@ for(byte b : btResult){ | ||
107 | sb.append(Integer.toHexString(bt)); | 107 | sb.append(Integer.toHexString(bt)); |
108 | } | 108 | } |
109 | String md5 = sb.toString(); | 109 | String md5 = sb.toString(); |
110 | -password=URLEncoder.encode(password); | ||
111 | -req = "app_version=6.0.0&client_type="+clientType+"&fromPage=iFP_NLogin&isSkip=N&method=sesame.flowering.higher&os_version=10.3.2&password="+password+"&physical_channel=1&private_key="+privateKey+"&profile="+bsh.args[0]+"&screen_size=375x667&shopping_key=&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid=0&v=7"; | 110 | +os_version=URLEncoder.encode(os_version); |
111 | +req = "app_version=5.9.0&client_type="+clientType+"&method=app.passport.signinByOpenID&nickname=&openId="+bsh.args[0]+"&os_version="+os_version+"&private_key="+privateKey+"&screen_size=720x1280&shoppingKey=&source_type=wechat&v=7"; | ||
112 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> | 112 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> |
113 | </BeanShellPreProcessor> | 113 | </BeanShellPreProcessor> |
114 | <hashTree/> | 114 | <hashTree/> |
@@ -127,7 +127,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -127,7 +127,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
127 | <stringProp name="TestPlan.comments"></stringProp> | 127 | <stringProp name="TestPlan.comments"></stringProp> |
128 | <doubleProp> | 128 | <doubleProp> |
129 | <name>throughput</name> | 129 | <name>throughput</name> |
130 | - <value>60000</value> | 130 | + <value>6000</value> |
131 | <savedValue>0.0</savedValue> | 131 | <savedValue>0.0</savedValue> |
132 | </doubleProp> | 132 | </doubleProp> |
133 | <intProp name="calcMode">2</intProp> | 133 | <intProp name="calcMode">2</intProp> |
-
Please register or login to post a comment