Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
ecdb92c7
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
10 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ecdb92c7
编写于
6月 28, 2022
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix path issues
上级
32203420
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
6 deletion
+10
-6
internal/command/action/bug.go
internal/command/action/bug.go
+2
-1
internal/command/action/case.go
internal/command/action/case.go
+1
-1
internal/command/action/checkout.go
internal/command/action/checkout.go
+1
-1
internal/command/action/expect.go
internal/command/action/expect.go
+4
-2
internal/command/action/ztfResult.go
internal/command/action/ztfResult.go
+2
-1
未找到文件。
internal/command/action/bug.go
浏览文件 @
ecdb92c7
...
@@ -99,7 +99,8 @@ func coloredStatus(status commConsts.ResultStatus) string {
...
@@ -99,7 +99,8 @@ func coloredStatus(status commConsts.ResultStatus) string {
}
}
func
reportBug
(
resultDir
string
,
caseId
string
,
productId
int
)
error
{
func
reportBug
(
resultDir
string
,
caseId
string
,
productId
int
)
error
{
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
WorkDir
)
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
ZtfDir
)
bugFields
,
_
=
zentaoHelper
.
GetBugFiledOptions
(
config
,
bug
.
Product
)
bugFields
,
_
=
zentaoHelper
.
GetBugFiledOptions
(
config
,
bug
.
Product
)
bug
=
zentaoHelper
.
PrepareBug
(
commConsts
.
WorkDir
,
resultDir
,
caseId
,
productId
)
bug
=
zentaoHelper
.
PrepareBug
(
commConsts
.
WorkDir
,
resultDir
,
caseId
,
productId
)
...
...
internal/command/action/case.go
浏览文件 @
ecdb92c7
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
func
CommitCases
(
files
[]
string
)
{
func
CommitCases
(
files
[]
string
)
{
cases
:=
scriptHelper
.
GetCaseByDirAndFile
(
files
)
cases
:=
scriptHelper
.
GetCaseByDirAndFile
(
files
)
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
Work
Dir
)
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
Ztf
Dir
)
zentaoHelper
.
SyncToZentao
(
cases
,
config
)
zentaoHelper
.
SyncToZentao
(
cases
,
config
)
}
}
internal/command/action/checkout.go
浏览文件 @
ecdb92c7
...
@@ -26,7 +26,7 @@ func Checkout(productId, moduleId, suiteId, taskId string, independentFile bool,
...
@@ -26,7 +26,7 @@ func Checkout(productId, moduleId, suiteId, taskId string, independentFile bool,
Lang
:
scriptLang
,
Lang
:
scriptLang
,
}
}
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
Work
Dir
)
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
Ztf
Dir
)
zentaoHelper
.
SyncFromZentao
(
settings
,
config
,
commConsts
.
WorkDir
)
zentaoHelper
.
SyncFromZentao
(
settings
,
config
,
commConsts
.
WorkDir
)
}
}
internal/command/action/expect.go
浏览文件 @
ecdb92c7
...
@@ -27,7 +27,8 @@ func GenExpectFiles(files []string) error {
...
@@ -27,7 +27,8 @@ func GenExpectFiles(files []string) error {
logUtils
.
Info
(
"
\n
"
+
i118Utils
.
Sprintf
(
"no_cases"
))
logUtils
.
Info
(
"
\n
"
+
i118Utils
.
Sprintf
(
"no_cases"
))
return
nil
return
nil
}
}
conf
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
WorkDir
)
conf
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
ZtfDir
)
casesToRun
,
_
:=
execHelper
.
FilterCases
(
cases
,
conf
)
casesToRun
,
_
:=
execHelper
.
FilterCases
(
cases
,
conf
)
dryRunScripts
(
casesToRun
)
dryRunScripts
(
casesToRun
)
...
@@ -42,7 +43,8 @@ func dryRunScripts(casesToRun []string) {
...
@@ -42,7 +43,8 @@ func dryRunScripts(casesToRun []string) {
}
}
}
}
func
dryRunScript
(
file
string
)
{
func
dryRunScript
(
file
string
)
{
conf
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
WorkDir
)
conf
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
ZtfDir
)
out
,
_
:=
execHelper
.
RunFile
(
file
,
commConsts
.
WorkDir
,
conf
,
nil
,
nil
)
out
,
_
:=
execHelper
.
RunFile
(
file
,
commConsts
.
WorkDir
,
conf
,
nil
,
nil
)
expFile
:=
filepath
.
Join
(
filepath
.
Dir
(
file
),
fileUtils
.
GetFileNameWithoutExt
(
file
)
+
".exp"
)
expFile
:=
filepath
.
Join
(
filepath
.
Dir
(
file
),
fileUtils
.
GetFileNameWithoutExt
(
file
)
+
".exp"
)
...
...
internal/command/action/ztfResult.go
浏览文件 @
ecdb92c7
...
@@ -44,6 +44,7 @@ func CommitZTFTestResult(files []string, productId, taskId int, noNeedConfirm bo
...
@@ -44,6 +44,7 @@ func CommitZTFTestResult(files []string, productId, taskId int, noNeedConfirm bo
return
return
}
}
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
WorkDir
)
config
:=
configHelper
.
LoadByWorkspacePath
(
commConsts
.
ZtfDir
)
err
=
zentaoHelper
.
CommitResult
(
report
,
result
.
ProductId
,
result
.
TaskId
,
config
,
nil
)
err
=
zentaoHelper
.
CommitResult
(
report
,
result
.
ProductId
,
result
.
TaskId
,
config
,
nil
)
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录