fix(测试跟踪): 删除历史遗留字段
This commit is contained in:
parent
1e802c10b9
commit
13ba8c56e4
|
@ -33,8 +33,6 @@ public class TestCase implements Serializable {
|
||||||
|
|
||||||
private Integer num;
|
private Integer num;
|
||||||
|
|
||||||
private String otherTestName;
|
|
||||||
|
|
||||||
private String reviewStatus;
|
private String reviewStatus;
|
||||||
|
|
||||||
private String tags;
|
private String tags;
|
||||||
|
|
|
@ -1044,76 +1044,6 @@ public class TestCaseExample {
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andOtherTestNameIsNull() {
|
|
||||||
addCriterion("other_test_name is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameIsNotNull() {
|
|
||||||
addCriterion("other_test_name is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameEqualTo(String value) {
|
|
||||||
addCriterion("other_test_name =", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameNotEqualTo(String value) {
|
|
||||||
addCriterion("other_test_name <>", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameGreaterThan(String value) {
|
|
||||||
addCriterion("other_test_name >", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("other_test_name >=", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameLessThan(String value) {
|
|
||||||
addCriterion("other_test_name <", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("other_test_name <=", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameLike(String value) {
|
|
||||||
addCriterion("other_test_name like", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameNotLike(String value) {
|
|
||||||
addCriterion("other_test_name not like", value, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameIn(List<String> values) {
|
|
||||||
addCriterion("other_test_name in", values, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameNotIn(List<String> values) {
|
|
||||||
addCriterion("other_test_name not in", values, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameBetween(String value1, String value2) {
|
|
||||||
addCriterion("other_test_name between", value1, value2, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andOtherTestNameNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("other_test_name not between", value1, value2, "otherTestName");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andReviewStatusIsNull() {
|
public Criteria andReviewStatusIsNull() {
|
||||||
addCriterion("review_status is null");
|
addCriterion("review_status is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
|
|
|
@ -19,10 +19,6 @@ public class TestPlan implements Serializable {
|
||||||
|
|
||||||
private String stage;
|
private String stage;
|
||||||
|
|
||||||
private String testCaseMatchRule;
|
|
||||||
|
|
||||||
private String executorMatchRule;
|
|
||||||
|
|
||||||
private Long createTime;
|
private Long createTime;
|
||||||
|
|
||||||
private Long updateTime;
|
private Long updateTime;
|
||||||
|
|
|
@ -594,146 +594,6 @@ public class TestPlanExample {
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleIsNull() {
|
|
||||||
addCriterion("test_case_match_rule is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleIsNotNull() {
|
|
||||||
addCriterion("test_case_match_rule is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleEqualTo(String value) {
|
|
||||||
addCriterion("test_case_match_rule =", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleNotEqualTo(String value) {
|
|
||||||
addCriterion("test_case_match_rule <>", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleGreaterThan(String value) {
|
|
||||||
addCriterion("test_case_match_rule >", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("test_case_match_rule >=", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleLessThan(String value) {
|
|
||||||
addCriterion("test_case_match_rule <", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("test_case_match_rule <=", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleLike(String value) {
|
|
||||||
addCriterion("test_case_match_rule like", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleNotLike(String value) {
|
|
||||||
addCriterion("test_case_match_rule not like", value, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleIn(List<String> values) {
|
|
||||||
addCriterion("test_case_match_rule in", values, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleNotIn(List<String> values) {
|
|
||||||
addCriterion("test_case_match_rule not in", values, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleBetween(String value1, String value2) {
|
|
||||||
addCriterion("test_case_match_rule between", value1, value2, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andTestCaseMatchRuleNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("test_case_match_rule not between", value1, value2, "testCaseMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleIsNull() {
|
|
||||||
addCriterion("executor_match_rule is null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleIsNotNull() {
|
|
||||||
addCriterion("executor_match_rule is not null");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleEqualTo(String value) {
|
|
||||||
addCriterion("executor_match_rule =", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleNotEqualTo(String value) {
|
|
||||||
addCriterion("executor_match_rule <>", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleGreaterThan(String value) {
|
|
||||||
addCriterion("executor_match_rule >", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleGreaterThanOrEqualTo(String value) {
|
|
||||||
addCriterion("executor_match_rule >=", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleLessThan(String value) {
|
|
||||||
addCriterion("executor_match_rule <", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleLessThanOrEqualTo(String value) {
|
|
||||||
addCriterion("executor_match_rule <=", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleLike(String value) {
|
|
||||||
addCriterion("executor_match_rule like", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleNotLike(String value) {
|
|
||||||
addCriterion("executor_match_rule not like", value, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleIn(List<String> values) {
|
|
||||||
addCriterion("executor_match_rule in", values, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleNotIn(List<String> values) {
|
|
||||||
addCriterion("executor_match_rule not in", values, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleBetween(String value1, String value2) {
|
|
||||||
addCriterion("executor_match_rule between", value1, value2, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andExecutorMatchRuleNotBetween(String value1, String value2) {
|
|
||||||
addCriterion("executor_match_rule not between", value1, value2, "executorMatchRule");
|
|
||||||
return (Criteria) this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Criteria andCreateTimeIsNull() {
|
public Criteria andCreateTimeIsNull() {
|
||||||
addCriterion("create_time is null");
|
addCriterion("create_time is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
|
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
|
||||||
<result column="sort" jdbcType="INTEGER" property="sort" />
|
<result column="sort" jdbcType="INTEGER" property="sort" />
|
||||||
<result column="num" jdbcType="INTEGER" property="num" />
|
<result column="num" jdbcType="INTEGER" property="num" />
|
||||||
<result column="other_test_name" jdbcType="VARCHAR" property="otherTestName" />
|
|
||||||
<result column="review_status" jdbcType="VARCHAR" property="reviewStatus" />
|
<result column="review_status" jdbcType="VARCHAR" property="reviewStatus" />
|
||||||
<result column="tags" jdbcType="VARCHAR" property="tags" />
|
<result column="tags" jdbcType="VARCHAR" property="tags" />
|
||||||
<result column="demand_id" jdbcType="VARCHAR" property="demandId" />
|
<result column="demand_id" jdbcType="VARCHAR" property="demandId" />
|
||||||
|
@ -103,9 +102,9 @@
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, node_id, test_id, node_path, project_id, `name`, `type`, maintainer, priority,
|
id, node_id, test_id, node_path, project_id, `name`, `type`, maintainer, priority,
|
||||||
`method`, create_time, update_time, sort, num, other_test_name, review_status, tags,
|
`method`, create_time, update_time, sort, num, review_status, tags, demand_id, demand_name,
|
||||||
demand_id, demand_name, `status`, step_model, custom_num, create_user, original_status,
|
`status`, step_model, custom_num, create_user, original_status, delete_time, delete_user_id,
|
||||||
delete_time, delete_user_id, `order`, case_public, version_id, ref_id, latest, last_execute_result
|
`order`, case_public, version_id, ref_id, latest, last_execute_result
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Blob_Column_List">
|
<sql id="Blob_Column_List">
|
||||||
prerequisite, remark, steps, step_description, expected_result, custom_fields
|
prerequisite, remark, steps, step_description, expected_result, custom_fields
|
||||||
|
@ -163,28 +162,28 @@
|
||||||
node_path, project_id, `name`,
|
node_path, project_id, `name`,
|
||||||
`type`, maintainer, priority,
|
`type`, maintainer, priority,
|
||||||
`method`, create_time, update_time,
|
`method`, create_time, update_time,
|
||||||
sort, num, other_test_name,
|
sort, num, review_status,
|
||||||
review_status, tags, demand_id,
|
tags, demand_id, demand_name,
|
||||||
demand_name, `status`, step_model,
|
`status`, step_model, custom_num,
|
||||||
custom_num, create_user, original_status,
|
create_user, original_status, delete_time,
|
||||||
delete_time, delete_user_id, `order`,
|
delete_user_id, `order`, case_public,
|
||||||
case_public, version_id, ref_id,
|
version_id, ref_id, latest,
|
||||||
latest, last_execute_result, prerequisite,
|
last_execute_result, prerequisite, remark,
|
||||||
remark, steps, step_description,
|
steps, step_description, expected_result,
|
||||||
expected_result, custom_fields)
|
custom_fields)
|
||||||
values (#{id,jdbcType=VARCHAR}, #{nodeId,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR},
|
values (#{id,jdbcType=VARCHAR}, #{nodeId,jdbcType=VARCHAR}, #{testId,jdbcType=VARCHAR},
|
||||||
#{nodePath,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
#{nodePath,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
||||||
#{type,jdbcType=VARCHAR}, #{maintainer,jdbcType=VARCHAR}, #{priority,jdbcType=VARCHAR},
|
#{type,jdbcType=VARCHAR}, #{maintainer,jdbcType=VARCHAR}, #{priority,jdbcType=VARCHAR},
|
||||||
#{method,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
|
#{method,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
|
||||||
#{sort,jdbcType=INTEGER}, #{num,jdbcType=INTEGER}, #{otherTestName,jdbcType=VARCHAR},
|
#{sort,jdbcType=INTEGER}, #{num,jdbcType=INTEGER}, #{reviewStatus,jdbcType=VARCHAR},
|
||||||
#{reviewStatus,jdbcType=VARCHAR}, #{tags,jdbcType=VARCHAR}, #{demandId,jdbcType=VARCHAR},
|
#{tags,jdbcType=VARCHAR}, #{demandId,jdbcType=VARCHAR}, #{demandName,jdbcType=VARCHAR},
|
||||||
#{demandName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{stepModel,jdbcType=VARCHAR},
|
#{status,jdbcType=VARCHAR}, #{stepModel,jdbcType=VARCHAR}, #{customNum,jdbcType=VARCHAR},
|
||||||
#{customNum,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{originalStatus,jdbcType=VARCHAR},
|
#{createUser,jdbcType=VARCHAR}, #{originalStatus,jdbcType=VARCHAR}, #{deleteTime,jdbcType=BIGINT},
|
||||||
#{deleteTime,jdbcType=BIGINT}, #{deleteUserId,jdbcType=VARCHAR}, #{order,jdbcType=BIGINT},
|
#{deleteUserId,jdbcType=VARCHAR}, #{order,jdbcType=BIGINT}, #{casePublic,jdbcType=BIT},
|
||||||
#{casePublic,jdbcType=BIT}, #{versionId,jdbcType=VARCHAR}, #{refId,jdbcType=VARCHAR},
|
#{versionId,jdbcType=VARCHAR}, #{refId,jdbcType=VARCHAR}, #{latest,jdbcType=BIT},
|
||||||
#{latest,jdbcType=BIT}, #{lastExecuteResult,jdbcType=VARCHAR}, #{prerequisite,jdbcType=LONGVARCHAR},
|
#{lastExecuteResult,jdbcType=VARCHAR}, #{prerequisite,jdbcType=LONGVARCHAR}, #{remark,jdbcType=LONGVARCHAR},
|
||||||
#{remark,jdbcType=LONGVARCHAR}, #{steps,jdbcType=LONGVARCHAR}, #{stepDescription,jdbcType=LONGVARCHAR},
|
#{steps,jdbcType=LONGVARCHAR}, #{stepDescription,jdbcType=LONGVARCHAR}, #{expectedResult,jdbcType=LONGVARCHAR},
|
||||||
#{expectedResult,jdbcType=LONGVARCHAR}, #{customFields,jdbcType=LONGVARCHAR})
|
#{customFields,jdbcType=LONGVARCHAR})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="io.metersphere.base.domain.TestCaseWithBLOBs">
|
<insert id="insertSelective" parameterType="io.metersphere.base.domain.TestCaseWithBLOBs">
|
||||||
insert into test_case
|
insert into test_case
|
||||||
|
@ -231,9 +230,6 @@
|
||||||
<if test="num != null">
|
<if test="num != null">
|
||||||
num,
|
num,
|
||||||
</if>
|
</if>
|
||||||
<if test="otherTestName != null">
|
|
||||||
other_test_name,
|
|
||||||
</if>
|
|
||||||
<if test="reviewStatus != null">
|
<if test="reviewStatus != null">
|
||||||
review_status,
|
review_status,
|
||||||
</if>
|
</if>
|
||||||
|
@ -347,9 +343,6 @@
|
||||||
<if test="num != null">
|
<if test="num != null">
|
||||||
#{num,jdbcType=INTEGER},
|
#{num,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="otherTestName != null">
|
|
||||||
#{otherTestName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="reviewStatus != null">
|
<if test="reviewStatus != null">
|
||||||
#{reviewStatus,jdbcType=VARCHAR},
|
#{reviewStatus,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
@ -472,9 +465,6 @@
|
||||||
<if test="record.num != null">
|
<if test="record.num != null">
|
||||||
num = #{record.num,jdbcType=INTEGER},
|
num = #{record.num,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="record.otherTestName != null">
|
|
||||||
other_test_name = #{record.otherTestName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.reviewStatus != null">
|
<if test="record.reviewStatus != null">
|
||||||
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
@ -565,7 +555,6 @@
|
||||||
update_time = #{record.updateTime,jdbcType=BIGINT},
|
update_time = #{record.updateTime,jdbcType=BIGINT},
|
||||||
sort = #{record.sort,jdbcType=INTEGER},
|
sort = #{record.sort,jdbcType=INTEGER},
|
||||||
num = #{record.num,jdbcType=INTEGER},
|
num = #{record.num,jdbcType=INTEGER},
|
||||||
other_test_name = #{record.otherTestName,jdbcType=VARCHAR},
|
|
||||||
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
||||||
tags = #{record.tags,jdbcType=VARCHAR},
|
tags = #{record.tags,jdbcType=VARCHAR},
|
||||||
demand_id = #{record.demandId,jdbcType=VARCHAR},
|
demand_id = #{record.demandId,jdbcType=VARCHAR},
|
||||||
|
@ -609,7 +598,6 @@
|
||||||
update_time = #{record.updateTime,jdbcType=BIGINT},
|
update_time = #{record.updateTime,jdbcType=BIGINT},
|
||||||
sort = #{record.sort,jdbcType=INTEGER},
|
sort = #{record.sort,jdbcType=INTEGER},
|
||||||
num = #{record.num,jdbcType=INTEGER},
|
num = #{record.num,jdbcType=INTEGER},
|
||||||
other_test_name = #{record.otherTestName,jdbcType=VARCHAR},
|
|
||||||
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
||||||
tags = #{record.tags,jdbcType=VARCHAR},
|
tags = #{record.tags,jdbcType=VARCHAR},
|
||||||
demand_id = #{record.demandId,jdbcType=VARCHAR},
|
demand_id = #{record.demandId,jdbcType=VARCHAR},
|
||||||
|
@ -673,9 +661,6 @@
|
||||||
<if test="num != null">
|
<if test="num != null">
|
||||||
num = #{num,jdbcType=INTEGER},
|
num = #{num,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="otherTestName != null">
|
|
||||||
other_test_name = #{otherTestName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="reviewStatus != null">
|
<if test="reviewStatus != null">
|
||||||
review_status = #{reviewStatus,jdbcType=VARCHAR},
|
review_status = #{reviewStatus,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
@ -763,7 +748,6 @@
|
||||||
update_time = #{updateTime,jdbcType=BIGINT},
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
sort = #{sort,jdbcType=INTEGER},
|
sort = #{sort,jdbcType=INTEGER},
|
||||||
num = #{num,jdbcType=INTEGER},
|
num = #{num,jdbcType=INTEGER},
|
||||||
other_test_name = #{otherTestName,jdbcType=VARCHAR},
|
|
||||||
review_status = #{reviewStatus,jdbcType=VARCHAR},
|
review_status = #{reviewStatus,jdbcType=VARCHAR},
|
||||||
tags = #{tags,jdbcType=VARCHAR},
|
tags = #{tags,jdbcType=VARCHAR},
|
||||||
demand_id = #{demandId,jdbcType=VARCHAR},
|
demand_id = #{demandId,jdbcType=VARCHAR},
|
||||||
|
@ -804,7 +788,6 @@
|
||||||
update_time = #{updateTime,jdbcType=BIGINT},
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
sort = #{sort,jdbcType=INTEGER},
|
sort = #{sort,jdbcType=INTEGER},
|
||||||
num = #{num,jdbcType=INTEGER},
|
num = #{num,jdbcType=INTEGER},
|
||||||
other_test_name = #{otherTestName,jdbcType=VARCHAR},
|
|
||||||
review_status = #{reviewStatus,jdbcType=VARCHAR},
|
review_status = #{reviewStatus,jdbcType=VARCHAR},
|
||||||
tags = #{tags,jdbcType=VARCHAR},
|
tags = #{tags,jdbcType=VARCHAR},
|
||||||
demand_id = #{demandId,jdbcType=VARCHAR},
|
demand_id = #{demandId,jdbcType=VARCHAR},
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
<result column="description" jdbcType="VARCHAR" property="description" />
|
<result column="description" jdbcType="VARCHAR" property="description" />
|
||||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||||
<result column="stage" jdbcType="VARCHAR" property="stage" />
|
<result column="stage" jdbcType="VARCHAR" property="stage" />
|
||||||
<result column="test_case_match_rule" jdbcType="VARCHAR" property="testCaseMatchRule" />
|
|
||||||
<result column="executor_match_rule" jdbcType="VARCHAR" property="executorMatchRule" />
|
|
||||||
<result column="create_time" jdbcType="BIGINT" property="createTime" />
|
<result column="create_time" jdbcType="BIGINT" property="createTime" />
|
||||||
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
|
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
|
||||||
<result column="planned_start_time" jdbcType="BIGINT" property="plannedStartTime" />
|
<result column="planned_start_time" jdbcType="BIGINT" property="plannedStartTime" />
|
||||||
|
@ -88,10 +86,9 @@
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id, workspace_id, report_id, `name`, description, `status`, stage, test_case_match_rule,
|
id, workspace_id, report_id, `name`, description, `status`, stage, create_time, update_time,
|
||||||
executor_match_rule, create_time, update_time, planned_start_time, planned_end_time,
|
planned_start_time, planned_end_time, actual_start_time, actual_end_time, creator,
|
||||||
actual_start_time, actual_end_time, creator, project_id, execution_times, automatic_status_update,
|
project_id, execution_times, automatic_status_update, repeat_case
|
||||||
repeat_case
|
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Blob_Column_List">
|
<sql id="Blob_Column_List">
|
||||||
tags, report_summary, report_config, run_mode_config
|
tags, report_summary, report_config, run_mode_config
|
||||||
|
@ -147,22 +144,20 @@
|
||||||
<insert id="insert" parameterType="io.metersphere.base.domain.TestPlanWithBLOBs">
|
<insert id="insert" parameterType="io.metersphere.base.domain.TestPlanWithBLOBs">
|
||||||
insert into test_plan (id, workspace_id, report_id,
|
insert into test_plan (id, workspace_id, report_id,
|
||||||
`name`, description, `status`,
|
`name`, description, `status`,
|
||||||
stage, test_case_match_rule, executor_match_rule,
|
stage, create_time, update_time,
|
||||||
create_time, update_time, planned_start_time,
|
planned_start_time, planned_end_time, actual_start_time,
|
||||||
planned_end_time, actual_start_time, actual_end_time,
|
actual_end_time, creator, project_id,
|
||||||
creator, project_id, execution_times,
|
execution_times, automatic_status_update, repeat_case,
|
||||||
automatic_status_update, repeat_case, tags,
|
tags, report_summary, report_config,
|
||||||
report_summary, report_config, run_mode_config
|
run_mode_config)
|
||||||
)
|
|
||||||
values (#{id,jdbcType=VARCHAR}, #{workspaceId,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR},
|
values (#{id,jdbcType=VARCHAR}, #{workspaceId,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR},
|
||||||
#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
#{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
||||||
#{stage,jdbcType=VARCHAR}, #{testCaseMatchRule,jdbcType=VARCHAR}, #{executorMatchRule,jdbcType=VARCHAR},
|
#{stage,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
|
||||||
#{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT}, #{plannedStartTime,jdbcType=BIGINT},
|
#{plannedStartTime,jdbcType=BIGINT}, #{plannedEndTime,jdbcType=BIGINT}, #{actualStartTime,jdbcType=BIGINT},
|
||||||
#{plannedEndTime,jdbcType=BIGINT}, #{actualStartTime,jdbcType=BIGINT}, #{actualEndTime,jdbcType=BIGINT},
|
#{actualEndTime,jdbcType=BIGINT}, #{creator,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
|
||||||
#{creator,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{executionTimes,jdbcType=INTEGER},
|
#{executionTimes,jdbcType=INTEGER}, #{automaticStatusUpdate,jdbcType=BIT}, #{repeatCase,jdbcType=BIT},
|
||||||
#{automaticStatusUpdate,jdbcType=BIT}, #{repeatCase,jdbcType=BIT}, #{tags,jdbcType=LONGVARCHAR},
|
#{tags,jdbcType=LONGVARCHAR}, #{reportSummary,jdbcType=LONGVARCHAR}, #{reportConfig,jdbcType=LONGVARCHAR},
|
||||||
#{reportSummary,jdbcType=LONGVARCHAR}, #{reportConfig,jdbcType=LONGVARCHAR}, #{runModeConfig,jdbcType=LONGVARCHAR}
|
#{runModeConfig,jdbcType=LONGVARCHAR})
|
||||||
)
|
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="io.metersphere.base.domain.TestPlanWithBLOBs">
|
<insert id="insertSelective" parameterType="io.metersphere.base.domain.TestPlanWithBLOBs">
|
||||||
insert into test_plan
|
insert into test_plan
|
||||||
|
@ -188,12 +183,6 @@
|
||||||
<if test="stage != null">
|
<if test="stage != null">
|
||||||
stage,
|
stage,
|
||||||
</if>
|
</if>
|
||||||
<if test="testCaseMatchRule != null">
|
|
||||||
test_case_match_rule,
|
|
||||||
</if>
|
|
||||||
<if test="executorMatchRule != null">
|
|
||||||
executor_match_rule,
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
create_time,
|
create_time,
|
||||||
</if>
|
</if>
|
||||||
|
@ -262,12 +251,6 @@
|
||||||
<if test="stage != null">
|
<if test="stage != null">
|
||||||
#{stage,jdbcType=VARCHAR},
|
#{stage,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="testCaseMatchRule != null">
|
|
||||||
#{testCaseMatchRule,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="executorMatchRule != null">
|
|
||||||
#{executorMatchRule,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
#{createTime,jdbcType=BIGINT},
|
#{createTime,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
|
@ -345,12 +328,6 @@
|
||||||
<if test="record.stage != null">
|
<if test="record.stage != null">
|
||||||
stage = #{record.stage,jdbcType=VARCHAR},
|
stage = #{record.stage,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="record.testCaseMatchRule != null">
|
|
||||||
test_case_match_rule = #{record.testCaseMatchRule,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.executorMatchRule != null">
|
|
||||||
executor_match_rule = #{record.executorMatchRule,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.createTime != null">
|
<if test="record.createTime != null">
|
||||||
create_time = #{record.createTime,jdbcType=BIGINT},
|
create_time = #{record.createTime,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
|
@ -410,8 +387,6 @@
|
||||||
description = #{record.description,jdbcType=VARCHAR},
|
description = #{record.description,jdbcType=VARCHAR},
|
||||||
`status` = #{record.status,jdbcType=VARCHAR},
|
`status` = #{record.status,jdbcType=VARCHAR},
|
||||||
stage = #{record.stage,jdbcType=VARCHAR},
|
stage = #{record.stage,jdbcType=VARCHAR},
|
||||||
test_case_match_rule = #{record.testCaseMatchRule,jdbcType=VARCHAR},
|
|
||||||
executor_match_rule = #{record.executorMatchRule,jdbcType=VARCHAR},
|
|
||||||
create_time = #{record.createTime,jdbcType=BIGINT},
|
create_time = #{record.createTime,jdbcType=BIGINT},
|
||||||
update_time = #{record.updateTime,jdbcType=BIGINT},
|
update_time = #{record.updateTime,jdbcType=BIGINT},
|
||||||
planned_start_time = #{record.plannedStartTime,jdbcType=BIGINT},
|
planned_start_time = #{record.plannedStartTime,jdbcType=BIGINT},
|
||||||
|
@ -440,8 +415,6 @@
|
||||||
description = #{record.description,jdbcType=VARCHAR},
|
description = #{record.description,jdbcType=VARCHAR},
|
||||||
`status` = #{record.status,jdbcType=VARCHAR},
|
`status` = #{record.status,jdbcType=VARCHAR},
|
||||||
stage = #{record.stage,jdbcType=VARCHAR},
|
stage = #{record.stage,jdbcType=VARCHAR},
|
||||||
test_case_match_rule = #{record.testCaseMatchRule,jdbcType=VARCHAR},
|
|
||||||
executor_match_rule = #{record.executorMatchRule,jdbcType=VARCHAR},
|
|
||||||
create_time = #{record.createTime,jdbcType=BIGINT},
|
create_time = #{record.createTime,jdbcType=BIGINT},
|
||||||
update_time = #{record.updateTime,jdbcType=BIGINT},
|
update_time = #{record.updateTime,jdbcType=BIGINT},
|
||||||
planned_start_time = #{record.plannedStartTime,jdbcType=BIGINT},
|
planned_start_time = #{record.plannedStartTime,jdbcType=BIGINT},
|
||||||
|
@ -478,12 +451,6 @@
|
||||||
<if test="stage != null">
|
<if test="stage != null">
|
||||||
stage = #{stage,jdbcType=VARCHAR},
|
stage = #{stage,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="testCaseMatchRule != null">
|
|
||||||
test_case_match_rule = #{testCaseMatchRule,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="executorMatchRule != null">
|
|
||||||
executor_match_rule = #{executorMatchRule,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
create_time = #{createTime,jdbcType=BIGINT},
|
create_time = #{createTime,jdbcType=BIGINT},
|
||||||
</if>
|
</if>
|
||||||
|
@ -540,8 +507,6 @@
|
||||||
description = #{description,jdbcType=VARCHAR},
|
description = #{description,jdbcType=VARCHAR},
|
||||||
`status` = #{status,jdbcType=VARCHAR},
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
stage = #{stage,jdbcType=VARCHAR},
|
stage = #{stage,jdbcType=VARCHAR},
|
||||||
test_case_match_rule = #{testCaseMatchRule,jdbcType=VARCHAR},
|
|
||||||
executor_match_rule = #{executorMatchRule,jdbcType=VARCHAR},
|
|
||||||
create_time = #{createTime,jdbcType=BIGINT},
|
create_time = #{createTime,jdbcType=BIGINT},
|
||||||
update_time = #{updateTime,jdbcType=BIGINT},
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
planned_start_time = #{plannedStartTime,jdbcType=BIGINT},
|
planned_start_time = #{plannedStartTime,jdbcType=BIGINT},
|
||||||
|
@ -567,8 +532,6 @@
|
||||||
description = #{description,jdbcType=VARCHAR},
|
description = #{description,jdbcType=VARCHAR},
|
||||||
`status` = #{status,jdbcType=VARCHAR},
|
`status` = #{status,jdbcType=VARCHAR},
|
||||||
stage = #{stage,jdbcType=VARCHAR},
|
stage = #{stage,jdbcType=VARCHAR},
|
||||||
test_case_match_rule = #{testCaseMatchRule,jdbcType=VARCHAR},
|
|
||||||
executor_match_rule = #{executorMatchRule,jdbcType=VARCHAR},
|
|
||||||
create_time = #{createTime,jdbcType=BIGINT},
|
create_time = #{createTime,jdbcType=BIGINT},
|
||||||
update_time = #{updateTime,jdbcType=BIGINT},
|
update_time = #{updateTime,jdbcType=BIGINT},
|
||||||
planned_start_time = #{plannedStartTime,jdbcType=BIGINT},
|
planned_start_time = #{plannedStartTime,jdbcType=BIGINT},
|
||||||
|
|
|
@ -262,7 +262,7 @@
|
||||||
test_case.id, test_case.node_id, test_case.node_path, test_case.project_id, test_case.`name`,
|
test_case.id, test_case.node_id, test_case.node_path, test_case.project_id, test_case.`name`,
|
||||||
test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`,
|
test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`,
|
||||||
test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num,
|
test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num,
|
||||||
test_case.other_test_name, test_case.review_status, test_case.tags,
|
test_case.review_status, test_case.tags,
|
||||||
test_case.demand_id, test_case.demand_name, test_case.`status`,
|
test_case.demand_id, test_case.demand_name, test_case.`status`,
|
||||||
test_case.custom_num, test_case.step_model, test_case.create_user,
|
test_case.custom_num, test_case.step_model, test_case.create_user,
|
||||||
test_case.ref_id
|
test_case.ref_id
|
||||||
|
@ -286,7 +286,7 @@
|
||||||
test_case.version_id,
|
test_case.version_id,
|
||||||
test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`,
|
test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`,
|
||||||
test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num,
|
test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num,
|
||||||
test_case.other_test_name, test_case.review_status, test_case.tags,
|
test_case.review_status, test_case.tags,
|
||||||
test_case.demand_id, test_case.demand_name, test_case.`status`,
|
test_case.demand_id, test_case.demand_name, test_case.`status`,
|
||||||
test_case.custom_num, test_case.step_model, test_case.create_user,
|
test_case.custom_num, test_case.step_model, test_case.create_user,
|
||||||
test_case.custom_fields,test_case.case_public ,
|
test_case.custom_fields,test_case.case_public ,
|
||||||
|
@ -425,7 +425,7 @@
|
||||||
test_case.id, test_case.node_id, test_case.node_path, test_case.project_id, test_case.`name`,
|
test_case.id, test_case.node_id, test_case.node_path, test_case.project_id, test_case.`name`,
|
||||||
test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`,
|
test_case.`type`, test_case.maintainer, test_case.priority, test_case.`method`,
|
||||||
test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num,
|
test_case.create_time, test_case.update_time, test_case.test_id, test_case.sort, test_case.num,
|
||||||
test_case.other_test_name, test_case.review_status, test_case.tags,
|
test_case.review_status, test_case.tags,
|
||||||
test_case.demand_id, test_case.demand_name, test_case.`status`,
|
test_case.demand_id, test_case.demand_name, test_case.`status`,
|
||||||
test_case.custom_num, test_case.step_model, test_case.create_user,
|
test_case.custom_num, test_case.step_model, test_case.create_user,
|
||||||
test_case.custom_fields,test_case.case_public,test_case.ref_id ,test_case.`order`
|
test_case.custom_fields,test_case.case_public,test_case.ref_id ,test_case.`order`
|
||||||
|
@ -1264,9 +1264,6 @@
|
||||||
<if test="record.num != null">
|
<if test="record.num != null">
|
||||||
num = #{record.num,jdbcType=INTEGER},
|
num = #{record.num,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="record.otherTestName != null">
|
|
||||||
other_test_name = #{record.otherTestName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.reviewStatus != null">
|
<if test="record.reviewStatus != null">
|
||||||
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
review_status = #{record.reviewStatus,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
|
|
@ -19,7 +19,6 @@ public class TestCaseReference {
|
||||||
testCaseColumns.put("remark", "备注");
|
testCaseColumns.put("remark", "备注");
|
||||||
testCaseColumns.put("customNum", "ID");
|
testCaseColumns.put("customNum", "ID");
|
||||||
testCaseColumns.put("steps", "用例步骤");
|
testCaseColumns.put("steps", "用例步骤");
|
||||||
testCaseColumns.put("other_test_name", "其他名称");
|
|
||||||
testCaseColumns.put("review_status", "评审状态");
|
testCaseColumns.put("review_status", "评审状态");
|
||||||
testCaseColumns.put("tags", "标签");
|
testCaseColumns.put("tags", "标签");
|
||||||
testCaseColumns.put("demand_name", "需求名称");
|
testCaseColumns.put("demand_name", "需求名称");
|
||||||
|
@ -33,4 +32,4 @@ public class TestCaseReference {
|
||||||
testCaseColumns.put("ms-dff-col", "tags,steps");
|
testCaseColumns.put("ms-dff-col", "tags,steps");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,3 +62,9 @@ ALTER TABLE `api_scenario_report`
|
||||||
ADD INDEX index_relevance_test_plan_report_id (`relevance_test_plan_report_id`);
|
ADD INDEX index_relevance_test_plan_report_id (`relevance_test_plan_report_id`);
|
||||||
ALTER TABLE `load_test_report`
|
ALTER TABLE `load_test_report`
|
||||||
ADD INDEX index_relevance_test_plan_report_id (`relevance_test_plan_report_id`);
|
ADD INDEX index_relevance_test_plan_report_id (`relevance_test_plan_report_id`);
|
||||||
|
|
||||||
|
-- V129__2-1-0_drop_useless_column
|
||||||
|
--
|
||||||
|
ALTER TABLE test_case DROP COLUMN other_test_name;
|
||||||
|
ALTER TABLE test_plan DROP COLUMN test_case_match_rule;
|
||||||
|
ALTER TABLE test_plan DROP COLUMN executor_match_rule;
|
||||||
|
|
|
@ -130,10 +130,6 @@ export default {
|
||||||
label:this.$t('test_track.case.number'),
|
label:this.$t('test_track.case.number'),
|
||||||
value:'num',
|
value:'num',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label:this.$t('test_track.other_test_name'),
|
|
||||||
value:'otherTestName',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label:this.$t('test_track.review.review_status'),
|
label:this.$t('test_track.review.review_status'),
|
||||||
value:'reviewStatus',
|
value:'reviewStatus',
|
||||||
|
|
|
@ -53,7 +53,6 @@
|
||||||
:version-enable="versionEnable"
|
:version-enable="versionEnable"
|
||||||
@testCaseEdit="editTestCase"
|
@testCaseEdit="editTestCase"
|
||||||
@testCaseCopy="copyTestCase"
|
@testCaseCopy="copyTestCase"
|
||||||
@testCaseDetail="showTestCaseDetail"
|
|
||||||
@getTrashList="getTrashList"
|
@getTrashList="getTrashList"
|
||||||
@getPublicList="getPublicList"
|
@getPublicList="getPublicList"
|
||||||
@refresh="refreshTrashNode"
|
@refresh="refreshTrashNode"
|
||||||
|
@ -77,7 +76,6 @@
|
||||||
@testCaseEdit="editTestCase"
|
@testCaseEdit="editTestCase"
|
||||||
@testCaseEditShow="editTestCaseShow"
|
@testCaseEditShow="editTestCaseShow"
|
||||||
@testCaseCopy="copyTestCase"
|
@testCaseCopy="copyTestCase"
|
||||||
@testCaseDetail="showTestCaseDetail"
|
|
||||||
@getTrashList="getTrashList"
|
@getTrashList="getTrashList"
|
||||||
@getPublicList="getPublicList"
|
@getPublicList="getPublicList"
|
||||||
@refresh="refresh"
|
@refresh="refresh"
|
||||||
|
@ -112,7 +110,6 @@
|
||||||
@refreshTable="refresh"
|
@refreshTable="refresh"
|
||||||
@testCaseEdit="editTestCase"
|
@testCaseEdit="editTestCase"
|
||||||
@testCaseCopy="copyTestCase"
|
@testCaseCopy="copyTestCase"
|
||||||
@testCaseDetail="showTestCaseDetail"
|
|
||||||
@getTrashList="getTrashList"
|
@getTrashList="getTrashList"
|
||||||
@getPublicList="getPublicList"
|
@getPublicList="getPublicList"
|
||||||
@refresh="refresh"
|
@refresh="refresh"
|
||||||
|
@ -689,9 +686,6 @@ export default {
|
||||||
testCase.isCopy = true;
|
testCase.isCopy = true;
|
||||||
this.addTab({name: 'edit', testCaseInfo: testCase});
|
this.addTab({name: 'edit', testCaseInfo: testCase});
|
||||||
},
|
},
|
||||||
showTestCaseDetail(testCase) {
|
|
||||||
this.testCaseReadOnly = true;
|
|
||||||
},
|
|
||||||
refresh(data) {
|
refresh(data) {
|
||||||
if (this.selectNodeIds && this.selectNodeIds.length > 0) {
|
if (this.selectNodeIds && this.selectNodeIds.length > 0) {
|
||||||
this.$store.commit('setTestCaseSelectNode', {});
|
this.$store.commit('setTestCaseSelectNode', {});
|
||||||
|
|
|
@ -1,234 +0,0 @@
|
||||||
<template>
|
|
||||||
<el-row :gutter="5">
|
|
||||||
<el-col :span="15">
|
|
||||||
<el-card class="case-detail-form-card">
|
|
||||||
<el-form :model="form" ref="caseFrom" v-loading="result.loading">
|
|
||||||
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="10" :offset="1">
|
|
||||||
<el-form-item
|
|
||||||
:placeholder="$t('test_track.case.input_name')"
|
|
||||||
:label="$t('test_track.case.name')"
|
|
||||||
:label-width="formLabelWidth"
|
|
||||||
prop="name">
|
|
||||||
<el-input :disabled="readOnly" v-model="testCase.name"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item :label="$t('test_track.case.module')" :label-width="formLabelWidth" prop="module">
|
|
||||||
<el-input :disabled="readOnly" v-model="testCase.nodePath"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="10" :offset="1">
|
|
||||||
<el-form-item :label="$t('test_track.case.maintainer')" :label-width="formLabelWidth" prop="maintainer">
|
|
||||||
<el-select :disabled="readOnly" v-model="testCase.maintainer"
|
|
||||||
:placeholder="$t('test_track.case.input_maintainer')" filterable>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item :label="$t('test_track.case.priority')" :label-width="formLabelWidth" prop="priority">
|
|
||||||
<el-select :disabled="readOnly" v-model="testCase.priority" clearable
|
|
||||||
:placeholder="$t('test_track.case.input_priority')">
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="10" :offset="1">
|
|
||||||
<el-form-item :label="$t('test_track.case.type')" :label-width="formLabelWidth" prop="type">
|
|
||||||
<el-select :disabled="readOnly" v-model="testCase.type"
|
|
||||||
:placeholder="$t('test_track.case.input_type')">
|
|
||||||
<el-option :label="$t('commons.functional')" value="functional"></el-option>
|
|
||||||
<el-option :label="$t('commons.performance')" value="performance"></el-option>
|
|
||||||
<el-option :label="$t('commons.api')" value="api"></el-option>
|
|
||||||
</el-select>
|
|
||||||
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item :label="$t('test_track.case.method')" :label-width="formLabelWidth" prop="method">
|
|
||||||
<el-select :disabled="readOnly" v-model="testCase.method" :placeholder="$t('test_track.case.input_method')">
|
|
||||||
<el-option :label="$t('test_track.case.auto')" value="auto"></el-option>
|
|
||||||
<el-option :label="$t('test_track.case.manual')" value="manual"></el-option>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row v-if="testCase.method && testCase.method == 'auto'">
|
|
||||||
<el-col :span="10" :offset="1">
|
|
||||||
<el-form-item :label="$t('test_track.case.relate_test')" :label-width="formLabelWidth" prop="testId">
|
|
||||||
<el-select filterable :disabled="readOnly" v-model="testCase.testId"
|
|
||||||
:placeholder="$t('test_track.case.input_type')">
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12" v-if="testCase.testId=='other'">
|
|
||||||
<el-form-item :label="$t('test_track.case.test_name')" :label-width="formLabelWidth" prop="testId">
|
|
||||||
<el-input v-model="testCase.otherTestName" :placeholder="$t('test_track.case.input_test_case')"
|
|
||||||
:disabled="readOnly"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row style="margin-top: 15px;">
|
|
||||||
<el-col :offset="1">{{ $t('test_track.case.prerequisite') }}:</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row type="flex" justify="center" style="margin-top: 10px;">
|
|
||||||
<el-col :span="22">
|
|
||||||
<el-form-item prop="prerequisite">
|
|
||||||
<el-input :disabled="readOnly" v-model="testCase.prerequisite"
|
|
||||||
type="textarea"
|
|
||||||
:autosize="{ minRows: 2, maxRows: 4}"
|
|
||||||
:rows="2"
|
|
||||||
:placeholder="$t('test_track.case.input_prerequisite')"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row v-if="testCase.method && testCase.method != 'auto'" style="margin-bottom: 10px">
|
|
||||||
<el-col :offset="1">{{ $t('test_track.case.steps') }}:</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row v-if="testCase.method && testCase.method != 'auto'" type="flex" justify="center">
|
|
||||||
<el-col :span="22">
|
|
||||||
<el-table
|
|
||||||
v-if="isStepTableAlive"
|
|
||||||
:data="JSON.parse(testCase.steps)"
|
|
||||||
class="tb-edit"
|
|
||||||
border
|
|
||||||
size="mini"
|
|
||||||
:default-sort="{prop: 'num', order: 'ascending'}"
|
|
||||||
highlight-current-row>
|
|
||||||
<el-table-column :label="$t('test_track.case.number')" prop="num" min-width="15%"></el-table-column>
|
|
||||||
<el-table-column :label="$t('test_track.case.step_desc')" prop="desc" min-width="35%">
|
|
||||||
<template v-slot:default="scope">
|
|
||||||
<el-input
|
|
||||||
class="table-edit-input"
|
|
||||||
size="mini"
|
|
||||||
:disabled="readOnly"
|
|
||||||
type="textarea"
|
|
||||||
:autosize="{ minRows: 1, maxRows: 6}"
|
|
||||||
:rows="2"
|
|
||||||
v-model="scope.row.desc"
|
|
||||||
:placeholder="$t('commons.input_content')"
|
|
||||||
clearable/>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column :label="$t('test_track.case.expected_results')" prop="result" min-width="35%">
|
|
||||||
<template v-slot:default="scope">
|
|
||||||
<el-input
|
|
||||||
class="table-edit-input"
|
|
||||||
size="mini"
|
|
||||||
:disabled="readOnly"
|
|
||||||
type="textarea"
|
|
||||||
:autosize="{ minRows: 1, maxRows: 6}"
|
|
||||||
:rows="2"
|
|
||||||
v-model="scope.row.result"
|
|
||||||
:placeholder="$t('commons.input_content')"
|
|
||||||
clearable/>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
<el-row style="margin-top: 15px;margin-bottom: 10px">
|
|
||||||
<el-col :offset="1">{{ $t('commons.remark') }}:</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row type="flex" justify="center">
|
|
||||||
<el-col :span="22">
|
|
||||||
<el-form-item prop="remark">
|
|
||||||
<el-input v-model="testCase.remark"
|
|
||||||
:autosize="{ minRows: 2, maxRows: 4}"
|
|
||||||
type="textarea"
|
|
||||||
:disabled="readOnly"
|
|
||||||
:rows="2"
|
|
||||||
:placeholder="$t('commons.input_content')"></el-input>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
</el-card>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="9">
|
|
||||||
<case-comment :case-id="testCaseId" :read-only="true" class="case-detail-comment"/>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
import CaseComment from "@/business/components/track/case/components/CaseComment";
|
|
||||||
export default {
|
|
||||||
name: "TestCaseDetail",
|
|
||||||
components: {CaseComment},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
result: {},
|
|
||||||
testCase: {},
|
|
||||||
dialogFormVisible: false,
|
|
||||||
readOnly: true,
|
|
||||||
form: {
|
|
||||||
name: '',
|
|
||||||
module: '',
|
|
||||||
maintainer: '',
|
|
||||||
priority: '',
|
|
||||||
type: '',
|
|
||||||
method: '',
|
|
||||||
prerequisite: '',
|
|
||||||
testId: '',
|
|
||||||
otherTestName: '',
|
|
||||||
steps: [{
|
|
||||||
num: 1,
|
|
||||||
desc: '',
|
|
||||||
result: ''
|
|
||||||
}],
|
|
||||||
remark: '',
|
|
||||||
},
|
|
||||||
workspaceId: '',
|
|
||||||
formLabelWidth: "80px",
|
|
||||||
|
|
||||||
isStepTableAlive: true,
|
|
||||||
methodOptions: [
|
|
||||||
{value: 'auto', label: this.$t('test_track.case.auto')},
|
|
||||||
{value: 'manual', label: this.$t('test_track.case.manual')}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
},
|
|
||||||
mounted() {
|
|
||||||
this.$get('test/case/get/' + this.testCaseId, response => {
|
|
||||||
this.testCase = response.data;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {},
|
|
||||||
props: {
|
|
||||||
testCaseId: {
|
|
||||||
type: String
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.case-detail-form-card {
|
|
||||||
height: 600px;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.case-detail-form-card >>> .el-card__body {
|
|
||||||
padding: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.case-detail-comment {
|
|
||||||
min-width: 320px;
|
|
||||||
height: 600px;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -235,7 +235,6 @@ export default {
|
||||||
method: '',
|
method: '',
|
||||||
prerequisite: '',
|
prerequisite: '',
|
||||||
testId: '',
|
testId: '',
|
||||||
otherTestName: '',
|
|
||||||
steps: [{
|
steps: [{
|
||||||
num: 1,
|
num: 1,
|
||||||
desc: '',
|
desc: '',
|
||||||
|
|
|
@ -236,7 +236,6 @@ import {TEST_CASE_CONFIGS} from "../../../common/components/search/search-compon
|
||||||
import BatchEdit from "./BatchEdit";
|
import BatchEdit from "./BatchEdit";
|
||||||
import {TEST_CASE_LIST} from "@/common/js/constants";
|
import {TEST_CASE_LIST} from "@/common/js/constants";
|
||||||
import StatusTableItem from "@/business/components/track/common/tableItems/planview/StatusTableItem";
|
import StatusTableItem from "@/business/components/track/common/tableItems/planview/StatusTableItem";
|
||||||
import TestCaseDetail from "./TestCaseDetail";
|
|
||||||
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
|
import ReviewStatus from "@/business/components/track/case/components/ReviewStatus";
|
||||||
import MsTag from "@/business/components/common/components/MsTag";
|
import MsTag from "@/business/components/common/components/MsTag";
|
||||||
import ApiStatus from "@/business/components/api/definition/components/list/ApiStatus.vue";
|
import ApiStatus from "@/business/components/api/definition/components/list/ApiStatus.vue";
|
||||||
|
@ -317,7 +316,6 @@ export default {
|
||||||
MsTableHeader,
|
MsTableHeader,
|
||||||
BatchEdit,
|
BatchEdit,
|
||||||
StatusTableItem,
|
StatusTableItem,
|
||||||
TestCaseDetail,
|
|
||||||
ReviewStatus,
|
ReviewStatus,
|
||||||
MsTag, ApiStatus,
|
MsTag, ApiStatus,
|
||||||
"relationshipGraphDrawer": relationshipGraphDrawer.default,
|
"relationshipGraphDrawer": relationshipGraphDrawer.default,
|
||||||
|
@ -1011,9 +1009,6 @@ export default {
|
||||||
this.$refs.table.clear();
|
this.$refs.table.clear();
|
||||||
this.$emit('refreshAll');
|
this.$emit('refreshAll');
|
||||||
},
|
},
|
||||||
showDetail(row, event, column) {
|
|
||||||
this.$emit('testCaseDetail', row);
|
|
||||||
},
|
|
||||||
importTestCase() {
|
importTestCase() {
|
||||||
if (!this.projectId) {
|
if (!this.projectId) {
|
||||||
this.$warning(this.$t('commons.check_project_tip'));
|
this.$warning(this.$t('commons.check_project_tip'));
|
||||||
|
|
|
@ -2079,7 +2079,6 @@ export default {
|
||||||
ui_scenario_test_case: "UI Scenario Case",
|
ui_scenario_test_case: "UI Scenario Case",
|
||||||
report_statistics: "Report Statistics",
|
report_statistics: "Report Statistics",
|
||||||
sort: 'Sort',
|
sort: 'Sort',
|
||||||
other_test_name: 'Other Test Name',
|
|
||||||
demand: {
|
demand: {
|
||||||
id: 'Demand ID',
|
id: 'Demand ID',
|
||||||
name: 'Demand Name',
|
name: 'Demand Name',
|
||||||
|
|
|
@ -2087,7 +2087,6 @@ export default {
|
||||||
ui_scenario_test_case: "UI 测试用例",
|
ui_scenario_test_case: "UI 测试用例",
|
||||||
report_statistics: "报告统计",
|
report_statistics: "报告统计",
|
||||||
sort: '种类',
|
sort: '种类',
|
||||||
other_test_name: '其他测试名称',
|
|
||||||
automatic_status_update: "自动状态更新",
|
automatic_status_update: "自动状态更新",
|
||||||
case: {
|
case: {
|
||||||
list: "列表",
|
list: "列表",
|
||||||
|
|
|
@ -2084,7 +2084,6 @@ export default {
|
||||||
ui_scenario_test_case: "UI 測試用例",
|
ui_scenario_test_case: "UI 測試用例",
|
||||||
report_statistics: "報告統計",
|
report_statistics: "報告統計",
|
||||||
sort: '種類',
|
sort: '種類',
|
||||||
other_test_name: '其他測試名稱',
|
|
||||||
automatic_status_update: "自動狀態更新",
|
automatic_status_update: "自動狀態更新",
|
||||||
case: {
|
case: {
|
||||||
list: "列表",
|
list: "列表",
|
||||||
|
|
Loading…
Reference in New Issue