//Get and Parse Response def response = context.expand(‘${TestStepName#Response}’) def xmlParser = new XmlParser().parseText(response) HashMap map = new HashMap() xmlParser.r.each{ String name = it.attribute("name") it.c.each{ String value = it.
JavaWeb之如何把请求数据转成实体类 自己写个工具类加入下面两个静态方法 自定一个注解类DateTimeFormatting 调用方式User user = util.ObjectFromMap(req.getParameterMap(), User.class) 暂时支持8种基本数据类型对应包装类.BigDecimal.java.util.Date,可应对大多情况,如有需求,可以自己添加 暂不支持数组 public static <T> T ObjectFromMap(Map<St