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
161a0e6c
Commit
161a0e6c
authored
Jan 06, 2021
by
fangyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cases
parent
961d4f9a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
src/main/java/com/live/cases/apollo/TestGetCourseDocList.java
+3
-1
src/main/java/com/live/cases/fileManage/testCommonFolderList.java
+2
-0
src/main/java/com/live/cases/largeClassLive/TestCreateBigLiveClass.java
+3
-2
No files found.
src/main/java/com/live/cases/apollo/TestGetCourseDocList.java
View file @
161a0e6c
...
...
@@ -6,6 +6,7 @@ import com.live.enums.RequestType;
import
com.live.enums.Terminal
;
import
com.live.utils.GetLiveCourseId
;
import
com.xiaomai.utils.XMBaseTest
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -35,7 +36,8 @@ public class TestGetCourseDocList extends XMBaseTest {
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"liveCourseId"
,
id
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
)
.
assetsSuccess
(
true
)
;
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
Assert
.
assertNotNull
(
responseRes
);
}
}
src/main/java/com/live/cases/fileManage/testCommonFolderList.java
View file @
161a0e6c
...
...
@@ -5,6 +5,7 @@ import com.live.enums.ApiModele;
import
com.live.enums.RequestType
;
import
com.live.enums.Terminal
;
import
com.xiaomai.utils.XMBaseTest
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -41,6 +42,7 @@ public class testCommonFolderList extends XMBaseTest {
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
//
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
Assert
.
assertNotNull
(
responseRes
);
}
}
src/main/java/com/live/cases/largeClassLive/TestCreateBigLiveClass.java
View file @
161a0e6c
...
...
@@ -7,6 +7,7 @@ import com.live.enums.ApiModele;
import
com.live.enums.RequestType
;
import
com.live.enums.Terminal
;
import
com.xiaomai.utils.XMBaseTest
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -58,10 +59,10 @@ public class TestCreateBigLiveClass extends XMBaseTest {
System
.
out
.
println
(
"请求"
+
jsonObject
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
)
.
assetsSuccess
(
true
)
;
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
Assert
.
assertNotNull
(
responseRes
);
}
}
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