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
38e4d984
Commit
38e4d984
authored
Nov 30, 2020
by
zhangyumeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
B端获取直播课下转码后的文档列表
parent
2d5afed3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
2 deletions
+54
-2
src/main/java/com/live/cases/largeClassLive/TestGetCourseDocList.java
+45
-0
src/main/java/com/live/utils/GetLiveCourseId.java
+1
-1
src/main/resources/apicase/apollo.json
+8
-1
No files found.
src/main/java/com/live/cases/largeClassLive/TestGetCourseDocList.java
0 → 100644
View file @
38e4d984
package
com
.
live
.
cases
.
largeClassLive
;
import
com.alibaba.fastjson.JSONObject
;
import
com.live.enums.ApiModele
;
import
com.live.enums.RequestType
;
import
com.live.enums.Terminal
;
import
com.live.utils.GetLiveCourseId
;
import
com.xiaomai.utils.XMBaseTest
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* title B端获取直播课下转码后的文档列表
* by 张雨朦
*/
public
class
TestGetCourseDocList
extends
XMBaseTest
{
@BeforeMethod
public
void
beforeTest
()
{
xmAppApi
.
setApiModule
(
ApiModele
.
CloudClass_B_Apollo
)
.
setApiName
(
"API_getCourseDocList"
)
.
setLoginUser
(
"zhangYuM_b"
)
.
setTerminal
(
Terminal
.
B
);
super
.
beforeTest
();
}
@Test
public
void
getCourseDocList
()
{
GetLiveCourseId
liveCourseId
=
new
GetLiveCourseId
();
String
getLiveCourseId
=
liveCourseId
.
getLiveCourseId
();
List
StringList
=
new
ArrayList
();
StringList
.
add
(
getLiveCourseId
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
getLiveCourseId
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
}
}
src/main/java/com/live/utils/GetLiveCourseId.java
View file @
38e4d984
...
@@ -21,7 +21,7 @@ public class GetLiveCourseId extends XMBaseTest {
...
@@ -21,7 +21,7 @@ public class GetLiveCourseId extends XMBaseTest {
super
.
beforeDataRequest
();
super
.
beforeDataRequest
();
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
//jsonObject.put("courseState","
STARTING");
获取欢拓课程列表,没有courseState参数,普通机构有这个参数
//jsonObject.put("courseState","
"); //
获取欢拓课程列表,没有courseState参数,普通机构有这个参数
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"current"
,
"1"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"size"
,
"10"
);
jsonObject
.
put
(
"instId"
,
dataApi
.
getLoginInfo
().
getInstId
());
jsonObject
.
put
(
"instId"
,
dataApi
.
getLoginInfo
().
getInstId
());
...
...
src/main/resources/apicase/apollo.json
View file @
38e4d984
...
@@ -73,5 +73,11 @@
...
@@ -73,5 +73,11 @@
"apiContentType"
:
"application/json;charset=utf-8"
,
"apiContentType"
:
"application/json;charset=utf-8"
,
"apiName"
:
"获取大班直播课列表"
,
"apiName"
:
"获取大班直播课列表"
,
"desc"
:
"获取大班直播课列表"
"desc"
:
"获取大班直播课列表"
}
},
"API_getCourseDocList"
:
{
"apiPath"
:
"/apollo/anon/businessLive/getCourseDocList"
,
"apiContentType"
:
"application/json;charset=utf-8"
,
"apiName"
:
"获取直播课下转码后的文档列表"
,
"desc"
:
"获取直播课下转码后的文档列表"
}
}
}
\ 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