Commit ea6c7758 by shuai

全量测试nwn

parent 9ef43944
......@@ -6,7 +6,7 @@
<classes>
<class name="com.puhui.test.RenMai_APITest">
<methods>
<include name="f" invocation-numbers=""/>
<include name="f" invocation-numbers="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 "/>
</methods>
</class>
</classes>
......
......@@ -107,11 +107,11 @@ public class Mail {
System.out.println(start);
String Percentage=overview.substring(start+22, start+41);
System.out.println(Percentage);
// if(isTrue){
// message.setRecipients(MimeMessage.RecipientType.CC, parseAddress("onlyTest"));
// }else{
// message.setRecipients(MimeMessage.RecipientType.CC, parseAddress("all"));
// }
if(isTrue){
message.setRecipients(MimeMessage.RecipientType.CC, parseAddress("onlyTest"));
}else{
message.setRecipients(MimeMessage.RecipientType.CC, parseAddress("all"));
}
// message.setRecipient(MimeMessage.RecipientType.CC, new InternetAddress("wufeifei66504@offcn.com", "", "UTF-8"));
......@@ -242,11 +242,11 @@ public class Mail {
public static InternetAddress[] parseAddress(String personnel){
String addr="";
if("all".equals(personnel)){
addr="wufeifei66504@offcn.com;wenshuang@offcn.com;wangzhuang66685@offcn.com;liyongyu@offcn.com;lihong60540@offcn.com;"
+ "yangfan60144@offcn.com;lifeifei58407@offcn.com;tangqingsong@offcn.com;"
+ "zhouyeheng@offcn.com;zhanghua54164@offcn.com";
addr="wufeifei66504@offcn.com;wenshuang@offcn.com;liyongyu@offcn.com;"
+ "zhanghua54164@offcn.com;liwendong@offcn.com;cuimengzhen@offcn.com;"
+ "zhangshijie62302@offcn.com;baimanbin@offcn.com";
}else{
addr="wufeifei66504@offcn.com;wenshuang@offcn.com;wangzhuang66685@offcn.com;liyongyu@offcn.com";
addr="wufeifei66504@offcn.com;wenshuang@offcn.com;liyongyu@offcn.com";
}
StringTokenizer token = new StringTokenizer(addr, ";");
......
......@@ -90,8 +90,8 @@ public class createQrcode extends NWN implements API {
String failReason = "";
String json = re.asString();
if(!json.contains("retcode")){
// System.out.println(re.getStatusCode());
if(!json.contains("retcode") && re.getStatusCode()!=500){
if(data.get("custom") != null){
String custom=data.get("custom").toString();
......@@ -116,10 +116,10 @@ public class createQrcode extends NWN implements API {
+ String.valueOf(re.getStatusCode()) + ". ";
}
if (json.length() != 0) {
if (json.length() != 0 && re.getStatusCode()!=500) {
String msg=jp.getString("message");
String code=jp.getString("retcode");
String msg=jp.getString("message");
if ((data.get("code") != null ) && (code != null) && (!code.equals(data.get("code").toString()))) {
result = result && false;
......
......@@ -36,7 +36,10 @@ public class sign extends NWN implements API {
@Override
public void initialize(HashMap<String, Object> data) {
if (!isProduct && data.get("CleanDB").toString().contains("Y")) {
this.cleann_n_admin_card_no_List_FromDB();
NWN.PHPSESSID="";
this.cleann_n_admin_card_no_List_FromDB();
this.cleann_n_package_List_FromDB();
this.cleann_user_id_List_FromDB();
}
}
......
......@@ -72,6 +72,9 @@ public class APITest_nwn extends NWN{
}
}else if(body.contains("<html>")){
body="返回html页面,状态码:"+re.getStatusCode();
if(data.get("Description").toString().contains("流程")){
result = obj.handleOutput(re, data);
}
}else{
result = obj.handleOutput(re, data);
}
......
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