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
6ab56ccc
Commit
6ab56ccc
authored
Feb 07, 2021
by
zhangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review
parent
fff6111d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/main/java/com/live/cases/apollo/TestAddRelation.java
+2
-3
src/main/java/com/live/cases/musicPlay/TestAddCourseStu.java
+3
-2
src/main/java/com/live/xmutils/GetOnlyOneCourseData.java
+4
-4
No files found.
src/main/java/com/live/cases/apollo/TestAddRelation.java
View file @
6ab56ccc
...
@@ -23,9 +23,8 @@ public class TestAddRelation extends XMBaseTest {
...
@@ -23,9 +23,8 @@ public class TestAddRelation extends XMBaseTest {
xmAppApi
.
setApiModule
(
ApiModele
.
CloudClass_apollo
)
// API 所属模块 必传 读取配置文件config.properties配置的api地址
xmAppApi
.
setApiModule
(
ApiModele
.
CloudClass_apollo
)
// API 所属模块 必传 读取配置文件config.properties配置的api地址
.
setApiName
(
"api_addRelation"
)
// API 名称 必传
.
setApiName
(
"api_addRelation"
)
// API 名称 必传
.
setLoginUser
(
"zhangy-b"
)
// http 接口,测试账号 必传
.
setLoginUser
(
"zhangy-b"
)
// http 接口,测试账号 必传
.
setTerminal
(
Terminal
.
B
);
// 所属端位(B端,C端,M端等, 必传)
.
setTerminal
(
Terminal
.
B
);
// 所属端位(B端,C端,M端等, 必传)
// dal.setCase_owner("zhangying")
dal
.
setCase_owner
(
"zhangying"
);
// .setCase_name(Thread.currentThread().getStackTrace()[1].getFileName().split("\\.")[0]);
super
.
beforeTest
();
super
.
beforeTest
();
}
}
...
...
src/main/java/com/live/cases/musicPlay/TestAddCourseStu.java
View file @
6ab56ccc
...
@@ -25,6 +25,7 @@ public class TestAddCourseStu extends XMBaseTest {
...
@@ -25,6 +25,7 @@ public class TestAddCourseStu extends XMBaseTest {
.
setApiName
(
"API_addCourseStu"
)
// API 名称 必传
.
setApiName
(
"API_addCourseStu"
)
// API 名称 必传
.
setLoginUser
(
"zhangy-b"
)
// http 接口,测试账号 必传
.
setLoginUser
(
"zhangy-b"
)
// http 接口,测试账号 必传
.
setTerminal
(
Terminal
.
B
);
// 所属端位(B端,C端,M端等, 必传)
.
setTerminal
(
Terminal
.
B
);
// 所属端位(B端,C端,M端等, 必传)
dal
.
setCase_owner
(
"zhangying"
);
super
.
beforeTest
();
super
.
beforeTest
();
System
.
out
.
println
(
xmAppApi
);
System
.
out
.
println
(
xmAppApi
);
}
}
...
@@ -33,7 +34,7 @@ public class TestAddCourseStu extends XMBaseTest {
...
@@ -33,7 +34,7 @@ public class TestAddCourseStu extends XMBaseTest {
* 测试乐器陪练课-添加学员"不扣课时学员(自动化测试)"
* 测试乐器陪练课-添加学员"不扣课时学员(自动化测试)"
*/
*/
@Test
//
@Test
public
void
testAddCourseStu
()
{
public
void
testAddCourseStu
()
{
GetOnlyOneCourseData
onlyOneCourseData
=
new
GetOnlyOneCourseData
();
GetOnlyOneCourseData
onlyOneCourseData
=
new
GetOnlyOneCourseData
();
JSONObject
onlyOneClassCourse
=
onlyOneCourseData
.
creatOnlyOneCourse
();
JSONObject
onlyOneClassCourse
=
onlyOneCourseData
.
creatOnlyOneCourse
();
...
@@ -66,7 +67,7 @@ public class TestAddCourseStu extends XMBaseTest {
...
@@ -66,7 +67,7 @@ public class TestAddCourseStu extends XMBaseTest {
* 测试乐器陪练课-添加学员"扣课时学员(自动化测试)"
* 测试乐器陪练课-添加学员"扣课时学员(自动化测试)"
*/
*/
@Test
//
@Test
public
void
testAddCourseStu1
()
{
public
void
testAddCourseStu1
()
{
GetOnlyOneCourseData
onlyOneCourseData
=
new
GetOnlyOneCourseData
();
GetOnlyOneCourseData
onlyOneCourseData
=
new
GetOnlyOneCourseData
();
JSONObject
onlyOneClassCourse
=
onlyOneCourseData
.
creatOnlyOneCourse
();
JSONObject
onlyOneClassCourse
=
onlyOneCourseData
.
creatOnlyOneCourse
();
...
...
src/main/java/com/live/xmutils/GetOnlyOneCourseData.java
View file @
6ab56ccc
...
@@ -29,8 +29,8 @@ public class GetOnlyOneCourseData extends XMBaseTest {
...
@@ -29,8 +29,8 @@ public class GetOnlyOneCourseData extends XMBaseTest {
// bodyMap.put("courseState","EXPIRED");
// bodyMap.put("courseState","EXPIRED");
String
bodydata
=
JSONObject
.
toJSONString
(
bodyMap
);
String
bodydata
=
JSONObject
.
toJSONString
(
bodyMap
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
params
,
bodydata
,
dataheadrs
);
//
dataApi.doRequest(RequestType.JSON, params, bodydata, dataheadrs);
dataApi
.
doRequest
(
RequestType
.
JSON
,
params
,
bodydata
,
headers
);
JSONObject
liveCourseList
=
dataApi
.
getBodyInJSON
();
JSONObject
liveCourseList
=
dataApi
.
getBodyInJSON
();
return
liveCourseList
;
return
liveCourseList
;
...
@@ -43,8 +43,8 @@ public class GetOnlyOneCourseData extends XMBaseTest {
...
@@ -43,8 +43,8 @@ public class GetOnlyOneCourseData extends XMBaseTest {
.
setTerminal
(
Terminal
.
B
);
.
setTerminal
(
Terminal
.
B
);
super
.
beforeDataRequest
();
super
.
beforeDataRequest
();
dataApi
.
doRequest
(
RequestType
.
JSON
,
params
,
buildCreateLargeClassLiveParam
().
toJSONString
(),
headers
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
params
,
buildCreateLargeClassLiveParam
().
toJSONString
(),
dataheadrs
);
//
dataApi.doRequest(RequestType.JSON, params, buildCreateLargeClassLiveParam().toJSONString(), dataheadrs);
JSONObject
liveCourse
=
dataApi
.
getBodyInJSON
();
JSONObject
liveCourse
=
dataApi
.
getBodyInJSON
();
return
liveCourse
;
return
liveCourse
;
...
...
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