Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webappauto
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
webappauto
Commits
0a271d22
Commit
0a271d22
authored
Oct 09, 2018
by
shuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2018-10-09 修改数据库验证方式:获取运营信息onile=1属性
parent
e818ea9e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
71 deletions
+60
-71
DataAll.xls
Api_auto_test/TestData/DataAll.xls
+0
-0
getRooms.java
Api_auto_test/src/com/offcn/api/xyzb/getRooms.java
+1
-1
operation_info.java
Api_auto_test/src/com/offcn/api/xyzb/operation_info.java
+18
-9
ProcessTestng.java
Api_auto_test/src/com/offcn/listener/ProcessTestng.java
+1
-1
APITest.java
Api_auto_test/src/com/offcn/test/APITest.java
+0
-10
information.properties
Api_auto_test/src/resources/information.properties
+38
-38
testng.xml
Api_auto_test/testng.xml
+2
-12
No files found.
Api_auto_test/TestData/DataAll.xls
View file @
0a271d22
No preview for this file type
Api_auto_test/src/com/offcn/api/xyzb/getRooms.java
View file @
0a271d22
...
...
@@ -156,7 +156,7 @@ public class getRooms extends XYZB implements API {
}
else
{
rs_bankcard
=
this
.
selectFromDB
(
" xyu_room_users r "
,
" r.room_num = '"
+
Current_room
+
"' and role = '"
+
role
+
"'"
);
" r.room_num = '"
+
Current_room
+
"'
and online = '1'
and role = '"
+
role
+
"'"
);
rs_bankcard
.
last
();
// System.out.println(rs_bankcard.getString("count(*)"));
}
...
...
Api_auto_test/src/com/offcn/api/xyzb/operation_info.java
View file @
0a271d22
...
...
@@ -136,15 +136,24 @@ public class operation_info extends XYZB implements API {
String
updateTime
=
jp
.
getString
(
"data.updateTime"
);
// if(){
//
// }
weixinlink
=
MapUtil
.
killQuotes
(
weixinlink
,
"\""
);
weibotitle
=
MapUtil
.
killQuotes
(
weibotitle
,
"\""
);
weibolink
=
MapUtil
.
killQuotes
(
weibolink
,
"\""
);
qqgrouptitle
=
MapUtil
.
killQuotes
(
qqgrouptitle
,
"\""
);
qqgrouplink
=
MapUtil
.
killQuotes
(
qqgrouplink
,
"\""
);
updateTime
=
updateTime
.
substring
(
0
,
updateTime
.
length
()-
2
);
if
(
weixinlink
!=
null
){
weixinlink
=
MapUtil
.
killQuotes
(
weixinlink
,
"\""
);
}
if
(
weibotitle
!=
null
){
weibotitle
=
MapUtil
.
killQuotes
(
weibotitle
,
"\""
);
}
if
(
weibolink
!=
null
){
weibolink
=
MapUtil
.
killQuotes
(
weibolink
,
"\""
);
}
if
(
qqgrouptitle
!=
null
){
qqgrouptitle
=
MapUtil
.
killQuotes
(
qqgrouptitle
,
"\""
);
}
if
(
qqgrouplink
!=
null
){
qqgrouplink
=
MapUtil
.
killQuotes
(
qqgrouplink
,
"\""
);
}
if
(
updateTime
!=
null
){
updateTime
=
updateTime
.
substring
(
0
,
updateTime
.
length
()-
2
);
}
try
{
ResultSet
xyu_room
=
this
.
selectFromDB
(
...
...
Api_auto_test/src/com/offcn/listener/ProcessTestng.java
View file @
0a271d22
...
...
@@ -63,7 +63,7 @@ public class ProcessTestng implements IInvokedMethodListener {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
System
.
out
.
println
(
"测试通过,没有错误用例标号"
);
System
.
out
.
println
(
"测试通过,没有错误用例标号
,或编号不正确
"
);
}
}
...
...
Api_auto_test/src/com/offcn/test/APITest.java
View file @
0a271d22
...
...
@@ -36,16 +36,6 @@ public class APITest extends XYZB{
Log
.
logInfo
(
data
.
get
(
"TCNO"
).
toString
()
+
" Step "
+
data
.
get
(
"Description"
).
toString
()
+
" is running......"
);
// if(data.get("TCNO").toString().contains("3")){
// System.out.println("到啦");
// }
// if(data.get("TCNO").toString().contains("4")){
// System.out.println("到啦");
// }
// if(data.get("TCNO").toString().contains("5")){
// System.out.println("到啦");
// }
API
obj
=
new
Reflect_api
().
Reflections
(
data
);
BasicsGM
.
map
=
new
XMLread
().
getSystem
();
...
...
Api_auto_test/src/resources/information.properties
View file @
0a271d22
#
#
Fri Sep 28 09:23:02
CST 2018
Running_xyzbteacher_password
=
2eedky11ck
Not_edited_xyzbhost_password
=
yare1pnbh5
Running_xyzbassistant_password
=
x40odgxxcg
Running_xyzbroom_nums
=
2018
09280005
Invalid_xyzbstudent_password
=
vxrv6yxxtv
Finished_xyzbroom_nums
=
2018
09280006
Enterprise_users
=
ys2018
0928092245
Invalid_xyzbroom_names
=
ys
470425
Finished_xyzbhost_password
=
4epjvgzrso
Finished_xyzbteacher_password
=
gzqxwpmeh5
Not_edited_xyzbassistant_password
=
prma32xdhe
Finished_xyzbid
=
240
Running_xyzbstudent_password
=
gzqxwpmmiw
Business_Administrator
=
ys2018
092809224
8
Not_edited_xyzbroom_names
=
ys
658709
Running_xyzbid
=
239
Not_edited_xyzbid
=
242
Invalid_xyzbassistant_password
=
4epjvgzet6
Not_started_xyzbteacher_password
=
koep2enkhv
Finished_xyzbstudent_password
=
x40odgxjfv
Not_edited_xyzbroom_nums
=
2018
09280008
Finished_xyzbassistant_password
=
vxrv6yxmsr
Running_xyzbroom_names
=
ys
58935
1
Not_started_xyzbhost_password
=
x40odgxlhj
Not_started_xyzbassistant_password
=
gzqxwpmnu
e
Invalid_xyzbhost_password
=
prma32xrir
Invalid_xyzbroom_nums
=
2018
09280007
Not_started_xyzbroom_nums
=
2018
09280004
Not_started_xyzbstudent_password
=
2eedky1lin
Finished_xyzbroom_names
=
ys8
70698
Invalid_xyzbid
=
241
Not_edited_xyzbteacher_password
=
vxrv6yx1f0
Running_xyzbhost_password
=
vxrv6yxxuv
Invalid_xyzbteacher_password
=
x40odgx4sv
Not_started_xyzbid
=
238
Not_started_xyzbroom_names
=
ys
396382
Not_edited_xyzbstudent_password
=
4epjvgzlid
#
Tue Oct 09 10:04:31
CST 2018
Running_xyzbteacher_password
=
4epjynxrhv
Not_edited_xyzbhost_password
=
aq9r4wplcl
Running_xyzbassistant_password
=
yarezo8qcy
Running_xyzbroom_nums
=
2018
10090009
Invalid_xyzbstudent_password
=
92xoawkxi9
Finished_xyzbroom_nums
=
2018
10090010
Enterprise_users
=
ys2018
1009100427
Invalid_xyzbroom_names
=
ys
748618
Finished_xyzbhost_password
=
g3vgzjqkfx
Finished_xyzbteacher_password
=
prmav16gtm
Not_edited_xyzbassistant_password
=
dvak9p2lcz
Finished_xyzbid
=
303
Running_xyzbstudent_password
=
prmav168s9
Business_Administrator
=
ys2018
100910042
8
Not_edited_xyzbroom_names
=
ys
76114
Running_xyzbid
=
302
Not_edited_xyzbid
=
305
Invalid_xyzbassistant_password
=
g3vgzjqvsd
Not_started_xyzbteacher_password
=
vxrvrwbqu0
Finished_xyzbstudent_password
=
yarezo8yue
Not_edited_xyzbroom_nums
=
2018
10090012
Finished_xyzbassistant_password
=
92xoawkzt5
Running_xyzbroom_names
=
ys
47291
1
Not_started_xyzbhost_password
=
yarezo8vi5
Not_started_xyzbassistant_password
=
prmav169f
e
Invalid_xyzbhost_password
=
dvak9p2aix
Invalid_xyzbroom_nums
=
2018
10090011
Not_started_xyzbroom_nums
=
2018
10090008
Not_started_xyzbstudent_password
=
4epjynxdid
Finished_xyzbroom_names
=
ys8
61593
Invalid_xyzbid
=
304
Not_edited_xyzbteacher_password
=
92xoawkqco
Running_xyzbhost_password
=
92xoawk0sn
Invalid_xyzbteacher_password
=
yarezo8rsp
Not_started_xyzbid
=
301
Not_started_xyzbroom_names
=
ys
209283
Not_edited_xyzbstudent_password
=
g3vgzjqatn
Api_auto_test/testng.xml
View file @
0a271d22
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite
name=
"Suite"
>
<suite
name=
"Suite"
parallel=
"none"
>
<test
name=
"Test"
>
<classes>
<class
name=
"com.puhui.test.BestbuyGMAPITest"
>
<methods>
<include
name=
"test"
/>
</methods>
</class>
<class
name=
"com.offcn.test.APITest"
/>
</classes>
<listeners>
<listener
class-name=
"org.uncommons.reportng.HTMLReporter"
/>
<listener
class-name=
"org.uncommons.reportng.JUnitXMLReporter"
/>
</listeners>
</test>
<!-- Test -->
</suite>
<!-- Suite -->
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