parent
90ee2946f0
commit
581cd429a1
|
@ -21,6 +21,10 @@ public class QATestItem {
|
|||
* The Id.
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* The Name.
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* The Priority.
|
||||
*/
|
||||
|
|
|
@ -111,8 +111,8 @@ public class JsonTestCaseRun extends CommonRestfulJson implements TestCaseRun {
|
|||
@Test
|
||||
public void runQaJsonTestCase() throws Exception {
|
||||
|
||||
log.info("[{}] Run {} json test: {} {}", rspObject.getPriority(), rspObject.getId(), rspObject.getMethod(),
|
||||
rspObject.getUrlPath());
|
||||
log.info("[{}] Run json test: ({}) [{}] '{}' {} ", rspObject.getPriority(), rspObject.getId(),
|
||||
rspObject.getMethod(), rspObject.getUrlPath(), rspObject.getName());
|
||||
|
||||
if (rspObject.getPrepareCallback() != null) {
|
||||
rspObject.getPrepareCallback().prepareCallback(this);
|
||||
|
|
|
@ -110,9 +110,8 @@ public class ObjectTestCaseRun extends CommonRestful implements TestCaseRun {
|
|||
*/
|
||||
@Test
|
||||
public void runQaObjectTestCase() throws Exception {
|
||||
|
||||
log.info("[{}] Run {} json test: {} {}", rspObject.getPriority(), rspObject.getId(), rspObject.getMethod(),
|
||||
rspObject.getUrlPath());
|
||||
log.info("[{}] Run object test: ({}) [{}] '{}' {} ", rspObject.getPriority(), rspObject.getId(),
|
||||
rspObject.getMethod(), rspObject.getUrlPath(), rspObject.getName());
|
||||
|
||||
if (rspObject.getPrepareCallback() != null) {
|
||||
rspObject.getPrepareCallback().prepareCallback(this);
|
||||
|
|
|
@ -40,6 +40,7 @@ public class P1 {
|
|||
private static final QATestItem[] testItemArray = new QATestItem[]{
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID)
|
||||
.name("登陆")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/auth/login")
|
||||
.method(RequestMethod.POST)
|
||||
|
@ -61,6 +62,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 1)
|
||||
.name("登陆(base64编码格式密文)")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/auth/login")
|
||||
.method(RequestMethod.POST)
|
||||
|
@ -82,6 +84,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 2)
|
||||
.name("未登录用户请求接口")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/manager/device")
|
||||
.method(RequestMethod.PUT)
|
||||
|
@ -106,6 +109,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 3)
|
||||
.name("添加新的能力节点,具备能力清洗和压制")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/manager/device")
|
||||
.method(RequestMethod.PUT)
|
||||
|
@ -137,6 +141,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 4)
|
||||
.name("删除存在的单个能力节点接口")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/manager/device")
|
||||
.method(RequestMethod.DELETE)
|
||||
|
@ -160,6 +165,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 5)
|
||||
.name("更新清洗能力节点信息,添加压制")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/manager/upgrade")
|
||||
.method(RequestMethod.POST)
|
||||
|
@ -222,6 +228,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 6)
|
||||
.name("对一个IP指定攻击类型进行清洗")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/task/start")
|
||||
.method(RequestMethod.POST)
|
||||
|
@ -243,6 +250,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 7)
|
||||
.name("对IPV6指定攻击类型进行清洗")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/task/start")
|
||||
.method(RequestMethod.POST)
|
||||
|
@ -264,6 +272,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 8)
|
||||
.name("停止一个处置任务")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/task/stop")
|
||||
.method(RequestMethod.POST)
|
||||
|
@ -285,6 +294,7 @@ public class P1 {
|
|||
|
||||
QATestItem.builder()
|
||||
.id(BASE_P1_ID + 9)
|
||||
.name("获取第一页10个处置任务信息")
|
||||
.priority(TestPriority.P1_PRIORITY)
|
||||
.urlPath("/task/taskList")
|
||||
.method(RequestMethod.POST)
|
||||
|
|
Loading…
Reference in New Issue