[CMLR-090] 核心链路端到端回归
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package vvpkassistant.e2e;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
class CoreFlowRegressionCaseCatalogTests {
|
||||
|
||||
private static final List<String> CORE_CASES = Arrays.asList(
|
||||
"/pk/pkList condition为空 userId为空",
|
||||
"/pk/pkList condition有值 userId有值",
|
||||
"/pk/pkInfoDetail from=1 可见主播ID",
|
||||
"/pk/pkInfoDetail from=1 隐藏主播ID",
|
||||
"/pk/deletePkDataWithId 置顶中删除失败",
|
||||
"/pk/createPkRecord 首次邀请成功",
|
||||
"/pk/createPkRecord 重复未处理邀请失败",
|
||||
"/user/signIn 首次签到成功",
|
||||
"/user/signIn 当日重复签到失败",
|
||||
"/user/handlePkInfo type=1/type=2 分支查询"
|
||||
);
|
||||
|
||||
private static final List<String> EDGE_CASES = Arrays.asList(
|
||||
"重复邀请并发提交",
|
||||
"重复签到并发提交",
|
||||
"置顶到期边界(临界秒)"
|
||||
);
|
||||
|
||||
@Test
|
||||
void shouldCoverAtLeastTenCoreCases() {
|
||||
Assertions.assertTrue(CORE_CASES.size() >= 10, "核心链路回归用例不足10条");
|
||||
}
|
||||
|
||||
@Test
|
||||
void shouldIncludeConcurrencyAndBoundaryCases() {
|
||||
Assertions.assertTrue(EDGE_CASES.contains("重复邀请并发提交"));
|
||||
Assertions.assertTrue(EDGE_CASES.contains("重复签到并发提交"));
|
||||
Assertions.assertTrue(EDGE_CASES.contains("置顶到期边界(临界秒)"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user