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
26d5e736
Commit
26d5e736
authored
Aug 27, 2025
by
xuyamei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存量训练营数据
parent
0f016901
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestTrainingSign.java
+10
-11
No files found.
src/main/java/com/xiaomai/cases/polar/schedule/camp/TestTrainingSign.java
View file @
26d5e736
...
...
@@ -43,7 +43,7 @@ public class TestTrainingSign extends BaseTestImpl {
@Test
(
description
=
"训练营签到"
)
public
void
testTrainingSign
()
{
// 训练营课表查询存量的训练营课次
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
887314841778122754
"
);
// 造存量训练营活动,最多课次只能排200个课时,所以需要训练营排课时间结束之后重新造训练营数据(因报名人数很多,所以可以进行批量导入)
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
960520725768978433
"
);
// 造存量训练营活动,最多课次只能排200个课时,所以需要训练营排课时间结束之后重新造训练营数据(因报名人数很多,所以可以进行批量导入)
scheduleId
=
getCampScheduleTable
.
getJSONObject
(
0
).
getString
(
"scheduleId"
);
// 训练营课次详情
...
...
@@ -91,7 +91,7 @@ public class TestTrainingSign extends BaseTestImpl {
String
[]
result
=
new
String
[]{
"id"
,
"benefitId"
,
"reserveMemberNum"
,
"courseType"
,
"reserveState"
,
"scheduleId"
,
"signInState"
};
String
[]
resultData
=
new
String
[]{
reserveId
,
benefitId
,
"1"
,
"TRAINING_CAMP"
,
"SUCCESS"
,
scheduleId
,
"SIGNED"
};
// check 2.1 预约记录列表
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"SIGNED"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
887314841778122754
"
);
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"SIGNED"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
960520725768978433
"
);
boolean
success
=
false
;
for
(
int
i
=
0
;
i
<
getPageByStudio
.
size
();
i
++)
{
if
(
getPageByStudio
.
getJSONObject
(
i
).
getString
(
"id"
).
equals
(
reserveId
))
{
...
...
@@ -123,7 +123,7 @@ public class TestTrainingSign extends BaseTestImpl {
@Test
(
description
=
"训练营请假"
,
priority
=
1
)
public
void
testTrainingSign_Leave
()
{
// 训练营课表查询存量的训练营课次
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
887314841778122754
"
);
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
960520725768978433
"
);
scheduleId
=
getCampScheduleTable
.
getJSONObject
(
0
).
getString
(
"scheduleId"
);
// 训练营课次详情
...
...
@@ -170,7 +170,7 @@ public class TestTrainingSign extends BaseTestImpl {
String
[]
result
=
new
String
[]
{
"id"
,
"benefitId"
,
"reserveMemberNum"
,
"courseType"
,
"reserveState"
,
"scheduleId"
,
"signInState"
};
String
[]
resultData
=
new
String
[]
{
reserveId
,
benefitId
,
"1"
,
"TRAINING_CAMP"
,
"SUCCESS"
,
scheduleId
,
"LEAVE"
};
// check 2.1 预约记录列表
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"LEAVE"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
887314841778122754
"
);
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"LEAVE"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
960520725768978433
"
);
boolean
success
=
false
;
for
(
int
i
=
0
;
i
<
getPageByStudio
.
size
();
i
++){
if
(
getPageByStudio
.
getJSONObject
(
i
).
getString
(
"id"
).
equals
(
reserveId
)){
...
...
@@ -200,11 +200,10 @@ public class TestTrainingSign extends BaseTestImpl {
}
@Test
(
description
=
"训练营请假补签到"
,
priority
=
2
)
public
void
testTrainingSign_SIGNED
()
{
// 训练营课表查询存量的训练营课次
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
887314841778122754
"
);
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
960520725768978433
"
);
scheduleId
=
getCampScheduleTable
.
getJSONObject
(
0
).
getString
(
"scheduleId"
);
// 训练营课次详情
...
...
@@ -259,7 +258,7 @@ public class TestTrainingSign extends BaseTestImpl {
String
[]
result
=
new
String
[]
{
"id"
,
"benefitId"
,
"reserveMemberNum"
,
"courseType"
,
"reserveState"
,
"scheduleId"
,
"signInState"
};
String
[]
resultData
=
new
String
[]
{
reserveId
,
benefitId
,
"1"
,
"TRAINING_CAMP"
,
"SUCCESS"
,
scheduleId
,
"SIGNED"
};
// check 2.1 预约记录列表
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"SIGNED"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
887314841778122754
"
);
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"SIGNED"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
960520725768978433
"
);
boolean
success
=
false
;
for
(
int
i
=
0
;
i
<
getPageByStudio
.
size
();
i
++){
if
(
getPageByStudio
.
getJSONObject
(
i
).
getString
(
"id"
).
equals
(
reserveId
)){
...
...
@@ -294,7 +293,7 @@ public class TestTrainingSign extends BaseTestImpl {
@Test
(
description
=
"训练营请假标记已补"
,
priority
=
3
)
public
void
testTrainingSign_MARK_REMEDIAL
()
{
// 训练营课表查询存量的训练营课次
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
887314841778122754
"
);
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
960520725768978433
"
);
scheduleId
=
getCampScheduleTable
.
getJSONObject
(
0
).
getString
(
"scheduleId"
);
// 训练营课次详情
...
...
@@ -354,7 +353,7 @@ public class TestTrainingSign extends BaseTestImpl {
String
[]
result
=
new
String
[]
{
"id"
,
"benefitId"
,
"reserveMemberNum"
,
"courseType"
,
"reserveState"
,
"scheduleId"
,
"signInState"
,
"remedialSignState"
};
String
[]
resultData
=
new
String
[]
{
reserveId
,
benefitId
,
"1"
,
"TRAINING_CAMP"
,
"SUCCESS"
,
scheduleId
,
"LEAVE"
,
"MARK_REMEDIAL"
};
// check 2.1 预约记录列表
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"LEAVE"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
887314841778122754
"
);
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"LEAVE"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
960520725768978433
"
);
boolean
success
=
false
;
for
(
int
i
=
0
;
i
<
getPageByStudio
.
size
();
i
++){
if
(
getPageByStudio
.
getJSONObject
(
i
).
getString
(
"id"
).
equals
(
reserveId
)){
...
...
@@ -388,7 +387,7 @@ public class TestTrainingSign extends BaseTestImpl {
@Test
(
description
=
"训练营请假无需补课"
,
priority
=
3
)
public
void
testTrainingSign_NEED_NOT_REMEDIAL
()
{
// 训练营课表查询存量的训练营课次
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
887314841778122754
"
);
JSONArray
getCampScheduleTable
=
campScheduleTools
.
getCampScheduleTable
(
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
"1
960520725768978433
"
);
scheduleId
=
getCampScheduleTable
.
getJSONObject
(
0
).
getString
(
"scheduleId"
);
// 训练营课次详情
...
...
@@ -448,7 +447,7 @@ public class TestTrainingSign extends BaseTestImpl {
String
[]
result
=
new
String
[]
{
"id"
,
"benefitId"
,
"reserveMemberNum"
,
"courseType"
,
"reserveState"
,
"scheduleId"
,
"signInState"
,
"remedialSignState"
};
String
[]
resultData
=
new
String
[]
{
reserveId
,
benefitId
,
"1"
,
"TRAINING_CAMP"
,
"SUCCESS"
,
scheduleId
,
"LEAVE"
,
"NEED_NOT_REMEDIAL"
};
// check 2.1 预约记录列表
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"LEAVE"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
887314841778122754
"
);
JSONArray
getPageByStudio
=
reserveTools
.
getPageByStudio
(
""
,
"SUCCESS"
,
"LEAVE"
,
""
,
TimeUtils
.
getTodayTime
(),
TimeUtils
.
getTodayEndTime
(),
memberId
,
"TRAINING_CAMP"
,
"1
960520725768978433
"
);
boolean
success
=
false
;
for
(
int
i
=
0
;
i
<
getPageByStudio
.
size
();
i
++){
if
(
getPageByStudio
.
getJSONObject
(
i
).
getString
(
"id"
).
equals
(
reserveId
)){
...
...
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