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)