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
663be9d6
Commit
663be9d6
authored
Mar 30, 2021
by
zhangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试开启腾讯回放录制
parent
651e784c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
src/main/java/com/live/cases/liveClientT/cloundClass/TestTencentStartRecord.java
+8
-11
src/main/resources/apicase/apollo.json
+8
-0
No files found.
src/main/java/com/live/cases/liveClientT/cloundClass/TestTencentStartRecord.java
View file @
663be9d6
...
...
@@ -10,12 +10,9 @@ import org.testng.Assert;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @author zhangying
* @date 2021
/3/4 17:29
* @date 2021
-03-30 19:05
*/
public
class
TestTencentStartRecord
extends
XMBaseTest
{
@BeforeMethod
...
...
@@ -26,29 +23,29 @@ public class TestTencentStartRecord extends XMBaseTest {
.
setTerminal
(
Terminal
.
B
);
// 所属端位(B端,C端,M端等, 必传)
dal
.
setCase_owner
(
"张莹"
);
super
.
beforeTest
();
System
.
out
.
println
(
xmAppApi
);
}
/**
* 测试
直播间开启
录制
* 测试
开启腾讯回放
录制
*/
@Test
public
void
testTencentStartRecord
()
throws
InterruptedException
{
public
void
testTencentStartRecord
()
{
GetLiveCourseData
getLiveCourseData
=
new
GetLiveCourseData
();
JSONObject
largeC
ourse
=
getLiveCourseData
.
createLargeClassLive
();
JSONObject
largeC
lassCourse
=
getLiveCourseData
.
getLargeClassLiveList
();
String
liveCourseId
=
largeC
ourse
.
getString
(
"result
"
);
String
liveCourseId
=
largeC
lassCourse
.
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getString
(
"liveCourseId
"
);
System
.
out
.
println
(
"liveCourseId ="
+
liveCourseId
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
liveCourseId
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
System
.
out
.
println
(
xmAppApi
);
JSONObject
jsonBody
=
xmAppApi
.
getBodyInJSON
();
System
.
out
.
println
(
"jsonBody =="
+
jsonBody
);
Assert
.
assertEquals
(
"true"
,
jsonBody
.
getString
(
"success"
));
Assert
.
assertEquals
(
"操作成功!"
,
jsonBody
.
getString
(
"message"
));
Assert
.
assertEquals
(
"200"
,
jsonBody
.
getString
(
"code"
));
Assert
.
assertNotNull
(
jsonBody
.
getJSONObject
(
"200"
).
getString
(
"code"
));
}
}
src/main/resources/apicase/apollo.json
View file @
663be9d6
...
...
@@ -229,5 +229,12 @@
"apiContentType"
:
"application/json;charset=UTF-8"
,
"apiName"
:
"导出大班互动课上课记录"
,
"desc"
:
"导出大班互动课上课记录"
},
"API_tencentStartRecord"
:
{
"apiPath"
:
"/apollo/public/businessLive/tencentStartRecord"
,
"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