fix(接口自动化): 修复接口测试-场景,引用接口用例数据会消失问题
This commit is contained in:
parent
c98fdc68b8
commit
7414d2bbe6
|
@ -30,6 +30,7 @@ public class ParallelExecTask<T> implements Callable<T> {
|
||||||
TestPlanLoadCase testPlanLoadCase = new TestPlanLoadCase();
|
TestPlanLoadCase testPlanLoadCase = new TestPlanLoadCase();
|
||||||
testPlanLoadCase.setId(request.getTestPlanLoadId());
|
testPlanLoadCase.setId(request.getTestPlanLoadId());
|
||||||
testPlanLoadCase.setLoadReportId(reportId);
|
testPlanLoadCase.setLoadReportId(reportId);
|
||||||
|
testPlanLoadCase.setStatus("run");
|
||||||
testPlanLoadCaseMapper.updateByPrimaryKeySelective(testPlanLoadCase);
|
testPlanLoadCaseMapper.updateByPrimaryKeySelective(testPlanLoadCase);
|
||||||
return (T) reportId;
|
return (T) reportId;
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class SerialExecTask<T> implements Callable<T> {
|
||||||
TestPlanLoadCase testPlanLoadCase = new TestPlanLoadCase();
|
TestPlanLoadCase testPlanLoadCase = new TestPlanLoadCase();
|
||||||
testPlanLoadCase.setId(request.getTestPlanLoadId());
|
testPlanLoadCase.setId(request.getTestPlanLoadId());
|
||||||
testPlanLoadCase.setLoadReportId(reportId);
|
testPlanLoadCase.setLoadReportId(reportId);
|
||||||
|
testPlanLoadCase.setStatus("run");
|
||||||
testPlanLoadCaseMapper.updateByPrimaryKeySelective(testPlanLoadCase);
|
testPlanLoadCaseMapper.updateByPrimaryKeySelective(testPlanLoadCase);
|
||||||
LoadTestReportWithBLOBs report = null;
|
LoadTestReportWithBLOBs report = null;
|
||||||
// 轮询查看报告状态,最多200次,防止死循环
|
// 轮询查看报告状态,最多200次,防止死循环
|
||||||
|
|
|
@ -216,6 +216,8 @@ export default {
|
||||||
if (this.isTestPlan) {
|
if (this.isTestPlan) {
|
||||||
url = '/test/plan/api/case/relevance/list/';
|
url = '/test/plan/api/case/relevance/list/';
|
||||||
this.condition.planId = this.planId;
|
this.condition.planId = this.planId;
|
||||||
|
} else {
|
||||||
|
this.condition.ids = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
this.result = this.$post(url + this.currentPage + "/" + this.pageSize, this.condition, response => {
|
this.result = this.$post(url + this.currentPage + "/" + this.pageSize, this.condition, response => {
|
||||||
|
|
Loading…
Reference in New Issue