Commit c4efb1d9 by 左磊磊

add:RAYS7服务接口自动化代码新增休眠时间20230720

parent 9b030f1a
...@@ -47,6 +47,7 @@ public class ServerCase extends BaseCase { ...@@ -47,6 +47,7 @@ public class ServerCase extends BaseCase {
System.out.println("A-sql: " + cas.getCheckSQL()); System.out.println("A-sql: " + cas.getCheckSQL());
Object afterASqlResult = SqlUtils.querySingle(cas.getCheckSQL()); Object afterASqlResult = SqlUtils.querySingle(cas.getCheckSQL());
System.out.println("B-sql: " + cas.getCheckBSQL()); System.out.println("B-sql: " + cas.getCheckBSQL());
Thread.sleep(1000 * 60);
Object afterBSqlResult = SqlUtils.querySingle(cas.getCheckBSQL()); Object afterBSqlResult = SqlUtils.querySingle(cas.getCheckBSQL());
//7-1、A段数据库断言 //7-1、A段数据库断言
boolean sqlAFlag = assertSql(cas.getaExpectValue(), beforeASqlResult == null ? null : beforeASqlResult.toString(), afterASqlResult == null ? null : afterASqlResult.toString()); boolean sqlAFlag = assertSql(cas.getaExpectValue(), beforeASqlResult == null ? null : beforeASqlResult.toString(), afterASqlResult == null ? null : afterASqlResult.toString());
......
...@@ -145,7 +145,7 @@ public class ExcelUtils { ...@@ -145,7 +145,7 @@ public class ExcelUtils {
String replacesql = aCase.getCheckSQL().replace(params, parameter.getData()); String replacesql = aCase.getCheckSQL().replace(params, parameter.getData());
aCase.setCheckSQL(replacesql); // 替换到A段校验sql中 aCase.setCheckSQL(replacesql); // 替换到A段校验sql中
} }
if (aCase.getCheckSQL() != null && aCase.getCheckBSQL().contains(parameter.getParams())) { if (aCase.getCheckBSQL() != null && aCase.getCheckBSQL().contains(parameter.getParams())) {
String params = parameter.getParams(); String params = parameter.getParams();
String replacebsql = aCase.getCheckBSQL().replace(params, parameter.getData()); String replacebsql = aCase.getCheckBSQL().replace(params, parameter.getData());
aCase.setCheckBSQL(replacebsql); // 替换到B段校验sql中 aCase.setCheckBSQL(replacebsql); // 替换到B段校验sql中
......
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