Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
kt-keystone
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
kt-keystone
Commits
9d7093eb
提交
9d7093eb
authored
2月 16, 2022
作者:
mry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(base): 修改了生成报告的名称,xml文件中的表名
上级
2892e4fa
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
19 行增加
和
10 行删除
+19
-10
ExtentTestNgReporterListener.java
...ix/testNg/extentsreport/ExtentTestNgReporterListener.java
+6
-2
testng.xml
kt-script/src/main/java/org/matrix/testng.xml
+1
-1
application.yml
kt-script/src/main/resources/application.yml
+0
-2
MoveController.java
...n/java/org/matrix/autotest/controller/MoveController.java
+10
-3
application.yml
kt-web/src/main/resources/application.yml
+2
-2
没有找到文件。
kt-base/src/main/java/org/matrix/testNg/extentsreport/ExtentTestNgReporterListener.java
浏览文件 @
9d7093eb
...
...
@@ -12,6 +12,8 @@ import org.testng.*;
import
org.testng.xml.XmlSuite
;
import
java.io.File
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
/**
...
...
@@ -19,9 +21,11 @@ import java.util.*;
*/
public
class
ExtentTestNgReporterListener
implements
IReporter
{
private
static
final
LocalDateTime
TIME
=
LocalDateTime
.
now
();
private
static
final
DateTimeFormatter
DATE_TIME_FORMATTER
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd-HH-mm-ss"
);
private
static
final
String
STRING
=
DATE_TIME_FORMATTER
.
format
(
TIME
);
private
static
final
String
OUTPUT_FOLDER
=
System
.
getProperty
(
"user.dir"
)
+
"/"
;
private
static
final
String
FILE_NAME
=
"testNg.html"
;
private
static
final
String
FILE_NAME
=
STRING
+
"-testNg.html"
;
private
ExtentReports
extent
;
@Override
...
...
kt-script/src/main/java/org/matrix/testng.xml
浏览文件 @
9d7093eb
...
...
@@ -3,7 +3,7 @@
<suite
name=
"Pigeon Api测试"
parallel=
"false"
>
<test
name=
"xxx-xxx-service"
>
<parameter
name=
"sql"
value=
"select id from test_case"
/>
<parameter
name=
"sql"
value=
"select id from
kt_
test_case"
/>
<parameter
name=
"envId"
value=
"1"
/>
<parameter
name=
"projectId"
value=
"1"
/>
<classes>
...
...
kt-script/src/main/resources/application.yml
浏览文件 @
9d7093eb
...
...
@@ -14,6 +14,5 @@ spring:
mybatis-plus
:
type-enums-package
:
org.matrix.enums
baseJsPath
:
syntaxCheck.js
baseJsPath
:
syntaxCheck.js
\ No newline at end of file
kt-web/src/main/java/org/matrix/autotest/controller/MoveController.java
浏览文件 @
9d7093eb
...
...
@@ -126,10 +126,17 @@ public class MoveController {
@PutMapping
public
ResponseEntity
<
CommonResultObj
<
MoveAction
>>
updateMoveAction
(
@RequestBody
MoveAction
moveAction
)
{
Boolean
moveBoolean
=
Optional
.
of
(
moveService
.
updateById
(
moveAction
.
getMove
()))
.
orElseThrow
(
GlobalException:
:
new
);
Boolean
delete
=
Optional
.
of
(
actionService
.
remove
(
Wrappers
.
lambdaQuery
(
Action
.
class
)
.
eq
(
Action:
:
getMoveId
,
moveAction
.
getMove
().
getId
())))
.
orElseThrow
(()
->
new
GlobalException
(
"删除失败"
));
Long
id
=
moveAction
.
getMove
().
getId
();
moveAction
.
getAction
().
forEach
(
action
->
action
.
setMoveId
(
id
)
);
Boolean
saveOrUpdate
=
Optional
.
of
(
actionService
.
saveOrUpdateBatch
(
moveAction
.
getAction
()))
.
orElseThrow
(()
->
new
GlobalException
(
"修改失败"
));
Boolean
actionBoolean
=
Optional
.
of
(
actionService
.
saveOrUpdateBatch
(
moveAction
.
getAction
()))
.
orElseThrow
(()
->
new
GlobalException
(
"修改失败"
));
return
moveBoolean
||
actionBoolean
return
moveBoolean
&&
saveOrUpdate
&&
delete
?
CommonResult
.
success
(
moveAction
,
"修改成功"
)
:
CommonResult
.
failed
(
moveAction
,
"修改失败"
);
}
...
...
kt-web/src/main/resources/application.yml
浏览文件 @
9d7093eb
...
...
@@ -15,8 +15,8 @@ spring:
password
:
root
mybatis-plus
:
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
#
configuration:
#
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
type-enums-package
:
org.matrix.enums
baseJsPath
:
syntaxCheck.js
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论