Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jk_interface_test
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huangqiang
jk_interface_test
Commits
78c7aeaa
Commit
78c7aeaa
authored
May 10, 2021
by
lanjiali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学生预警
校区预警 学生收入 校区收入
parent
48a25d80
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
11 deletions
+38
-11
workspace.xml
.idea/workspace.xml
+15
-5
run.py
run.py
+1
-1
test_student_expense.py
...pt/ji_yun_ying_pc/lanjiali_report/test_student_expense.py
+0
-5
test_student_income.py
script/ji_yun_ying_pc/lanjiali_report/test_student_income.py
+22
-0
No files found.
.idea/workspace.xml
View file @
78c7aeaa
...
@@ -19,11 +19,12 @@
...
@@ -19,11 +19,12 @@
<select
/>
<select
/>
</component>
</component>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"54f4d37d-1724-4813-a1e2-24e200088c5f"
name=
"Default Changelist"
comment=
"校区
收入查询
"
>
<list
default=
"true"
id=
"54f4d37d-1724-4813-a1e2-24e200088c5f"
name=
"Default Changelist"
comment=
"校区
费用预警
"
>
<change
afterPath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_s
chool
_expense.py"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_s
tudent
_expense.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/run.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/run.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/run.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/run.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_demo.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_demo.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_demo.py"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_student_income.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/test_student_income.py"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -290,7 +291,14 @@
...
@@ -290,7 +291,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1620468346117
</updated>
<updated>
1620468346117
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"15"
/>
<task
id=
"LOCAL-00015"
summary=
"校区费用预警"
>
<created>
1620640021569
</created>
<option
name=
"number"
value=
"00015"
/>
<option
name=
"presentableId"
value=
"LOCAL-00015"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1620640021569
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"16"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"Vcs.Log.Tabs.Properties"
>
<component
name=
"Vcs.Log.Tabs.Properties"
>
...
@@ -317,6 +325,7 @@
...
@@ -317,6 +325,7 @@
<MESSAGE
value=
"校区费用预警-查询"
/>
<MESSAGE
value=
"校区费用预警-查询"
/>
<MESSAGE
value=
"学生收入查询"
/>
<MESSAGE
value=
"学生收入查询"
/>
<MESSAGE
value=
"校区收入查询"
/>
<MESSAGE
value=
"校区收入查询"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"校区收入查询"
/>
<MESSAGE
value=
"校区费用预警"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"校区费用预警"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
run.py
View file @
78c7aeaa
...
@@ -3,7 +3,7 @@ import os
...
@@ -3,7 +3,7 @@ import os
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
run_config
=
[
run_config
=
[
"-s"
,
"./script/ji_yun_ying_pc/lanjiali_report/test_s
chool_expens
e.py"
,
"-s"
,
"./script/ji_yun_ying_pc/lanjiali_report/test_s
tudent_incom
e.py"
,
"--alluredir"
,
"./report/xml"
,
"--alluredir"
,
"./report/xml"
,
"--host"
,
"http://192.168.32.31"
,
"--host"
,
"http://192.168.32.31"
,
"--account"
,
"b"
,
"--account"
,
"b"
,
...
...
script/ji_yun_ying_pc/lanjiali_report/test_
demo
.py
→
script/ji_yun_ying_pc/lanjiali_report/test_
student_expense
.py
View file @
78c7aeaa
...
@@ -433,8 +433,3 @@ class Test_select_student_expense:
...
@@ -433,8 +433,3 @@ class Test_select_student_expense:
res_page2
=
report_finance_student_expense_warning_post
(
header
=
jyy_header
,
body
=
data2
)
res_page2
=
report_finance_student_expense_warning_post
(
header
=
jyy_header
,
body
=
data2
)
assert
res_page2
[
'msg'
]
==
'成功'
assert
res_page2
[
'msg'
]
==
'成功'
assert
res_page2
[
'data'
][
'pageNum'
]
==
2
assert
res_page2
[
'data'
][
'pageNum'
]
==
2
script/ji_yun_ying_pc/lanjiali_report/test_student_income.py
View file @
78c7aeaa
...
@@ -223,6 +223,28 @@ class Test_student_income():
...
@@ -223,6 +223,28 @@ class Test_student_income():
result
=
public_asserts
.
assert_res_field_equal_value
(
school_area_list
,
schoolarea_name
)
result
=
public_asserts
.
assert_res_field_equal_value
(
school_area_list
,
schoolarea_name
)
pytest
.
assume
(
result
)
pytest
.
assume
(
result
)
@allure.story
(
"学员收入-列表数据汇总"
)
@pytest.mark.parametrize
(
"student_statu,class_type,grade,subject,term,year"
,
[
([
0
],
"极趣班"
,
grades
[
2
],
subjects
[
3
],
select_term
(),
select_year
())
])
def
test_total_studentincome
(
self
,
student_statu
,
class_type
,
grade
,
subject
,
term
,
year
):
data
=
{
"keyword"
:
""
,
"studentStatus"
:
student_statu
,
"classType"
:
[
class_type
],
"grade"
:
[
grade
],
"subject"
:
[
subject
],
"termStr"
:
[
term
],
"year"
:
[
year
],
"pageSize"
:
10
,
"pageNum"
:
1
,
"schoolArea"
:
random
.
sample
(
school_areas
,
1
)
}
res
=
report_finance_student_income_list_post
(
header
=
jyy_header
,
body
=
data
)
print
(
res
)
assert
res
[
'msg'
]
==
'成功'
assert
res
[
'code'
]
==
0
...
...
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