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
7750e807
Commit
7750e807
authored
May 20, 2019
by
Li Yongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
d50e9c24
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
5 deletions
+28
-5
DataAll.xls
studycenter_Api_auto_test/TestData/DataAll.xls
+0
-0
Reflect_api.java
...ter_Api_auto_test/src/com/offcn/TestUnti/Reflect_api.java
+1
-1
RequestDataUtils.java
...pi_auto_test/src/com/offcn/TestUnti/RequestDataUtils.java
+0
-1
login.java
...Api_auto_test/src/com/offcn/api/study/studyapi/login.java
+1
-1
APITest_study.java
...enter_Api_auto_test/src/com/offcn/test/APITest_study.java
+3
-0
class.properties
studycenter_Api_auto_test/src/resources/class.properties
+3
-1
system.xml
studycenter_Api_auto_test/src/resources/system.xml
+13
-1
maxiao.java
studycenter_Api_auto_test/src/test/maxiao.java
+2
-0
test.java
studycenter_Api_auto_test/src/test/test.java
+5
-0
No files found.
studycenter_Api_auto_test/TestData/DataAll.xls
View file @
7750e807
No preview for this file type
studycenter_Api_auto_test/src/com/offcn/TestUnti/Reflect_api.java
View file @
7750e807
...
@@ -60,7 +60,7 @@ public class Reflect_api {
...
@@ -60,7 +60,7 @@ public class Reflect_api {
String
system
=
MapUtil
.
getValue
(
"system"
,
data
);
String
system
=
MapUtil
.
getValue
(
"system"
,
data
);
String
classRoute
=
ReadProperties
.
GetPropertyByKey
(
system
);
String
classRoute
=
ReadProperties
.
GetPropertyByKey
(
system
);
//判断同样的类地址时候走哪一个测试类脚本
if
(
system
.
contains
(
"study"
)){
if
(
system
.
contains
(
"study"
)){
String
classReflectName
=
ReadProperties
.
GetPropertyByClassName
(
serviceUrl
,
system
);
String
classReflectName
=
ReadProperties
.
GetPropertyByClassName
(
serviceUrl
,
system
);
if
(
classReflectName
!=
null
)
{
if
(
classReflectName
!=
null
)
{
...
...
studycenter_Api_auto_test/src/com/offcn/TestUnti/RequestDataUtils.java
View file @
7750e807
...
@@ -82,7 +82,6 @@ public class RequestDataUtils {
...
@@ -82,7 +82,6 @@ public class RequestDataUtils {
String
system
=
MapUtil
.
getValue
(
"system"
,
data
);
String
system
=
MapUtil
.
getValue
(
"system"
,
data
);
system
=
replaceString
(
system
);
system
=
replaceString
(
system
);
com
.
offcn
.
system
.
system
tem
=
(
com
.
offcn
.
system
.
system
)
(
BasicsGM
.
map
.
get
(
system
));
com
.
offcn
.
system
.
system
tem
=
(
com
.
offcn
.
system
.
system
)
(
BasicsGM
.
map
.
get
(
system
));
RequestDataUtils
rdu
=
new
RequestDataUtils
();
RequestDataUtils
rdu
=
new
RequestDataUtils
();
String
path
=
""
;
String
path
=
""
;
if
(
myRequest
.
getUrl
().
startsWith
(
"http://"
)){
if
(
myRequest
.
getUrl
().
startsWith
(
"http://"
)){
...
...
studycenter_Api_auto_test/src/com/offcn/api/study/studyapi/login.java
View file @
7750e807
...
@@ -31,7 +31,7 @@ import net.sf.json.JSONObject;
...
@@ -31,7 +31,7 @@ import net.sf.json.JSONObject;
/**
/**
*
获取班级名称列表
*
im登陆获取im_token
*
*
* @author liyy
* @author liyy
*
*
...
...
studycenter_Api_auto_test/src/com/offcn/test/APITest_study.java
View file @
7750e807
...
@@ -72,8 +72,11 @@ public class APITest_study extends BasicsGM{
...
@@ -72,8 +72,11 @@ public class APITest_study extends BasicsGM{
//静态和动态参数自动添加
//静态和动态参数自动添加
// data = setPublicParameter(data);
// data = setPublicParameter(data);
// data = setDynamicParameter(data);
// data = setDynamicParameter(data);
if
(
data
.
get
(
"serviceUrl"
).
toString
().
contains
(
"needsetPublicParameter"
))
{
data
=
setPublicParameter
(
c
,
object
,
data
);
//静态公共参数
data
=
setPublicParameter
(
c
,
object
,
data
);
//静态公共参数
data
=
setDynamicParameter
(
c
,
object
,
data
);
//动态公共参数
data
=
setDynamicParameter
(
c
,
object
,
data
);
//动态公共参数
}
String
parameter
=
MapUtil
.
getValue
(
"parameter"
,
data
);
String
parameter
=
MapUtil
.
getValue
(
"parameter"
,
data
);
System
.
out
.
println
(
"parameter====="
+
parameter
);
System
.
out
.
println
(
"parameter====="
+
parameter
);
...
...
studycenter_Api_auto_test/src/resources/class.properties
View file @
7750e807
study
=
com.offcn.api.study.
study
_ticket
=
com.offcn.api.study.
study_api
=
com.offcn.api.study.studyapi.
study_api
=
com.offcn.api.study.studyapi.
studyl
=
com.offcn.api.study.study_l.
\ No newline at end of file
studycenter_Api_auto_test/src/resources/system.xml
View file @
7750e807
...
@@ -14,7 +14,18 @@
...
@@ -14,7 +14,18 @@
<redis_db_index>
5
</redis_db_index>
<redis_db_index>
5
</redis_db_index>
</system>
</system>
<system
name=
"studyl"
>
<!-- 学习中心 -->
<access_token_uri>
http://106.75.5.205:8082/uaa/oauth/token
</access_token_uri>
<client_id>
bestbuy-acceptance
</client_id>
<client_secret>
bestbuy-acceptance
</client_secret>
<grant_type>
client_credentials
</grant_type>
<isProduct>
N
</isProduct>
<RM_URI>
http://l.t.eoffcn.com
</RM_URI>
<RM_port></RM_port>
<RM_basePath></RM_basePath>
<redis_URI>
10.10.229.48
</redis_URI>
<redis_db_index>
5
</redis_db_index>
</system>
</systems>
</systems>
\ No newline at end of file
studycenter_Api_auto_test/src/test/maxiao.java
View file @
7750e807
...
@@ -19,6 +19,8 @@ public class maxiao implements Runnable{
...
@@ -19,6 +19,8 @@ public class maxiao implements Runnable{
public
maxiao
(
String
jSESSIONID
)
{
public
maxiao
(
String
jSESSIONID
)
{
JSESSIONID
=
jSESSIONID
;
JSESSIONID
=
jSESSIONID
;
}
}
@Override
@Override
...
...
studycenter_Api_auto_test/src/test/test.java
View file @
7750e807
package
test
;
package
test
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Locale
;
public
class
test
{
public
class
test
{
...
@@ -10,6 +12,9 @@ public class test {
...
@@ -10,6 +12,9 @@ public class test {
String
year
=
getCurrentYear
();
String
year
=
getCurrentYear
();
System
.
out
.
println
(
year
);
System
.
out
.
println
(
year
);
String
datatime
=
DateFormat
.
getDateTimeInstance
(
2
,
2
,
Locale
.
CHINESE
).
format
(
new
java
.
util
.
Date
());;
System
.
out
.
println
(
datatime
);
}
}
public
static
String
getCurrentYear
(){
public
static
String
getCurrentYear
(){
...
...
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