作者 bianxinhua

合并app端脚本

... ... @@ -13,3 +13,9 @@ base_business_admin=http://suplus-business-admin-gateway-test.fjmaimaimai.com
companyId=214
adminphone=19911111111
partnerphone=15510101010
companyId_app=366
adminphone_app=19990000000
partnerId_app = 1040
visitorphone = 19990000011
managerphone = 19990000012
id = 358
\ No newline at end of file
... ...
... ... @@ -2,10 +2,37 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="d6814b48-28ec-40b6-bcea-dcd9b8613715" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/api/m_api/actual/m_add_app_order_actual_api.yml" 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/dividend/orders001.api.yml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml" beforeDir="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/login/auth_centerCompanys_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/app_api/login/auth_centerCompanys_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/app_api/order/details_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/app_api/order/details_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/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/actual/m_order_actual_excel_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/actual/m_order_actual_excel_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/actual/m_order_actual_list_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/actual/m_order_actual_list_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/admin/m_admin_update_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/admin/m_admin_update_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/dividends/m_dividends_detail_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/dividends/m_dividends_detail_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/dividends/m_dividends_modify_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/dividends/m_dividends_modify_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/dividends/m_dividends_payDividends_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/dividends/m_dividends_payDividends_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/m_login_api/m_login_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/m_login_api/m_login_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/partners/m_partner_add_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/partners/m_partner_add_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/partners/m_partner_edit_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/partners/m_partner_edit_api.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/api/m_api/partners/m_partner_list_api.yml" beforeDir="false" afterPath="$PROJECT_DIR$/api/m_api/partners/m_partner_list_api.yml" 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$/testcases/partners/PARTNERS001_add_partner_testcases.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testcases/partners/PARTNERS001_add_partner_testcases.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/testsuites/partner_testsuite.yml" beforeDir="false" afterPath="$PROJECT_DIR$/testsuites/partner_testsuite.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/orderid.csv" beforeDir="false" afterPath="$PROJECT_DIR$/config/orderid.csv" afterDir="false" />
<change beforePath="$PROJECT_DIR$/debugtalk.py" beforeDir="false" afterPath="$PROJECT_DIR$/debugtalk.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/helpfunc/cal_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/helpfunc/cal_func.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/helpfunc/login_func.py" beforeDir="false" afterPath="$PROJECT_DIR$/helpfunc/login_func.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$/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/20200915T060756.262606.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/reports/20200915T060845.846606.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/testcases_excel/partner_api.xlsx" beforeDir="false" afterPath="$PROJECT_DIR$/testcases_excel/partner_api.xlsx" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
... ... @@ -22,46 +49,19 @@
<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">
<entry file="file://$PROJECT_DIR$/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2730">
<caret line="105" column="55" selection-start-line="28" selection-start-column="1" selection-end-line="105" selection-end-column="55" />
<state relative-caret-position="182">
<caret line="13" column="22" selection-start-line="13" selection-start-column="11" selection-end-line="13" selection-end-column="22" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/api/m_api/partners/m_partner_add_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="26">
<caret line="6" column="51" selection-start-line="6" selection-start-column="32" selection-end-line="6" selection-end-column="51" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/helpfunc/pg_db_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="6318">
<caret line="243" column="13" selection-start-line="243" selection-start-column="8" selection-end-line="243" selection-end-column="13" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/helpfunc/login_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2288">
<caret line="88" column="23" selection-start-line="88" selection-start-column="4" selection-end-line="88" selection-end-column="23" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS001_add_partner_testcases.yml">
<entry file="file://$PROJECT_DIR$/testsuites/partner_app_testsuite.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
<caret line="9" selection-start-line="9" selection-start-column="1" selection-end-line="10" selection-end-column="46" />
<caret line="39" selection-start-line="39" selection-end-line="43" selection-end-column="74" />
</state>
</provider>
</entry>
... ... @@ -77,13 +77,6 @@
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>address</find>
<find>buyerPhone</find>
<find>orderDist</find>
<find>admin_account</find>
<find>actual_address</find>
<find>get_actual_delivery_code_from_database</find>
<find>get_order_status_from_database</find>
<find>get_actual_id_from_database</find>
<find>get_account_from_database</find>
<find>get_admin_account_from_database</find>
... ... @@ -107,6 +100,13 @@
<find>print</find>
<find>create_phone_number</find>
<find>get_m_accesstoken()</find>
<find>statistics_func</find>
<find>career_lists</find>
<find>career_partnerCategory</find>
<find>career_totalRow</find>
<find>career_actual_list</find>
<find>statistics_actual_func</find>
<find>orderType</find>
</findStrings>
</component>
<component name="Git.Settings">
... ... @@ -115,34 +115,6 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_add_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_edit_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_partner_list_api.yml" />
<option value="$PROJECT_DIR$/testcases/purpose/PURPOSE003_purpose_list_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_searchText_list_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/admin/m_admin_update(edit)_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/admin/m_admin_list_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/admin/m_admin_detail_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/admin/m_admin_forbidden_0_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/admin/m_admin_forbidden_1_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/partners/m_partner_edit_api.yml" />
<option value="$PROJECT_DIR$/testcases/partners/PARTNERS003_list_partner_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/partners/m_partner_partnertype_list_api.yml" />
<option value="$PROJECT_DIR$/testcases/partners/PARTNERS004_list_partner_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/partners/m_partner_partnerName_list_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/partners/m_partner_detail_api.yml" />
<option value="$PROJECT_DIR$/testcases/partners/PARTNERS005_detail_partner_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/partners/m_partner_set-status_1_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/partners/m_partner_set-status_2_api.yml" />
<option value="$PROJECT_DIR$/testcases/actual/ACTUAL006_actual_del_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_order_actual_del_api.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$/testcases/purpose/PURPOSE005_purpose_sendout_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_sendout_api.yml" />
<option value="$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_del_api.yml" />
<option value="$PROJECT_DIR$/testcases/purpose/ACTUAL007_purpose_del_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/purpose/PURPOSE007_purpose_del_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/dividend_edit_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/dividends/m_order_dividends_edit_api.yml" />
<option value="$PROJECT_DIR$/testcases/m_pwd_updat_testcases.yml" />
... ... @@ -159,13 +131,41 @@
<option value="$PROJECT_DIR$/testcases/admin/ADMIN001_add_admin_testcases.yml" />
<option value="$PROJECT_DIR$/helpfunc/pg_app_db_func.py" />
<option value="$PROJECT_DIR$/api/app_api/order/details_api.yml" />
<option value="$PROJECT_DIR$/helpfunc/pg_db_func.py" />
<option value="$PROJECT_DIR$/testcases/actual/ACTUAL001_add_actual_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml" />
<option value="$PROJECT_DIR$/debugtalk.py" />
<option value="$PROJECT_DIR$/testsuites/partner_testsuite.yml" />
<option value="$PROJECT_DIR$/testcases/partners/PARTNERS001_add_partner_testcases.yml" />
<option value="$PROJECT_DIR$/helpfunc/pg_db_func.py" />
<option value="$PROJECT_DIR$/.env" />
<option value="$PROJECT_DIR$/testcases/common/COM001-1_actual_add_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/common/COM001_actual_add_testcases.yml" />
<option value="$PROJECT_DIR$/api/m_api/actual/m_add_app_order_actual_api.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/DIV003_1_app_dividends_cal_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/app/common/app_login_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/login/auth_login_api.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/DIV001_app_dividendslist_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/app/dividends/DIVI001_career_dividendslist_testcases.yml" />
<option value="$PROJECT_DIR$/helpfunc/statistics_func.py" />
<option value="$PROJECT_DIR$/api/m_api/m_login_api/m_pwdLogin_api.yml" />
<option value="$PROJECT_DIR$/testcases/common/m_app_login_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/DIV004_1_app_dividends_editnum_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/DIV007_app_dividends_payDividends_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/DIV008_app_dividends_payDividends_editnum_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/DIV010_app_dividends_payDividends_batch_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/app/dividends/DIVI002_career_dividendslist_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/app/dividends/DIVI003_career_dividends_orderslist_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/dividend/orders_api.yml" />
<option value="$PROJECT_DIR$/testcases/app/dividends/DIVI005_dividends_Details_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/app/dividends/DIVI006_tomorrow_career_dividendslist_testcases.yml" />
<option value="$PROJECT_DIR$/api/app_api/order/list_api.yml" />
<option value="$PROJECT_DIR$/testcases/app/common/COMM2_app_manager_login_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/app/common/COMM4_app_more_company_manager_login_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/dividends/DIV001_dividendslist_testcases.yml" />
<option value="$PROJECT_DIR$/testsuites/partner_testsuite.yml" />
<option value="$PROJECT_DIR$/testcases/common/COM001_app_actual_add_testcases.yml" />
<option value="$PROJECT_DIR$/testcases/common/COM001-1_app_actual_add_testcases.yml" />
<option value="$PROJECT_DIR$/testsuites/partner_app_testsuite.yml" />
</list>
</option>
</component>
... ... @@ -180,7 +180,6 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
... ... @@ -204,14 +203,7 @@
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="api" type="462c0819:PsiDirectoryNode" />
<item name="m_api" type="462c0819:PsiDirectoryNode" />
<item name="admin" 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="partners" type="462c0819:PsiDirectoryNode" />
<item name="actual" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
... ... @@ -227,19 +219,20 @@
<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" />
<item name="app" 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="admin" type="462c0819:PsiDirectoryNode" />
<item name="app" type="462c0819:PsiDirectoryNode" />
<item name="dividends" 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="dividend" type="462c0819:PsiDirectoryNode" />
<item name="common" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
... ... @@ -262,12 +255,6 @@
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="testcases" type="462c0819:PsiDirectoryNode" />
<item name="purpose" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="partner_api" type="b2602c69:ProjectViewProjectNode" />
<item name="partner_api" type="462c0819:PsiDirectoryNode" />
<item name="testsuites" type="462c0819:PsiDirectoryNode" />
</path>
<path>
... ... @@ -283,6 +270,7 @@
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
... ... @@ -293,16 +281,16 @@
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="E:\mmm_auto\partner_api\api\m_api\purpose" />
<recent name="E:\mmm_auto\partner_api\api\m_api\partners" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="E:\partner_api\api\m_api\actual" />
<recent name="E:\partner_api\testcases" />
<recent name="E:\partner_api\testcases\dividends" />
<recent name="E:\partner_api\api\m_api\dividends" />
<recent name="E:\partner_api\testcases\purpose" />
<recent name="E:\partner_api\api\m_api\purpose" />
</key>
<key name="MoveFile.RECENT_KEYS">
<recent name="E:\mmm_auto\partner_api\api\m_api\purpose" />
<recent name="E:\mmm_auto\partner_api\api\m_api\partners" />
</key>
</component>
<component name="RunDashboard">
... ... @@ -468,17 +456,18 @@
<workItem from="1600048954187" duration="594000" />
<workItem from="1600149832884" duration="362000" />
<workItem from="1600393472912" duration="599000" />
<workItem from="1613874101041" duration="17137000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="232032000" />
<option name="totallyTimeSpent" value="249169000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<layout>
<window_info id="Favorites" order="0" side_tool="true" />
<window_info content_ui="combo" id="Project" order="1" visible="true" weight="0.20708154" />
<window_info content_ui="combo" id="Project" order="1" visible="true" weight="0.20976394" />
<window_info id="Structure" order="2" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Docker" order="0" show_stripe_button="false" />
<window_info active="true" anchor="bottom" id="Terminal" order="1" visible="true" weight="0.46763393" />
... ... @@ -504,276 +493,296 @@
<option name="version" value="1" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/api/m_api/purpose/m_order_purpose_detail_api.yml">
<entry file="file://$PROJECT_DIR$/helpfunc/db_func.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/cal_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="78">
<caret line="3" column="39" selection-start-line="3" selection-start-column="39" selection-end-line="3" selection-end-column="39" />
</state>
<state relative-caret-position="-314" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/header_func.py">
<entry file="file://$PROJECT_DIR$/testcases/common/start_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/.env">
<entry file="file://$PROJECT_DIR$/testcases/common/COM001-1_actual_add_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
<caret line="9" column="8" selection-start-line="9" selection-end-line="9" selection-end-column="8" />
<state relative-caret-position="182">
<caret line="7" column="20" lean-forward="true" selection-start-line="7" selection-start-column="20" selection-end-line="7" selection-end-column="20" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/login_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/login/auth_login_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="525">
<caret line="28" lean-forward="true" selection-start-line="17" selection-end-line="28" />
<state relative-caret-position="-234">
<caret line="6" column="28" selection-start-line="6" selection-start-column="28" selection-end-line="6" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders001.api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/login/accessToken_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="213">
<caret line="9" column="82" selection-start-line="9" selection-start-column="25" selection-end-line="9" selection-end-column="82" />
</state>
<state relative-caret-position="-390" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders002.api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/login/auth_accessToken_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="182">
<caret line="7" column="61" selection-start-line="7" selection-start-column="61" selection-end-line="7" selection-end-column="61" />
</state>
<state relative-caret-position="-156" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_orders002_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/login/auth_companys_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="130">
<caret line="5" column="65" selection-start-line="5" selection-start-column="22" selection-end-line="5" selection-end-column="65" />
</state>
<state relative-caret-position="-156" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/m_login_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/login/auth_centerCompanys_api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/admin/m_admin_update(new)_api.yml">
<entry file="file://$PROJECT_DIR$/testcases/app/common/app_login_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
<caret line="9" column="45" selection-start-line="9" selection-start-column="37" selection-end-line="9" selection-end-column="45" />
<state relative-caret-position="104">
<caret line="4" column="35" selection-start-line="4" selection-start-column="21" selection-end-line="4" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/login/login_api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/statistics_api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/m_login_api/m_login_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
<caret line="9" column="51" selection-start-line="9" selection-start-column="51" selection-end-line="9" selection-end-column="51" />
<state relative-caret-position="78">
<caret line="3" column="29" selection-start-line="3" selection-start-column="25" selection-end-line="3" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/login/accessToken_api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/login/gettimestamp_api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/common/start_app_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/m_login_api.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/order/statistics_api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/debugtalk.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-78" />
<state relative-caret-position="-704">
<caret line="10" column="29" selection-start-line="10" selection-start-column="14" selection-end-line="10" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/order/details_api.yml">
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV001_app_dividendslist_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="182">
<caret line="7" column="36" selection-start-line="7" selection-start-column="36" selection-end-line="7" selection-end-column="36" />
<state relative-caret-position="598">
<caret line="23" column="46" selection-start-line="23" selection-start-column="46" selection-end-line="23" selection-end-column="46" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/order/list_api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/api/app_api/order/statistics_api.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_order_actual_detail_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="806">
<caret line="31" selection-start-line="31" selection-end-line="42" selection-end-column="30" />
<state relative-caret-position="338">
<caret line="13" column="9" lean-forward="true" selection-start-line="13" selection-start-column="9" selection-end-line="13" selection-end-column="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/actual/ACTUAL001_add_actual_testcases.yml">
<entry file="file://$PROJECT_DIR$/helpfunc/statistics_func.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="156">
<caret line="6" column="19" selection-start-line="6" selection-start-column="19" selection-end-line="6" selection-end-column="19" />
<state relative-caret-position="234">
<caret line="55" selection-start-line="55" selection-end-line="56" selection-end-column="27" />
</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$/testcases/actual/ACTUAL004_actual_list_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/m_login_api/m_pwdLogin_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="26">
<caret line="1" column="15" selection-start-line="1" selection-start-column="15" selection-end-line="1" selection-end-column="15" />
<state relative-caret-position="50">
<caret line="3" selection-start-line="3" selection-end-line="3" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/actual/ACTUAL005_actual_detail_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/common/m_app_login_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="442">
<caret line="17" column="16" selection-start-line="17" selection-start-column="16" selection-end-line="17" selection-end-column="16" />
<state relative-caret-position="362">
<caret line="43" column="18" lean-forward="true" selection-start-line="16" selection-end-line="43" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/actual/ACTUAL006_actual_del_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV004_1_app_dividends_editnum_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="338">
<caret line="13" column="53" selection-start-line="13" selection-start-column="53" selection-end-line="13" selection-end-column="53" />
<state relative-caret-position="24">
<caret line="14" column="66" lean-forward="true" selection-start-line="14" selection-start-column="31" selection-end-line="14" selection-end-column="66" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/admin/ADMIN002_edit_admin_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/admin/ADMIN001_add_admin_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV007_app_dividends_payDividends_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="468">
<caret line="18" selection-start-line="18" selection-end-line="18" />
<state relative-caret-position="52">
<caret line="14" column="66" selection-start-line="14" selection-start-column="31" selection-end-line="14" selection-end-column="66" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/admin/ADMIN003_list_admin_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV008_app_dividends_payDividends_editnum_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="50">
<caret line="14" column="66" selection-start-line="14" selection-start-column="66" selection-end-line="14" selection-end-column="66" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/admin/ADMIN004_detail_admin_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV010_app_dividends_payDividends_batch_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-210">
<caret line="25" column="33" selection-start-line="25" selection-start-column="33" selection-end-line="25" selection-end-column="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/admin/ADMIN005_forbidden_admin_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders001.api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/admin/ADMIN006_forbidden_admin_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/app/dividends/DIVI003_career_dividends_orderslist_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="156">
<caret line="6" column="21" selection-start-line="6" selection-start-column="21" selection-end-line="6" selection-end-column="21" />
<state relative-caret-position="364">
<caret line="77" column="17" lean-forward="true" selection-start-line="77" selection-start-column="17" selection-end-line="77" selection-end-column="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_orders001_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/dividend/orders_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="260">
<caret line="10" column="19" selection-start-line="10" selection-start-column="19" selection-end-line="10" selection-end-column="19" />
<state relative-caret-position="-156">
<caret line="9" column="34" selection-start-line="9" selection-start-column="34" selection-end-line="9" selection-end-column="34" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/dividend/dividend_statistics_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/app/dividends/DIVI005_dividends_Details_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="260">
<caret line="10" column="19" selection-start-line="10" selection-start-column="19" selection-end-line="10" selection-end-column="19" />
<state relative-caret-position="-78">
<caret line="9" column="56" selection-start-line="9" selection-start-column="56" selection-end-line="9" selection-end-column="56" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/dividends/dividend_edit_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/app_api/order/list_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="18" column="12" selection-start-line="18" selection-start-column="12" selection-end-line="18" selection-end-column="16" />
<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="34" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/order/order_details_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/app/common/COMM2_app_manager_login_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="78">
<caret line="3" column="14" selection-start-line="3" selection-start-column="14" selection-end-line="3" selection-end-column="14" />
<state relative-caret-position="-106">
<caret line="5" column="31" selection-start-line="5" selection-start-column="31" selection-end-line="5" selection-end-column="31" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/order/order_list_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/order/order_statistics_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/app/common/COMM4_app_more_company_manager_login_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="442">
<caret line="17" selection-start-line="17" selection-end-line="34" selection-end-column="30" />
<state relative-caret-position="-52">
<caret line="4" column="35" selection-start-line="4" selection-start-column="35" selection-end-line="4" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS002_edit_partner_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS003_list_partner_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV003_1_dividends_cal_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-312" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS004_list_partner_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/common/m_login_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS005_detail_partner_testcases.yml">
<entry file="file://$PROJECT_DIR$/api/m_api/dividends/m_dividends_list_api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS006_set-status_partner1_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV001_dividendslist_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-204">
<caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS007_set-status_partner2_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testcases/common/COM001_actual_add_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-182">
<caret line="5" column="31" lean-forward="true" selection-start-line="5" selection-start-column="31" selection-end-line="5" selection-end-column="31" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE001_add_purpose_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV004_1_dividends_editnum_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-78" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE002_edit_purpose_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS001_list_partner_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE003_purpose_list_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS003_list_partner_batchDisabled_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE004_purpose_list_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testsuites/partner_testsuite.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2832">
<caret line="113" column="71" selection-start-line="113" selection-start-column="71" selection-end-line="113" selection-end-column="71" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE005_purpose_sendout_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="182">
<caret line="13" column="22" selection-start-line="13" selection-start-column="11" selection-end-line="13" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/purpose/PURPOSE007_purpose_del_testcases.yml">
<provider selected="true" editor-type-id="text-editor" />
<entry file="file://$PROJECT_DIR$/testcases/common/COM001_app_actual_add_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-103">
<caret line="24" column="36" selection-start-line="24" selection-start-column="36" selection-end-line="24" selection-end-column="36" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/debugtalk.py">
<entry file="file://$PROJECT_DIR$/testcases/dividends/DIV003_1_app_dividends_cal_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="26">
<caret line="49" column="23" selection-start-line="49" selection-start-column="23" selection-end-line="49" selection-end-column="23" />
<folding>
<element signature="e#0#13#0" expanded="true" />
</folding>
<state relative-caret-position="2184">
<caret line="84" column="48" lean-forward="true" selection-start-line="84" selection-start-column="48" selection-end-line="84" selection-end-column="48" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/pg_app_db_func.py">
<entry file="file://$PROJECT_DIR$/testcases/app/dividends/DIVI001_career_dividendslist_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="415">
<caret line="362" column="13" selection-start-line="362" selection-start-column="8" selection-end-line="362" selection-end-column="13" />
<folding>
<element signature="e#108#123#0" expanded="true" />
</folding>
<state relative-caret-position="2887">
<caret line="114" lean-forward="true" selection-start-line="114" selection-end-line="114" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testsuites/partner_testsuite.yml">
<entry file="file://$PROJECT_DIR$/testcases/app/dividends/DIVI002_career_dividendslist_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2730">
<caret line="105" column="55" selection-start-line="28" selection-start-column="1" selection-end-line="105" selection-end-column="55" />
<state relative-caret-position="3562">
<caret line="137" selection-start-line="17" selection-end-line="137" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/pg_db_func.py">
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_add_order_actual_api.yml">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/testcases/app/dividends/DIVI006_tomorrow_career_dividendslist_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="6318">
<caret line="243" column="13" selection-start-line="243" selection-start-column="8" selection-end-line="243" selection-end-column="13" />
<state relative-caret-position="182">
<caret line="10" column="44" selection-start-line="10" selection-start-column="44" selection-end-line="10" selection-end-column="44" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/helpfunc/login_func.py">
<entry file="file://$PROJECT_DIR$/api/m_api/actual/m_add_app_order_actual_api.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2288">
<caret line="88" column="23" selection-start-line="88" selection-start-column="4" selection-end-line="88" selection-end-column="23" />
<state>
<caret line="3" column="34" selection-start-line="3" selection-start-column="34" selection-end-line="3" selection-end-column="34" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/testcases/partners/PARTNERS001_add_partner_testcases.yml">
<entry file="file://$PROJECT_DIR$/testcases/common/COM001-1_app_actual_add_testcases.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="234">
<caret line="9" selection-start-line="9" selection-start-column="1" selection-end-line="10" selection-end-column="46" />
<state relative-caret-position="312">
<caret line="28" column="56" selection-start-line="28" selection-start-column="56" selection-end-line="28" selection-end-column="56" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/m_api/partners/m_partner_add_api.yml">
<entry file="file://$PROJECT_DIR$/testsuites/partner_app_testsuite.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="26">
<caret line="6" column="51" selection-start-line="6" selection-start-column="32" selection-end-line="6" selection-end-column="51" />
<state relative-caret-position="234">
<caret line="39" selection-start-line="39" selection-end-line="43" selection-end-column="74" />
</state>
</provider>
</entry>
... ...
name: 已收明细——分红订单
base_url: ${ENV(base_url)}
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
sign: ${make_sign($currtime, $uuid, $var_access_token)}
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:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
X-MMM-AccessToken: $var_access_token
X-MMM-AppName: com.mmm.ability
X-MMM-AppProject: ability
X-MMM-DeviceType: '1'
X-MMM-Sign: $sign
X-MMM-Timestamp: $currtime
X-MMM-Uuid: $uuid
X-MMM-Version: 0.4.0
json:
detailAction: 0
pageIndex: 0
pageSize: 20
startTime: 0
endTime: $endTime
method: POST
url: v1/dividend/orders
validate:
- 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
name: 未收明细——分红订单
base_url: ${ENV(base_url)}
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
sign: ${make_sign($currtime, $uuid, $var_access_token)}
order_code: ${get_detailAction_1_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:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
X-MMM-AccessToken: $var_access_token
X-MMM-AppName: com.mmm.ability
X-MMM-AppProject: ability
X-MMM-DeviceType: '1'
X-MMM-Sign: $sign
X-MMM-Timestamp: $currtime
X-MMM-Uuid: $uuid
X-MMM-Version: 0.4.0
json:
detailAction: 1
pageIndex: 0
pageSize: 20
startTime: 0
endTime: $endTime
method: POST
url: v1/dividend/orders
validate:
- 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
... ... @@ -3,11 +3,8 @@ base_url: ${ENV(base_url)}
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
var_access_token: $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()}
endTime: ${get_Decembe_timestamp()}
msg: 成功
... ... @@ -29,17 +26,7 @@ request:
method: POST
url: v1/dividend/statistics
validate:
- eq:
- content.msg
- $msg
\ 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
... ...
... ... @@ -8,8 +8,6 @@ variables:
grantType: signInPassword
phone: ${ENV(partnerphone)}
password: 7c4a8d09ca3762af61e59520943dc26494f8941b
#teardown_hooks:
# - ${teardown_hook_get_authcode($response)}
request:
headers:
Content-Type: application/json;charset=utf-8
... ...
... ... @@ -3,9 +3,8 @@ base_url: ${ENV(base_url)}
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
var_access_token: $accessToken
sign: ${make_sign($currtime, $uuid, $var_access_token)}
id: ${get_order_id_from_database()}
msg: 成功
request:
headers:
... ...
... ... @@ -3,9 +3,9 @@ base_url: ${ENV(base_url)}
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
var_access_token: $accessToken
sign: ${make_sign($currtime, $uuid, $var_access_token)}
total: ${get_total_from_database()}
partnerId: ${ENV(partnerId_app)}
msg: 成功
request:
headers:
... ... @@ -20,16 +20,16 @@ request:
X-MMM-Uuid: $uuid
X-MMM-Version: 0.4.0
json:
startTime:
endTime:
startTime: ${get_starTimestamp()}
endTime: ${get_endTimestamp()}
pageIndex: 0
pageSize: 20
partnerId: ${convert_to_int($partnerId)}
isToday: False
joinWay:
method: POST
url: v1/order/list
validate:
- eq:
- content.msg
- $msg
\ No newline at end of file
- eq:
- content.data.total
- $total
\ No newline at end of file
... ...
... ... @@ -3,12 +3,8 @@ base_url: ${ENV(base_url)}
variables:
currtime: ${make_time()}
uuid: ${make_uuid()}
var_access_token: ${get_accesstoken()}
var_access_token: $accessToken
sign: ${make_sign($currtime, $uuid, $var_access_token)}
todayRealQuantity: ${get_todayRealQuantity_from_database()}
todayRealMoney: ${get_todayRealMoney_from_database()}
cumulativeQuantity: ${get_cumulativeQuantity_from_database()}
cumulativeMoney: ${get_cumulativeMoney_from_database()}
msg: 成功
request:
headers:
... ... @@ -24,20 +20,8 @@ request:
X-MMM-Version: 0.4.0
json:
method: POST
url: v1/order/statistics
url: v2/order/statistics
validate:
- eq:
- content.msg
- $msg
\ No newline at end of file
- eq:
- content.data.statistics.cumulativeMoney
- $cumulativeMoney
- eq:
- content.data.statistics.cumulativeQuantity
- $cumulativeQuantity
- eq:
- content.data.statistics.todayRealMoney
- $todayRealMoney
- eq:
- content.data.statistics.todayRealQuantity
- $todayRealQuantity
\ No newline at end of file
... ...
name: 实际订单新增
base_url: ${ENV(base_manager_url)}
variables:
partnerID: ${ENV(partnerId_app)}
commissionProportion: 0
orderNum1: 100
univalence: 10
partnerRatio: 1.2
orderNum2: 200
teardown_hooks:
- ${sleep(2)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
orderId: $partnerCategory-实发订单号${get_stringcode(5)}
shipmentsId: $partnerCategory-实发订单发货单号${get_stringcode(5)}
partnerID: ${convert_to_int($partnerID)}
partnerCategoryId: $partnerCategoryId
buyer: '客户名称${get_stringcode(5)}'
orderDist: '订单区域${get_stringcode(5)}'
commissionProportion: $commissionProportion
saleDate: $saleDate
product:
- productName: 产品名称${get_stringcode(5)}
orderNum: $orderNum1
univalence: $univalence
partnerRatio: $partnerRatio
- productName: 产品名称${get_stringcode(5)}
orderNum: $orderNum2
univalence: $univalence
partnerRatio: $partnerRatio
method: POST
url: /v1/order/actual/update
validate:
- eq:
- content.msg
- ok
... ...
name: 实际订单导出
base_url: ${ENV(base_manager_url)}
variables:
createTime: ['2020-01-01', '2020-12-31']
createTime: ['2021-01-01', '2021-12-31']
partnerCategory:
searchText: ""
updateTime: ['2020-01-01', '2020-12-31']
updateTime: ['2021-01-01', '2021-12-31']
request:
headers:
Content-Type: application/json;charset=utf-8
... ...
name: 合伙人搜索——实际订单列表
name: 查看实际订单列表
base_url: ${ENV(base_manager_url)}
variables:
partnerName: ''
orderCode: ''
deliveryCode: ''
partnerCategory: 1
updateTime:
createTime:
#variables:
# partnerCategoryName: ''
# orderCode: ''
# updateTime: ''
# deliveryCode: ''
# partnerName: ''
request:
headers:
Content-Type: application/json;charset=utf-8
... ... @@ -14,13 +13,7 @@ request:
Authorization: Bearer ${get_m_accesstoken()}
json:
pageNumber: 1
pageSize: 10
partnerCategory: $partnerCategory
partnerName: $partnerName
updateTime: $updateTime
createTime: $createTime
orderCode: $orderCode
deliveryCode: $deliveryCode
pageSize: 500
method: POST
url: /v1/order/actual/list
validate:
... ...
name: 编辑用户
name: 管理员修改
base_url: ${ENV(base_manager_url)}
variables:
id: 123456
account: '19911111111'
permissionType:
status: 1
checkedPartner:
isSenior: 2
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
id: $id
account: $account
permissionType: $permissionType
status: $status
checkedPartner: $checkedPartner
isSenior: $isSenior
account: ${convert_to_string(17770000018)}
id: ${convert_to_int(3290261005676032)}
permissionType:
- 8
status: 1
isAdmin: 1
name: 'zhaoliu'
checkedPartner: []
isSenior: 1
method: POST
url: /v1/admin/update
validate:
- eq:
- content.msg
- ok
\ No newline at end of file
#validate:
# - eq:
# - content.msg
# - ok
\ No newline at end of file
... ...
name: 事业分红详情
base_url: ${ENV(base_manager_url)}
variables:
id: '1051'
request:
headers:
Content-Type: application/json;charset=utf-8
... ...
name: 分红管理—修改数量or合伙人分红比例
base_url: ${ENV(base_manager_url)}
variables:
orderId: ${convert_to_string(1072)}
# orderId: ${convert_to_string(1072)}
state: 1
goodNumber: 50
partnerBonusPercent: 10
reason: '修改原因${get_stringcode(5)}'
productId: ${convert_to_string(2132)}
# productId: ${convert_to_string(2132)}
teardown_hooks:
- ${sleep(1)}
request:
... ...
name: 分红管理—支付分红
base_url: ${ENV(base_manager_url)}
variables:
orderId: ${convert_to_string(1072)}
productId: ${convert_to_string(2132)}
teardown_hooks:
- ${sleep(1)}
request:
... ...
name: 企业平台单点登录, 账号登录:/auth/login
name: 企业平台单点登录,账号登录
base_url: ${ENV(base_manager_url)}
variables:
secret: ${get_secret($url)}
... ...
... ... @@ -11,21 +11,21 @@ request:
json:
partnerName: '合伙人姓名${get_stringcode(5)}'
partnerType:
- id: 1
code: 事业合伙人编号${get_stringcode(8)}
- id: 2
code: 业务合伙人编号${get_stringcode(8)}
- id: 3
code: 研发合伙人编号${get_stringcode(8)}
- id: 4
code: 业务产品应用合伙人编号${get_stringcode(8)}
- code: '${get_stringcode(5)}'
id: 1
- code: '${get_stringcode(5)}'
id: 2
- code: '${get_stringcode(5)}'
id: 3
- code: '${get_stringcode(5)}'
id: 4
area: '合伙人所属区域${get_stringcode(5)}'
account: 155${get_randint(10000000,99999999)}
account: 199${get_randint(10000000,99999999)}
state: 1
cooperationTime: ${get_today()}
salesmanName: '业务员姓名${get_stringcode(5)}'
phone: 155${get_randint(10000000,99999999)}
remark: '系统自动添加'
salesmanName:
phone:
remark: '${get_stringcode(50)}'
method: POST
url: /v1/partners/add
validate:
... ...
... ... @@ -9,11 +9,7 @@ request:
Authorization: Bearer ${get_m_accesstoken()}
json:
partnerName: '合伙人姓名修改${get_stringcode(5)}'
partnerType:
- id: 1
code: 事业合伙人编号${get_stringcode(8)}
- id: 2
code: 业务合伙人编号${get_stringcode(8)}
partnerType: [1,2,3,4]
area: '合伙人所属区域修改${get_stringcode(5)}'
account: 155${get_randint(10000000,99999999)}
state: 0
... ... @@ -21,7 +17,6 @@ request:
salesmanName: '业务员姓名修改${get_stringcode(5)}'
phone: 155${get_randint(10000000,99999999)}
id: $id
remark: '系统自动修改'
method: POST
url: /v1/partners/edit
validate:
... ...
... ... @@ -12,7 +12,7 @@ request:
partnerName: $partnerName
partnerType: $partnerType
pageNumber: 1
pageSize: 10000
pageSize: 100
method: POST
url: /v1/partners/list
validate:
... ...
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDgwNjMzMjYsImlhdCI6MTYwODAyMDEyNiwiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTYwODAyMDEyNiwidWlkIjozMjQyMzEyOTU1MTM1NzQ0LCJjb21wYW55SWQiOjIxNH0.5T0V7slgyKzUkFGOIOrF5rSgyMfp9MIqGM9Xjy8svbQ
\ No newline at end of file
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MTM5MzkzMjgsImlhdCI6MTYxMzg5NjEyOCwiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTYxMzg5NjEyOCwidWlkIjozMjQ3MzY2MDExOTEzMjE2LCJjb21wYW55SWQiOjM2Nn0.08OJFyJ2zo-iwyV5YbE_9BN17C0iklZ8Dv849c1Nhfs
\ No newline at end of file
... ...
1682,1683,1684,1685,1686,
\ No newline at end of file
4629,
\ No newline at end of file
... ...
import random
import string
import os
import time,datetime
from urllib import parse
... ... @@ -7,14 +8,15 @@ from helpfunc.login_func import *
from helpfunc.pg_db_func import *
from helpfunc.other_func import *
# from helpfunc.db_func import *
from helpfunc.statistics_func import *
from helpfunc.header_func import *
from random import randint
# from helpfunc.pg_app_db_func import *
from datetime import date, timedelta
import datetime
import time
from helpfunc.cal_func import *
def sleep(n_secs):
time.sleep(n_secs)
... ... @@ -27,24 +29,38 @@ def convert_to_int(value):
def get_nowtime():
return time.strftime("%Y%m%d%H%M%S", time.localtime(time.time()))
return time.strftime("%Y%m%d%H%M%S",time.localtime(time.time()))
def get_today():
now_today = datetime.datetime.now()
str_time = now_today.strftime("%Y-%m-%d")
str_time = now_today.strftime("%Y-%m-%d ")
return str_time
def get_tomorrow():
tomorrow = (date.today() + timedelta(days=1)).strftime("%Y-%m-%d")
tomorrow = (date.today() + timedelta(days=1)).strftime("%Y-%m-%d ")
return tomorrow
#获取今天时间并转str
def today_time_str():
curr_time = datetime.datetime.now()
time_str = datetime.datetime.strftime(curr_time,'%Y-%m-%d %H:%M:%S')
return time_str
#获取明天时间并转str
def tomorrow_time_str():
curr_time = datetime.datetime.now()
tomorrow_time = curr_time + datetime.timedelta(days=1)
time_str = datetime.datetime.strftime(tomorrow_time,'%Y-%m-%d %H:%M:%S')
return time_str
#获取昨天时间并转str
def yes_time_str():
curr_time = datetime.datetime.now()
yes_time = curr_time + datetime.timedelta(days=-1)
time_str = datetime.datetime.strftime(yes_time,'%Y-%m-%d %H:%M:%S')
return time_str
def get_second():
curr_time = datetime.datetime.now()
return curr_time.second
def create_channel(num):
channel = []
for i in range(num+1):
... ... @@ -91,20 +107,33 @@ def getMonth():
list = [startTime, endTime]
return list
list_time = getMonth()
###获取当月1号时间戳
def get_starTimestamp():
return int(time.mktime(time.strptime(list_time[0], '%Y-%m-%d %H:%M:%S'))*1000)
###获取当月最后一天时间戳
def get_endTimestamp():
return int(time.mktime(time.strptime(list_time[1], '%Y-%m-%d %H:%M:%S'))*1000)
###获取1小时后时间戳
def get_nowTimestamp_1():
# t = time.time()
t = datetime.datetime.now()
# 1小时后
t2 = (t + datetime.timedelta(hours=1)).strftime("%Y-%m-%d %H:%M:%S")
# 转为秒级时间戳
ts2 = time.mktime(time.strptime(t2, '%Y-%m-%d %H:%M:%S'))
# 转为毫秒级
start_time = int(str(ts2 * 1000).split(".")[0])
return start_time
###获取当前时间戳
def get_nowTimestamp():
t = time.time()
return int(round(t * 1000))
def get_January_timestamp():
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('2021-3-31 23:59:59', '%Y-%m-%d %H:%M:%S'))*1000)
... ... @@ -126,6 +155,93 @@ def get_stringcode(n):
ran_str = ''.join(random.sample(string.ascii_letters + string.digits, n))
return ran_str
def get_partnerCategory(n):
if n == 1:
return '事业'
elif n == 2 :
return '业务'
elif n == 3:
return '研发'
else:
return '业务-产品应用'
def get_randint(value1, value2):
return randint(value1, value2)
def convert_to_string(value):
return str(value)
def convert_to_int(value):
return int(value)
#获取季度对应的月份
def getql():
today=datetime.date.today()
quarter = (today.month-1)//3
if quarter == 1:
star1 = (str(today.year))+'-04'+'-01'+' '+'00:'+'00:'+'00'
star = ''.join('%s' %id for id in star1)
end1 = (str(today.year))+'-06'+'-30'+' '+'23:'+'59:'+'59'
end = ''.join('%s' % id for id in end1)
return star,end
elif quarter == 2:
star1 = (str(today.year))+'-07'+'-01'+' '+'00:'+'00:'+'00'
star = ''.join('%s' %id for id in star1)
end1 = (str(today.year))+'-09'+'-30'+' '+'23:'+'59:'+'59'
end = ''.join('%s' % id for id in end1)
return star, end
elif quarter == 3:
star1 = (str(today.year))+'-10'+'-01'+' '+'00:'+'00:'+'00'
star = ''.join('%s' %id for id in star1)
end1 = (str(today.year))+'-12'+'-31'+' '+'23:'+'59:'+'59'
end = ''.join('%s' % id for id in end1)
return star, end
else:
star1 = (str(today.year))+'-01'+'-01'+' '+'00:'+'00:'+'00'
star = ''.join('%s' %id for id in star1)
end1 = (str(today.year))+'-03'+'-31'+' '+'23:'+'59:'+'59'
end = ''.join('%s' % id for id in end1)
return star, end
#获取季度对应的月份开始时间戳
def gettql_startimestamp():
return int(time.mktime(time.strptime(getql()[0], '%Y-%m-%d %H:%M:%S'))*1000)
#获取季度对应的月份结束时间戳
def gettql_endtimestamp():
return int(time.mktime(time.strptime(getql()[1], '%Y-%m-%d %H:%M:%S'))*1000)
#获取文件
def get_file(filePath='config/订单数据模板.xlsx'):
return filePath
#字符串时间转时间戳
def str_to_time(times):
#将其转换为时间数组
timeArray = time.strptime(times, "%Y-%m-%d %H:%M:%S")
#转换为时间戳
timeStamp = int(time.mktime(timeArray)*1000)
return timeStamp
#获取销售日期
def get_saleDate(*args_v):
return args_v[0]['saleDate']
#根据日期获取当天23:59:59分时间
def get_day_zero_time():
for x in range(24):
today_date = datetime.datetime.now().strftime("%Y-%m-%d") + " %2d:59:59" % x
timeArray = time.strptime(today_date, "%Y-%m-%d %H:%M:%S")
timeStamp = int(time.mktime(timeArray)*1000)
return timeStamp
#通过当前时间和销售日期大于今天的订单进行比较
def get_saleDate_bigger_today(*args_v):
if get_day_zero_time() < str_to_time(get_saleDate(*args_v)):
return 0
else:
return 1
... ...
... ... @@ -25,4 +25,16 @@ def add(x, y):
:param y:
:return:
"""
return int(int(x)+y)
\ No newline at end of file
return int(int(x)+int(y))
def str_to_int(*args):
'''
对接收的元组求和
:param args:
:return:
'''
num = 0
for i in range(len(args)):
num = num + int(args[i])
return num
... ...
... ... @@ -2,8 +2,35 @@
# @Author :dengyuting
# @File :login_func.py
import json
import os
def teardown_hook_get_access_id(response):
os.remove('config/id.csv')
if response.status_code == 200:
jsondata = json.loads(response.text)
id =jsondata['data']['list']
try:
for i in range(len(id)):
a1 = str(id[i]['id'])
with open('config/id.csv','a+') as f:
f.writelines(a1 + '\n')
print('写入成功,id:{}'.format(a1))
except Exception as e:
print('写入失败', e)
return a1
#
# def get_id():
# try:
# with open('config/id.csv','r+') as f:
# id1 = f.read()
# print('读取id成功:{}'.format(id))
# f.close()
# except Exception as e:
# print('读取失败', e)
# # id = str(id1)
# return id
# # print(get_id())
def teardown_hook_get_accesstoken(response):
if response.status_code == 200:
jsondata = json.loads(response.text)
... ...
... ... @@ -7,6 +7,14 @@ import psycopg2
from datetime import date, timedelta
import datetime,time
def get_today():
now_today = datetime.datetime.now()
str_time = now_today.strftime("%Y-%m-%d")
return str_time
def get_tomorrow():
tomorrow = (date.today() + timedelta(days=1)).strftime("%Y-%m-%d")
return tomorrow
def getMonth():
year = str(datetime.date.today().year)
d = datetime.date.today()
... ... @@ -49,309 +57,3 @@ def GetConnect():
except Exception as err:
print("连接数据库失败,%s" % err)
return conn
#获取合伙人id
def get_partner_id_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select id from partner_info where account = '13459147023' '''
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取合伙人姓名
def get_partner_name_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select partner_name from partner_info where account = '13459147023' '''
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取合伙人账号
def get_partner_account_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select account from partner_info where account = '13459147023' '''
# print(sql)
try:
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取合伙人密码
def get_partner_password_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select "password" from partner_info where account = \'{}\''''.format(get_partner_account_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_cumulativeQuantity_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select COUNT(id) from order_base where partner_id = {} and order_type in (1) '''.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_cumulativeMoney_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select sum(plan_order_amount) from order_base where partner_id = {} and order_type in (1) '''.format(get_partner_id_from_database())
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_todayRealMoney_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select COALESCE(sum(plan_order_amount),0) from order_base where create_time between \'{}\' and \'{}\' and order_type in (1) '''.format(get_today(),get_tomorrow())
# 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_todayRealQuantity_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 order_type in (1) '''.format(get_today(),get_tomorrow())
# 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_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 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()
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()
#累计所有年份未收分红
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 delivery_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_1_order_code_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select delivery_code from order_base where partner_id = {} and order_type=1 and partner_bonus_not > 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()
if result[0] == -1.0:
sql = '''select partner_bonus_has 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())
cursor.execute(sql)
result = cursor.fetchone()
return result[0]
else:
return result[0]
except Exception as err:
# 发生错误时回滚
print(err)
db.rollback()
db.close()
#获取订单id
def get_order_id_from_database():
db = GetConnect()
cursor = db.cursor()
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
sql = '''select id from order_base where partner_id = {} and order_type=1 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()
... ...
... ... @@ -42,231 +42,3 @@ def setup_hook_clean_db(companyid):
db.rollback()
db.close()
# #获取超级管理员账号
# def get_admin_account_from_database(tbl):
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select account from \"{}\" where is_default ='t' '''.format(tbl)
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #获取管理员的id
# def get_admin_id_from_database():
# db = GetConnect()
# cursor = db.cursor()
# sql = '''select id from admin_user where is_usable = 't' order by id desc '''
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #获取管理员的account
# def get_account_from_database():
# db = GetConnect()
# cursor = db.cursor()
# sql= '''select account from admin_user where is_usable = 't' order by id desc '''
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
#
# #实际订单的发货单号
# def get_actual_delivery_code_from_database():
# db = GetConnect()
# cursor = db.cursor()
# sql = '''select delivery_code from order_base where order_type = 1 order by id DESC'''
# #print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
#
# #实际订单的id
# def get_actual_id_from_database():
# db = GetConnect()
# cursor = db.cursor()
# sql = '''select id from order_base where order_type = 1 order by id DESC'''
# #print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #意向订单id
# def get_purpose_id_from_database():
# db = GetConnect()
# cursor = db.cursor()
# # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
# sql = '''select id from order_base where order_type = 2 order by id DESC'''
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #意向订单的产品ID
# def get_ID_from_database(id):
# db = GetConnect()
# cursor = db.cursor()
# sql= '''select id from order_good where order_id = {} order by id ASC '''.format(get_purpose_id_from_database())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchall()
# return result[id][0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #分红管理的产品ID
# def get_dividends_ID_from_database(id):
# db = GetConnect()
# cursor = db.cursor()
# sql= '''select id from order_good where order_id = {} order by id ASC '''.format(get_actual_id_from_database())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchall()
# return result[id][0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #意向订单的产品名称
# def get_productName_from_database(id):
# db = GetConnect()
# cursor = db.cursor()
# sql= '''select good_name from order_good where order_id = {} order by id ASC '''.format(get_purpose_id_from_database())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchall()
# return result[id][0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #意向订单的产品数量
# def get_orderNum_from_database(id):
# db = GetConnect()
# cursor = db.cursor()
# sql= '''select plan_good_number from order_good where order_id = {} order by id ASC '''.format(get_purpose_id_from_database())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchall()
# return result[id][0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #意向订单的产品单价
# def get_univalence_from_database(id):
# db = GetConnect()
# cursor = db.cursor()
# sql= '''select price from order_good where order_id = {} order by id ASC '''.format(get_purpose_id_from_database())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchall()
# return result[id][0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #意向订单的合伙人分红比例
# def get_partnerRatio_from_database(id):
# db = GetConnect()
# cursor = db.cursor()
# sql= '''select partner_bonus_percent from order_good where order_id = {} order by id ASC '''.format(get_purpose_id_from_database())
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchall()
# return result[id][0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #获取合伙人所属区域
# def get_area_from_database():
# db = GetConnect()
# cursor = db.cursor()
# sql = '''select region_info from partner_info where account = '13459147023' '''
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]['regionName']
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #获取合伙人的业务员姓名
# def get_salesman_from_database():
# db = GetConnect()
# cursor = db.cursor()
# sql = '''select salesman from partner_info where account = '13459147023' '''
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0][0]['name']
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
# #获取合伙人的状态
# def get_status_from_database():
# db = GetConnect()
# cursor = db.cursor()
# sql = '''select status from partner_info where account = '13459147023' '''
# # print(sql)
# try:
# cursor.execute(sql)
# result = cursor.fetchone()
# return result[0]
# except Exception as err:
# # 发生错误时回滚
# print(err)
# db.rollback()
# db.close()
... ...
{
"testcase":[
"testcases/admin/ADMIN001_add_admin_testcases.yml"
"testcases/dividends/DIV001_dividendslist_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-09-15T06:07:56.262606</td>
</tr>
<tr>
<th>DURATION</th>
<td colspan="4">0.328 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 (0/1)</td>
<td colspan="2">2 (0/0/2/0)</td>
</tr>
</table>
<h2>Details</h2>
<h3>PARTNERS001:新增合伙人</h3>
<table id="suite_1" class="details">
<tr>
<td>TOTAL: 2</td>
<td>SUCCESS: 0</td>
<td>FAILED: 0</td>
<td>ERROR: 2</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="error" style="width:5em;">error</th>
<td colspan="2">10000000001 登录系统</td>
<td style="text-align:center;width:6em;">211.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: 10000000001 登录系统</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
https://public-interface-test.fjmaimaimai.com/partnermg/v1/auth/login
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;User-Agent&#34;: &#34;Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36&#34;
}</pre>
</td>
</tr>
<tr>
<th>json</th>
<td>
{
"password": "7c4a8d09ca3762af61e59520943dc26494f8941b",
"username": "10000000001"
}
</td>
</tr>
<tr>
<th>verify</th>
<td>
True
</td>
</tr>
<tr>
<th>timeout</th>
<td>
120
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>status_code</th>
<td>
N/A
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{}</pre>
</td>
</tr>
<tr>
<th>encoding</th>
<td>
None
</td>
</tr>
<tr>
<th>content_type</th>
<td>
</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>0</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>211.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>0.0</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<a class="button" href="#popup_attachment_1_1">traceback</a>
<div id="popup_attachment_1_1" class="overlay">
<div class="popup">
<h2>Traceback Message</h2>
<a class="close" href="#record_1_1">&times;</a>
<div class="content"><pre>Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 667, in urlopen
self._prepare_proxy(conn)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 932, in _prepare_proxy
conn.connect()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connection.py&#34;, line 362, in connect
self.sock = ssl_wrap_socket(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\util\ssl_.py&#34;, line 384, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 500, in wrap_socket
return self.sslsocket_class._create(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 1040, in _create
self.do_handshake()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\adapters.py&#34;, line 439, in send
resp = conn.urlopen(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 726, in urlopen
retries = retries.increment(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\util\retry.py&#34;, line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=&#39;public-interface-test.fjmaimaimai.com&#39;, port=443): Max retries exceeded with url: /partnermg/v1/auth/login (Caused by SSLError(SSLCertVerificationError(1, &#39;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&#39;)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\api.py&#34;, line 63, in test
test_runner.run_test(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 374, in run_test
self._run_testcase(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 321, in _run_testcase
test_runner.run_test(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 379, in run_test
self._run_test(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 238, in _run_test
resp = self.http_client_session.request(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 210, in request
self.meta_data[&#34;data&#34;] = [
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 211, in &lt;listcomp&gt;
get_req_resp_record(resp_obj)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 51, in get_req_resp_record
req_resp_dict[&#34;response&#34;][&#34;ok&#34;] = resp_obj.ok
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\models.py&#34;, line 703, in ok
self.raise_for_status()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 89, in raise_for_status
raise self.error
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 240, in _send_request_safe_mode
return requests.Session.request(self, method, url, **kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\sessions.py&#34;, line 530, in request
resp = self.send(prep, **send_kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\sessions.py&#34;, line 643, in send
r = adapter.send(request, **kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\adapters.py&#34;, line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=&#39;public-interface-test.fjmaimaimai.com&#39;, port=443): Max retries exceeded with url: /partnermg/v1/auth/login (Caused by SSLError(SSLCertVerificationError(1, &#39;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&#39;)))
</pre></div>
</div>
</div>
</td>
</tr>
<tr id="record_1_2">
<th class="error" style="width:5em;">error</th>
<td colspan="2">10000000001 合伙人新增</td>
<td style="text-align:center;width:6em;">79.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: 10000000001 合伙人新增</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
https://public-interface-test.fjmaimaimai.com/partnermg/v1/partners/add
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Authorization&#34;: &#34;Bearer bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDAxOTI5MzgsImlhdCI6MTYwMDE0OTczOCwiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTYwMDE0OTczOCwidWlkIjozMjQ0MDg0Njk1OTY1NDQwLCJjb21wYW55SWQiOjM1OH0.f_z2yOeoPOuvpUWlleEH4q3AIsMXFGiF9I31LsRarUQ\n&#34;
}</pre>
</td>
</tr>
<tr>
<th>json</th>
<td>
{
"partnerName": "卞信华",
"partnerType": 3,
"area": "福建省福州市XXXXX区",
"account": "1730000002",
"state": 1,
"cooperationTime": "2020-09-15",
"salesmanName": "小小",
"phone": "1730000002"
}
</td>
</tr>
<tr>
<th>verify</th>
<td>
True
</td>
</tr>
<tr>
<th>timeout</th>
<td>
120
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>status_code</th>
<td>
N/A
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{}</pre>
</td>
</tr>
<tr>
<th>encoding</th>
<td>
None
</td>
</tr>
<tr>
<th>content_type</th>
<td>
</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>0</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>79.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>0.0</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<a class="button" href="#popup_attachment_1_2">traceback</a>
<div id="popup_attachment_1_2" class="overlay">
<div class="popup">
<h2>Traceback Message</h2>
<a class="close" href="#record_1_2">&times;</a>
<div class="content"><pre>Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 667, in urlopen
self._prepare_proxy(conn)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 932, in _prepare_proxy
conn.connect()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connection.py&#34;, line 362, in connect
self.sock = ssl_wrap_socket(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\util\ssl_.py&#34;, line 384, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 500, in wrap_socket
return self.sslsocket_class._create(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 1040, in _create
self.do_handshake()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\adapters.py&#34;, line 439, in send
resp = conn.urlopen(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 726, in urlopen
retries = retries.increment(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\util\retry.py&#34;, line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=&#39;public-interface-test.fjmaimaimai.com&#39;, port=443): Max retries exceeded with url: /partnermg/v1/partners/add (Caused by SSLError(SSLCertVerificationError(1, &#39;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&#39;)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\api.py&#34;, line 63, in test
test_runner.run_test(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 379, in run_test
self._run_test(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 238, in _run_test
resp = self.http_client_session.request(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 210, in request
self.meta_data[&#34;data&#34;] = [
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 211, in &lt;listcomp&gt;
get_req_resp_record(resp_obj)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 51, in get_req_resp_record
req_resp_dict[&#34;response&#34;][&#34;ok&#34;] = resp_obj.ok
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\models.py&#34;, line 703, in ok
self.raise_for_status()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 89, in raise_for_status
raise self.error
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 240, in _send_request_safe_mode
return requests.Session.request(self, method, url, **kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\sessions.py&#34;, line 530, in request
resp = self.send(prep, **send_kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\sessions.py&#34;, line 643, in send
r = adapter.send(request, **kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\adapters.py&#34;, line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=&#39;public-interface-test.fjmaimaimai.com&#39;, port=443): Max retries exceeded with url: /partnermg/v1/partners/add (Caused by SSLError(SSLCertVerificationError(1, &#39;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&#39;)))
</pre></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-09-15T06:08:45.846606</td>
</tr>
<tr>
<th>DURATION</th>
<td colspan="4">0.133 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 (0/1)</td>
<td colspan="2">1 (0/0/1/0)</td>
</tr>
</table>
<h2>Details</h2>
<h3>PARTNERS001:新增合伙人</h3>
<table id="suite_1" class="details">
<tr>
<td>TOTAL: 1</td>
<td>SUCCESS: 0</td>
<td>FAILED: 0</td>
<td>ERROR: 1</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="error" style="width:5em;">error</th>
<td colspan="2">10000000001 合伙人新增</td>
<td style="text-align:center;width:6em;">107.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: 10000000001 合伙人新增</h3>
<h3>Request:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>url</th>
<td>
https://public-interface-test.fjmaimaimai.com/partnermg/v1/partners/add
</td>
</tr>
<tr>
<th>method</th>
<td>
POST
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{
&#34;Content-Type&#34;: &#34;application/json;charset=utf-8&#34;,
&#34;User-Agent&#34;: &#34;okhttp/3.12.3&#34;,
&#34;Authorization&#34;: &#34;Bearer bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDAxOTI5MzgsImlhdCI6MTYwMDE0OTczOCwiaXNzIjoibW1tX3BhcnRuZXJtZyIsIm5iZiI6MTYwMDE0OTczOCwidWlkIjozMjQ0MDg0Njk1OTY1NDQwLCJjb21wYW55SWQiOjM1OH0.f_z2yOeoPOuvpUWlleEH4q3AIsMXFGiF9I31LsRarUQ\n&#34;
}</pre>
</td>
</tr>
<tr>
<th>json</th>
<td>
{
"partnerName": "卞信华",
"partnerType": 3,
"area": "福建省福州市XXXXX区",
"account": "1890000008",
"state": 1,
"cooperationTime": "2020-09-15",
"salesmanName": "小小",
"phone": "1890000008"
}
</td>
</tr>
<tr>
<th>verify</th>
<td>
True
</td>
</tr>
<tr>
<th>timeout</th>
<td>
120
</td>
</tr>
</table>
</div>
<h3>Response:</h3>
<div style="overflow: auto">
<table>
<tr>
<th>status_code</th>
<td>
N/A
</td>
</tr>
<tr>
<th>headers</th>
<td>
<pre>{}</pre>
</td>
</tr>
<tr>
<th>encoding</th>
<td>
None
</td>
</tr>
<tr>
<th>content_type</th>
<td>
</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>0</td>
</tr>
<tr>
<th>response_time(ms)</th>
<td>107.0</td>
</tr>
<tr>
<th>elapsed(ms)</th>
<td>0.0</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<a class="button" href="#popup_attachment_1_1">traceback</a>
<div id="popup_attachment_1_1" class="overlay">
<div class="popup">
<h2>Traceback Message</h2>
<a class="close" href="#record_1_1">&times;</a>
<div class="content"><pre>Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 667, in urlopen
self._prepare_proxy(conn)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 932, in _prepare_proxy
conn.connect()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connection.py&#34;, line 362, in connect
self.sock = ssl_wrap_socket(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\util\ssl_.py&#34;, line 384, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 500, in wrap_socket
return self.sslsocket_class._create(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 1040, in _create
self.do_handshake()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\ssl.py&#34;, line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\adapters.py&#34;, line 439, in send
resp = conn.urlopen(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\connectionpool.py&#34;, line 726, in urlopen
retries = retries.increment(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\urllib3\util\retry.py&#34;, line 439, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=&#39;public-interface-test.fjmaimaimai.com&#39;, port=443): Max retries exceeded with url: /partnermg/v1/partners/add (Caused by SSLError(SSLCertVerificationError(1, &#39;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&#39;)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\api.py&#34;, line 63, in test
test_runner.run_test(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 379, in run_test
self._run_test(test_dict)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\runner.py&#34;, line 238, in _run_test
resp = self.http_client_session.request(
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 210, in request
self.meta_data[&#34;data&#34;] = [
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 211, in &lt;listcomp&gt;
get_req_resp_record(resp_obj)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 51, in get_req_resp_record
req_resp_dict[&#34;response&#34;][&#34;ok&#34;] = resp_obj.ok
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\models.py&#34;, line 703, in ok
self.raise_for_status()
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 89, in raise_for_status
raise self.error
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\httprunner\client.py&#34;, line 240, in _send_request_safe_mode
return requests.Session.request(self, method, url, **kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\sessions.py&#34;, line 530, in request
resp = self.send(prep, **send_kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\sessions.py&#34;, line 643, in send
r = adapter.send(request, **kwargs)
File &#34;c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\requests\adapters.py&#34;, line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host=&#39;public-interface-test.fjmaimaimai.com&#39;, port=443): Max retries exceeded with url: /partnermg/v1/partners/add (Caused by SSLError(SSLCertVerificationError(1, &#39;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)&#39;)))
</pre></div>
</div>
</div>
</td>
</tr>
</table>
</body>
\ No newline at end of file