Commit d419a76e authored by lanjiali's avatar lanjiali

校区费用预警查询

parent fdc2b4e5
......@@ -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>
......
......@@ -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",
......
......@@ -110,3 +110,5 @@ classTypes = [
}
]
#汇总方式
groups = [{"":"school_area_id"}, "big_area_id", "area_id"]
......@@ -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,'蓝')
......
# 校区费用预警
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 = {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment