Commit 1db1deb6 by shuai

更改不回写数据,提升运行速度

parent 240c0f62
......@@ -85,22 +85,22 @@ public class APITest_nwn extends NWN{
//数据回写
// HashMap<String, Object> ExpectResult=MapUtil.Expect(data);
SheetUtils sheet = new SheetUtils("DataAll.xls", "Output");
sheet.writeExcel(
data.get("NO").toString(),
data.get("TCNO").toString() + "_Step" + data.get("Step").toString(),
data.get("Description").toString(),
parameter,
// JSONObject.fromObject(ExpectResult).toString(),
re.getStatusCode()+"",
// StringUtils.decodeUnicode(re==null?"":re.asString()),
StringUtils.decodeUnicode(body),
codeORerrcode,
msgORerrmsy,
result,
time
);
//// HashMap<String, Object> ExpectResult=MapUtil.Expect(data);
// SheetUtils sheet = new SheetUtils("DataAll.xls", "Output");
// sheet.writeExcel(
// data.get("NO").toString(),
// data.get("TCNO").toString() + "_Step" + data.get("Step").toString(),
// data.get("Description").toString(),
// parameter,
//// JSONObject.fromObject(ExpectResult).toString(),
// re.getStatusCode()+"",
//// StringUtils.decodeUnicode(re==null?"":re.asString()),
// StringUtils.decodeUnicode(body),
// codeORerrcode,
// msgORerrmsy,
// result,
// time
// );
if(result.indexOf("Fail")!=-1){
String Expect1=data.get("code")==null?"":data.get("code").toString();
......
......@@ -8,7 +8,7 @@
<test name="Test">
<classes>
<class name="com.offcn.test.APITest"/>
<class name="com.offcn.test.APITest_nwn"/>
</classes>
</test>
......
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