Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-autotest-live
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-autotest-live
Commits
faad5e89
Commit
faad5e89
authored
Feb 24, 2021
by
zhangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review
parent
5b1a2f8e
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
12 deletions
+23
-12
src/main/java/com/live/cases/largeClassLive/TestExportLargeClassLiveAsync.java
+1
-1
src/main/java/com/live/cases/largeClassLive/TestGetClassReport.java
+1
-1
src/main/java/com/live/cases/largeClassLive/TestGetCourseDetail.java
+0
-1
src/main/java/com/live/cases/largeClassLive/TestGetLargeClassLiveList.java
+3
-4
src/main/java/com/live/cases/largeClassLive/TestGetLiveCourseRecordInfos.java
+1
-1
src/main/java/com/live/cases/largeClassLive/TestQueryStudentVisitData.java
+1
-1
src/main/java/com/live/cases/largeClassLive/TestQueryTeacherVisitData.java
+1
-1
src/main/java/com/live/cases/largeClassLive/TestQueryUserReplayRecordPage.java
+1
-1
src/main/java/com/live/cases/largeClassLive/TestTransformRecordUrl.java
+1
-1
src/main/resources/apicase/api-b.json
+7
-0
testng.xml
+6
-0
No files found.
src/main/java/com/live/cases/largeClassLive/TestExportLargeClassLiveAsync.java
View file @
faad5e89
...
@@ -33,7 +33,7 @@ public class TestExportLargeClassLiveAsync extends XMBaseTest {
...
@@ -33,7 +33,7 @@ public class TestExportLargeClassLiveAsync extends XMBaseTest {
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"exportLiveType"
,
"0"
);
jsonObject
.
put
(
"exportLiveType"
,
"0"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
//zy大班直播自动化测试(勿删)--固定直播课
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
...
...
src/main/java/com/live/cases/largeClassLive/TestGetClassReport.java
View file @
faad5e89
...
@@ -32,7 +32,7 @@ public class TestGetClassReport extends XMBaseTest {
...
@@ -32,7 +32,7 @@ public class TestGetClassReport extends XMBaseTest {
public
void
testGetClassReport
()
{
public
void
testGetClassReport
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"courseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"courseId"
,
"1356196461296828418"
);
//zy大班直播自动化测试(勿删)--固定直播课
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
...
...
src/main/java/com/live/cases/largeClassLive/TestGetCourseDetail.java
View file @
faad5e89
...
@@ -33,7 +33,6 @@ public class TestGetCourseDetail extends XMBaseTest {
...
@@ -33,7 +33,6 @@ public class TestGetCourseDetail extends XMBaseTest {
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
System
.
out
.
println
(
xmAppApi
);
System
.
out
.
println
(
xmAppApi
);
...
...
src/main/java/com/live/cases/largeClassLive/TestGetLargeClassLiveList.java
View file @
faad5e89
...
@@ -32,10 +32,9 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
...
@@ -32,10 +32,9 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
public
void
testGetLargeClassLiveList
()
{
public
void
testGetLargeClassLiveList
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"instId"
,
"1235115978015883266"
);
jsonObject
.
put
(
"instId"
,
xmAppApi
.
getLoginInfo
().
getInstId
()
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"size"
,
"10"
);
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
System
.
out
.
println
(
xmAppApi
);
System
.
out
.
println
(
xmAppApi
);
...
@@ -55,7 +54,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
...
@@ -55,7 +54,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
public
void
testGetLargeClassLiveList1
()
{
public
void
testGetLargeClassLiveList1
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"instId"
,
"1235115978015883266"
);
jsonObject
.
put
(
"instId"
,
xmAppApi
.
getLoginInfo
().
getInstId
()
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"courseName"
,
"zy大班直播自动化测试(勿删)"
);
jsonObject
.
put
(
"courseName"
,
"zy大班直播自动化测试(勿删)"
);
...
@@ -84,7 +83,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
...
@@ -84,7 +83,7 @@ public class TestGetLargeClassLiveList extends XMBaseTest {
public
void
testGetLargeClassLiveList2
()
{
public
void
testGetLargeClassLiveList2
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"instId"
,
"1235115978015883266"
);
jsonObject
.
put
(
"instId"
,
xmAppApi
.
getLoginInfo
().
getInstId
()
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"courseState"
,
"EXPIRED"
);
jsonObject
.
put
(
"courseState"
,
"EXPIRED"
);
...
...
src/main/java/com/live/cases/largeClassLive/TestGetLiveCourseRecordInfos.java
View file @
faad5e89
...
@@ -33,7 +33,7 @@ public class TestGetLiveCourseRecordInfos extends XMBaseTest {
...
@@ -33,7 +33,7 @@ public class TestGetLiveCourseRecordInfos extends XMBaseTest {
public
void
testGetLiveCourseRecordInfos
()
{
public
void
testGetLiveCourseRecordInfos
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
//zy大班直播自动化测试(勿删)--固定直播课
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
System
.
out
.
println
(
xmAppApi
);
System
.
out
.
println
(
xmAppApi
);
...
...
src/main/java/com/live/cases/largeClassLive/TestQueryStudentVisitData.java
View file @
faad5e89
...
@@ -32,7 +32,7 @@ public class TestQueryStudentVisitData extends XMBaseTest {
...
@@ -32,7 +32,7 @@ public class TestQueryStudentVisitData extends XMBaseTest {
public
void
testQueryStudentVisitData
()
{
public
void
testQueryStudentVisitData
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
//zy大班直播自动化测试(勿删)--固定直播课
jsonObject
.
put
(
"nameOrPhone"
,
""
);
jsonObject
.
put
(
"nameOrPhone"
,
""
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"size"
,
"10000"
);
jsonObject
.
put
(
"size"
,
"10000"
);
...
...
src/main/java/com/live/cases/largeClassLive/TestQueryTeacherVisitData.java
View file @
faad5e89
...
@@ -32,7 +32,7 @@ public class TestQueryTeacherVisitData extends XMBaseTest {
...
@@ -32,7 +32,7 @@ public class TestQueryTeacherVisitData extends XMBaseTest {
public
void
testQueryTeacherVisitData
()
{
public
void
testQueryTeacherVisitData
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
//zy大班直播自动化测试(勿删)--固定直播课
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
...
...
src/main/java/com/live/cases/largeClassLive/TestQueryUserReplayRecordPage.java
View file @
faad5e89
...
@@ -34,7 +34,7 @@ public class TestQueryUserReplayRecordPage extends XMBaseTest {
...
@@ -34,7 +34,7 @@ public class TestQueryUserReplayRecordPage extends XMBaseTest {
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
//zy大班直播自动化测试(勿删)--固定直播课
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
System
.
out
.
println
(
xmAppApi
);
System
.
out
.
println
(
xmAppApi
);
...
...
src/main/java/com/live/cases/largeClassLive/TestTransformRecordUrl.java
View file @
faad5e89
...
@@ -32,7 +32,7 @@ public class TestTransformRecordUrl extends XMBaseTest {
...
@@ -32,7 +32,7 @@ public class TestTransformRecordUrl extends XMBaseTest {
public
void
testTransformRecordUrl
()
{
public
void
testTransformRecordUrl
()
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
jsonObject
.
put
(
"liveCourseId"
,
"1356196461296828418"
);
//zy大班直播自动化测试(勿删)--固定直播课
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
System
.
out
.
println
(
"jsonObject ="
+
jsonObject
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
...
...
src/main/resources/apicase/api-b.json
View file @
faad5e89
...
@@ -178,5 +178,11 @@
...
@@ -178,5 +178,11 @@
"apiContentType"
:
"application/json;charset=utf-8"
,
"apiContentType"
:
"application/json;charset=utf-8"
,
"apiName"
:
"账户管理-服务协议"
,
"apiName"
:
"账户管理-服务协议"
,
"desc"
:
"账户管理-服务协议"
"desc"
:
"账户管理-服务协议"
},
"API_updateCourse"
:
{
"apiPath"
:
"/apollo/public/businessLive/updateCourse"
,
"apiContentType"
:
"application/json;charset=utf-8"
,
"apiName"
:
"编辑直播课"
,
"desc"
:
"编辑直播课"
}
}
}
}
\ No newline at end of file
testng.xml
View file @
faad5e89
...
@@ -52,4 +52,9 @@
...
@@ -52,4 +52,9 @@
<package
name=
"com.live.cases.videoCourse"
></package>
<package
name=
"com.live.cases.videoCourse"
></package>
</packages>
</packages>
</test>
</test>
<test
name=
"seriesCourse"
preserve-order=
"true"
verbose=
"3"
>
<packages>
<package
name=
"com.live.cases.seriesCourse"
></package>
</packages>
</test>
</suite>
</suite>
\ No newline at end of file
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