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
cf36b632
Commit
cf36b632
authored
Mar 05, 2021
by
zhangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review
parent
1f1079e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/main/java/com/live/cases/saasTeacher/TestCourseLaunch.java
+9
-3
src/main/java/com/live/xmutils/GetLiveCourseData.java
+1
-1
No files found.
src/main/java/com/live/cases/saasTeacher/TestCourseLaunch.java
View file @
cf36b632
...
...
@@ -5,6 +5,7 @@ import com.live.enums.ApiModele;
import
com.live.enums.RequestType
;
import
com.live.enums.Terminal
;
import
com.live.utils.XMBaseTest
;
import
com.live.xmutils.GetLiveCourseData
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -24,11 +25,16 @@ public class TestCourseLaunch extends XMBaseTest {
super
.
beforeTest
();
}
@Test
public
void
testCourseLaunch
(){
@Test
(
description
=
"启动欢拓直播客户端"
)
public
void
testCourseLaunch
()
throws
InterruptedException
{
GetLiveCourseData
getLiveCourseData
=
new
GetLiveCourseData
();
JSONObject
getLargeCourseData
=
getLiveCourseData
.
createLargeClassLive
();
String
liveCourseId
=
getLargeCourseData
.
getString
(
"result"
);
System
.
out
.
println
(
"liveCourseId ="
+
liveCourseId
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
"1333692400423833602"
);
jsonObject
.
put
(
"liveCourseId"
,
liveCourseId
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
JSONObject
jsonbody
=
xmAppApi
.
getBodyInJSON
();
...
...
src/main/java/com/live/xmutils/GetLiveCourseData.java
View file @
cf36b632
...
...
@@ -94,7 +94,7 @@ public class GetLiveCourseData extends XMBaseTest {
Map
bodyMap
=
new
HashMap
();
bodyMap
.
put
(
"current"
,
1
);
bodyMap
.
put
(
"instId"
,
"1235115978015883266"
);
bodyMap
.
put
(
"instId"
,
xmAppApi
.
getLoginInfo
().
getInstId
()
);
bodyMap
.
put
(
"size"
,
10
);
bodyMap
.
put
(
"courseState"
,
"STARTING"
);
String
bodydata
=
JSONObject
.
toJSONString
(
bodyMap
);
...
...
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