def startTime = context.expand( '${checkAgreement#ResponseAsXml#//Results[1]/ResultSet[1]/Row[1]/FUN_ENTERPRISE_AGREEMENTS.START_TIME[1]}' )
def endTime = context.expand( '${checkAgreement#ResponseAsXml#//Results[1]/ResultSet[1]/Row[1]/FUN_ENTERPRISE_AGREEMENTS.END_TIME[1]}' )
//截取時間字符串的前10位
def a = startTime.substring(0,10)
def b = endTime.substring(0,10)
//log.info a
//獲取協議列表的開始和結束時間
def startTime1 = context.expand( '${DataSource#startTime}' )
def endTime1 = context.expand( '${DataSource#endTime}' )
//轉化列表的時間格式為 yyyy-mm-dd
def c = startTime1.replace('.','-')
def d = endTime1.replace('.','-')
//log.info(c)
//將數據庫中的時間和liebiao 的時間做比對
assert (a == c)
assert (b == d)