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
c087ba63
Commit
c087ba63
authored
Jun 17, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
dev - master 23 See merge request
!361
parents
ebfed467
6393bbf2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
28 deletions
+5
-28
UseCaseVO.java
...y-review/src/main/java/com/ruoyi/domain/vo/UseCaseVO.java
+5
-3
MatrixServiceImpl.java
...c/main/java/com/ruoyi/service/impl/MatrixServiceImpl.java
+0
-25
No files found.
quality-review/src/main/java/com/ruoyi/domain/vo/UseCaseVO.java
View file @
c087ba63
...
@@ -14,12 +14,12 @@ public class UseCaseVO {
...
@@ -14,12 +14,12 @@ public class UseCaseVO {
private
String
name
;
private
String
name
;
// 测试场景
// 测试场景
// private String scenario
;
private
String
scenarioName
;
private
ScenarioKEVO
scenario
;
private
ScenarioKEVO
scenario
;
// 测试方法
// 测试方法
//
private String test_type;
private
String
test_type
;
private
MethodVo
method
;
private
MethodVo
method
;
/**
/**
...
@@ -27,7 +27,9 @@ public class UseCaseVO {
...
@@ -27,7 +27,9 @@ public class UseCaseVO {
* @return
* @return
*/
*/
public
String
getCoordinates
()
{
public
String
getCoordinates
()
{
return
scenario
.
getClass
().
getName
()
+
method
.
getClass
().
getName
();
scenarioName
=
scenario
.
getName
();
test_type
=
method
.
getName
();
return
scenarioName
+
test_type
;
}
}
}
}
quality-review/src/main/java/com/ruoyi/service/impl/MatrixServiceImpl.java
View file @
c087ba63
...
@@ -73,8 +73,6 @@ public class MatrixServiceImpl implements MatrixService {
...
@@ -73,8 +73,6 @@ public class MatrixServiceImpl implements MatrixService {
}
}
}
}
// String caseResult= HttpUtil.post("https://10.12.48.78:8090/DescribeCaseList","");
OkHttpClient
client
=
new
OkHttpClient
().
newBuilder
().
build
();
OkHttpClient
client
=
new
OkHttpClient
().
newBuilder
().
build
();
MediaType
mediaType
=
MediaType
.
parse
(
"application/json"
);
MediaType
mediaType
=
MediaType
.
parse
(
"application/json"
);
...
@@ -106,15 +104,9 @@ public class MatrixServiceImpl implements MatrixService {
...
@@ -106,15 +104,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
);
// 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
);
// List<UseCaseVO> caseList = object.getList("case_list", UseCaseVO.class);
MatrixResponse
response
=
new
MatrixResponse
();
MatrixResponse
response
=
new
MatrixResponse
();
setHeaderName
(
response
,
testTypeList
);
setHeaderName
(
response
,
testTypeList
);
setRowsName
(
response
,
scenarioList
,
testTypeList
,
caseList
);
setRowsName
(
response
,
scenarioList
,
testTypeList
,
caseList
);
...
@@ -213,21 +205,4 @@ public class MatrixServiceImpl implements MatrixService {
...
@@ -213,21 +205,4 @@ public class MatrixServiceImpl implements MatrixService {
}
}
return
null
;
return
null
;
}
}
@Data
public
static
class
CaseVO
{
private
String
id
;
private
String
name
;
private
ScenarioKEVO
scenario
;
private
MethodVo
method
;
public
String
getCoordinates
()
{
return
scenario
.
getClass
().
getName
()
+
method
.
getClass
().
getName
();
}
}
}
}
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