Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nwn_Api_auto_test
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
shuai
nwn_Api_auto_test
Commits
e60c0438
Commit
e60c0438
authored
Aug 27, 2020
by
Li Yongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
email update
parent
12b531c9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
16 additions
and
15 deletions
+16
-15
Mail.java
nwn_Api_auto_test/src/com/offcn/TestUnti/Mail.java
+2
-2
RequestDataUtils.java
...pi_auto_test/src/com/offcn/TestUnti/RequestDataUtils.java
+1
-0
delStuFromPackage.java
...test/src/com/offcn/api/nwn/service/delStuFromPackage.java
+1
-6
findEdupack.java
..._auto_test/src/com/offcn/api/nwn/service/findEdupack.java
+2
-2
getTemplateInfo.java
...o_test/src/com/offcn/api/nwn/service/getTemplateInfo.java
+2
-2
NWN.java
nwn_Api_auto_test/src/com/offcn/process/NWN.java
+1
-1
APITest_nwn.java
nwn_Api_auto_test/src/com/offcn/test/APITest_nwn.java
+3
-2
map.txt
nwn_Api_auto_test/src/resources/map.txt
+4
-0
测试报告详细资料.zip
nwn_Api_auto_test/测试报告详细资料.zip
+0
-0
No files found.
nwn_Api_auto_test/src/com/offcn/TestUnti/Mail.java
View file @
e60c0438
...
...
@@ -254,9 +254,9 @@ public class Mail {
public
static
InternetAddress
[]
parseAddress
(
String
personnel
){
String
addr
=
""
;
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;"
+
"zhangshijie62302@offcn.com;baimanbin@offcn.com"
;
;
}
else
{
addr
=
"wufeifei66504@offcn.com;wenshuang@offcn.com;liyongyu@offcn.com"
;
}
...
...
nwn_Api_auto_test/src/com/offcn/TestUnti/RequestDataUtils.java
View file @
e60c0438
...
...
@@ -95,6 +95,7 @@ public class RequestDataUtils {
}
@SuppressWarnings
(
"static-access"
)
//RequestSpecification rsf=rdu.getRMEnv(tem).given();
RequestSpecification
rsf
=
rdu
.
getRMEnv
(
tem
).
given
().
contentType
(
"application/x-www-form-urlencoded; charset=UTF-8"
);
if
(
myRequest
.
getFormParameter
()!=
null
){
...
...
nwn_Api_auto_test/src/com/offcn/api/nwn/service/delStuFromPackage.java
View file @
e60c0438
...
...
@@ -69,12 +69,7 @@ public class delStuFromPackage extends NWN implements API {
@Override
public
Response
SendRequest
(
HashMap
<
String
,
Object
>
data
,
String
Url
,
String
Request
)
{
// Map<String,String> m=new HashMap<String,String>();
// m.put("user_info", parameter);
//Response re = RequestDataUtils.Post_cooike_form_data(data, Url,"PHPSESSID",PHPSESSID,m);
// Response re = RequestDataUtils.Get_one_cookie_pre(data, Url, "PHPSESSID",PHPSESSID);
//Response re = RequestDataUtils.Get_one_cookie(data, serviceURL, cookie1Name, cookie1value) //只能无参
// Response re = RequestDataUtils.Get_token(data, Url, "");
Map
<
String
,
String
>
cookies
=
new
HashMap
<
String
,
String
>();
cookies
.
put
(
"PHPSESSID"
,
PHPSESSID
);
/*Map<String,String> token=new HashMap<String,String>();
...
...
nwn_Api_auto_test/src/com/offcn/api/nwn/service/findEdupack.java
View file @
e60c0438
...
...
@@ -44,7 +44,7 @@ public class findEdupack extends NWN implements API {
public
void
initialize
(
HashMap
<
String
,
Object
>
data
)
{
}
@Override
public
HashMap
<
String
,
Object
>
handleInput
(
HashMap
<
String
,
Object
>
data
)
{
// 获取parameter对应的内容
...
...
@@ -79,7 +79,7 @@ public class findEdupack extends NWN implements API {
// Response re = RequestDataUtils.Get_token(data, Url, "");
return
re
;
}
@Override
public
String
handleOutput
(
Response
re
,
HashMap
<
String
,
Object
>
data
)
{
JsonPath
jp
=
re
.
body
().
jsonPath
();
...
...
nwn_Api_auto_test/src/com/offcn/api/nwn/service/getTemplateInfo.java
View file @
e60c0438
...
...
@@ -95,7 +95,7 @@ public class getTemplateInfo extends NWN implements API {
String
json
=
re
.
asString
();
System
.
out
.
println
(
"response=========="
+
StringUtils
.
decodeUnicode
(
json
));
if
((
data
.
get
(
"statusCode"
)
!=
null
)
&&
(!
data
.
get
(
"statusCode"
).
toString
()
.
equals
(
String
.
valueOf
(
re
.
getStatusCode
()))))
{
...
...
@@ -104,7 +104,7 @@ public class getTemplateInfo extends NWN implements API {
+
data
.
get
(
"statusCode"
).
toString
()
+
" but actually "
+
String
.
valueOf
(
re
.
getStatusCode
())
+
". "
;
}
if
(
json
.
length
()
!=
0
)
{
String
msg
=
StringUtils
.
decodeUnicode
(
getMsg
(
re
));
...
...
nwn_Api_auto_test/src/com/offcn/process/NWN.java
View file @
e60c0438
...
...
@@ -73,7 +73,7 @@ public class NWN extends BasicsGM{
public
void
Connectionsa
(){
//================设置数据库连接池=====================
ConnectionsMap
=
getConnections
(
new
String
[]{
"
zxkt"
,
"nwn"
,
"iip
"
});
ConnectionsMap
=
getConnections
(
new
String
[]{
"
iip"
,
"zxkt
"
});
StatementsMap
=
getStatements
(
ConnectionsMap
);
conn
=
ConnectionsMap
.
get
(
"iip"
);
//设置默认的连接对象
stmt
=
StatementsMap
.
get
(
"iip"
);
//设置默认的连接对象
...
...
nwn_Api_auto_test/src/com/offcn/test/APITest_nwn.java
View file @
e60c0438
...
...
@@ -75,8 +75,9 @@ public class APITest_nwn extends NWN{
String
parameter
=
MapUtil
.
getValue
(
"parameter"
,
data
);
// System.out.println(!data.get("Request").toString().contains("get"));
// System.out.println(data.get("system").toString().equals("nwn_service"));
System
.
out
.
println
(!
data
.
get
(
"Request"
).
toString
().
contains
(
"get"
));
System
.
out
.
println
(
data
.
get
(
"system"
).
toString
().
equals
(
"nwn_service"
));
if
(
data
.
get
(
"system"
).
toString
().
equals
(
"nwn_service"
)
){
//静态和动态参数自动添加
...
...
nwn_Api_auto_test/src/resources/map.txt
View file @
e60c0438
<font size='4' color='#FF0000'>流程错误列表</font><table border='1'><th>URL</th><th>错误次数</th>
<tr><td>/sso/login/sign/417d2b66db1b65ba0779d28f94fe7f71</td><td>错误了1次。</td></tr>
<tr><td>/admin/package/edu/task/addDocTask/sign/99f6e91b2587b086cb7038f9a48bbbb0</td><td>错误了1次。</td></tr>
</table>
nwn_Api_auto_test/测试报告详细资料.zip
deleted
100644 → 0
View file @
12b531c9
File deleted
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