Commit cb8517d0 authored by wdy's avatar wdy

Merge branch 'dev' into 'master'

dev - master 17

See merge request !342
parents ab85030c 5f675328
......@@ -219,6 +219,15 @@ public class TestUseCaseServiceImpl extends ServiceImpl<TestUseCaseMapper, TestU
List<UseCaseUrlVO> list = new ArrayList<>();
if (jsonObject.getJSONObject("data").getJSONObject("node") != null) {
list = jsonObject.getJSONObject("data").getJSONObject("node").getList("useCases", UseCaseUrlVO.class);
for (UseCaseUrlVO useCaseUrlVO : list) {
if (useCaseUrlVO.getMethod() != null) {
useCaseUrlVO.setTestMethod(useCaseUrlVO.getMethod().getName());
}
if (useCaseUrlVO.getScenario() != null) {
useCaseUrlVO.setTestScenario(useCaseUrlVO.getScenario().getName());
}
}
}
return list;
......
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