Commit 1db1deb6 by shuai

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

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