This commit is contained in:
fit2-zhao 2021-01-27 11:35:10 +08:00
commit d6b2336d35
6 changed files with 10 additions and 2 deletions

View File

@ -133,7 +133,6 @@ public class TestPlanTestJob extends MsScheduleJob {
performanceRequest.setId(caseID); performanceRequest.setId(caseID);
performanceRequest.setTestPlanLoadId(caseID); performanceRequest.setTestPlanLoadId(caseID);
performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name()); performanceRequest.setTriggerMode(ReportTriggerMode.TEST_PLAN_SCHEDULE.name());
String reportId = null; String reportId = null;
try { try {
reportId = performanceTestService.run(performanceRequest); reportId = performanceTestService.run(performanceRequest);
@ -148,6 +147,11 @@ public class TestPlanTestJob extends MsScheduleJob {
}catch (Exception e){ }catch (Exception e){
e.printStackTrace(); e.printStackTrace();
} }
//更新关联处的报告
TestPlanLoadCase loadCase = new TestPlanLoadCaseDTO();
loadCase.setId(id);
loadCase.setLoadReportId(reportId);
testPlanLoadCaseService.update(loadCase);
} }
if(!performaneReportIDList.isEmpty()){ if(!performaneReportIDList.isEmpty()){

View File

@ -150,6 +150,7 @@ public class TestPlanService {
public List<TestPlan> getTestPlanByName(String name) { public List<TestPlan> getTestPlanByName(String name) {
TestPlanExample example = new TestPlanExample(); TestPlanExample example = new TestPlanExample();
example.createCriteria().andWorkspaceIdEqualTo(SessionUtils.getCurrentWorkspaceId()) example.createCriteria().andWorkspaceIdEqualTo(SessionUtils.getCurrentWorkspaceId())
.andProjectIdEqualTo(SessionUtils.getCurrentProjectId())
.andNameEqualTo(name); .andNameEqualTo(name);
return testPlanMapper.selectByExample(example); return testPlanMapper.selectByExample(example);
} }

View File

@ -21,7 +21,7 @@
v-if="!readOnly" v-if="!readOnly"
class="tag-input el-input" class="tag-input el-input"
v-model="newTag" v-model="newTag"
placeholder="输入回车添加" placeholder="$t('commons.tag_tip)"
@keydown.delete.stop="removeLastTag" @keydown.delete.stop="removeLastTag"
@keydown="addNew" @keydown="addNew"
@blur="addNew"/> @blur="addNew"/>

View File

@ -132,6 +132,7 @@ export default {
batch_add: "Batch add", batch_add: "Batch add",
check_project_tip: "Create or select the project first", check_project_tip: "Create or select the project first",
auth_redirect_tip: 'Jump to the authentication source page for authentication', auth_redirect_tip: 'Jump to the authentication source page for authentication',
tag_tip: "Enter Enter to Add Label",
table: { table: {
select_tip: "Item {0} data is selected" select_tip: "Item {0} data is selected"
}, },

View File

@ -133,6 +133,7 @@ export default {
batch_add: "批量添加", batch_add: "批量添加",
check_project_tip: "请先创建或选择项目", check_project_tip: "请先创建或选择项目",
auth_redirect_tip: '即将跳转到认证源页面进行认证', auth_redirect_tip: '即将跳转到认证源页面进行认证',
tag_tip: "输入回车添加标签",
table: { table: {
select_tip: "已选中 {0} 条数据" select_tip: "已选中 {0} 条数据"
}, },

View File

@ -133,6 +133,7 @@ export default {
batch_add: "批量添加", batch_add: "批量添加",
check_project_tip: "請先創建或選擇項目", check_project_tip: "請先創建或選擇項目",
auth_redirect_tip: '即將跳轉到認證源頁面進行認證', auth_redirect_tip: '即將跳轉到認證源頁面進行認證',
tag_tip: "輸入回車添加標簽",
table: { table: {
select_tip: "已选中 {0} 条数据" select_tip: "已选中 {0} 条数据"
}, },