Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
4ab16587
Commit
4ab16587
authored
Jun 17, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试用例二维矩阵
parent
e52b7286
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
MatrixServiceImpl.java
...c/main/java/com/ruoyi/service/impl/MatrixServiceImpl.java
+2
-4
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/MatrixServiceImpl.java
View file @
4ab16587
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment