Commit 517d2040 by Li Yongyu

update

parent 67b2c280
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<property name="srcdir" location="src" /> <property name="srcdir" location="src" />
<property name="libdir" location="lib" /> <property name="libdir" location="lib" />
<property name="full-compile" value="true" /> <property name="full-compile" value="true" />
<property name="basedir" value="D:/workspace/auto_test/" /> <property name="basedir" value="E:\git\study\studycenter_Api_auto_test" />
<path id="classpath.test"> <path id="classpath.test">
<fileset dir="${libdir}"> <fileset dir="${libdir}">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<classes> <classes>
<class name="com.puhui.test.RenMai_APITest"> <class name="com.puhui.test.RenMai_APITest">
<methods> <methods>
<include name="f" invocation-numbers="1 2 "/> <include name="f" invocation-numbers=""/>
</methods> </methods>
</class> </class>
</classes> </classes>
......
...@@ -39,16 +39,16 @@ public class Mail { ...@@ -39,16 +39,16 @@ public class Mail {
} }
} }
// 发件人的 邮箱 和 密码(替换为自己的邮箱和密码) // 发件人的 邮箱 和 密码(替换为自己的邮箱和密码)
public static String myEmailAccount = "53055975@qq.com"; public static String myEmailAccount = "lyyazxhhwj@163.com";
public static String myEmailPassword = "qoqfoabljzyzbjdd"; public static String myEmailPassword = "liyyandzxx";
// 发件人邮箱的 SMTP 服务器地址, 必须准确, 不同邮件服务器地址不同, 一般格式为: smtp.xxx.com // 发件人邮箱的 SMTP 服务器地址, 必须准确, 不同邮件服务器地址不同, 一般格式为: smtp.xxx.com
// 网易163邮箱的 SMTP 服务器地址为: smtp.163.com // 网易163邮箱的 SMTP 服务器地址为: smtp.163.com or smtp.qq.com
public static String myEmailSMTPHost = "smtp.qq.com"; public static String myEmailSMTPHost = "smtp.163.com";
// 收件人邮箱(替换为自己知道的有效邮箱) // 收件人邮箱(替换为自己知道的有效邮箱)
// public static String receiveMailAccount = "liyongyu@offcn.com";//rmscrum.list@finupgroup.com // public static String receiveMailAccount = "liyongyu@offcn.com";//rmscrum.list@finupgroup.com
public static String receiveMailAccount = "yaoshuai@offcn.com";//rmscrum.list@finupgroup.com public static String receiveMailAccount = "liyongyu@offcn.com";//rmscrum.list@finupgroup.com
public static void POP3() throws Exception { public static void POP3() throws Exception {
// 1. 创建参数配置, 用于连接邮件服务器的参数配置 // 1. 创建参数配置, 用于连接邮件服务器的参数配置
...@@ -254,11 +254,10 @@ public class Mail { ...@@ -254,11 +254,10 @@ public class Mail {
public static InternetAddress[] parseAddress(String personnel){ public static InternetAddress[] parseAddress(String personnel){
String addr=""; String addr="";
if("all".equals(personnel)){ if("all".equals(personnel)){
addr="wufeifei66504@offcn.com;wenshuang@offcn.com;liyongyu@offcn.com;" addr="liyongyu@offcn.com;"
+ "zhanghua54164@offcn.com;liwendong@offcn.com;cuimengzhen@offcn.com;" + "lyyazxhhwj@163.com;553834369@qq.com"; //失败接收人
+ "zhangshijie62302@offcn.com;baimanbin@offcn.com";
}else{ }else{
addr="wufeifei66504@offcn.com;wenshuang@offcn.com;liyongyu@offcn.com"; addr="553834369@qq.com;liyongyu@offcn.com"; // 成功接收人
} }
StringTokenizer token = new StringTokenizer(addr, ";"); StringTokenizer token = new StringTokenizer(addr, ";");
......
...@@ -68,6 +68,7 @@ public class moment extends STUDY implements API { ...@@ -68,6 +68,7 @@ public class moment extends STUDY implements API {
@Override @Override
public Response SendRequest(HashMap<String, Object> data, String Url, public Response SendRequest(HashMap<String, Object> data, String Url,
String Request) { String Request) {
//form 格式参数
/* Map<String,String> m=new HashMap<String,String>(); /* Map<String,String> m=new HashMap<String,String>();
m.put("user_id", user_id); m.put("user_id", user_id);
m.put("image", user_id); m.put("image", user_id);
...@@ -95,6 +96,7 @@ public class moment extends STUDY implements API { ...@@ -95,6 +96,7 @@ public class moment extends STUDY implements API {
MyRequest myRequest=new MyRequest(); MyRequest myRequest=new MyRequest();
myRequest.setParameter(parameter); myRequest.setParameter(parameter);
myRequest.setUrl(Url); myRequest.setUrl(Url);
System.out.println("Url====" +Url); System.out.println("Url====" +Url);
myRequest.setRequest(Request); myRequest.setRequest(Request);
myRequest.setHeaders(ticket); myRequest.setHeaders(ticket);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<test name="Test"> <test name="Test">
<classes> <classes>
<class name="com.offcn.test.APITest_nwn"/> <class name="com.offcn.test.APITest_study"/>
</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