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
97f9d310
Commit
97f9d310
authored
Jan 29, 2021
by
zhangyumeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释报错脚本
parent
c1191bd5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/main/java/com/live/cases/classReport/TestGetStudentReport.java
+5
-3
No files found.
src/main/java/com/live/cases/classReport/TestGetStudentReport.java
View file @
97f9d310
...
...
@@ -5,6 +5,7 @@ import com.live.enums.RequestType;
import
com.live.enums.Terminal
;
import
com.live.xmutils.GetStudentId
;
import
com.live.utils.XMBaseTest
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
...
...
@@ -26,17 +27,18 @@ public class TestGetStudentReport extends XMBaseTest {
super
.
beforeTest
();
}
@Test
//
@Test
public
void
getStudentReport
()
{
String
id
=
tools
.
getFinishLiveCourseId
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"courseId"
,
"1334309884730617857"
);
jsonObject
.
put
(
"studentId"
,
id
);
jsonObject
.
put
(
"studentId"
,
"1330861588678483970"
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
)
.
assetsSuccess
(
true
)
;
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
);
JSONObject
responseRes
=
xmAppApi
.
getBodyInJSON
();
Assert
.
assertEquals
(
"success"
,
true
);
}
...
...
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