Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
9ff5446b
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 大约 3 年
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9ff5446b
编写于
3月 24, 2021
作者:
S
song.tianyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 系统设置-导入用户-模板优化
系统设置-导入用户-模板优化
上级
40679681
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
8 deletion
+14
-8
backend/src/main/java/io/metersphere/api/dto/automation/parse/HarScenarioParser.java
...tersphere/api/dto/automation/parse/HarScenarioParser.java
+0
-2
backend/src/main/java/io/metersphere/service/UserService.java
...end/src/main/java/io/metersphere/service/UserService.java
+6
-6
backend/src/main/resources/i18n/messages.properties
backend/src/main/resources/i18n/messages.properties
+2
-0
backend/src/main/resources/i18n/messages_en_US.properties
backend/src/main/resources/i18n/messages_en_US.properties
+2
-0
backend/src/main/resources/i18n/messages_zh_CN.properties
backend/src/main/resources/i18n/messages_zh_CN.properties
+2
-0
backend/src/main/resources/i18n/messages_zh_TW.properties
backend/src/main/resources/i18n/messages_zh_TW.properties
+2
-0
未找到文件。
backend/src/main/java/io/metersphere/api/dto/automation/parse/HarScenarioParser.java
浏览文件 @
9ff5446b
...
...
@@ -46,8 +46,6 @@ public class HarScenarioParser extends HarScenarioAbstractParser<ScenarioImport>
String
harName
=
request
.
getFileName
();
// 场景步骤
LinkedList
<
MsTestElement
>
apiScenarioWithBLOBs
=
new
LinkedList
<>();
// ApiScenarioWithBLOBs scenario = new ApiScenarioWithBLOBs();
// scenario.setName(harName);
MsScenario
msScenario
=
new
MsScenario
();
msScenario
.
setName
(
harName
);
...
...
backend/src/main/java/io/metersphere/service/UserService.java
浏览文件 @
9ff5446b
package
io.metersphere.service
;
import
com.alibaba.excel.EasyExcelFactory
;
import
io.metersphere.api.dto.automation.ApiScenarioRequest
;
import
io.metersphere.base.domain.*
;
import
io.metersphere.base.mapper.*
;
import
io.metersphere.base.mapper.ext.ExtOrganizationMapper
;
...
...
@@ -10,7 +9,10 @@ import io.metersphere.base.mapper.ext.ExtUserRoleMapper;
import
io.metersphere.commons.constants.*
;
import
io.metersphere.commons.exception.MSException
;
import
io.metersphere.commons.user.SessionUser
;
import
io.metersphere.commons.utils.*
;
import
io.metersphere.commons.utils.CodingUtil
;
import
io.metersphere.commons.utils.CommonBeanFactory
;
import
io.metersphere.commons.utils.LogUtil
;
import
io.metersphere.commons.utils.SessionUtils
;
import
io.metersphere.controller.ResultHolder
;
import
io.metersphere.controller.request.LoginRequest
;
import
io.metersphere.controller.request.member.AddMemberRequest
;
...
...
@@ -26,20 +28,16 @@ import io.metersphere.dto.UserRoleDTO;
import
io.metersphere.dto.WorkspaceDTO
;
import
io.metersphere.excel.domain.*
;
import
io.metersphere.excel.listener.EasyExcelListener
;
import
io.metersphere.excel.listener.TestCaseDataListener
;
import
io.metersphere.excel.listener.UserDataListener
;
import
io.metersphere.excel.utils.EasyExcelExporter
;
import
io.metersphere.i18n.Translator
;
import
io.metersphere.notice.domain.UserDetail
;
import
io.metersphere.security.MsUserToken
;
import
io.metersphere.track.request.testcase.QueryTestCaseRequest
;
import
io.metersphere.xmind.XmindCaseParser
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.shiro.SecurityUtils
;
import
org.apache.shiro.authc.*
;
import
org.apache.shiro.authz.UnauthorizedException
;
import
org.apache.shiro.subject.Subject
;
import
org.python.antlr.ast.Str
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
...
...
@@ -648,6 +646,8 @@ public class UserService {
UserExcelData
data
=
new
UserExcelData
();
data
.
setId
(
"user_id_"
+
i
);
data
.
setName
(
Translator
.
get
(
"user"
)
+
i
);
data
.
setPassword
(
Translator
.
get
(
"required"
)+
";"
+
Translator
.
get
(
"password_format_is_incorrect"
));
data
.
setEmail
(
Translator
.
get
(
"required"
));
String
workspace
=
""
;
for
(
int
workspaceIndex
=
1
;
workspaceIndex
<=
i
;
workspaceIndex
++)
{
if
(
workspaceIndex
==
1
)
{
...
...
backend/src/main/resources/i18n/messages.properties
浏览文件 @
9ff5446b
...
...
@@ -59,5 +59,7 @@ module_created_automatically=
options
=
options_yes
=
options_no
=
required
=
password_format_is_incorrect
=
please_input_workspace_member
=
test_case_report_template_repeat
=
\ No newline at end of file
backend/src/main/resources/i18n/messages_en_US.properties
浏览文件 @
9ff5446b
...
...
@@ -138,6 +138,8 @@ module_created_automatically=If there is no such module, will be created automat
options
=
options
options_yes
=
Yes
options_no
=
No
required
=
Required
password_format_is_incorrect
=
Valid password: 8-30 digits, English upper and lower case letters + numbers + special characters (optional)
please_input_workspace_member
=
Please input workspace merber
test_case_report_template_repeat
=
The workspace has the same name template
plan_name_already_exists
=
Test plan name already exists
...
...
backend/src/main/resources/i18n/messages_zh_CN.properties
浏览文件 @
9ff5446b
...
...
@@ -138,6 +138,8 @@ module_created_automatically=若无该模块将自动创建
options
=
选项
options_yes
=
是
options_no
=
否
required
=
必填
password_format_is_incorrect
=
有效密码:8-30位,英文大小写字母+数字+特殊字符(可选)
please_input_workspace_member
=
请填写该工作空间相关人员
test_case_report_template_repeat
=
同一工作空间下不能存在同名模版
plan_name_already_exists
=
测试计划名称已存在
...
...
backend/src/main/resources/i18n/messages_zh_TW.properties
浏览文件 @
9ff5446b
...
...
@@ -138,6 +138,8 @@ module_created_automatically=若無該模塊將自動創建
options
=
選項
options_yes
=
是
options_no
=
否
required
=
必填
password_format_is_incorrect
=
有效密碼:8-30位,英文大小寫字母+數字+特殊字符(可選)
please_input_workspace_member
=
請填寫該工作空間相關人員
test_case_report_template_repeat
=
同壹工作空間下不能存在同名模版
plan_name_already_exists
=
測試計劃名稱已存在
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录