Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
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-sportstest
Commits
bff9225f
Commit
bff9225f
authored
Mar 16, 2024
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增会员管理接口
parent
5480e87b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/xiaomai/cases/polar/member/TestSearch.java
+4
-4
No files found.
src/main/java/com/xiaomai/cases/polar/member/TestSearch.java
View file @
bff9225f
...
@@ -32,7 +32,7 @@ public class TestSearch extends XMBaseTest {
...
@@ -32,7 +32,7 @@ public class TestSearch extends XMBaseTest {
{
"HISTORY"
}
{
"HISTORY"
}
};
};
}
}
@Test
(
description
=
"获取
正式会员和流失会员
列表"
,
dataProvider
=
"dataProvider"
)
@Test
(
description
=
"获取
会员管理(正式会员/流失会员)
列表"
,
dataProvider
=
"dataProvider"
)
public
void
testSearch
(
String
status
){
public
void
testSearch
(
String
status
){
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
...
@@ -51,7 +51,7 @@ public class TestSearch extends XMBaseTest {
...
@@ -51,7 +51,7 @@ public class TestSearch extends XMBaseTest {
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
JSONObject
response
=
xmAppApi
.
getBodyInJSON
();
JSONObject
response
=
xmAppApi
.
getBodyInJSON
();
String
success
=
response
.
getString
(
"success"
);
String
success
=
response
.
getString
(
"success"
);
Assert
.
assertEquals
(
"true"
,
success
,
"获取会员管理(正式会员/流失
学
员)列表失败"
);
Assert
.
assertEquals
(
"true"
,
success
,
"获取会员管理(正式会员/流失
会
员)列表失败"
);
}
}
...
@@ -62,7 +62,7 @@ public class TestSearch extends XMBaseTest {
...
@@ -62,7 +62,7 @@ public class TestSearch extends XMBaseTest {
{
"HISTORY"
}
{
"HISTORY"
}
};
};
}
}
@Test
(
description
=
"筛选
正式会员/流失学员
来源、当前创建人、性别"
,
dataProvider
=
"dataProvider1"
)
@Test
(
description
=
"筛选
会员管理(正式会员/流失学员)列表
来源、当前创建人、性别"
,
dataProvider
=
"dataProvider1"
)
public
void
testSearchResource
(
String
status
){
public
void
testSearchResource
(
String
status
){
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
...
@@ -85,7 +85,7 @@ public class TestSearch extends XMBaseTest {
...
@@ -85,7 +85,7 @@ public class TestSearch extends XMBaseTest {
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
jsonObject
.
toJSONString
(),
headers
).
assetsSuccess
(
true
);
JSONObject
response
=
xmAppApi
.
getBodyInJSON
();
JSONObject
response
=
xmAppApi
.
getBodyInJSON
();
String
success
=
response
.
getString
(
"success"
);
String
success
=
response
.
getString
(
"success"
);
Assert
.
assertEquals
(
"true"
,
success
,
"筛选会员管理(正式会员/流失学员)
来源
失败"
);
Assert
.
assertEquals
(
"true"
,
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