Commit c783e662 authored by wdy's avatar wdy

调用接口

parent 169b0865
...@@ -28,7 +28,7 @@ public class TestRecordsTest { ...@@ -28,7 +28,7 @@ public class TestRecordsTest {
public void test() { public void test() {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("id", "project_items;27"); map.put("id", "5wU7nij8QomtoGMVhoxQjryw8hncJ");
map.put("verbose", "ALL"); map.put("verbose", "ALL");
//以post形式请求接口 //以post形式请求接口
...@@ -43,7 +43,7 @@ public class TestRecordsTest { ...@@ -43,7 +43,7 @@ public class TestRecordsTest {
List<CaseResultVO> caseResultVOS = jsonObject.getList("case_result_list", CaseResultVO.class); List<CaseResultVO> caseResultVOS = jsonObject.getList("case_result_list", CaseResultVO.class);
// 获取本地存储的列表 // 获取本地存储的列表
List<TestRecords> recordsList = testRecordsService.findByTaskId("project_items;29"); List<TestRecords> recordsList = testRecordsService.findByTaskId("5wU7nij8QomtoGMVhoxQjryw8hncJ");
List<TestRecords> list = new ArrayList<>(); List<TestRecords> list = new ArrayList<>();
if (caseResultVOS.size() != 0 && caseResultVOS != null) { if (caseResultVOS.size() != 0 && caseResultVOS != null) {
......
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