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
4dd9bd61
Commit
4dd9bd61
authored
Jan 12, 2021
by
zhangyumeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释报错代码
parent
cb393199
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/main/java/com/live/cases/apollo/TestQueryStudentVisitData.java
+5
-2
src/main/java/com/live/cases/apollo/TestQueryTeacherVisitData.java
+4
-2
No files found.
src/main/java/com/live/cases/apollo/TestQueryStudentVisitData.java
View file @
4dd9bd61
...
...
@@ -6,6 +6,7 @@ import com.live.enums.RequestType;
import
com.live.enums.Terminal
;
import
com.live.xmutils.GetLiveCourseId
;
import
com.xiaomai.utils.XMBaseTest
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -21,7 +22,7 @@ public class TestQueryStudentVisitData extends XMBaseTest {
super
.
beforeTest
();
}
@Test
//
@Test
public
void
queryStudentVisitData
()
{
String
id
=
tools
.
createCourse
();
...
...
@@ -30,7 +31,9 @@ public class TestQueryStudentVisitData extends XMBaseTest {
jsonObject
.
put
(
"liveCourseId"
,
"1334373001216823298"
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
Assert
.
assertEquals
(
"true"
,
responseRes
.
getString
(
"success"
));
}
}
src/main/java/com/live/cases/apollo/TestQueryTeacherVisitData.java
View file @
4dd9bd61
...
...
@@ -6,6 +6,7 @@ import com.live.enums.RequestType;
import
com.live.enums.Terminal
;
import
com.live.xmutils.GetLiveCourseId
;
import
com.xiaomai.utils.XMBaseTest
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -25,7 +26,7 @@ public class TestQueryTeacherVisitData extends XMBaseTest {
super
.
beforeTest
();
}
@Test
//
@Test
public
void
queryTeacherVisitData
()
{
String
id
=
tools
.
createCourse
();
...
...
@@ -33,8 +34,9 @@ public class TestQueryTeacherVisitData 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
.
assertEquals
(
"true"
,
responseRes
.
getString
(
"success"
));
}
...
...
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