Commit fcbc6fb7 by 左磊磊

24年05月14号11点56分更新:输出用例描述

parent 10dc336b
...@@ -58,8 +58,9 @@ public class BaseCase { ...@@ -58,8 +58,9 @@ 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.getDesc()); log.info("用例编号:" + cas.getId());
log.info("用例描述:" + cas.getDesc());
String url = api.getUrl(); String url = api.getUrl();
String type = api.getMethod(); String type = api.getMethod();
String contentType = api.getContentType(); String contentType = api.getContentType();
...@@ -119,7 +120,7 @@ public class BaseCase { ...@@ -119,7 +120,7 @@ public class BaseCase {
} }
public boolean assertSqlB(String beforeSqlResult,String afterSqlResult) { public boolean assertSqlB(String beforeSqlResult, String afterSqlResult) {
// 判断如果B段SQL执行首次为空,第二次非空 // 判断如果B段SQL执行首次为空,第二次非空
boolean flag = false; boolean flag = false;
if (beforeSqlResult == null && afterSqlResult != null) { if (beforeSqlResult == null && afterSqlResult != null) {
......
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