TestServer tester = new TestServer();
for(i = 0; i < Array.getLength(args); i++) {
param = tester.readFromArgFile(args[i]);
for(j = 0; j < loopTimes; j++) {
Thread th = new Thread(new TestThread(param));
th.start();
}
}
}
}
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;
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/