Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
study
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Li Yongyu
study
Commits
517d2040
Commit
517d2040
authored
Mar 07, 2019
by
Li Yongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
67b2c280
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
12 deletions
+13
-12
DataAll.xls
studycenter_Api_auto_test/TestData/DataAll.xls
+0
-0
build.xml
studycenter_Api_auto_test/build.xml
+1
-1
DefectTest.xml
studycenter_Api_auto_test/src/DefectTest.xml
+1
-1
Mail.java
studycenter_Api_auto_test/src/com/offcn/TestUnti/Mail.java
+8
-9
ZipUtils.java
...center_Api_auto_test/src/com/offcn/TestUnti/ZipUtils.java
+0
-0
moment.java
...pi_auto_test/src/com/offcn/api/study/studyapi/moment.java
+2
-0
testng.xml
studycenter_Api_auto_test/testng.xml
+1
-1
No files found.
studycenter_Api_auto_test/TestData/DataAll.xls
View file @
517d2040
No preview for this file type
studycenter_Api_auto_test/build.xml
View file @
517d2040
...
@@ -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}"
>
...
...
studycenter_Api_auto_test/src/DefectTest.xml
View file @
517d2040
...
@@ -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>
...
...
studycenter_Api_auto_test/src/com/offcn/TestUnti/Mail.java
View file @
517d2040
...
@@ -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
,
";"
);
...
...
studycenter_Api_auto_test/src/com/offcn/TestUnti/ZipUtils.java
View file @
517d2040
studycenter_Api_auto_test/src/com/offcn/api/study/studyapi/moment.java
View file @
517d2040
...
@@ -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
);
...
...
studycenter_Api_auto_test/testng.xml
View file @
517d2040
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment