Commit c39b7f00 by 左磊磊

24年05月14号16点48分更新:新增分割线

parent fcbc6fb7
...@@ -58,7 +58,7 @@ public class BaseCase { ...@@ -58,7 +58,7 @@ public class BaseCase {
*/ */
@Step("接口调用方法") @Step("接口调用方法")
public String call(API api, Case cas, boolean isAuthorization) { public String call(API api, Case cas, boolean isAuthorization) {
log.info("===================接口编号:" + api.getName() + "==================="); log.info("接口编号:" + api.getName());
log.info("用例编号:" + cas.getId()); log.info("用例编号:" + cas.getId());
log.info("用例描述:" + cas.getDesc()); log.info("用例描述:" + cas.getDesc());
String url = api.getUrl(); String url = api.getUrl();
......
...@@ -22,6 +22,7 @@ public class ServerCase extends BaseCase { ...@@ -22,6 +22,7 @@ public class ServerCase extends BaseCase {
@Test(dataProvider = "data1", description = "1A:A段和B段sql完全匹配") // DTO数据传输 @Test(dataProvider = "data1", description = "1A:A段和B段sql完全匹配") // DTO数据传输
@Description("1A:A段和B段sql完全匹配") @Description("1A:A段和B段sql完全匹配")
public void testManager1A(API api, Case cas) throws Exception { public void testManager1A(API api, Case cas) throws Exception {
System.out.println("==================================================接口请求分割线==================================================");
//0、执行前休眠30秒 //0、执行前休眠30秒
Thread.sleep(1000 * 10); Thread.sleep(1000 * 10);
//1、参数化替换 //1、参数化替换
...@@ -75,6 +76,7 @@ public class ServerCase extends BaseCase { ...@@ -75,6 +76,7 @@ public class ServerCase extends BaseCase {
@Test(dataProvider = "data2", description = "2B:B段sql部分匹配") @Test(dataProvider = "data2", description = "2B:B段sql部分匹配")
@Description("2B:B段sql部分匹配") @Description("2B:B段sql部分匹配")
public void testManager2B(API api, Case cas) throws Exception { public void testManager2B(API api, Case cas) throws Exception {
System.out.println("==================================================接口请求分割线==================================================");
Thread.sleep(1000 * 10); Thread.sleep(1000 * 10);
String params = replace(cas.getParams()); String params = replace(cas.getParams());
String Bsql = replace(cas.getCheckBSQL()); String Bsql = replace(cas.getCheckBSQL());
...@@ -110,6 +112,7 @@ public class ServerCase extends BaseCase { ...@@ -110,6 +112,7 @@ public class ServerCase extends BaseCase {
@Test(dataProvider = "data3", description = "3C:A段sql完全匹配") // DTO数据传输 @Test(dataProvider = "data3", description = "3C:A段sql完全匹配") // DTO数据传输
@Description("3C:A段sql完全匹配") @Description("3C:A段sql完全匹配")
public void testManager3C(API api, Case cas) throws Exception { public void testManager3C(API api, Case cas) throws Exception {
System.out.println("==================================================接口请求分割线==================================================");
Thread.sleep(1000 * 10); Thread.sleep(1000 * 10);
String params = replace(cas.getParams()); String params = replace(cas.getParams());
String sql = replace(cas.getCheckSQL()); String sql = replace(cas.getCheckSQL());
...@@ -142,6 +145,7 @@ public class ServerCase extends BaseCase { ...@@ -142,6 +145,7 @@ public class ServerCase extends BaseCase {
@Test(dataProvider = "data4", description = "4D:A段sql完全匹配,B段sql部分匹配") // DTO数据传输 @Test(dataProvider = "data4", description = "4D:A段sql完全匹配,B段sql部分匹配") // DTO数据传输
@Description("4D:A段sql完全匹配,B段sql部分匹配") @Description("4D:A段sql完全匹配,B段sql部分匹配")
public void testManager4D(API api, Case cas) throws Exception { public void testManager4D(API api, Case cas) throws Exception {
System.out.println("==================================================接口请求分割线==================================================");
//0、执行前休眠30秒 //0、执行前休眠30秒
//1、参数化替换 //1、参数化替换
String params = replace(cas.getParams()); String params = replace(cas.getParams());
...@@ -198,6 +202,7 @@ public class ServerCase extends BaseCase { ...@@ -198,6 +202,7 @@ public class ServerCase extends BaseCase {
@Test(dataProvider = "data5", description = "5E:A段sql完全匹配,B段sql部分匹配,适用于作品应用") @Test(dataProvider = "data5", description = "5E:A段sql完全匹配,B段sql部分匹配,适用于作品应用")
@Description("5E:A段sql完全匹配,B段sql部分匹配,适用于作品应用") @Description("5E:A段sql完全匹配,B段sql部分匹配,适用于作品应用")
public void testManager5E(API api, Case cas) throws Exception { public void testManager5E(API api, Case cas) throws Exception {
System.out.println("==================================================接口请求分割线==================================================");
//1、参数化替换 //1、参数化替换
String params = replace(cas.getParams()); String params = replace(cas.getParams());
String sql = replace(cas.getCheckSQL()); String sql = replace(cas.getCheckSQL());
...@@ -249,6 +254,7 @@ public class ServerCase extends BaseCase { ...@@ -249,6 +254,7 @@ public class ServerCase extends BaseCase {
@Test(dataProvider = "data6", description = "6F:B段sql完全匹配") // DTO数据传输 @Test(dataProvider = "data6", description = "6F:B段sql完全匹配") // DTO数据传输
@Description("6F:B段sql完全匹配") @Description("6F:B段sql完全匹配")
public void testManager6F(API api, Case cas) throws Exception { public void testManager6F(API api, Case cas) throws Exception {
System.out.println("==================================================接口请求分割线==================================================");
//0、执行前休眠30秒 //0、执行前休眠30秒
Thread.sleep(1000 * 10); Thread.sleep(1000 * 10);
//1、参数化替换 //1、参数化替换
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment