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
56ef759e
Commit
56ef759e
authored
Jun 14, 2024
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单
parent
209003dc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
150 additions
and
88 deletions
+150
-88
src/main/java/com/xiaomai/cases/polar/finance/order/OrderTools.java
+113
-56
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageMemberVoucher.java
+9
-2
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageMemberVoucherItem.java
+10
-2
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageVoucher.java
+3
-7
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageVoucherItem.java
+3
-7
src/main/java/com/xiaomai/cases/polar/finance/order/TestSumMemberVoucherAmount.java
+8
-2
src/main/java/com/xiaomai/cases/polar/finance/order/TestSumVoucherAmount.java
+2
-6
src/main/java/com/xiaomai/cases/polar/finance/order/TestSumVoucherItemAmount.java
+2
-6
No files found.
src/main/java/com/xiaomai/cases/polar/finance/order/OrderTools.java
View file @
56ef759e
...
...
@@ -12,9 +12,14 @@ public class OrderTools extends XMBaseTest {
/**
* @param
* @description:获取会员详情-订单管理列表
* @param supplierId:卖家ID 场馆ID
* @param receiverId:会员ID
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
pageMemberVoucher
(
String
current
,
String
size
,
String
supplierId
,
String
receiverId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
public
JSONObject
pageMemberVoucher
(
String
supplierId
,
String
receiverId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageMemberVoucher"
)
...
...
@@ -22,13 +27,13 @@ public class OrderTools extends XMBaseTest {
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
""
);
jsonObject
.
put
(
"size"
,
""
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
supplierId
);
jsonObject
.
put
(
"receiverId"
,
receiverId
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
...
...
@@ -38,9 +43,14 @@ public class OrderTools extends XMBaseTest {
/**
* @param
* @description:获取会员详情-订单管理金额统计
* @param supplierId:卖家ID 场馆ID
* @param receiverId:会员ID
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
sumMemberVoucherAmount
(
String
current
,
String
size
,
String
supplierId
,
String
receiverId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
public
JSONObject
sumMemberVoucherAmount
(
String
supplierId
,
String
receiverId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_sumMemberVoucherAmount"
)
...
...
@@ -48,13 +58,13 @@ public class OrderTools extends XMBaseTest {
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
""
);
jsonObject
.
put
(
"size"
,
""
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
supplierId
);
jsonObject
.
put
(
"receiverId"
,
receiverId
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
...
...
@@ -64,9 +74,14 @@ public class OrderTools extends XMBaseTest {
/**
* @param
* @description:获取会员详情-订单明细列表
* @param supplierId:卖家ID 场馆ID
* @param receiverId:会员ID
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
pageMemberVoucherItem
(
String
current
,
String
size
,
String
supplierId
,
String
receiverId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
public
JSONObject
pageMemberVoucherItem
(
String
supplierId
,
String
receiverId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageMemberVoucherItem"
)
...
...
@@ -74,13 +89,13 @@ public class OrderTools extends XMBaseTest {
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
""
);
jsonObject
.
put
(
"size"
,
""
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
supplierId
);
jsonObject
.
put
(
"receiverId"
,
receiverId
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
...
...
@@ -91,9 +106,13 @@ public class OrderTools extends XMBaseTest {
/**
* @param
* @description:获取订单管理-订单管理列表
* @param supplierId:卖家ID 场馆ID
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
pageVoucher
(
String
current
,
String
size
,
String
supplierId
,
String
receiv
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
public
JSONObject
pageVoucher
(
String
suppli
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageVoucher"
)
...
...
@@ -101,13 +120,12 @@ public class OrderTools extends XMBaseTest {
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
""
);
jsonObject
.
put
(
"size"
,
""
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
supplierId
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
...
...
@@ -117,9 +135,13 @@ public class OrderTools extends XMBaseTest {
/**
* @param
* @description:获取订单管理-订单管理金额统计
* @param supplierId:卖家ID 场馆ID
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
sumVoucherAmount
(
String
current
,
String
size
,
String
supplierId
,
String
receiv
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
public
JSONObject
sumVoucherAmount
(
String
suppli
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_sumVoucherAmount"
)
...
...
@@ -127,13 +149,12 @@ public class OrderTools extends XMBaseTest {
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
""
);
jsonObject
.
put
(
"size"
,
""
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
supplierId
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
...
...
@@ -143,9 +164,13 @@ public class OrderTools extends XMBaseTest {
/**
* @param
* @description:获取订单管理-订单明细列表
* @param supplierId:卖家ID 场馆ID
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
pageVoucherItem
(
String
current
,
String
size
,
String
supplierId
,
String
receiv
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
public
JSONObject
pageVoucherItem
(
String
suppli
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageVoucherItem"
)
...
...
@@ -153,13 +178,12 @@ public class OrderTools extends XMBaseTest {
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
""
);
jsonObject
.
put
(
"size"
,
""
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
supplierId
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
...
...
@@ -169,9 +193,13 @@ public class OrderTools extends XMBaseTest {
/**
* @param
* @description:获取订单管理-订单明细金额统计
* @param supplierId:卖家ID 场馆ID
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
sumVoucherItemAmount
(
String
current
,
String
size
,
String
supplierId
,
String
receiv
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
public
JSONObject
sumVoucherItemAmount
(
String
suppli
erId
,
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_sumVoucherItemAmount"
)
...
...
@@ -179,13 +207,42 @@ public class OrderTools extends XMBaseTest {
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
""
);
jsonObject
.
put
(
"size"
,
""
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
supplierId
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
return
response
;
}
/**
* @param
* @description: 获取会员卡列表
* @param brandId:品牌ID
* @param studioId:场馆ID
* @param operatorId:操作人ID
* @author: yangfangfang
**/
public
JSONObject
fetchPageOfMemberCard
(
String
brandId
,
String
studioId
,
String
operatorId
,
DataUserInfo
...
dataUserInfos
){
dataApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_fetchPageOfMemberCard"
)
.
setTerminal
(
Terminal
.
B
);
super
.
beforeDataRequest
(
dataUserInfos
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"title"
,
""
);
jsonObject
.
put
(
"shelfState"
,
"YES"
);
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"brandId"
,
brandId
);
jsonObject
.
put
(
"studioId"
,
studioId
);
jsonObject
.
put
(
"operatorId"
,
operatorId
);
dataApi
.
doRequest
(
RequestType
.
JSON
,
dataparams
,
jsonObject
.
toJSONString
(),
dataheadrs
).
assetsSuccess
(
true
);
JSONObject
response
=
dataApi
.
getBodyInJSON
();
...
...
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageMemberVoucher.java
View file @
56ef759e
package
com
.
xiaomai
.
cases
.
polar
.
finance
.
order
;
import
com.alibaba.fastjson.JSONObject
;
import
com.xiaomai.cases.polar.member.Tools
;
import
com.xiaomai.enums.ApiModule
;
import
com.xiaomai.enums.LoginAccount
;
import
com.xiaomai.enums.RequestType
;
...
...
@@ -12,11 +13,13 @@ import org.testng.annotations.Test;
public
class
TestPageMemberVoucher
extends
XMBaseTest
{
Tools
tools
=
new
Tools
();
@BeforeMethod
public
void
beforeTest
(){
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageMemberVoucher"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setLoginUser
(
LoginAccount
.
GYM_PROD
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"yff"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
...
...
@@ -25,11 +28,15 @@ public class TestPageMemberVoucher extends XMBaseTest {
@Test
(
description
=
"获取会员详情-订单管理列表"
)
public
void
testPageMemberVoucher
(){
//获取会员ID
String
receiverId
=
tools
.
search
(
"NORMAL"
,
"NORMAL"
).
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getString
(
"id"
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
"1777254935106740226"
);
jsonObject
.
put
(
"receiverId"
,
receiverId
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
...
...
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageMemberVoucherItem.java
View file @
56ef759e
package
com
.
xiaomai
.
cases
.
polar
.
finance
.
order
;
import
com.alibaba.fastjson.JSONObject
;
import
com.xiaomai.cases.polar.member.Tools
;
import
com.xiaomai.enums.ApiModule
;
import
com.xiaomai.enums.LoginAccount
;
import
com.xiaomai.enums.RequestType
;
...
...
@@ -12,11 +13,13 @@ import org.testng.annotations.Test;
public
class
TestPageMemberVoucherItem
extends
XMBaseTest
{
Tools
tools
=
new
Tools
();
@BeforeMethod
public
void
beforeTest
(){
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageMemberVoucherItem"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setLoginUser
(
LoginAccount
.
GYM_PROD
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"yff"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
...
...
@@ -26,11 +29,16 @@ public class TestPageMemberVoucherItem extends XMBaseTest {
@Test
(
description
=
"获取会员详情-订单明细列表"
)
public
void
testPageMemberVoucherItem
(){
//获取会员ID
String
receiverId
=
tools
.
search
(
"NORMAL"
,
"NORMAL"
).
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getString
(
"id"
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
"1777254935106740226"
);
jsonObject
.
put
(
"receiverId"
,
receiverId
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
...
...
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageVoucher.java
View file @
56ef759e
...
...
@@ -19,7 +19,7 @@ public class TestPageVoucher extends XMBaseTest {
public
void
beforeTest
(){
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageVoucher"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setLoginUser
(
LoginAccount
.
GYM_PROD
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"yff"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
...
...
@@ -32,7 +32,6 @@ public class TestPageVoucher extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
...
...
@@ -43,13 +42,12 @@ public class TestPageVoucher extends XMBaseTest {
Assert
.
assertEquals
(
success
,
"true"
,
"获取订单管理列表失败"
);
}
@Test
(
description
=
"获取财务中心-订单管理列表-无筛选-无卖家ID(场馆ID)、
场馆ID、品牌
ID、操作人ID"
)
@Test
(
description
=
"获取财务中心-订单管理列表-无筛选-无卖家ID(场馆ID)、
品牌ID、场馆
ID、操作人ID"
)
public
void
testPageVoucher1
(){
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
...
...
@@ -63,7 +61,6 @@ public class TestPageVoucher extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"source"
,
"OFFLINE_SOURCE"
);
JSONArray
states
=
new
JSONArray
();
...
...
@@ -84,8 +81,7 @@ public class TestPageVoucher extends XMBaseTest {
jsonObject
.
put
(
"operationTimeEnd"
,
TimeUtils
.
getCurrentTime
());
JSONArray
salesmanIds
=
new
JSONArray
();
salesmanIds
.
add
(
"1772880092185255937"
);
salesmanIds
.
add
(
"1774376463837065218"
);
salesmanIds
.
add
(
xmAppApi
.
getLoginInfo
().
getAdminId
());
jsonObject
.
put
(
"salesmanIds"
,
salesmanIds
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
...
...
src/main/java/com/xiaomai/cases/polar/finance/order/TestPageVoucherItem.java
View file @
56ef759e
...
...
@@ -18,7 +18,7 @@ public class TestPageVoucherItem extends XMBaseTest {
public
void
beforeTest
(){
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_pageVoucherItem"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setLoginUser
(
LoginAccount
.
GYM_PROD
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"yff"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
...
...
@@ -31,7 +31,6 @@ public class TestPageVoucherItem extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
...
...
@@ -42,13 +41,12 @@ public class TestPageVoucherItem extends XMBaseTest {
Assert
.
assertEquals
(
success
,
"true"
,
"获取订单明细列表失败"
);
}
@Test
(
description
=
"获取财务中心-订单明细列表-无筛选-无卖家ID(场馆ID)、
场馆ID、品牌
ID、操作人ID"
)
@Test
(
description
=
"获取财务中心-订单明细列表-无筛选-无卖家ID(场馆ID)、
品牌ID、场馆
ID、操作人ID"
)
public
void
testPageVoucherItem1
(){
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
...
...
@@ -62,7 +60,6 @@ public class TestPageVoucherItem extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"createdStart"
,
TimeUtils
.
getMonthFristDay
());
jsonObject
.
put
(
"createdEnd"
,
TimeUtils
.
getCurrentTime
());
...
...
@@ -72,8 +69,7 @@ public class TestPageVoucherItem extends XMBaseTest {
jsonObject
.
put
(
"operationTimeEnd"
,
TimeUtils
.
getCurrentTime
());
JSONArray
salesmanIds
=
new
JSONArray
();
salesmanIds
.
add
(
"1772880092185255937"
);
salesmanIds
.
add
(
"1774376463837065218"
);
salesmanIds
.
add
(
xmAppApi
.
getLoginInfo
().
getAdminId
());
jsonObject
.
put
(
"salesmanIds"
,
salesmanIds
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
...
...
src/main/java/com/xiaomai/cases/polar/finance/order/TestSumMemberVoucherAmount.java
View file @
56ef759e
package
com
.
xiaomai
.
cases
.
polar
.
finance
.
order
;
import
com.alibaba.fastjson.JSONObject
;
import
com.xiaomai.cases.polar.member.Tools
;
import
com.xiaomai.enums.ApiModule
;
import
com.xiaomai.enums.LoginAccount
;
import
com.xiaomai.enums.RequestType
;
...
...
@@ -12,11 +13,13 @@ import org.testng.annotations.Test;
public
class
TestSumMemberVoucherAmount
extends
XMBaseTest
{
Tools
tools
=
new
Tools
();
@BeforeMethod
public
void
beforeTest
(){
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_sumMemberVoucherAmount"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setLoginUser
(
LoginAccount
.
GYM_PROD
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"yff"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
...
...
@@ -26,11 +29,14 @@ public class TestSumMemberVoucherAmount extends XMBaseTest {
@Test
(
description
=
"获取会员详情-订单管理金额统计"
)
public
void
testSumMemberVoucherAmount
(){
//获取会员ID
String
receiverId
=
tools
.
search
(
"NORMAL"
,
"NORMAL"
).
getJSONObject
(
"result"
).
getJSONArray
(
"records"
).
getJSONObject
(
0
).
getString
(
"id"
);
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
"1777254935106740226"
);
jsonObject
.
put
(
"receiverId"
,
receiverId
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
...
...
src/main/java/com/xiaomai/cases/polar/finance/order/TestSumVoucherAmount.java
View file @
56ef759e
...
...
@@ -19,7 +19,7 @@ public class TestSumVoucherAmount extends XMBaseTest {
public
void
beforeTest
()
{
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_sumVoucherAmount"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setLoginUser
(
LoginAccount
.
GYM_PROD
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"yff"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
...
...
@@ -32,7 +32,6 @@ public class TestSumVoucherAmount extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
...
...
@@ -59,7 +58,6 @@ public class TestSumVoucherAmount extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"source"
,
"OFFLINE_SOURCE"
);
JSONArray
states
=
new
JSONArray
();
...
...
@@ -80,8 +78,7 @@ public class TestSumVoucherAmount extends XMBaseTest {
jsonObject
.
put
(
"operationTimeEnd"
,
TimeUtils
.
getCurrentTime
());
JSONArray
salesmanIds
=
new
JSONArray
();
salesmanIds
.
add
(
"1772880092185255937"
);
salesmanIds
.
add
(
"1774376463837065218"
);
salesmanIds
.
add
(
xmAppApi
.
getLoginInfo
().
getAdminId
());
jsonObject
.
put
(
"salesmanIds"
,
salesmanIds
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
...
...
@@ -102,7 +99,6 @@ public class TestSumVoucherAmount extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
...
...
src/main/java/com/xiaomai/cases/polar/finance/order/TestSumVoucherItemAmount.java
View file @
56ef759e
...
...
@@ -18,7 +18,7 @@ public class TestSumVoucherItemAmount extends XMBaseTest {
public
void
beforeTest
(){
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Finance
)
.
setApiName
(
"API_sumVoucherItemAmount"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setLoginUser
(
LoginAccount
.
GYM_PROD
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"yff"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
...
...
@@ -31,7 +31,6 @@ public class TestSumVoucherItemAmount extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
jsonObject
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"operatorId"
,
xmAppApi
.
getLoginInfo
().
getAdminId
());
...
...
@@ -57,7 +56,6 @@ public class TestSumVoucherItemAmount extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
""
);
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"brandId"
,
""
);
jsonObject
.
put
(
"studioId"
,
""
);
jsonObject
.
put
(
"operatorId"
,
""
);
...
...
@@ -71,7 +69,6 @@ public class TestSumVoucherItemAmount extends XMBaseTest {
jsonObject
.
put
(
"current"
,
0
);
jsonObject
.
put
(
"size"
,
20
);
jsonObject
.
put
(
"supplierId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
jsonObject
.
put
(
"receiverId"
,
""
);
jsonObject
.
put
(
"createdStart"
,
TimeUtils
.
getMonthFristDay
());
jsonObject
.
put
(
"createdEnd"
,
TimeUtils
.
getCurrentTime
());
...
...
@@ -81,8 +78,7 @@ public class TestSumVoucherItemAmount extends XMBaseTest {
jsonObject
.
put
(
"operationTimeEnd"
,
TimeUtils
.
getCurrentTime
());
JSONArray
salesmanIds
=
new
JSONArray
();
salesmanIds
.
add
(
"1772880092185255937"
);
salesmanIds
.
add
(
"1774376463837065218"
);
salesmanIds
.
add
(
xmAppApi
.
getLoginInfo
().
getAdminId
());
jsonObject
.
put
(
"salesmanIds"
,
salesmanIds
);
jsonObject
.
put
(
"brandId"
,
xmAppApi
.
getLoginInfo
().
getBrandId
());
...
...
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