Showing
1 changed file
with
24 additions
and
12 deletions
@@ -180,6 +180,18 @@ | @@ -180,6 +180,18 @@ | ||
180 | <stringProp name="shareMode">shareMode.all</stringProp> | 180 | <stringProp name="shareMode">shareMode.all</stringProp> |
181 | </CSVDataSet> | 181 | </CSVDataSet> |
182 | <hashTree/> | 182 | <hashTree/> |
183 | + <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_mobile_openid_test_1w" enabled="true"> | ||
184 | + <stringProp name="TestPlan.comments"></stringProp> | ||
185 | + <stringProp name="filename">/opt/jmeter/data/uid_mobile_openid_test.csv</stringProp> | ||
186 | + <stringProp name="fileEncoding">utf-8</stringProp> | ||
187 | + <stringProp name="variableNames">uid_test,mobile_test,open_id_test</stringProp> | ||
188 | + <stringProp name="delimiter">,</stringProp> | ||
189 | + <boolProp name="quotedData">false</boolProp> | ||
190 | + <boolProp name="recycle">true</boolProp> | ||
191 | + <boolProp name="stopThread">false</boolProp> | ||
192 | + <stringProp name="shareMode">shareMode.all</stringProp> | ||
193 | + </CSVDataSet> | ||
194 | + <hashTree/> | ||
183 | <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_sku_edit_25w" enabled="true"> | 195 | <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_sku_edit_25w" enabled="true"> |
184 | <stringProp name="TestPlan.comments"></stringProp> | 196 | <stringProp name="TestPlan.comments"></stringProp> |
185 | <stringProp name="filename">/opt/jmeter/data/uid_sku_edit.csv</stringProp> | 197 | <stringProp name="filename">/opt/jmeter/data/uid_sku_edit.csv</stringProp> |
@@ -204,7 +216,7 @@ | @@ -204,7 +216,7 @@ | ||
204 | <stringProp name="shareMode">shareMode.all</stringProp> | 216 | <stringProp name="shareMode">shareMode.all</stringProp> |
205 | </CSVDataSet> | 217 | </CSVDataSet> |
206 | <hashTree/> | 218 | <hashTree/> |
207 | - <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_home_newPreference" enabled="true"> | 219 | + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_passport_checkIsNeedPopupRelated" enabled="true"> |
208 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> | 220 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
209 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> | 221 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> |
210 | <boolProp name="LoopController.continue_forever">false</boolProp> | 222 | <boolProp name="LoopController.continue_forever">false</boolProp> |
@@ -217,10 +229,10 @@ | @@ -217,10 +229,10 @@ | ||
217 | <boolProp name="ThreadGroup.scheduler">false</boolProp> | 229 | <boolProp name="ThreadGroup.scheduler">false</boolProp> |
218 | <stringProp name="ThreadGroup.duration"></stringProp> | 230 | <stringProp name="ThreadGroup.duration"></stringProp> |
219 | <stringProp name="ThreadGroup.delay"></stringProp> | 231 | <stringProp name="ThreadGroup.delay"></stringProp> |
220 | - <stringProp name="TestPlan.comments">个人中心底部为你优选</stringProp> | 232 | + <stringProp name="TestPlan.comments"></stringProp> |
221 | </ThreadGroup> | 233 | </ThreadGroup> |
222 | <hashTree> | 234 | <hashTree> |
223 | - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_home_newPreference" enabled="true"> | 235 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_passport_checkIsNeedPopupRelated" enabled="true"> |
224 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | 236 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
225 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | 237 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
226 | <collectionProp name="Arguments.arguments"> | 238 | <collectionProp name="Arguments.arguments"> |
@@ -245,23 +257,23 @@ | @@ -245,23 +257,23 @@ | ||
245 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | 257 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
246 | <boolProp name="HTTPSampler.monitor">false</boolProp> | 258 | <boolProp name="HTTPSampler.monitor">false</boolProp> |
247 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | 259 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
248 | - <stringProp name="TestPlan.comments">个人中心底部为你优选</stringProp> | 260 | + <stringProp name="TestPlan.comments"></stringProp> |
249 | </HTTPSamplerProxy> | 261 | </HTTPSamplerProxy> |
250 | <hashTree> | 262 | <hashTree> |
251 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 263 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
252 | <stringProp name="TestPlan.comments"></stringProp> | 264 | <stringProp name="TestPlan.comments"></stringProp> |
253 | <boolProp name="resetInterpreter">false</boolProp> | 265 | <boolProp name="resetInterpreter">false</boolProp> |
254 | - <stringProp name="parameters">${uid}</stringProp> | 266 | + <stringProp name="parameters">${uid_test}</stringProp> |
255 | <stringProp name="filename"></stringProp> | 267 | <stringProp name="filename"></stringProp> |
256 | <stringProp name="script">import java.security.MessageDigest; | 268 | <stringProp name="script">import java.security.MessageDigest; |
257 | import java.util.Random; | 269 | import java.util.Random; |
258 | -String[] clientTypes = {"android"}; | ||
259 | -String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585"}; | ||
260 | -int rd = new Random().nextInt(1); | 270 | +String[] clientTypes = {"android","iphone"}; |
271 | +String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb0674e08986c6b115d5e3a4884fa"}; | ||
272 | +int rd = new Random().nextInt(2); | ||
261 | String clientType = clientTypes[rd]; | 273 | String clientType = clientTypes[rd]; |
262 | String privateKey = privateKeys[rd]; | 274 | String privateKey = privateKeys[rd]; |
263 | - | ||
264 | -String req = "app_version=5.8.1&client_type="+clientType+"&fromPage=iFP_RecommendProduct&limit=30&method=app.home.newPreference&os_version=10.3.2&physical_channel=1&private_key="+privateKey+"&rec_pos=100004&screen_size=375x667&udid=9561cd2262d04577127d43b483232a2f745dc25b&uid="+bsh.args[0]+"&v=7&yh_channel=1"; | 275 | +String os_version = "android7.1.1:OPPO_R11"; |
276 | +String req = "app_version=6.0.0&client_type="+clientType+"&fromPage=aFP_My&gender=1,3&method=app.passport.checkIsNeedPopupRelated&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x1920&session_key=4e60eb7ee3968dd240273fb636e16b80&udid=8661700390046705bf2aaaf80bac2e9&uid="+bsh.args[0]+"&v=7&yh_channel=1"; | ||
265 | MessageDigest md = MessageDigest.getInstance("MD5"); | 277 | MessageDigest md = MessageDigest.getInstance("MD5"); |
266 | byte[] btInput = req.getBytes(); | 278 | byte[] btInput = req.getBytes(); |
267 | md.update(btInput); | 279 | md.update(btInput); |
@@ -275,8 +287,8 @@ for(byte b : btResult){ | @@ -275,8 +287,8 @@ for(byte b : btResult){ | ||
275 | sb.append(Integer.toHexString(bt)); | 287 | sb.append(Integer.toHexString(bt)); |
276 | } | 288 | } |
277 | String md5 = sb.toString(); | 289 | String md5 = sb.toString(); |
278 | - | ||
279 | - | 290 | +os_version=URLEncoder.encode(os_version); |
291 | +req = "app_version=6.0.0&client_type="+clientType+"&fromPage=aFP_My&gender=1,3&method=app.passport.checkIsNeedPopupRelated&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x1920&session_key=4e60eb7ee3968dd240273fb636e16b80&udid=8661700390046705bf2aaaf80bac2e9&uid="+bsh.args[0]+"&v=7&yh_channel=1"; | ||
280 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> | 292 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> |
281 | </BeanShellPreProcessor> | 293 | </BeanShellPreProcessor> |
282 | <hashTree/> | 294 | <hashTree/> |
-
Please register or login to post a comment