|
@@ -37,7 +37,7 @@ import java.util.concurrent.TimeUnit;
|
|
|
@SpringBootTest
|
|
|
@Import(DomainControllerTest.ConcurrentTestConfig.class)
|
|
|
class DomainControllerTest {
|
|
|
- public static final int poolSize = 10;
|
|
|
+ public static final int poolSize = 40;
|
|
|
/**
|
|
|
* 测试结果保存文件夹
|
|
|
*/
|
|
@@ -114,9 +114,9 @@ class DomainControllerTest {
|
|
|
e.printStackTrace();
|
|
|
return;
|
|
|
}
|
|
|
- resultPath = resultPath + "路由查询10个线程10000条数据测试结果.csv";
|
|
|
-// resultPath = resultPath + "路由查询10个线程1000条数据测试结果.csv";
|
|
|
-// resultPath = resultPath + "路由查询10个线程100条数据测试结果.csv";
|
|
|
+ resultPath = resultPath + "路由查询" + poolSize + "个线程10000条数据测试结果.csv";
|
|
|
+// resultPath = resultPath + "路由查询" + poolSize + "个线程1000条数据测试结果.csv";
|
|
|
+// resultPath = resultPath + "路由查询" + poolSize + "个线程100条数据测试结果.csv";
|
|
|
// 接口地址
|
|
|
String url = "http://133.96.94.108:12091/domainB/api/route/";
|
|
|
Set<String> phones = Utils.readPhones();
|
|
@@ -149,9 +149,9 @@ class DomainControllerTest {
|
|
|
e.printStackTrace();
|
|
|
return;
|
|
|
}
|
|
|
- resultPath = resultPath + "5GSA查询10个线程10000条数据测试结果.csv";
|
|
|
-// resultPath = resultPath + "5GSA查询10个线程1000条数据测试结果.csv";
|
|
|
-// resultPath = resultPath + "5GSA查询10个线程100条数据测试结果.csv";
|
|
|
+ resultPath = resultPath + "5GSA查询" + poolSize + "个线程10000条数据测试结果.csv";
|
|
|
+// resultPath = resultPath + "5GSA查询" + poolSize + "个线程1000条数据测试结果.csv";
|
|
|
+// resultPath = resultPath + "5GSA查询" + poolSize + "个线程100条数据测试结果.csv";
|
|
|
// 接口地址
|
|
|
String url = "http://133.96.94.108:12091/domainB/api/sa/";
|
|
|
Set<String> phones = Utils.readPhones();
|
|
@@ -184,17 +184,16 @@ class DomainControllerTest {
|
|
|
e.printStackTrace();
|
|
|
return;
|
|
|
}
|
|
|
- resultPath = resultPath + "功能查询10个线程10000条数据测试结果.csv";
|
|
|
-// resultPath = resultPath + "功能查询10个线程1000条数据测试结果.csv";
|
|
|
-// resultPath = resultPath + "功能查询10个线程100条数据测试结果.csv";
|
|
|
+ resultPath = resultPath + "new功能查询" + poolSize + "个线程10000条数据测试结果.csv";
|
|
|
+// resultPath = resultPath + "功能查询" + poolSize + "个线程1000条数据测试结果.csv";
|
|
|
+// resultPath = resultPath + "功能查询" + poolSize + "个线程100条数据测试结果.csv";
|
|
|
// 接口地址
|
|
|
- String url = "http://133.96.94.108:12091/domainB/api/product/saAndVolte/";
|
|
|
+ String url = "http://192.168.50.3:12091/domainB/api/product/saAndVolte/";
|
|
|
+// String url = "http://133.96.94.108:12091/domainB/api/product/saAndVolte/";
|
|
|
Set<String> phones = Utils.readPhones();
|
|
|
for (String t : phones) {
|
|
|
- String[] a = t.split(",");
|
|
|
- String phoneNumber = a[0];
|
|
|
- SaAndVolteDTO dto = new SaAndVolteDTO("test", phoneNumber);
|
|
|
- executor.submit(new Task(template, phoneNumber, url, dto, singlePath));
|
|
|
+ SaAndVolteDTO dto = new SaAndVolteDTO("test", t);
|
|
|
+ executor.submit(new Task(template, t, url, dto, singlePath));
|
|
|
}
|
|
|
// 等待所有任务执行结束
|
|
|
while (executor.getActiveCount() > 0) {
|
|
@@ -219,7 +218,7 @@ class DomainControllerTest {
|
|
|
e.printStackTrace();
|
|
|
return;
|
|
|
}
|
|
|
- resultPath = resultPath + "用户资料三户返回10个线程7月1-24日移网质量投诉业务号码测试结果.csv";
|
|
|
+ resultPath = resultPath + "用户资料三户返回" + poolSize + "个线程7月1-24日移网质量投诉业务号码测试结果.csv";
|
|
|
// 接口地址
|
|
|
String url = "http://133.96.94.108:12091/domainB/api/threePart/userState/";
|
|
|
Set<String> phones = Utils.readPhones();
|