Authored by Rong

commit by shell

... ... @@ -106,7 +106,7 @@
<stringProp name="shareMode">shareMode.all</stringProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_&#36891;" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_&#30007;&#39318;" enabled="true">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
... ... @@ -192,7 +192,7 @@
<boolProp name="TransactionController.parent">false</boolProp>
</TransactionController>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_&#36891;" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_&#30007;&#39318;" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
... ... @@ -209,7 +209,7 @@
<stringProp name="HTTPSampler.response_timeout"></stringProp>
<stringProp name="HTTPSampler.protocol"></stringProp>
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
<stringProp name="HTTPSampler.path">http://${HOST_PC}/guang/kids/</stringProp>
<stringProp name="HTTPSampler.path">http://${HOST_PC}/</stringProp>
<stringProp name="HTTPSampler.method">GET</stringProp>
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
... ... @@ -221,15 +221,16 @@
</HTTPSamplerProxy>
<hashTree>
</hashTree>
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="JSR223 Sampler" enabled="true">
<JSR223Sampler guiclass="TestBeanGUI" testclass="JSR223Sampler" testname="AJAX" enabled="true">
<stringProp name="cacheKey">b04922f8-efaa-4390-bc5f-df25d02450bb</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="parameters">GEThttp://${HOST_PC}/common/suggestfeedback?callback=jQuery112407297836417199297_1506394331103&return_type=jsonp&client_secret=web&code=200&_=1506394331104 GEThttp://${HOST_PC}/guang/info/listData?ids=67249%2C67239%2C67157%2C67191%2C67189%2C67163%2C67161%2C67259%2C67287%2C67159%2C67279%2C67263%2C67113%2C67199%2C67261%2C67143%2C67153%2C67197%2C67141%2C67195&type=0 GEThttp://${HOST_PC}/passport/cert/headerTip?callback=jQuery112407297836417199297_1506394331103&_=1506394331105</stringProp>
<stringProp name="parameters">GEThttp://www.yohobuy.com/common/suggestfeedback?callback=jQuery112409858715270747556_1505876076710&amp;return_type=jsonp&amp;client_secret=web&amp;code=200&amp;_=1505876076711 GEThttp://www.yohobuy.com/channel/isNewUserAjax GEThttp://www.yohobuy.com/passport/cert/headerTip?callback=jQuery112409858715270747556_1505876076710&amp;_=1505876076712</stringProp>
<stringProp name="script">import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
... ... @@ -260,9 +261,9 @@ for (String url : urls) {
String postData = splitArr[1];
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(currentURL);
StringEntity entity = new StringEntity(postData, Charset.forName(&quot;UTF-8&quot;));
entity.setContentEncoding(&quot;UTF-8&quot;);
post.setEntity(entity);
StringEntity entityStr = new StringEntity(postData, Charset.forName(&quot;UTF-8&quot;));
entityStr.setContentEncoding(&quot;UTF-8&quot;);
post.setEntity(entityStr);
HttpResponse response = client.execute(post);
HttpEntity entity = response.getEntity();
EntityUtils.consume(entity);
... ...