Commit 4d9c30a9 authored by huangqiang's avatar huangqiang

dd

parent cf7d6da8
# Created by pytest automatically.
*.pyc
report/
*.har
*.xml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CsvFileAttributes">
<option name="attributeMap">
<map>
<entry key="/run.py">
<value>
<Attribute>
<option name="separator" value="," />
</Attribute>
</value>
</entry>
</map>
</option>
</component>
</project>
\ No newline at end of file
Index: run.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+>import pytest\nimport os\n\nif __name__ == '__main__':\n run_config = [\n \"-s\", \"./script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py\",\n \"--alluredir\", \"./report/xml\",\n \"--host\", \"http://192.168.32.36\",\n \"--account\", \"b\",\n \"--db\", \"36\"\n ]\n x = pytest.main(run_config)\n # os模块运行allure命令,来生成html格式的报告(根据刚刚生成的配置信息)\n os.system(\"/Users/huangqiang/WorkPlace/allure-2.13.8/bin/allure generate ./report/xml -o ./report/html --clean\")\n
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/run.py b/run.py
--- a/run.py
+++ b/run.py
@@ -5,8 +5,8 @@
run_config = [
"-s", "./script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py",
"--alluredir", "./report/xml",
- "--host", "http://192.168.32.36",
- "--account", "b",
+ "--host", "https://yf1.jkwljy.com/",
+ "--account", "A",
"--db", "36"
]
x = pytest.main(run_config)
Index: script/ji_yun_ying_pc/statistical_report/data_config/receipt_detail_data.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+>school_areas = [2389,2398,3363,3015,3154,3352,2369,3095,3348,3333,3351,3359,3345,3365,3362,3339,\n 3353,3334,2400,3360,3361,3373,3371,3366,3349,3372,3340,2427,3367,3335,3148,3374,\n 3377,3369,3376,3378,3368,3336,3370,3357,3350,3001,3072,3049,3342,3337,2411,3344,\n 2412,3100,3146,3052,3047,3157,3107,3108,3076,3147,3167,2413,2383,3064,3152,3063,\n 3101,3130,3170,3074,3165,3044,3059,3038,3166,3168,2385,3171,2373,3137,3151,2417,\n 3041,3036,3060,3125,3046,3109,3110,3142,3149,3037,3039,3104,2422,3158,2407,2386,\n 3099,2410,3067,3329,2371,3330,3133,3071,3070,3053,3065,3150,3061,3126,3062,2423,\n 2364,3043,2415,3131,2388,3096,2376,3042,3127,2402,2359,2365,2408,2425,3002,2391,\n 3135,3136,3153,3139,3144,2419,3075,2416,2421,2363,2368,2403,2414,2392,3138,2406,\n 3156,3155,3097,3098,3141,3069,2405,2399,2397,2360,3145,2420,2404,2374,2401,3054,\n 3124]\nkeywords = [\n {\n \"keyword\": \"黄\",\n \"keyword_type\": \"student_name\",\n },\n {\n \"keyword\": \"文鐘海\",\n \"keyword_type\": \"student_name\",\n },\n {\n \"keyword\": \"19900274554\",\n \"keyword_type\": \"phone\",\n },\n {\n \"keyword\": \"202104091558474052\",\n \"keyword_type\": \"receipt\",\n },\n]
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/script/ji_yun_ying_pc/statistical_report/data_config/receipt_detail_data.py b/script/ji_yun_ying_pc/statistical_report/data_config/receipt_detail_data.py
--- a/script/ji_yun_ying_pc/statistical_report/data_config/receipt_detail_data.py
+++ b/script/ji_yun_ying_pc/statistical_report/data_config/receipt_detail_data.py
@@ -15,15 +15,15 @@
"keyword_type": "student_name",
},
{
- "keyword": "文鐘海",
+ "keyword": "周移山",
"keyword_type": "student_name",
},
{
- "keyword": "19900274554",
+ "keyword": "19900658922",
"keyword_type": "phone",
},
{
- "keyword": "202104091558474052",
+ "keyword": "202104080942533570",
"keyword_type": "receipt",
},
]
\ No newline at end of file
Index: script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+>import allure\nimport pytest\nimport jsonpath\nfrom script.base_api.service_statistics.statistics import statistics_advance_charge_receipt_post\nfrom script.ji_yun_ying_pc.statistical_report.data_config import receipt_detail_data\nfrom script import public_asserts\nfrom script import public_asserts_api\nfrom script.default_header import jyy_header\n\n\n@allure.epic(\"测试收据明细报表\")\n@allure.feature(\"测试收据明细报表\")\nclass TestReceiptDetail:\n\n @allure.story(\"测试收据明细报表\")\n @allure.step(\"测试收据明细列表查询-关键字筛选\")\n @pytest.mark.parametrize(\"keyword\", receipt_detail_data.keywords)\n def test_list_search(self, keyword):\n keyword_value = keyword.get(\"keyword\")\n body = {\n \"pageNum\": 1,\n \"pageSize\": 1000,\n \"keyword\": keyword_value,\n \"startTime\": \"2021-04-06\",\n \"endTime\": \"2021-04-12\",\n \"schoolIds\": receipt_detail_data.school_areas,\n \"receiptType\": [\"ORDER\", \"REFUND\", \"CARRYOVER\", \"CLASS_CHANGE_IN\", \"CLASS_CHANGE_OUT\"],\n \"schoolAreaType\": \"收费\"\n }\n res = statistics_advance_charge_receipt_post(body=body, header=jyy_header)\n keyword_type = keyword.get(\"keyword_type\")\n if keyword_type == \"student_name\":\n student_names = jsonpath.jsonpath(res, \"$.data.list..studentName\")\n result = public_asserts.assert_res_field_contain_value(student_names, keyword_value)\n pytest.assume(result)\n elif keyword_type == \"receipt\":\n receipts = jsonpath.jsonpath(res, \"$.data.list..orderNo\")\n result = public_asserts.assert_res_field_equal_value(receipts, keyword_value)\n pytest.assume(result)\n else:\n student_ids = jsonpath.jsonpath(res, \"$.data.list..studentId\")\n result = public_asserts_api.assert_phone_search(student_ids, keyword_value)\n pytest.assume(result)\n\n
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py b/script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py
--- a/script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py
+++ b/script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py
@@ -12,8 +12,7 @@
@allure.feature("测试收据明细报表")
class TestReceiptDetail:
- @allure.story("测试收据明细报表")
- @allure.step("测试收据明细列表查询-关键字筛选")
+ @allure.story("测试收据明细列表查询-关键字筛选")
@pytest.mark.parametrize("keyword", receipt_detail_data.keywords)
def test_list_search(self, keyword):
keyword_value = keyword.get("keyword")
Index: .idea/csv-plugin.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/.idea/csv-plugin.xml b/.idea/csv-plugin.xml
new file mode 100644
--- /dev/null
+++ b/.idea/csv-plugin.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="CsvFileAttributes">
+ <option name="attributeMap">
+ <map>
+ <entry key="/run.py">
+ <value>
+ <Attribute>
+ <option name="separator" value="," />
+ </Attribute>
+ </value>
+ </entry>
+ </map>
+ </option>
+ </component>
+</project>
\ No newline at end of file
...@@ -222,82 +222,6 @@ ...@@ -222,82 +222,6 @@
<MESSAGE value="增加allure安装包" /> <MESSAGE value="增加allure安装包" />
<option name="LAST_COMMIT_MESSAGE" value="增加allure安装包" /> <option name="LAST_COMMIT_MESSAGE" value="增加allure安装包" />
</component> </component>
<component name="WindowStateProjectService">
<state x="360" y="197" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1611302358176">
<screen x="0" y="23" width="1792" height="1017" />
</state>
<state x="360" y="197" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.23.1792.1017@0.23.1792.1017" timestamp="1611302358176" />
<state x="642" y="389" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1" timestamp="1617160990990">
<screen x="0" y="23" width="1792" height="1020" />
</state>
<state x="642" y="389" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.23.1792.1020@0.23.1792.1020" timestamp="1617160990990" />
<state x="683" y="296" key="FileChooserDialogImpl" timestamp="1611303152470">
<screen x="0" y="23" width="1792" height="1017" />
</state>
<state x="683" y="296" key="FileChooserDialogImpl/0.23.1792.1017@0.23.1792.1017" timestamp="1611303152470" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom" timestamp="1618223359103">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1009@0.23.1792.1009" timestamp="1618223359103" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714625" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419626" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360303" />
<state width="1771" height="322" key="GridCell.Tab.0.bottom/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706598" />
<state width="1771" height="322" key="GridCell.Tab.0.bottom/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434843" />
<state width="1771" height="319" key="GridCell.Tab.0.center" timestamp="1618223359103">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1009@0.23.1792.1009" timestamp="1618223359103" />
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714624" />
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419625" />
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360303" />
<state width="1771" height="322" key="GridCell.Tab.0.center/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706597" />
<state width="1771" height="322" key="GridCell.Tab.0.center/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1771" height="319" key="GridCell.Tab.0.left" timestamp="1618223359102">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1009@0.23.1792.1009" timestamp="1618223359102" />
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714624" />
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419624" />
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360302" />
<state width="1771" height="322" key="GridCell.Tab.0.left/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706585" />
<state width="1771" height="322" key="GridCell.Tab.0.left/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1771" height="319" key="GridCell.Tab.0.right" timestamp="1618223359103">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1009@0.23.1792.1009" timestamp="1618223359103" />
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714625" />
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419625" />
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360303" />
<state width="1771" height="322" key="GridCell.Tab.0.right/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706598" />
<state width="1771" height="322" key="GridCell.Tab.0.right/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1771" height="338" key="GridCell.Tab.1.bottom" timestamp="1618195326172">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.bottom/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326172" />
<state width="1771" height="338" key="GridCell.Tab.1.center" timestamp="1618195326172">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.center/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326172" />
<state width="1771" height="338" key="GridCell.Tab.1.left" timestamp="1618195326171">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.left/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326171" />
<state width="1771" height="338" key="GridCell.Tab.1.right" timestamp="1618195326172">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.right/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326172" />
<state x="397" y="173" key="SettingsEditor" timestamp="1611303202671">
<screen x="0" y="23" width="1792" height="1015" />
</state>
<state x="397" y="173" key="SettingsEditor/0.23.1792.1015@0.23.1792.1015" timestamp="1611303202671" />
<state x="397" y="173" key="SettingsEditor/0.23.1792.1017@0.23.1792.1017" timestamp="1611302888504" />
<state x="496" y="266" key="Vcs.Push.Dialog.v2" timestamp="1618198928993">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state x="496" y="266" key="Vcs.Push.Dialog.v2/0.23.1792.1009@0.23.1792.1009" timestamp="1618198928993" />
<state x="496" y="267" key="Vcs.Push.Dialog.v2/0.23.1792.1015@0.23.1792.1015" timestamp="1611382527150" />
</component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
<breakpoints> <breakpoints>
......
...@@ -5,10 +5,10 @@ if __name__ == '__main__': ...@@ -5,10 +5,10 @@ if __name__ == '__main__':
run_config = [ run_config = [
"-s", "./script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py", "-s", "./script/ji_yun_ying_pc/statistical_report/test_receipt_detail.py",
"--alluredir", "./report/xml", "--alluredir", "./report/xml",
"--host", "http://192.168.32.36", "--host", "https://yf1.jkwljy.com",
"--account", "b", "--account", "A",
"--db", "36" "--db", "36"
] ]
x = pytest.main(run_config) x = pytest.main(run_config)
# os模块运行allure命令,来生成html格式的报告(根据刚刚生成的配置信息) # os模块运行allure命令,来生成html格式的报告(根据刚刚生成的配置信息)
os.system("/Users/huangqiang/WorkPlace/allure-2.13.8/bin/allure generate ./report/xml -o ./report/html --clean") # os.system("/Users/huangqiang/WorkPlace/allure-2.13.8/bin/allure generate ./report/xml -o ./report/html --clean")
...@@ -15,15 +15,15 @@ keywords = [ ...@@ -15,15 +15,15 @@ keywords = [
"keyword_type": "student_name", "keyword_type": "student_name",
}, },
{ {
"keyword": "文鐘海", "keyword": "周移山",
"keyword_type": "student_name", "keyword_type": "student_name",
}, },
{ {
"keyword": "19900274554", "keyword": "19900658922",
"keyword_type": "phone", "keyword_type": "phone",
}, },
{ {
"keyword": "202104091558474052", "keyword": "202104080942533570",
"keyword_type": "receipt", "keyword_type": "receipt",
}, },
] ]
\ No newline at end of file
...@@ -12,8 +12,7 @@ from script.default_header import jyy_header ...@@ -12,8 +12,7 @@ from script.default_header import jyy_header
@allure.feature("测试收据明细报表") @allure.feature("测试收据明细报表")
class TestReceiptDetail: class TestReceiptDetail:
@allure.story("测试收据明细报表") @allure.story("测试收据明细列表查询-关键字筛选")
@allure.step("测试收据明细列表查询-关键字筛选")
@pytest.mark.parametrize("keyword", receipt_detail_data.keywords) @pytest.mark.parametrize("keyword", receipt_detail_data.keywords)
def test_list_search(self, keyword): def test_list_search(self, keyword):
keyword_value = keyword.get("keyword") keyword_value = keyword.get("keyword")
......
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