Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
24bf6067
Commit
24bf6067
authored
3 years ago
by
chenjianxing
Committed by
jianxing
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
refactor: 场景资源池执行添加日志打印
parent
6935804a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/src/main/java/io/metersphere/api/jmeter/JMeterService.java
+2
-0
...rc/main/java/io/metersphere/api/jmeter/JMeterService.java
with
2 additions
and
0 deletions
+2
-0
backend/src/main/java/io/metersphere/api/jmeter/JMeterService.java
+
2
-
0
View file @
24bf6067
...
...
@@ -149,6 +149,7 @@ public class JMeterService {
ResponseEntity
<
String
>
result
=
restTemplate
.
postForEntity
(
uri
,
request
,
String
.
class
);
if
(
result
==
null
||
!
StringUtils
.
equals
(
"SUCCESS"
,
result
.
getBody
()))
{
LogUtil
.
info
(
result
.
getBody
());
RemakeReportService
remakeReportService
=
CommonBeanFactory
.
getBean
(
RemakeReportService
.
class
);
RunRequest
runRequest
=
new
RunRequest
();
runRequest
.
setTestId
(
request
.
getTestId
());
...
...
@@ -158,6 +159,7 @@ public class JMeterService {
LoggerUtil
.
error
(
"发送请求[ "
+
request
.
getTestId
()
+
" ] 到"
+
uri
+
" 节点执行失败"
);
}
}
catch
(
Exception
e
)
{
LogUtil
.
error
(
e
);
RemakeReportService
remakeReportService
=
CommonBeanFactory
.
getBean
(
RemakeReportService
.
class
);
RunRequest
runRequest
=
new
RunRequest
();
runRequest
.
setTestId
(
request
.
getTestId
());
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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