import org.custommonkey.xmlunit.*
def responseTP=context.expand( '${Intraday Table_TP#Response}' )
def responseLive=context.expand( '${Intraday Table_Live#Response}' ) if (responseTP == responseLive)
{
log.info "Test case pass"
assert true
}
else{
log.info "Test case failed" def xmlDiff = new Diff(responseTP, responseLive)
assert xmlDiff.identical()
}

或者简洁一点,直接去比较就好了

import org.custommonkey.xmlunit.*
def responseTP=context.expand( '${Intraday Table_TP#Response}' )
def responseLive=context.expand( '${Intraday Table_Live#Response}' ) def xmlDiff = new Diff(responseTP, responseLive)
assert xmlDiff.identical()

  

最新文章

  1. 在wex5平台grid显示问题
  2. hadoop(2014/0619)
  3. 【仿真】Lattice_Diamond_调用Modelsim_仿真
  4. EditTextPreference点击后输入框显示隐藏内容,类似密码输入(转)
  5. jsonObject jsonArray jsonTokener jsonStringer,json解析以及http请求获取josn数据并加以解析
  6. linux创建交换分区
  7. Fedora下YouCompleteMe配置
  8. grub引导centos
  9. 基于Verilog HDL的ADC0809CCN数据采样
  10. [error]error while loading shared libraries: libpcre.so.1 解决
  11. mange
  12. Luogu 3758 [TJOI2017]可乐(有向图邻接矩阵幂的意义 矩阵快速幂)
  13. pg安装入门
  14. leetcode96
  15. 【kuangbin专题】计算几何_凸包
  16. 【AtCoder】ARC091
  17. MVC输出字符串常用四个方式
  18. win10 操作配置备忘
  19. android:json解析的两个工具:Gson和Jackson的使用小样例
  20. Teaching Machines to Understand Us 让机器理解我们 之三 自然语言学习及深度学习的信仰

热门文章

  1. erlang的lists笔记
  2. java代码--------实现随机输出100个随机数,10行,0--到9的数字
  3. databaseDesgin-temple
  4. 运维平台cmdb开发-day2
  5. 自动化运维工具Ansible的简单使用
  6. nginx转发请求
  7. CocoStudio资源区导入Plist/PSD文件
  8. Ceph的工作原理及流程
  9. ubuntu 12.04 配置-1
  10. question?