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
c4a2f029
Commit
c4a2f029
authored
Nov 30, 2020
by
zhangyumeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化获取直播课id
parent
6ddc8550
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
16 deletions
+9
-16
src/main/java/com/live/cases/apollo/TestCourseLaunch.java
+1
-5
src/main/java/com/live/cases/apollo/TestGetCourseDocList.java
+1
-5
src/main/java/com/live/cases/apollo/TestSendNotify2Student.java
+6
-5
src/main/java/com/live/utils/GetLiveCourseId.java
+1
-1
No files found.
src/main/java/com/live/cases/apollo/TestCourseLaunch.java
View file @
c4a2f029
...
...
@@ -33,13 +33,9 @@ public class TestCourseLaunch extends XMBaseTest {
public
void
courseLaunch
(){
GetLiveCourseId
liveCourseId
=
new
GetLiveCourseId
();
String
getLiveCourseId
=
liveCourseId
.
createCourse
();
List
StringList
=
new
ArrayList
();
StringList
.
add
(
getLiveCourseId
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
getLiveCourseId
);
jsonObject
.
put
(
"liveCourseId"
,
liveCourseId
.
createCourse
()
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
...
...
src/main/java/com/live/cases/apollo/TestGetCourseDocList.java
View file @
c4a2f029
...
...
@@ -31,13 +31,9 @@ public class TestGetCourseDocList extends XMBaseTest {
public
void
getCourseDocList
()
{
GetLiveCourseId
liveCourseId
=
new
GetLiveCourseId
();
String
getLiveCourseId
=
liveCourseId
.
createCourse
();
List
StringList
=
new
ArrayList
();
StringList
.
add
(
getLiveCourseId
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
getLiveCourseId
);
jsonObject
.
put
(
"liveCourseId"
,
liveCourseId
.
createCourse
()
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
...
...
src/main/java/com/live/cases/apollo/TestSendNotify2Student.java
View file @
c4a2f029
...
...
@@ -12,6 +12,11 @@ import org.testng.annotations.Test;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* 直播课群发学生
* by 张雨朦
*/
public
class
TestSendNotify2Student
extends
XMBaseTest
{
@BeforeMethod
public
void
beforeTest
()
{
...
...
@@ -26,13 +31,9 @@ public class TestSendNotify2Student extends XMBaseTest {
public
void
getCourseDocList
()
{
GetLiveCourseId
liveCourseId
=
new
GetLiveCourseId
();
String
getLiveCourseId
=
liveCourseId
.
createCourse
();
List
StringList
=
new
ArrayList
();
StringList
.
add
(
getLiveCourseId
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
getLiveCourseId
);
jsonObject
.
put
(
"liveCourseId"
,
liveCourseId
.
createCourse
()
);
jsonObject
.
put
(
"instId"
,
dataApi
.
getLoginInfo
().
getInstId
());
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
...
...
src/main/java/com/live/utils/GetLiveCourseId.java
View file @
c4a2f029
...
...
@@ -10,7 +10,7 @@ import com.xiaomai.utils.XMBaseTest;
import
java.util.ArrayList
;
/**
*
获取大班直播
课程id
*
创建直播课,返回
课程id
* by 张雨朦
*/
...
...
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