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
d419a76e
Commit
d419a76e
authored
Apr 28, 2021
by
lanjiali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校区费用预警查询
parent
fdc2b4e5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
9 deletions
+67
-9
workspace.xml
.idea/workspace.xml
+13
-3
run.py
run.py
+1
-1
report_config.py
..._yun_ying_pc/lanjiali_report/data_config/report_config.py
+2
-0
test_demo.py
script/ji_yun_ying_pc/lanjiali_report/test_demo.py
+1
-5
test_school_expense.py
script/ji_yun_ying_pc/lanjiali_report/test_school_expense.py
+50
-0
No files found.
.idea/workspace.xml
View file @
d419a76e
...
...
@@ -19,8 +19,10 @@
<select
/>
</component>
<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_school_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$/run.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/run.py"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/data_config/report_config.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/script/ji_yun_ying_pc/lanjiali_report/data_config/report_config.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"
/>
</list>
...
...
@@ -233,7 +235,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1619436496702
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"7"
/>
<task
id=
"LOCAL-00007"
summary=
"学生费用预警查询-学生信息对比"
>
<created>
1619520894653
</created>
<option
name=
"number"
value=
"00007"
/>
<option
name=
"presentableId"
value=
"LOCAL-00007"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1619520894653
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"8"
/>
<servers
/>
</component>
<component
name=
"Vcs.Log.Tabs.Properties"
>
...
...
@@ -254,7 +263,8 @@
<MESSAGE
value=
"修复return_json的bug"
/>
<MESSAGE
value=
"关键字查询"
/>
<MESSAGE
value=
"学生费用预警查询"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"学生费用预警查询"
/>
<MESSAGE
value=
"学生费用预警查询-学生信息对比"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"学生费用预警查询-学生信息对比"
/>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
...
...
run.py
View file @
d419a76e
...
...
@@ -3,7 +3,7 @@ import os
if
__name__
==
'__main__'
:
run_config
=
[
"-s"
,
"./script/ji_yun_ying_pc/lanjiali_report/test_
demo
.py"
,
"-s"
,
"./script/ji_yun_ying_pc/lanjiali_report/test_
school_expense
.py"
,
"--alluredir"
,
"./report/xml"
,
"--host"
,
"http://192.168.32.31"
,
"--account"
,
"b"
,
...
...
script/ji_yun_ying_pc/lanjiali_report/data_config/report_config.py
View file @
d419a76e
...
...
@@ -110,3 +110,5 @@ classTypes = [
}
]
#汇总方式
groups
=
[{
""
:
"school_area_id"
},
"big_area_id"
,
"area_id"
]
script/ji_yun_ying_pc/lanjiali_report/test_demo.py
View file @
d419a76e
...
...
@@ -8,9 +8,6 @@ from script import public_asserts
from
script.base_api.service_profile
import
students_queryById_get
from
script.ji_yun_ying_pc.lanjiali_report.data_config.report_config
import
*
from
script.base_api.service_report
import
report_finance_student_expense_warning_post
from
script.base_api.service_user.employees
import
*
from
script.default_header
import
jyy_header
import
time
import
pytest
...
...
@@ -219,7 +216,7 @@ class Test_select_student_expense:
@allure.step
(
"学生费用预警-组合筛选"
)
@allure.step
(
"学生费用预警查询-组合筛选"
)
def
test_select_
classTypes
(
self
):
def
test_select_
all
(
self
):
data
=
{
"pageSize"
:
10
,
"pageNum"
:
1
,
...
...
@@ -233,7 +230,6 @@ class Test_select_student_expense:
"schoolAreaIds"
:
school_areas
}
res
=
report_finance_student_expense_warning_post
(
header
=
jyy_header
,
body
=
data
)
print
(
res
)
#校验名字
studentName_list
=
jsonpath
.
jsonpath
(
res
,
"$.data.list..studentName"
)
keyword_res
=
public_asserts
.
assert_res_field_contain_value
(
studentName_list
,
'蓝'
)
...
...
script/ji_yun_ying_pc/lanjiali_report/test_school_expense.py
0 → 100644
View file @
d419a76e
# 校区费用预警
import
allure
import
pytest
import
jsonpath
from
script
import
public_asserts
from
script.base_api
import
report_finance_school_expense_warning_post
from
script.ji_yun_ying_pc.lanjiali_report.data_config.report_config
import
*
from
script.default_header
import
jyy_header
@allure.feature
(
"预警报表-校区费用预警查询"
)
class
Test_select_school_expense_warning
():
@allure.step
(
"校区费用预警-按年份筛选"
)
@pytest.mark.parametrize
(
"year"
,[
select_year
()])
def
test_select_year
(
self
,
year
):
data
=
{
"pageNum"
:
1
,
"pageSize"
:
10
,
"year"
:
year
,
"term"
:
"春"
,
"schoolAreaIds"
:
school_areas
,
"groups"
:
[
"school_area_id"
]
}
res
=
report_finance_school_expense_warning_post
(
header
=
jyy_header
,
body
=
data
)
assert
res
[
'msg'
]
==
'成功'
assert
res
[
'code'
]
==
0
@allure.step
(
"校区费用预警-按期段筛选"
)
@pytest.mark.parametrize
(
"term"
,[
select_term
()])
def
test_select_term
(
self
,
term
):
data
=
{
"pageNum"
:
1
,
"pageSize"
:
10
,
"year"
:
select_year
(),
"term"
:
term
,
"schoolAreaIds"
:
school_areas
,
"groups"
:
[
"school_area_id"
]
}
res
=
report_finance_school_expense_warning_post
(
header
=
jyy_header
,
body
=
data
)
assert
res
[
'msg'
]
==
'成功'
assert
res
[
'code'
]
==
0
@allure.step
(
"校区费用预警-组合筛选"
)
@pytest.mark.parametrize
(
""
)
def
test_select_all
(
self
):
data
=
{
}
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