Commit 6fa1b9df by Thinkpad

2

parent 6f3c727f
...@@ -53,6 +53,7 @@ public class APITest_tk extends BasicsGM{ ...@@ -53,6 +53,7 @@ public class APITest_tk extends BasicsGM{
// //
String parameter = MapUtil.getValue("parameter", data); String parameter = MapUtil.getValue("parameter", data);
Long startTime=System.currentTimeMillis(); Long startTime=System.currentTimeMillis();
Response re = obj.SendRequest(data, data.get("serviceUrl").toString(), data.get("Request").toString()); Response re = obj.SendRequest(data, data.get("serviceUrl").toString(), data.get("Request").toString());
Long endTime=System.currentTimeMillis(); Long endTime=System.currentTimeMillis();
...@@ -88,21 +89,21 @@ public class APITest_tk extends BasicsGM{ ...@@ -88,21 +89,21 @@ public class APITest_tk extends BasicsGM{
//数据回写 //数据回写
/* 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("DataAllMr.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.length()>1000?"内容超长。":parameter, // parameter.length()>1000?"内容超长。":parameter,
JSONObject.fromObject(ExpectResult).toString(), // JSONObject.fromObject(ExpectResult).toString(),
StringUtils.decodeUnicode(re.asString().length()>10000?"内容超长。状态码:"+re.getStatusCode():re.asString()), // StringUtils.decodeUnicode(re.asString().length()>10000?"内容超长。状态码:"+re.getStatusCode():re.asString()),
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();
......
...@@ -35,7 +35,7 @@ public class MakeTestCases { ...@@ -35,7 +35,7 @@ public class MakeTestCases {
public static void main(String[] args) { public static void main(String[] args) {
make("TestData/CaseMake.xls","Sheet1","post","tk_3"); make("TestData/CaseMakeMr.xls","Sheet1","post","tk_3");
} }
......
xls=DataAll.xls xls=DataAllMr.xls
sheet=TestCase1 sheet=TestCase1
mysql_local_Online=local mysql_local_Online=local
Percentage=60 Percentage=60
\ No newline at end of file
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