作者 bianxinhua

add README

... ... @@ -2,26 +2,29 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d6814b48-28ec-40b6-bcea-dcd9b8613715" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/reports/20200812T033205.613604.html" afterDir="false" />
<change afterPath="$PROJECT_DIR$/reports/20200812T033521.571604.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.env" beforeDir="false" afterPath="$PROJECT_DIR$/.env" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/app_api/order/statistics_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/app_api/order/statistics_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_add_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_add_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/app_api/dividend/orders001.api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/app_api/dividend/orders001.api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/app_api/order/list_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/app_api/order/list_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/actual/m_edit_order_actual_api.yml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/actual/m_order_actual_partner_list_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/actual/m_order_actual_partner_list_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/actual/m_order_actual_searchText_list_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/actual/m_order_actual_searchText_list_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/accessToken.csv" beforeDir="false" afterPath="$PROJECT_DIR$/config/accessToken.csv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/authCode.csv" beforeDir="false" afterPath="$PROJECT_DIR$/config/authCode.csv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/m_accessToken.csv" beforeDir="false" afterPath="$PROJECT_DIR$/config/m_accessToken.csv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/refreshToken.csv" beforeDir="false" afterPath="$PROJECT_DIR$/config/refreshToken.csv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/debugtalk.py" beforeDir="false" afterPath="$PROJECT_DIR$/debugtalk.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/helpfunc/pg_app_db_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/helpfunc/pg_app_db_func.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200806T015502.489234.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200806T020234.973114.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200806T020249.929970.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200806T022337.373320.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200806T022632.120315.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200806T034153.490922.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200807T130412.509038.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200807T131750.133804.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/testcases/order/order_statistics_testcases.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testcases/order/order_statistics_testcases.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/helpfunc/pg_db_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/helpfunc/pg_db_func.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/logs/testsuites/partner_testsuite.parse_failed.json" beforeDir="false" afterPath="$PROJECT_DIR$/logs/testsuites/partner_testsuite.parse_failed.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200812T033205.613604.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200812T033521.571604.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/testcases/actual/ACTUAL002_edit_actual_testcases.yml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/testcases/actual/ACTUAL004_actual_list_testcases.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testcases/actual/ACTUAL004_actual_list_testcases.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testcases/dividend/dividend_orders002_testcases.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testcases/dividend/dividend_orders002_testcases.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testcases/order/order_list_testcases.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testcases/order/order_list_testcases.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testcases_excel/partner_api.xlsx" beforeDir="false" afterPath="$PROJECT_DIR$/testcases_excel/partner_api.xlsx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testsuites/partner_testsuite.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testsuites/partner_testsuite.yml" afterDir="false" />
</list>
... ... @@ -33,74 +36,65 @@
</component>
<component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/partner_api$debugtalk.coverage" NAME="debugtalk Coverage Results" MODIFIED="1595408122991" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/partner_api$pg_app_db_func.coverage" NAME="pg_app_db_func Coverage Results" MODIFIED="1597204031938" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/helpfunc" />
<SUITE FILE_PATH="coverage/partner_api$pg_app_db_func.coverage" NAME="pg_app_db_func Coverage Results" MODIFIED="1597223804431" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/helpfunc" />
<SUITE FILE_PATH="coverage/partner_api$db_pg_func.coverage" NAME="db_pg_func Coverage Results" MODIFIED="1594485069390" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/helpfunc" />
<SUITE FILE_PATH="coverage/partner_api$pg_db_func.coverage" NAME="pg_db_func Coverage Results" MODIFIED="1596181551908" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/helpfunc" />
<SUITE FILE_PATH="coverage/partner_api$pg_db_func.coverage" NAME="pg_db_func Coverage Results" MODIFIED="1597224770757" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/helpfunc" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testsuites/partner_testsuite.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2210">
<caret line="85" selection-start-line="85" selection-end-line="86" selection-end-column="60" />
<state relative-caret-position="1041">
<caret line="94" selection-start-line="94" selection-start-column="1" selection-end-line="95" selection-end-column="66" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/api/app_api/login/login_api.yml">
<entry file="file://$PROJECT_DIR$/testcases/actual/ACTUAL004_actual_list_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
<caret line="15" column="33" selection-start-line="15" selection-start-column="33" selection-end-line="15" selection-end-column="33" />
<state relative-caret-position="520">
<caret line="20" column="52" selection-start-line="20" selection-start-column="52" selection-end-line="20" selection-end-column="52" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/api/app_api/order/statistics_api.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_order_actual_searchText_list_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="962">
<caret line="37" column="54" selection-start-line="37" selection-start-column="36" selection-end-line="37" selection-end-column="54" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcases/order/order_statistics_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="182">
<caret line="7" column="34" selection-start-line="7" selection-start-column="34" selection-end-line="7" selection-end-column="52" />
<state relative-caret-position="78">
<caret line="3" column="49" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="49" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/helpfunc/pg_app_db_func.py">
<entry file="file://$PROJECT_DIR$/helpfunc/pg_db_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4170">
<caret line="344" column="56" selection-start-line="344" selection-start-column="56" selection-end-line="344" selection-end-column="56" />
<folding>
<element signature="e#108#123#0" expanded="true" />
</folding>
<state relative-caret-position="996">
<caret line="189" column="24" lean-forward="true" selection-start-line="189" selection-start-column="24" selection-end-line="189" selection-end-column="24" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_order_actual_partner_list_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="208">
<caret line="8" column="19" selection-start-line="8" selection-start-column="19" selection-end-line="8" selection-end-column="19" />
<state relative-caret-position="104">
<caret line="4" column="4" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="46" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml">
<entry file="file://$PROJECT_DIR$/helpfunc/pg_app_db_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="676">
<caret line="26" column="25" selection-start-line="26" selection-start-column="25" selection-end-line="26" selection-end-column="25" />
<state relative-caret-position="74">
<caret line="60" column="32" selection-start-line="60" selection-start-column="4" selection-end-line="60" selection-end-column="32" />
<folding>
<element signature="e#108#123#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
... ... @@ -123,8 +117,6 @@
<find>allShipmentQuantity</find>
<find>get_allShipmentQuantity_from_database</find>
<find>intentionQuantity</find>
<find>received</find>
<find>outstanding</find>
<find>ArgumentParser</find>
<find>print(get_expend_from_database())</find>
<find>todayIntentionMoney</find>
... ... @@ -138,6 +130,13 @@
<find>cumulativeMoney</find>
<find>tbl</find>
<find>cumulativeQuantity</find>
<find>receivable</find>
<find>get_partner_account_from_database()</find>
<find>partner_account</find>
<find>get_partner_account</find>
<find>received</find>
<find>outstanding</find>
<find>get_order_status_from_database</find>
</findStrings>
</component>
<component name="Git.Settings">
... ... @@ -146,10 +145,6 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/testcases/actual/ACTUAL005_actual_detail_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/purpose/PURPOSE001_add_purpose_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_edit_order_actual_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_order_actual_searchText_list_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_order_actual_detail_api.yml" />
<option value="$PROJECT_DIR$/testcases/purpose/PURPOSE002_edit_purpose_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_partner_list_api.yml" />
... ... @@ -171,32 +166,36 @@
<option value="$PROJECT_DIR$/testcases/order/order_list_2_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/order/intentions_api.yml" />
<option value="$PROJECT_DIR$/testcases/order/order_intentions_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml" />
<option value="$PROJECT_DIR$/debugtalk.py" />
<option value="$PROJECT_DIR$/api/app_api/order/details_api.yml" />
<option value="$PROJECT_DIR$/testcases/order/order_details_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/user/userInfo_api.yml" />
<option value="$PROJECT_DIR$/testcases/user/user_userInfo_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/login_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/dividend/orders001api.yml" />
<option value="$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_orders002_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/order/list_api.yml" />
<option value="$PROJECT_DIR$/testcases/order/order_list_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_convert_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_sendout_api.yml" />
<option value="$PROJECT_DIR$/helpfunc/pg_db_func.py" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_edit_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_add_order_actual_api.yml" />
<option value="$PROJECT_DIR$/.env" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_add_api.yml" />
<option value="$PROJECT_DIR$/api/app_api/order/statistics_api.yml" />
<option value="$PROJECT_DIR$/testcases/order/order_statistics_testcases.yml" />
<option value="$PROJECT_DIR$/testsuites/partner_testsuite.yml" />
<option value="$USER_HOME$/AppData/Local/Programs/Python/Python38/Lib/site-packages/httprunner/report/html/template.html" />
<option value="$PROJECT_DIR$/testcases/order/order_list_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/order/list_api.yml" />
<option value="$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml" />
<option value="$PROJECT_DIR$/debugtalk.py" />
<option value="$PROJECT_DIR$/api/app_api/dividend/orders001.api.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_orders002_testcases.yml" />
<option value="$PROJECT_DIR$/helpfunc/pg_app_db_func.py" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_order_actual_partner_list_api.yml" />
<option value="$PROJECT_DIR$/testsuites/partner_testsuite.yml" />
<option value="$PROJECT_DIR$/testcases/actual/ACTUAL004_actual_list_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_order_actual_searchText_list_api.yml" />
<option value="$PROJECT_DIR$/helpfunc/pg_db_func.py" />
</list>
</option>
</component>
... ... @@ -228,51 +227,30 @@
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="app_api" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="app_api" type="462c0819:PsiDirectoryNode" />
<item name="dividend" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="app_api" type="462c0819:PsiDirectoryNode" />
<item name="login" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="app_api" type="462c0819:PsiDirectoryNode" />
<item name="order" type="462c0819:PsiDirectoryNode" />
<item name="m_api" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="m_api" type="462c0819:PsiDirectoryNode" />
<item name="actual" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="m_api" type="462c0819:PsiDirectoryNode" />
<item name="actual" type="462c0819:PsiDirectoryNode" />
<item name="helpfunc" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="helpfunc" type="462c0819:PsiDirectoryNode" />
<item name="testcases" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="testcases" type="462c0819:PsiDirectoryNode" />
<item name="actual" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
... ... @@ -338,7 +316,7 @@
</list>
</option>
</component>
<component name="RunManager" selected="Python.pg_app_db_func">
<component name="RunManager" selected="Python.pg_db_func">
<configuration name="db_pg_func" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="partner_api" />
<option name="INTERPRETER_OPTIONS" value="" />
... ... @@ -429,8 +407,8 @@
</configuration>
<recent_temporary>
<list>
<item itemvalue="Python.pg_app_db_func" />
<item itemvalue="Python.pg_db_func" />
<item itemvalue="Python.pg_app_db_func" />
<item itemvalue="Python.debugtalk" />
<item itemvalue="Python.db_pg_func" />
</list>
... ... @@ -480,12 +458,12 @@
<workItem from="1596805266484" duration="1392000" />
<workItem from="1596899522553" duration="58000" />
<workItem from="1597197819907" duration="7375000" />
<workItem from="1597211046716" duration="599000" />
<workItem from="1597211046716" duration="9744000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="186062000" />
<option name="totallyTimeSpent" value="195207000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -497,11 +475,11 @@
<window_info anchor="bottom" id="Docker" order="0" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" order="1" weight="0.2857143" />
<window_info anchor="bottom" id="Message" order="2" />
<window_info anchor="bottom" id="Event Log" order="3" side_tool="true" />
<window_info anchor="bottom" id="Find" order="4" weight="0.32879046" />
<window_info anchor="bottom" id="Event Log" order="3" sideWeight="0.5005365" side_tool="true" weight="0.32700893" />
<window_info anchor="bottom" id="Find" order="4" sideWeight="0.49946353" weight="0.328125" />
<window_info anchor="bottom" id="Python Console" order="5" weight="0.328125" />
<window_info anchor="bottom" id="Database Changes" order="6" />
<window_info active="true" anchor="bottom" id="Run" order="7" visible="true" weight="0.32700893" />
<window_info anchor="bottom" id="Run" order="7" sideWeight="0.49946353" weight="0.32700893" />
<window_info anchor="bottom" id="Version Control" order="8" weight="0.32879046" />
<window_info anchor="bottom" id="Debug" order="9" weight="0.4" />
<window_info anchor="bottom" id="Cvs" order="10" weight="0.25" />
... ... @@ -518,41 +496,6 @@
<option name="version" value="1" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE004_purpose_list_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="110">
<caret line="14" column="67" selection-start-line="14" selection-start-column="67" selection-end-line="14" selection-end-column="67" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_searchText_list_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="6" selection-start-column="6" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE005_purpose_sendout_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="66">
<caret line="12" column="17" lean-forward="true" selection-start-line="12" selection-start-column="17" selection-end-line="12" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_detail_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="6" lean-forward="true" selection-start-column="6" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE006_purpose_detail_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="176">
<caret line="14" column="58" selection-start-line="14" selection-start-column="58" selection-end-line="14" selection-end-column="58" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/m_login_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="88">
... ... @@ -589,16 +532,6 @@
<entry file="file://$PROJECT_DIR$/api/app_api/order/list_0_api.yml" />
<entry file="file://$PROJECT_DIR$/testcases/order/order_intentions_testcases.yml" />
<entry file="file://$PROJECT_DIR$/api/app_api/order/intentions_api.yml" />
<entry file="file://$PROJECT_DIR$/debugtalk.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1782">
<caret line="91" selection-start-line="91" selection-end-line="91" />
<folding>
<element signature="e#0#13#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/order/details_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state>
... ... @@ -652,185 +585,226 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders001.api.yml">
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE001_add_purpose_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="6" selection-start-column="6" selection-end-column="16" />
<state relative-caret-position="286">
<caret line="13" column="55" selection-start-line="13" selection-start-column="55" selection-end-line="13" selection-end-column="55" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml">
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE002_edit_purpose_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="6" lean-forward="true" selection-start-column="6" selection-end-column="16" />
<state relative-caret-position="154">
<caret line="13" column="56" selection-start-line="13" selection-start-column="56" selection-end-line="13" selection-end-column="56" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_sendout_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="22">
<caret line="1" column="10" selection-start-line="1" selection-start-column="10" selection-end-line="1" selection-end-column="20" />
<state relative-caret-position="154">
<caret line="7" column="58" selection-start-line="7" selection-start-column="58" selection-end-line="7" selection-end-column="58" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_orders002_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_edit_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="22">
<caret line="1" column="10" lean-forward="true" selection-start-line="1" selection-start-column="10" selection-end-line="1" selection-end-column="20" />
<state relative-caret-position="832">
<caret line="32" column="12" selection-start-line="32" selection-start-column="12" selection-end-line="32" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/order/order_list_testcases.yml">
<entry file="file://$PROJECT_DIR$/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="308">
<caret line="14" column="40" selection-start-line="14" selection-start-column="40" selection-end-line="14" selection-end-column="40" />
<state relative-caret-position="182">
<caret line="7" selection-start-line="7" selection-end-line="7" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE001_add_purpose_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_add_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="13" column="55" selection-start-line="13" selection-start-column="55" selection-end-line="13" selection-end-column="55" />
<caret line="11" column="52" lean-forward="true" selection-start-line="11" selection-start-column="8" selection-end-line="11" selection-end-column="52" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE002_edit_purpose_testcases.yml">
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python38/Lib/site-packages/urllib3/request.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="154">
<caret line="13" column="56" selection-start-line="13" selection-start-column="56" selection-end-line="13" selection-end-column="56" />
<state relative-caret-position="658">
<caret line="170" selection-start-line="170" selection-end-line="170" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/pg_db_func.py">
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python38/Lib/site-packages/httprunner/report/report.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="5854">
<caret line="316" selection-start-line="316" selection-end-line="316" />
<state relative-caret-position="-905">
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_sendout_api.yml">
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python38/Lib/site-packages/httprunner/report/html/template.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="154">
<caret line="7" column="58" selection-start-line="7" selection-start-column="58" selection-end-line="7" selection-end-column="58" />
<state relative-caret-position="286">
<caret line="293" column="50" selection-start-line="293" selection-start-column="50" selection-end-line="293" selection-end-column="50" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_edit_api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/order/statistics_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="832">
<caret line="32" column="12" selection-start-line="32" selection-start-column="12" selection-end-line="32" selection-end-column="12" />
<state relative-caret-position="962">
<caret line="37" column="54" selection-start-line="37" selection-start-column="36" selection-end-line="37" selection-end-column="54" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/.env">
<entry file="file://$PROJECT_DIR$/testcases/order/order_statistics_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="182">
<caret line="7" selection-start-line="7" selection-end-line="7" />
<caret line="7" column="34" selection-start-line="7" selection-start-column="34" selection-end-line="7" selection-end-column="52" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_add_api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/login/login_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="11" column="52" lean-forward="true" selection-start-line="11" selection-start-column="8" selection-end-line="11" selection-end-column="52" />
<state relative-caret-position="390">
<caret line="15" column="33" selection-start-line="15" selection-start-column="33" selection-end-line="15" selection-end-column="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/order/list_api.yml">
<entry file="file://$PROJECT_DIR$/testcases/order/order_list_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="676">
<caret line="26" column="22" selection-start-line="26" selection-start-column="22" selection-end-line="26" selection-end-column="22" />
<state relative-caret-position="546">
<caret line="21" column="25" selection-start-line="21" selection-start-column="25" selection-end-line="21" selection-end-column="25" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_edit_order_actual_api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="26">
<caret line="2" selection-start-line="2" selection-end-line="9" selection-end-column="59" />
<state relative-caret-position="306">
<caret line="38" selection-start-line="38" selection-end-line="44" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_add_order_actual_api.yml">
<entry file="file://$PROJECT_DIR$/debugtalk.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="338">
<caret line="14" column="19" selection-start-line="14" selection-start-column="19" selection-end-line="14" selection-end-column="19" />
<state relative-caret-position="361">
<caret line="85" column="48" selection-start-line="85" selection-start-column="48" selection-end-line="85" selection-end-column="48" />
<folding>
<element signature="e#0#13#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python38/Lib/site-packages/urllib3/request.py">
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="658">
<caret line="170" selection-start-line="170" selection-end-line="170" />
<state relative-caret-position="488">
<caret line="33" column="10" selection-start-line="33" selection-start-column="10" selection-end-line="33" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python38/Lib/site-packages/httprunner/report/report.py">
<entry file="file://$PROJECT_DIR$/api/app_api/order/list_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-905">
<folding>
<element signature="e#0#11#0" expanded="true" />
</folding>
<state relative-caret-position="387">
<caret line="33" column="23" selection-start-line="33" selection-start-column="23" selection-end-line="33" selection-end-column="23" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/AppData/Local/Programs/Python/Python38/Lib/site-packages/httprunner/report/html/template.html">
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders001.api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="293" column="50" selection-start-line="293" selection-start-column="50" selection-end-line="293" selection-end-column="50" />
<state relative-caret-position="161">
<caret line="7" selection-start-line="7" selection-end-line="9" selection-end-column="85" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testsuites/partner_testsuite.yml">
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2210">
<caret line="85" selection-start-line="85" selection-end-line="86" selection-end-column="60" />
<state relative-caret-position="213">
<caret line="22" selection-start-line="22" selection-end-line="30" selection-end-column="30" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/login/login_api.yml">
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_orders002_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
<caret line="15" column="33" selection-start-line="15" selection-start-column="33" selection-end-line="15" selection-end-column="33" />
<state relative-caret-position="104">
<caret line="4" column="51" selection-start-line="4" selection-start-column="51" selection-end-line="4" selection-end-column="51" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/order/statistics_api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="962">
<caret line="37" column="54" selection-start-line="37" selection-start-column="36" selection-end-line="37" selection-end-column="54" />
<state relative-caret-position="213">
<caret line="9" column="85" selection-start-line="9" selection-start-column="85" selection-end-line="9" selection-end-column="85" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/order/order_statistics_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_edit_order_actual_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="182">
<caret line="7" column="34" selection-start-line="7" selection-start-column="34" selection-end-line="7" selection-end-column="52" />
<state relative-caret-position="364">
<caret line="15" column="9" lean-forward="true" selection-start-line="15" selection-start-column="9" selection-end-line="15" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_add_order_actual_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="208">
<caret line="8" column="19" selection-start-line="8" selection-start-column="19" selection-end-line="8" selection-end-column="19" />
<state relative-caret-position="182">
<caret line="14" column="19" selection-start-line="14" selection-start-column="19" selection-end-line="14" selection-end-column="19" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml">
<entry file="file://$PROJECT_DIR$/testcases/actual/ACTUAL002_edit_actual_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="676">
<caret line="26" column="25" selection-start-line="26" selection-start-column="25" selection-end-line="26" selection-end-column="25" />
<state relative-caret-position="383">
<caret line="18" lean-forward="true" selection-start-line="18" selection-end-line="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/pg_app_db_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="4170">
<caret line="344" column="56" selection-start-line="344" selection-start-column="56" selection-end-line="344" selection-end-column="56" />
<state relative-caret-position="74">
<caret line="60" column="32" selection-start-line="60" selection-start-column="4" selection-end-line="60" selection-end-column="32" />
<folding>
<element signature="e#108#123#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/actual/ACTUAL003_actual_list_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_order_actual_partner_list_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="104">
<caret line="4" column="4" selection-start-line="4" selection-start-column="4" selection-end-line="4" selection-end-column="46" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testsuites/partner_testsuite.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1041">
<caret line="94" selection-start-line="94" selection-start-column="1" selection-end-line="95" selection-end-column="66" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/actual/ACTUAL004_actual_list_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="520">
<caret line="20" column="52" selection-start-line="20" selection-start-column="52" selection-end-line="20" selection-end-column="52" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_order_actual_searchText_list_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="78">
<caret line="3" column="49" selection-start-line="3" selection-start-column="19" selection-end-line="3" selection-end-column="49" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/pg_db_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="996">
<caret line="189" column="24" lean-forward="true" selection-start-line="189" selection-start-column="24" selection-end-line="189" selection-end-column="24" />
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
... ...
... ... @@ -5,9 +5,9 @@ variables:
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
sign: ${make_sign($currtime, $uuid, $var_access_token)}
# received: ${get_received_from_database()}
total: ${get_detailAction_0_from_database()}
# startTime: ${get_January_timestamp()}
order_code: ${get_detailAction_0_order_code_from_database()}
plan_order_amount: ${get_detailAction_0_plan_order_amount_from_database()}
use_partner_bonus: ${get_detailAction_0_use_partner_bonus_amount_from_database()}
endTime: ${get_Decembe_timestamp()}
msg: 成功
request:
... ... @@ -34,6 +34,12 @@ validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.total
- $total
\ No newline at end of file
- eq:
- content.data.list.0.deliveryNo
- $order_code
- eq:
- content.data.list.0.orderAmount
- $plan_order_amount
- eq:
- content.data.list.0.dividendReceivable
- $use_partner_bonus
\ No newline at end of file
... ...
... ... @@ -5,9 +5,9 @@ variables:
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
sign: ${make_sign($currtime, $uuid, $var_access_token)}
# received: ${get_received_from_database()}
total: ${get_detailAction_0_from_database()}
# startTime: ${get_January_timestamp()}
order_code: ${get_detailAction_0_order_code_from_database()}
plan_order_amount: ${get_detailAction_0_plan_order_amount_from_database()}
use_partner_bonus: ${get_detailAction_0_use_partner_bonus_amount_from_database()}
endTime: ${get_Decembe_timestamp()}
msg: 成功
request:
... ... @@ -34,6 +34,12 @@ validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.total
- $total
\ No newline at end of file
- eq:
- content.data.list.0.deliveryNo
- $order_code
- eq:
- content.data.list.0.orderAmount
- $plan_order_amount
- eq:
- content.data.list.0.dividendReceivable
- $use_partner_bonus
\ No newline at end of file
... ...
... ... @@ -5,6 +5,7 @@ variables:
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
sign: ${make_sign($currtime, $uuid, $var_access_token)}
receivable: ${get_receivable_from_database()}
received: ${get_received_from_database()}
outstanding: ${get_outstanding_from_database()}
startTime: ${get_January_timestamp()}
... ... @@ -31,9 +32,14 @@ validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.statistics.received
- $received
- eq:
- content.data.statistics.outstanding
- $outstanding
\ No newline at end of file
- eq:
- content.data.statistics.receivable
- $receivable
- eq:
- content.data.statistics.quarters.1.received
- $received
- eq:
- content.data.statistics.quarters.1.outstanding
- $outstanding
\ No newline at end of file
... ...
... ... @@ -5,6 +5,7 @@ variables:
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
sign: ${make_sign($currtime, $uuid, $var_access_token)}
total: ${get_total_from_database()}
msg: 成功
request:
headers:
... ... @@ -28,4 +29,7 @@ request:
validate:
- eq:
- content.msg
- $msg
\ No newline at end of file
- $msg
- eq:
- content.data.total
- $total
\ No newline at end of file
... ...
name: 意向订单编辑
base_url: ${ENV(base_manager_url)}
variables:
address: ${get_actual_address_from_database(order)}
id: ${get_actual_id_from_database(order)}
buyer: ${get_actual_buyer_from_database(order)}
buyerPhone: ${get_actual_buyerPhone_from_database(order)}
orderDist: ${get_actual_orderDist_from_database(order)}
orderId: ${get_actual_orderId_from_database(order)}
orderName: ${get_actual_orderName_from_database(order)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
buyer: $buyer
buyerPhone: $buyerPhone
address: $address
partner: 29
partnerRatio: 10.1
salesmanRatio: 20.2
orderId: $orderId
orderName: $orderName
orderNum: 100
orderPrice: 100
orderDist: $orderDist
orderStatue: 2
id: $id
reason: 修改订单${get_nowtime()}
method: POST
url: v1/order/actual/update
validate:
- eq:
- content.msg
- ok
... ... @@ -2,6 +2,7 @@ name: 合伙人搜索——实际订单列表
base_url: ${ENV(base_manager_url)}
variables:
orderStatue: ${get_order_status_from_database(order)}
partner: ${get_partner_id_from_database()}
request:
headers:
Content-Type: application/json;charset=utf-8
... ... @@ -10,7 +11,7 @@ request:
json:
pageNumber: 1
pageSize: 10
partner: 29
partner: $partner
searchText: ''
method: POST
url: v1/order/actual/list
... ...
... ... @@ -2,7 +2,8 @@ name: 搜索订单号——实际订单列表
base_url: ${ENV(base_manager_url)}
variables:
orderStatue: ${get_order_status_from_database(order)}
searchText: ${get_actual_orderId_from_database(order)}
searchText: ${get_actual_delivery_code_from_database()}
partner: ${get_partner_id_from_database()}
request:
headers:
Content-Type: application/json;charset=utf-8
... ... @@ -11,7 +12,7 @@ request:
json:
pageNumber: 1
pageSize: 10
partner: 29
partner: $partner
searchText: $searchText
method: POST
url: v1/order/actual/list
... ... @@ -20,5 +21,5 @@ validate:
- content.msg
- ok
- eq:
- content.data.gridResult.lists.0.orderStatue
- content.data.gridResult.lists.0.status
- $orderStatue
\ No newline at end of file
... ...
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMTA1MjUsImlzcyI6Imp3dCJ9.RUTWbqfQEq7QGvsWtJ_s7k8J-rsM4ZEk--q8RIZy1tc
\ No newline at end of file
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMzE1NjEsImlzcyI6Imp3dCJ9.SCmOoYbOdyBU5r1TFKqMBc2mE1Bl5DKczz0qwPYGCDQ
\ No newline at end of file
... ...
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMDQyMjQsImlzcyI6Imp3dCJ9.Dgwkb4m8Hwwj5ViMmOp5cOL_L0Hatw2qqPIUI0wkQpI
\ No newline at end of file
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMjUyNjEsImlzcyI6Imp3dCJ9.Uf0zt3mGOTazmo7kUSPFfKrziMtPQNPFpR23WYwgzQs
\ No newline at end of file
... ...
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTcyNDI2OTcsImlhdCI6MTU5NzE5OTQ5NywiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTU5NzE5OTQ5NywidWlkIjoxOH0.GVz6hlPMNJo4xB5Y_hU3WLI5WF7Dk2YzXm9iG7TtfXs
\ No newline at end of file
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTcyNjc3NjQsImlhdCI6MTU5NzIyNDU2NCwiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTU5NzIyNDU2NCwidWlkIjoxOH0.3LItQh9bAjVXu-77Rl_EbejijxOfA1-CjcpNqWRsXnc
\ No newline at end of file
... ...
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTk3OTUzMjUsImlzcyI6Imp3dCJ9.8XGDZICB7lu03ItOSL7psvQhyMtn0DHne9unDhSXK5U
\ No newline at end of file
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTk4MTYzNjEsImlzcyI6Imp3dCJ9.zr9lz7ptdaJxXew2QElTBhyJ-39zJxjP6jNxjMK0zyo
\ No newline at end of file
... ...
... ... @@ -80,10 +80,10 @@ def get_endTimestamp():
return int(time.mktime(time.strptime(list_time[1], '%Y-%m-%d %H:%M:%S'))*1000)
def get_January_timestamp():
return int(time.mktime(time.strptime('2020-01-01 00:00:00', '%Y-%m-%d %H:%M:%S'))*1000)
return int(time.mktime(time.strptime('2020-04-01 00:00:00', '%Y-%m-%d %H:%M:%S'))*1000)
def get_Decembe_timestamp():
return int(time.mktime(time.strptime('2020-12-31 23:59:59', '%Y-%m-%d %H:%M:%S'))*1000)
return int(time.mktime(time.strptime('2021-3-31 23:59:59', '%Y-%m-%d %H:%M:%S'))*1000)
... ...
... ... @@ -107,6 +107,7 @@ def get_partner_account_from_database():
print(err)
db.rollback()
db.close()
# print(get_partner_account_from_database())
#获取超级管理员密码
def get_partner_password_from_database(tbl):
db = GetConnect()
... ... @@ -202,144 +203,127 @@ def get_receivable_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select sum(COALESCE(partner_bonus_has,0)+COALESCE(partner_bonus_not,0)-COALESCE(partner_bonus_expense,0)) from order_base where create_time between \'{}\' and \'{}\' and order_type in (1) '''.format(get_today(),get_tomorrow())
print(sql)
sql = '''select sum(COALESCE(partner_bonus_has,0)+COALESCE(partner_bonus_not,0)-COALESCE(partner_bonus_expense,0)) from order_base where create_time between \'{}\' and \'{}\' and partner_id = {} and order_type in (1) '''.format('2020-04-1','2021-03-31 23:59:59',get_partner_id_from_database())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return int(result[0])
if round(result[0], 2) == 0:
return 0
else:
return round(result[0], 2)
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#实发订单总数
def get_total_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select count(id) from order_base where create_time between \'{}\' and \'{}\' and partner_id = {} and order_type in (1) '''.format('2020-04-1','2021-03-31 23:59:59',get_partner_id_from_database())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
print(get_receivable_from_database())
#部分发货的订单数量
# def get_partShipmentQuantity_from_database(tbl):
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select COUNT(id) from \"{}\" where partner_id = {} and create_at between \'{}\' and \'{}\' and order_type = 1 and order_status in (2) '''.format(tbl,get_partner_id_from_database('partner_info'),get_starTimestamp(),get_endTimestamp())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return int(result[0])
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #全部发货的订单数量
# def get_allShipmentQuantity_from_database(tbl):
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select COUNT(id) from \"{}\" where partner_id = {} and create_at between \'{}\' and \'{}\' and order_type = 1 and order_status in (3) '''.format(tbl,get_partner_id_from_database('partner_info'),get_starTimestamp(),get_endTimestamp())
# print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return int(result[0])
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# # print(get_allShipmentQuantity_from_database('order'))
# #累计所有年份未收分红
# def get_outstanding_from_database():
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select COALESCE(sum(((order_actual_amount - order_payment_amount ) * partner_bonus_percent)/100),0) as outstanding from \"{}\" where partner_id = {} and create_at between \'{}\' and \'{}\' '''.format('order',get_partner_id_from_database('partner_info'),get_starTimestamp(),get_endTimestamp())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# if round(result[0], 2) == 0:
# return 0
# else:
# return round(result[0],2)
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #累计所有年份已收分红
# def get_received_from_database():
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select COALESCE(sum((order_payment_amount * partner_bonus_percent)/100),0) as received from \"{}\" where partner_id = {} and create_at between \'{}\' and \'{}\' '''.format('order',get_partner_id_from_database('partner_info'),get_starTimestamp(),get_endTimestamp())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# if round(result[0],2) == 0:
# return 0
# else:
# return round(result[0],2)
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
#
# #已收明细数量
# def get_detailAction_0_from_database():
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select COUNT(id) from \"{}\" where partner_id = {} and order_payment_amount > 0 '''.format('order',get_partner_id_from_database('partner_info'))
# # print(sql)id
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
#
# #未收明细数量
# def get_detailAction_1_from_database():
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select COUNT(id) from \"{}\" where partner_id = {} and order_actual_amount > order_payment_amount '''.format('order',get_partner_id_from_database('partner_info'))
# # print(sql)id
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
#
# #季度分红支出
# def get_expend_from_database():
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select sum(((order_amount- order_actual_amount)* partner_bonus_percent)/100) from \"{}\" where partner_id = {} '''.format('order',get_partner_id_from_database())
# # print(sql)id
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# if result[0] == 0:
# return 0
# else:
# return round(result[0],2)
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# # print(get_expend_from_database())
import calendar
print (range(calendar.monthrange(year, month)[1]+1)[1:])
\ No newline at end of file
#累计所有年份未收分红
def get_outstanding_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select sum(partner_bonus_not) from order_base where partner_id = {} and order_type=1 and create_time between \'{}\' and \'{}\' '''.format(get_partner_id_from_database(),'2020-04-01 00:00:00','2021-03-31 23:59:59')
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
if round(result[0], 2) == 0:
return 0
else:
return round(result[0],2)
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
# print(get_outstanding_from_database())
#累计所有年份已收分红
def get_received_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select sum(partner_bonus_has) from order_base where partner_id = {} and order_type=1 and create_time between \'{}\' and \'{}\' '''.format(get_partner_id_from_database(),'2020-04-01 00:00:00','2021-03-31 23:59:59')
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
if round(result[0],2) == 0:
return 0
else:
return round(result[0],2)
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#已收/未收明细列表--发货单号
def get_detailAction_0_order_code_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select order_code from order_base where partner_id = {} and order_type=1 and partner_bonus_has > 0 order by id desc '''.format(get_partner_id_from_database())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#已收/未收明细列表--订单金额
def get_detailAction_0_plan_order_amount_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select plan_order_amount from order_base where partner_id = {} and order_type=1 and partner_bonus_has > 0 order by id desc '''.format(get_partner_id_from_database())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#已收/未收明细列表--应收分红
def get_detailAction_0_use_partner_bonus_amount_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select use_partner_bonus from order_base where partner_id = {} and order_type=1 and partner_bonus_has > 0 order by id desc '''.format(get_partner_id_from_database())
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
# print(get_detailAction_0_use_partner_bonus_amount_from_database())
... ...
... ... @@ -179,10 +179,10 @@ def get_partnername_from_database(tbl):
db.rollback()
db.close()
def get_order_status_from_database(tbl):
def get_order_status_from_database():
db = GetConnect()
cursor = db.cursor()
sql = 'select order_status from \"{}\" where order_type = 1 order by id DESC'.format(tbl)
sql = '''select bonus_status from order_base where order_type = 1 order by id DESC'''
# print(sql)
try:
cursor.execute(sql)
... ... @@ -283,10 +283,10 @@ def get_purpose_orderDist_from_database(tbl):
db.rollback()
db.close()
def get_actual_orderId_from_database(tbl):
def get_actual_delivery_code_from_database():
db = GetConnect()
cursor = db.cursor()
sql = 'select order_code from \"{}\" where order_type = 1 order by id DESC'.format(tbl)
sql = '''select delivery_code from order_base where order_type = 1 order by id DESC'''
# print(sql)
try:
cursor.execute(sql)
... ... @@ -297,7 +297,7 @@ def get_actual_orderId_from_database(tbl):
print(err)
db.rollback()
db.close()
# print(get_actual_delivery_code_from_database())
def get_purpose_orderId_from_database(tbl):
db = GetConnect()
cursor = db.cursor()
... ... @@ -313,5 +313,5 @@ def get_purpose_orderId_from_database(tbl):
db.rollback()
db.close()
# print(get_order_status_from_database('order'))
print(get_order_status_from_database())
... ...
{
"testcase":[
"testcases/actual/ACTUAL005_actual_detail_testcases.yml"
"testcases/dividend/dividend_statistics_testcases.yml"
]
}
\ No newline at end of file
... ...
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> - TestReport</title>
<style>
body {
background-color: #f2f2f2;
color: #333;
margin: 0 auto;
width: 960px;
}
#summary {
width: 960px;
margin-bottom: 20px;
}
#summary th {
background-color: skyblue;
padding: 5px 12px;
}
#summary td {
background-color: lightblue;
text-align: center;
padding: 4px 8px;
}
.details {
width: 960px;
margin-bottom: 20px;
}
.details th {
background-color: skyblue;
padding: 5px 12px;
}
.details tr .passed {
background-color: lightgreen;
}
.details tr .failed {
background-color: red;
}
.details tr .unchecked {
background-color: gray;
}
.details td {
background-color: lightblue;
padding: 5px 12px;
}
.details .detail {
background-color: lightgrey;
font-size: smaller;
padding: 5px 10px;
line-height: 20px;
text-align: left;
}
.details .success {
background-color: greenyellow;
}
.details .error {
background-color: red;
}
.details .failure {
background-color: salmon;
}
.details .skipped {
background-color: gray;
}
.button {
font-size: 1em;
padding: 6px;
width: 4em;
text-align: center;
background-color: #06d85f;
border-radius: 20px/50px;
cursor: pointer;
transition: all 0.3s ease-out;
}
a.button{
color: gray;
text-decoration: none;
display: inline-block;
}
.button:hover {
background: #2cffbd;
}
.overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
transition: opacity 500ms;
visibility: hidden;
opacity: 0;
line-height: 25px;
}
.overlay:target {
visibility: visible;
opacity: 1;
}
.popup {
margin: 70px auto;
padding: 20px;
background: #fff;
border-radius: 10px;
width: 50%;
position: relative;
transition: all 3s ease-in-out;
}
.popup h2 {
margin-top: 0;
color: #333;
font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
position: absolute;
top: 20px;
right: 30px;
transition: all 200ms;
font-size: 30px;
font-weight: bold;
text-decoration: none;
color: #333;
}
.popup .close:hover {
color: #06d85f;
}
.popup .content {
max-height: 80%;
overflow: auto;
text-align: left;
}
.popup .separator {
color:royalblue
}
@media screen and (max-width: 700px) {
.box {
width: 70%;
}
.popup {
width: 70%;
}
}
</style>
</head>
<body>
<h1>Test Report: </h1>
<h2>Summary</h2>
<table id="summary">
<tr>
<th>START AT</th>
<td colspan="4">2020-08-12T03:32:05.613604</td>
</tr>
<tr>
<th>DURATION</th>
<td colspan="4">0.458 seconds</td>
</tr>
<tr>
<th>PLATFORM</th>
<td>HttpRunner 2.5.7 </td>
<td>CPython 3.8.1 </td>
<td colspan="2">Windows-7-6.1.7601-SP1</td>
</tr>
<tr>
<th>STAT</th>
<th colspan="2">TESTCASES (success/fail)</th>
<th colspan="2">TESTSTEPS (success/fail/error/skip)</th>
</tr>
<tr>
<td>total (details) =></td>
<td colspan="2">1 (1/0)</td>
<td colspan="2">2 (2/0/0/0)</td>
</tr>
</table>
<h2>Details</h2>
<h3>statistics:订单统计</h3>
<table id="suite_1" class="details">
<tr>
<td>TOTAL: 2</td>
<td>SUCCESS: 2</td>
<td>FAILED: 0</td>
<td>ERROR: 0</td>
<td>SKIPPED: 0</td>
</tr>
<tr>
<th>Status</th>
<th colspan="2">Name</th>
<th>Response Time</th>
<th>Detail</th>
</tr>
<tr id="record_1_1">
<th class="success" style="width:5em;">success</th>
<td colspan="2">13459147023 登录系统</td>
<td style="text-align:center;width:6em;">199.00 ms</td>
<td class="detail">
<a class="button" href="#popup_log_1_1_1">log-1</a>
<div id="popup_log_1_1_1" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_1_1">&times;</a>
<div class="content">
<h3>Name: 13459147023 登录系统</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/login
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.partner&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;018c9e6df8c2e933e88c771dc450b3e0ed686ef2912b47fea1d856af3986ccb7&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203125616&#34;,
&#34;X-MMM-Uuid&#34;: &#34;64de9785-dc4c-11ea-b83c-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.1.0&#34;,
&#34;Content-Length&#34;: &#34;138&#34;
}</pre>
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;phone&#34;: &#34;13459147023&#34;,
&#34;grantType&#34;: &#34;signInPassword&#34;,
&#34;password&#34;: &#34;7c4a8d09ca3762af61e59520943dc26494f8941b&#34;,
&#34;clientId&#34;: &#34;pdf233Znkjo&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/login
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:32:09 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Content-Length&#34;: &#34;207&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;authCode&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMDQwMjksImlzcyI6Imp3dCJ9.FBT6afVY3Y6ryAuSU3aSv-C9AlNByt8QbN6ISxUD0qA&#34;
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>207</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>136.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>123.272</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<a class="button" href="#popup_log_1_1_2">log-2</a>
<div id="popup_log_1_1_2" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_1_2">&times;</a>
<div class="content">
<h3>Name: 13459147023 获取accessToken</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/accessToken
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.ability&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;fdfceb8faba0084c9f07298364c856a09bae5fa26f26e629d3c79b9a555f051d&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203125908&#34;,
&#34;X-MMM-Uuid&#34;: &#34;650b25c5-dc4c-11ea-a309-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.4.0&#34;,
&#34;Content-Length&#34;: &#34;226&#34;
}</pre>
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;authCode&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMDQwMjksImlzcyI6Imp3dCJ9.FBT6afVY3Y6ryAuSU3aSv-C9AlNByt8QbN6ISxUD0qA&#34;,
&#34;clientId&#34;: &#34;lks3Z8Ncn2j&#34;,
&#34;clientSecret&#34;: &#34;gtfhyjukiol3Qncbvmdwe67khh&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/accessToken
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:32:09 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Transfer-Encoding&#34;: &#34;chunked&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Vary&#34;: &#34;Accept-Encoding&#34;,
&#34;Content-Encoding&#34;: &#34;gzip&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;refreshToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTk3OTUxMjksImlzcyI6Imp3dCJ9.PDB98NaZEmBZJHLmx8SvMJeTzFsyzx9r7k8DQGW2690&#34;,
&#34;accessToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMTAzMjksImlzcyI6Imp3dCJ9.ZzMwZ-gC-c_Ykn6GVhs6CczuDkCdHQGaG1A2tI1BqVE&#34;,
&#34;expiresIn&#34;: 7200
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>394</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>32.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>24.103</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<a class="button" href="#popup_log_1_1_3">log-3</a>
<div id="popup_log_1_1_3" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_1_3">&times;</a>
<div class="content">
<h3>Name: 13459147023 获取用户信息</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/user/userInfo
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMTAzMjksImlzcyI6Imp3dCJ9.ZzMwZ-gC-c_Ykn6GVhs6CczuDkCdHQGaG1A2tI1BqVE&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.ability&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;da349ffa05bb63fc0038ff22e1c816891a4be1c6765b565a83bf63f6bbbb792c&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203125973&#34;,
&#34;X-MMM-Uuid&#34;: &#34;651510d5-dc4c-11ea-b3bf-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.4.0&#34;,
&#34;Content-Length&#34;: &#34;0&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/user/userInfo
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:32:09 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Transfer-Encoding&#34;: &#34;chunked&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Vary&#34;: &#34;Accept-Encoding&#34;,
&#34;Content-Encoding&#34;: &#34;gzip&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;user&#34;: {
&#34;uid&#34;: 29,
&#34;uname&#34;: &#34;卞信华&#34;,
&#34;phone&#34;: &#34;13459147023&#34;,
&#34;company&#34;: {
&#34;id&#34;: 1,
&#34;name&#34;: &#34;福建买买买信息科技有限公司&#34;,
&#34;phone&#34;: &#34;0591-83845802&#34;
},
&#34;joinWay&#34;: {
&#34;id&#34;: 1,
&#34;name&#34;: &#34;事业合伙人&#34;
},
&#34;district&#34;: {
&#34;id&#34;: 0,
&#34;name&#34;: &#34;福建省福州市XXXXX区&#34;
},
&#34;serialNo&#34;: 29,
&#34;cooperationTime&#34;: 1590940800000,
&#34;salesman&#34;: {
&#34;phone&#34;: &#34;13459147023&#34;,
&#34;uname&#34;: &#34;小屁孩&#34;
},
&#34;accid&#34;: 2994483695433811968,
&#34;imToken&#34;: &#34;e965ed61e2dd80d629fd137c01ba50d6&#34;,
&#34;csAccountID&#34;: &#34;3492238958608384&#34;
}
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>check</th>
<th>comparator</th>
<th>expect value</th>
<th>actual value</th>
</tr>
<tr>
<td class="passed">
content.msg
</td>
<td>equals</td>
<td>LazyString($msg)</td>
<td>成功</td>
</tr>
</table>
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>734</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>31.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>28.797</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr id="record_1_2">
<th class="success" style="width:5em;">success</th>
<td colspan="2">13459147023 订单统计</td>
<td style="text-align:center;width:6em;">30.00 ms</td>
<td class="detail">
<a class="button" href="#popup_log_1_2_1">log-1</a>
<div id="popup_log_1_2_1" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_2_1">&times;</a>
<div class="content">
<h3>Name: 13459147023 订单统计</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/order/statistics
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMTAzMjksImlzcyI6Imp3dCJ9.ZzMwZ-gC-c_Ykn6GVhs6CczuDkCdHQGaG1A2tI1BqVE&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.ability&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;09652c4d0da0dbad62b515c8edcf9a6c3259012020675faff25529f1b6a18c3a&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203126021&#34;,
&#34;X-MMM-Uuid&#34;: &#34;651c63d5-dc4c-11ea-bddf-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.4.0&#34;,
&#34;Content-Length&#34;: &#34;0&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/order/statistics
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:32:09 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Content-Length&#34;: &#34;205&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;statistics&#34;: {
&#34;todayRealQuantity&#34;: 2,
&#34;todayRealMoney&#34;: 17.86,
&#34;cumulativeQuantity&#34;: 54,
&#34;cumulativeMoney&#34;: 106734.62
}
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>check</th>
<th>comparator</th>
<th>expect value</th>
<th>actual value</th>
</tr>
<tr>
<td class="passed">
content.msg
</td>
<td>equals</td>
<td>LazyString($msg)</td>
<td>成功</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.cumulativeMoney
</td>
<td>equals</td>
<td>LazyString($cumulativeMoney)</td>
<td>106734.62</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.cumulativeQuantity
</td>
<td>equals</td>
<td>LazyString($cumulativeQuantity)</td>
<td>54</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.todayRealMoney
</td>
<td>equals</td>
<td>LazyString($todayRealMoney)</td>
<td>17.86</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.todayRealQuantity
</td>
<td>equals</td>
<td>LazyString($todayRealQuantity)</td>
<td>2</td>
</tr>
</table>
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>205</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>30.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>27.126</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</body>
\ No newline at end of file
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> - TestReport</title>
<style>
body {
background-color: #f2f2f2;
color: #333;
margin: 0 auto;
width: 960px;
}
#summary {
width: 960px;
margin-bottom: 20px;
}
#summary th {
background-color: skyblue;
padding: 5px 12px;
}
#summary td {
background-color: lightblue;
text-align: center;
padding: 4px 8px;
}
.details {
width: 960px;
margin-bottom: 20px;
}
.details th {
background-color: skyblue;
padding: 5px 12px;
}
.details tr .passed {
background-color: lightgreen;
}
.details tr .failed {
background-color: red;
}
.details tr .unchecked {
background-color: gray;
}
.details td {
background-color: lightblue;
padding: 5px 12px;
}
.details .detail {
background-color: lightgrey;
font-size: smaller;
padding: 5px 10px;
line-height: 20px;
text-align: left;
}
.details .success {
background-color: greenyellow;
}
.details .error {
background-color: red;
}
.details .failure {
background-color: salmon;
}
.details .skipped {
background-color: gray;
}
.button {
font-size: 1em;
padding: 6px;
width: 4em;
text-align: center;
background-color: #06d85f;
border-radius: 20px/50px;
cursor: pointer;
transition: all 0.3s ease-out;
}
a.button{
color: gray;
text-decoration: none;
display: inline-block;
}
.button:hover {
background: #2cffbd;
}
.overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
transition: opacity 500ms;
visibility: hidden;
opacity: 0;
line-height: 25px;
}
.overlay:target {
visibility: visible;
opacity: 1;
}
.popup {
margin: 70px auto;
padding: 20px;
background: #fff;
border-radius: 10px;
width: 50%;
position: relative;
transition: all 3s ease-in-out;
}
.popup h2 {
margin-top: 0;
color: #333;
font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
position: absolute;
top: 20px;
right: 30px;
transition: all 200ms;
font-size: 30px;
font-weight: bold;
text-decoration: none;
color: #333;
}
.popup .close:hover {
color: #06d85f;
}
.popup .content {
max-height: 80%;
overflow: auto;
text-align: left;
}
.popup .separator {
color:royalblue
}
@media screen and (max-width: 700px) {
.box {
width: 70%;
}
.popup {
width: 70%;
}
}
</style>
</head>
<body>
<h1>Test Report: </h1>
<h2>Summary</h2>
<table id="summary">
<tr>
<th>START AT</th>
<td colspan="4">2020-08-12T03:35:21.571604</td>
</tr>
<tr>
<th>DURATION</th>
<td colspan="4">0.371 seconds</td>
</tr>
<tr>
<th>PLATFORM</th>
<td>HttpRunner 2.5.7 </td>
<td>CPython 3.8.1 </td>
<td colspan="2">Windows-7-6.1.7601-SP1</td>
</tr>
<tr>
<th>STAT</th>
<th colspan="2">TESTCASES (success/fail)</th>
<th colspan="2">TESTSTEPS (success/fail/error/skip)</th>
</tr>
<tr>
<td>total (details) =></td>
<td colspan="2">1 (1/0)</td>
<td colspan="2">2 (2/0/0/0)</td>
</tr>
</table>
<h2>Details</h2>
<h3>statistics:订单统计</h3>
<table id="suite_1" class="details">
<tr>
<td>TOTAL: 2</td>
<td>SUCCESS: 2</td>
<td>FAILED: 0</td>
<td>ERROR: 0</td>
<td>SKIPPED: 0</td>
</tr>
<tr>
<th>Status</th>
<th colspan="2">Name</th>
<th>Response Time</th>
<th>Detail</th>
</tr>
<tr id="record_1_1">
<th class="success" style="width:5em;">success</th>
<td colspan="2">13459147023 登录系统</td>
<td style="text-align:center;width:6em;">168.00 ms</td>
<td class="detail">
<a class="button" href="#popup_log_1_1_1">log-1</a>
<div id="popup_log_1_1_1" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_1_1">&times;</a>
<div class="content">
<h3>Name: 13459147023 登录系统</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/login
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.partner&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;8d2cd02cdab47635d18e12a3e454347b831eb7fa662f0a677c5e03156a07d6a6&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203321572&#34;,
&#34;X-MMM-Uuid&#34;: &#34;d9ab1ac5-dc4c-11ea-b282-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.1.0&#34;,
&#34;Content-Length&#34;: &#34;138&#34;
}</pre>
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;phone&#34;: &#34;13459147023&#34;,
&#34;grantType&#34;: &#34;signInPassword&#34;,
&#34;password&#34;: &#34;7c4a8d09ca3762af61e59520943dc26494f8941b&#34;,
&#34;clientId&#34;: &#34;pdf233Znkjo&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/login
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:35:25 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Content-Length&#34;: &#34;207&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;authCode&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMDQyMjQsImlzcyI6Imp3dCJ9.Dgwkb4m8Hwwj5ViMmOp5cOL_L0Hatw2qqPIUI0wkQpI&#34;
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>207</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>103.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>98.953</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<a class="button" href="#popup_log_1_1_2">log-2</a>
<div id="popup_log_1_1_2" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_1_2">&times;</a>
<div class="content">
<h3>Name: 13459147023 获取accessToken</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/accessToken
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.ability&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;335f3174f4140a8b782ac5415bc02d4cc15e07d535ac89678a75272bc3ef782e&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203321804&#34;,
&#34;X-MMM-Uuid&#34;: &#34;d9ce8145-dc4c-11ea-9355-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.4.0&#34;,
&#34;Content-Length&#34;: &#34;226&#34;
}</pre>
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;authCode&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMDQyMjQsImlzcyI6Imp3dCJ9.Dgwkb4m8Hwwj5ViMmOp5cOL_L0Hatw2qqPIUI0wkQpI&#34;,
&#34;clientId&#34;: &#34;lks3Z8Ncn2j&#34;,
&#34;clientSecret&#34;: &#34;gtfhyjukiol3Qncbvmdwe67khh&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/auth/accessToken
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:35:25 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Transfer-Encoding&#34;: &#34;chunked&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Vary&#34;: &#34;Accept-Encoding&#34;,
&#34;Content-Encoding&#34;: &#34;gzip&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;refreshToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTk3OTUzMjUsImlzcyI6Imp3dCJ9.8XGDZICB7lu03ItOSL7psvQhyMtn0DHne9unDhSXK5U&#34;,
&#34;accessToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMTA1MjUsImlzcyI6Imp3dCJ9.RUTWbqfQEq7QGvsWtJ_s7k8J-rsM4ZEk--q8RIZy1tc&#34;,
&#34;expiresIn&#34;: 7200
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>394</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>31.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>25.447</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<a class="button" href="#popup_log_1_1_3">log-3</a>
<div id="popup_log_1_1_3" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_1_3">&times;</a>
<div class="content">
<h3>Name: 13459147023 获取用户信息</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/user/userInfo
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMTA1MjUsImlzcyI6Imp3dCJ9.RUTWbqfQEq7QGvsWtJ_s7k8J-rsM4ZEk--q8RIZy1tc&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.ability&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;17e65aef3e6640f8aee1ae564a0268e727048ca0fdd7ac8a9afef7e412d775ca&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203321857&#34;,
&#34;X-MMM-Uuid&#34;: &#34;d9d69795-dc4c-11ea-8743-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.4.0&#34;,
&#34;Content-Length&#34;: &#34;0&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/user/userInfo
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:35:25 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Transfer-Encoding&#34;: &#34;chunked&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Vary&#34;: &#34;Accept-Encoding&#34;,
&#34;Content-Encoding&#34;: &#34;gzip&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;user&#34;: {
&#34;uid&#34;: 29,
&#34;uname&#34;: &#34;卞信华&#34;,
&#34;phone&#34;: &#34;13459147023&#34;,
&#34;company&#34;: {
&#34;id&#34;: 1,
&#34;name&#34;: &#34;福建买买买信息科技有限公司&#34;,
&#34;phone&#34;: &#34;0591-83845802&#34;
},
&#34;joinWay&#34;: {
&#34;id&#34;: 1,
&#34;name&#34;: &#34;事业合伙人&#34;
},
&#34;district&#34;: {
&#34;id&#34;: 0,
&#34;name&#34;: &#34;福建省福州市XXXXX区&#34;
},
&#34;serialNo&#34;: 29,
&#34;cooperationTime&#34;: 1590940800000,
&#34;salesman&#34;: {
&#34;phone&#34;: &#34;13459147023&#34;,
&#34;uname&#34;: &#34;小屁孩&#34;
},
&#34;accid&#34;: 2994483695433811968,
&#34;imToken&#34;: &#34;4d45a35ba23ac8a11e5fbe43668b4850&#34;,
&#34;csAccountID&#34;: &#34;3492238958608384&#34;
}
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>check</th>
<th>comparator</th>
<th>expect value</th>
<th>actual value</th>
</tr>
<tr>
<td class="passed">
content.msg
</td>
<td>equals</td>
<td>成功</td>
<td>成功</td>
</tr>
</table>
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>734</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>34.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>30.188</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr id="record_1_2">
<th class="success" style="width:5em;">success</th>
<td colspan="2">13459147023 订单统计</td>
<td style="text-align:center;width:6em;">29.00 ms</td>
<td class="detail">
<a class="button" href="#popup_log_1_2_1">log-1</a>
<div id="popup_log_1_2_1" class="overlay">
<div class="popup">
<h2>Request and Response data</h2>
<a class="close" href="#record_1_2_1">&times;</a>
<div class="content">
<h3>Name: 13459147023 订单统计</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/order/statistics
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Accept-Encoding&#34;: &#34;gzip, deflate&#34;,
&#34;Accept&#34;: &#34;*/*&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;,
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;X-MMM-AccessToken&#34;: &#34;eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjI5LCJleHAiOjE1OTcyMTA1MjUsImlzcyI6Imp3dCJ9.RUTWbqfQEq7QGvsWtJ_s7k8J-rsM4ZEk--q8RIZy1tc&#34;,
&#34;X-MMM-AppName&#34;: &#34;com.mmm.ability&#34;,
&#34;X-MMM-AppProject&#34;: &#34;ability&#34;,
&#34;X-MMM-DeviceType&#34;: &#34;1&#34;,
&#34;X-MMM-Sign&#34;: &#34;6fe8ea4611c4294d56f5a5a224770a920ab2b4c87596b2b9581a35f8d0bce2c7&#34;,
&#34;X-MMM-Timestamp&#34;: &#34;1597203321900&#34;,
&#34;X-MMM-Uuid&#34;: &#34;d9dd2745-dc4c-11ea-b086-e0d55e7159d5&#34;,
&#34;X-MMM-Version&#34;: &#34;0.4.0&#34;,
&#34;Content-Length&#34;: &#34;0&#34;
}</pre>
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>ok</th>
<td>
True
</td>
</tr>
<tr>
<th>url</th>
<td>
http://mmm-partner-test.fjmaimaimai.com/v1/order/statistics
</td>
</tr>
<tr>
<th>status_code</th>
<td>
200
</td>
</tr>
<tr>
<th>reason</th>
<td>
OK
</td>
</tr>
<tr>
<th>cookies</th>
<td>
{}
</td>
</tr>
<tr>
<th>encoding</th>
<td>
utf-8
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Date&#34;: &#34;Wed, 12 Aug 2020 03:35:25 GMT&#34;,
&#34;Content-Type&#34;: &#34;application/json; charset=utf-8&#34;,
&#34;Content-Length&#34;: &#34;205&#34;,
&#34;Connection&#34;: &#34;keep-alive&#34;
}</pre>
</td>
</tr>
<tr>
<th>content_type</th>
<td>
application/json; charset=utf-8
</td>
</tr>
<tr>
<th>body</th>
<td>
<pre>{
&#34;code&#34;: 0,
&#34;msg&#34;: &#34;成功&#34;,
&#34;data&#34;: {
&#34;statistics&#34;: {
&#34;todayRealQuantity&#34;: 2,
&#34;todayRealMoney&#34;: 17.86,
&#34;cumulativeQuantity&#34;: 54,
&#34;cumulativeMoney&#34;: 106734.62
}
}
}</pre>
</td>
</tr>
</table>
</div>
<h3>Validators:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>check</th>
<th>comparator</th>
<th>expect value</th>
<th>actual value</th>
</tr>
<tr>
<td class="passed">
content.msg
</td>
<td>equals</td>
<td>成功</td>
<td>成功</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.cumulativeMoney
</td>
<td>equals</td>
<td>106734.62</td>
<td>106734.62</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.cumulativeQuantity
</td>
<td>equals</td>
<td>54</td>
<td>54</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.todayRealMoney
</td>
<td>equals</td>
<td>17.86</td>
<td>17.86</td>
</tr>
<tr>
<td class="passed">
content.data.statistics.todayRealQuantity
</td>
<td>equals</td>
<td>2</td>
<td>2</td>
</tr>
</table>
</div>
<h3>Statistics:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>content_size(bytes)</th>
<td>205</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>29.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>27.183</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
</body>
\ No newline at end of file
config:
name: 编辑实际订单
base_url: ${ENV(base_manager_url)}
variables:
phone: ${get_admin_account_from_database(admin_user)}
teardown_hooks:
- ${sleep(2)}
teststeps:
- name: $phone 登录系统
testcase: testcases/m_login_testcases.yml
- name: $phone 编辑实际订单
api: api/m_api/actual/m_edit_order_actual_api.yml
validate:
- eq:
- content.msg
- ok
... ... @@ -18,5 +18,5 @@ teststeps:
- content.msg
- ok
- eq:
- content.data.gridResult.lists.0.orderStatue
- content.data.gridResult.lists.0.status
- $orderStatue
... ...
... ... @@ -2,9 +2,11 @@ config:
name: 已收明细——分红订单
base_url: ${ENV(base_manager_url)}
variables:
phone: ${get_partner_account_from_database(partner_info)}
received: ${get_received_from_database()}
outstanding: ${get_outstanding_from_database()}
phone: ${get_partner_account_from_database()}
order_code: ${get_detailAction_0_order_code_from_database()}
plan_order_amount: ${get_detailAction_0_plan_order_amount_from_database()}
use_partner_bonus: ${get_detailAction_0_use_partner_bonus_amount_from_database()}
msg: 成功
teardown_hooks:
- ${sleep(3)}
... ... @@ -18,3 +20,12 @@ teststeps:
- eq:
- content.msg
- $msg
- eq:
- content.data.list.0.deliveryNo
- $order_code
- eq:
- content.data.list.0.orderAmount
- $plan_order_amount
- eq:
- content.data.list.0.dividendReceivable
- $use_partner_bonus
\ No newline at end of file
... ...
... ... @@ -2,9 +2,11 @@ config:
name: 未收明细——分红订单
base_url: ${ENV(base_manager_url)}
variables:
phone: ${get_partner_account_from_database(partner_info)}
received: ${get_received_from_database()}
outstanding: ${get_outstanding_from_database()}
phone: ${get_partner_account_from_database()}
order_code: ${get_detailAction_0_order_code_from_database()}
plan_order_amount: ${get_detailAction_0_plan_order_amount_from_database()}
use_partner_bonus: ${get_detailAction_0_use_partner_bonus_amount_from_database()}
msg: 成功
teardown_hooks:
- ${sleep(3)}
... ... @@ -18,3 +20,12 @@ teststeps:
- eq:
- content.msg
- $msg
- eq:
- content.data.list.0.deliveryNo
- $order_code
- eq:
- content.data.list.0.orderAmount
- $plan_order_amount
- eq:
- content.data.list.0.dividendReceivable
- $use_partner_bonus
\ No newline at end of file
... ...
... ... @@ -2,9 +2,11 @@ config:
name: 分红统计
base_url: ${ENV(base_manager_url)}
variables:
phone: ${get_partner_account_from_database(partner_info)}
phone: ${get_partner_account_from_database()}
receivable: ${get_receivable_from_database()}
received: ${get_received_from_database()}
outstanding: ${get_outstanding_from_database()}
msg: 成功
teardown_hooks:
- ${sleep(3)}
... ... @@ -18,9 +20,15 @@ teststeps:
- eq:
- content.msg
- $msg
- eq:
- content.data.statistics.receivable
- $receivable
- eq:
- content.data.statistics.received
- content.data.statistics.quarters.1.received
- $received
- eq:
- content.data.statistics.outstanding
- content.data.statistics.quarters.1.outstanding
- $outstanding
\ No newline at end of file
... ...
... ... @@ -2,7 +2,8 @@ config:
name: 实发订单列表
base_url: ${ENV(base_manager_url)}
variables:
phone: ${get_partner_account_from_database(partner_info)}
phone: ${get_partner_account_from_database()}
total: ${get_total_from_database()}
msg: 成功
teardown_hooks:
- ${sleep(2)}
... ... @@ -16,4 +17,7 @@ teststeps:
validate:
- eq:
- content.msg
- $msg
\ No newline at end of file
- $msg
- eq:
- content.data.total
- $total
\ No newline at end of file
... ...
... ... @@ -50,15 +50,12 @@ testcases:
# testcase: testcases/actual/ACTUAL001_add_actual_testcases.yml
# parameters:
# account: ${create_phone_number(1)}
#- name: ACTUAL002:编辑实际订单
# testcase: testcases/actual/ACTUAL002_edit_actual_testcases.yml
#
#- name: ACTUAL003:合伙人搜索——实际订单列表
# testcase: testcases/actual/ACTUAL003_actual_list_testcases.yml
#
#- name: ACTUAL004:搜索订单号——实际订单列表
# testcase: testcases/actual/ACTUAL004_actual_list_testcases.yml
- name: ACTUAL004:搜索订单号——实际订单列表
testcase: testcases/actual/ACTUAL004_actual_list_testcases.yml
#
#- name: ACTUAL005:查看实际订单详情
# testcase: testcases/actual/ACTUAL005_actual_detail_testcases.yml
... ... @@ -83,8 +80,8 @@ testcases:
#- name: PURPOSE006:查看意向订单详情
# testcase: testcases/purpose/PURPOSE006_purpose_detail_testcases.yml
- name: statistics:订单统计
testcase: testcases/order/order_statistics_testcases.yml
#- name: statistics:订单统计
# testcase: testcases/order/order_statistics_testcases.yml
#- name: statistics:订单详情
# testcase: testcases/order/order_details_testcases.yml
... ...