Commit 4ab16587 authored by wdy's avatar wdy

测试用例二维矩阵

parent e52b7286
...@@ -73,7 +73,7 @@ public class MatrixServiceImpl implements MatrixService { ...@@ -73,7 +73,7 @@ public class MatrixServiceImpl implements MatrixService {
} }
} }
String caseResult= HttpUtil.post("https://10.12.48.78:8090/DescribeCaseList",""); // String caseResult= HttpUtil.post("https://10.12.48.78:8090/DescribeCaseList","");
OkHttpClient client = new OkHttpClient().newBuilder().build(); OkHttpClient client = new OkHttpClient().newBuilder().build();
...@@ -106,11 +106,9 @@ public class MatrixServiceImpl implements MatrixService { ...@@ -106,11 +106,9 @@ public class MatrixServiceImpl implements MatrixService {
String string = responseR.body().string(); String string = responseR.body().string();
JSONObject jsonO = JSONObject.parseObject(string); JSONObject jsonO = JSONObject.parseObject(string);
// System.out.println("jsonO = " + jsonO);
// JSONObject object = JSONObject.parseObject(caseResult);
JSONObject object = JSONObject.parseObject(caseResult);
// 获取测试用例列表 // 获取测试用例列表
List<UseCaseVO> caseList = jsonO.getJSONObject("data").getJSONObject("useCases").getList("nodes", UseCaseVO.class); List<UseCaseVO> caseList = jsonO.getJSONObject("data").getJSONObject("useCases").getList("nodes", UseCaseVO.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment