class Parameter {
URL url;
String[] key;
String[] value;
String method;
int length = 0;
public void addPair(String k, String v) {
Array.set(key, length, k);
Array.set(value, length, v);
length++;
}
}
class TestThread implements Runnable {
Parameter param;
TestThread(Parameter par) {
param = par;
}
public void run() {
long time1 = new Date().getTime();
try {
URL target = param.url;
HttpURLConnection conn = (HttpURLConnection) target.openConnection();
conn.setRequestMethod(param.method);
int i;
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/