Commit b1c6061e authored by 刘丙寅's avatar 刘丙寅

新增登录接口会话保持

parent 63f9c438
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<module type="PYTHON_MODULE" version="4"> <module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/venv" /> <excludeFolder url="file://$MODULE_DIR$/venv" />
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="7e9981c3-87b3-4c10-977f-3fdfc3f8d2ec" name="Default Changelist" comment="修改测试用例"> <list default="true" id="7e9981c3-87b3-4c10-977f-3fdfc3f8d2ec" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/interface/login.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/gm-zhuanzhen-test.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/gm-zhuanzhen-test.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/allcase.py" beforeDir="false" afterPath="$PROJECT_DIR$/allcase.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/case/case_hera_celue_test.py" beforeDir="false" afterPath="$PROJECT_DIR$/case/case_hera_celue_test.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/case/case_hera_customer_pool.py" beforeDir="false" afterPath="$PROJECT_DIR$/case/case_hera_customer_pool.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/case/case_hera_modify.py" beforeDir="false" afterPath="$PROJECT_DIR$/case/case_hera_modify.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/case/case_hera_modify.py" beforeDir="false" afterPath="$PROJECT_DIR$/case/case_hera_modify.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/interface/interface.py" beforeDir="false" afterPath="$PROJECT_DIR$/interface/interface.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/case/case_om_distribution_list.py" beforeDir="false" afterPath="$PROJECT_DIR$/case/case_om_distribution_list.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/report/转诊.html" beforeDir="false" afterPath="$PROJECT_DIR$/report/转诊.html" afterDir="false" /> <change beforePath="$PROJECT_DIR$/interface/interface.py" beforeDir="false" afterPath="$PROJECT_DIR$/interface/interface_method.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/test_yaml/customer_pool.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/test_yaml/customer_pool.yaml" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -16,7 +18,8 @@ ...@@ -16,7 +18,8 @@
<option name="LAST_RESOLUTION" value="IGNORE" /> <option name="LAST_RESOLUTION" value="IGNORE" />
</component> </component>
<component name="CoverageDataManager"> <component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_in_case_om_distribution_list_py.coverage" NAME="Unittests in case_om_distribution_list.py Coverage Results" MODIFIED="1628751749352" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" /> <SUITE FILE_PATH="coverage/gm_zhuanzhen_test$login.coverage" NAME="login Coverage Results" MODIFIED="1629108723463" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/interface" />
<SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_in_case_om_distribution_list_py.coverage" NAME="Unittests in case_om_distribution_list.py Coverage Results" MODIFIED="1629108945307" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" />
<SUITE FILE_PATH="coverage/gm_zhuanzhen_test$demo.coverage" NAME="demo Coverage Results" MODIFIED="1622632382026" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/interface" /> <SUITE FILE_PATH="coverage/gm_zhuanzhen_test$demo.coverage" NAME="demo Coverage Results" MODIFIED="1622632382026" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/interface" />
<SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_for_case_customer_pool_Case_test_01_customer_pool.coverage" NAME="Unittests for case_customer_pool.Case.test_01_customer_pool Coverage Results" MODIFIED="1623035642472" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" /> <SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_for_case_customer_pool_Case_test_01_customer_pool.coverage" NAME="Unittests for case_customer_pool.Case.test_01_customer_pool Coverage Results" MODIFIED="1623035642472" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" />
<SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_in_case_hera_customer_pool_py.coverage" NAME="Unittests in case_hera_customer_pool.py Coverage Results" MODIFIED="1628750503873" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" /> <SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_in_case_hera_customer_pool_py.coverage" NAME="Unittests in case_hera_customer_pool.py Coverage Results" MODIFIED="1628750503873" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" />
...@@ -34,12 +37,12 @@ ...@@ -34,12 +37,12 @@
<SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_for_case_zhuanzhen_celue_test_Case_test_01.coverage" NAME="Unittests for case_zhuanzhen_celue_test.Case.test_01 Coverage Results" MODIFIED="1622631292462" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" /> <SUITE FILE_PATH="coverage/gm_zhuanzhen_test$Unittests_for_case_zhuanzhen_celue_test_Case_test_01.coverage" NAME="Unittests for case_zhuanzhen_celue_test.Case.test_01 Coverage Results" MODIFIED="1622631292462" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/case" />
</component> </component>
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/case/case_hera_customer_pool.py"> <entry file="file://$PROJECT_DIR$/case/case_hera_celue_test.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="107"> <state relative-caret-position="920">
<caret line="27" column="6" selection-start-line="27" selection-start-column="6" selection-end-line="27" selection-end-column="6" /> <caret line="40" column="47" lean-forward="true" selection-start-line="40" selection-start-column="47" selection-end-line="40" selection-end-column="47" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -47,29 +50,11 @@ ...@@ -47,29 +50,11 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/test_yaml/modify.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="368">
<caret line="16" column="15" lean-forward="true" selection-start-line="16" selection-start-column="15" selection-end-line="16" selection-end-column="15" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/test_yaml/customer_pool.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="266">
<caret line="1646" column="22" lean-forward="true" selection-start-line="1646" selection-start-column="22" selection-end-line="1646" selection-end-column="22" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/case/case_om_distribution_list.py"> <entry file="file://$PROJECT_DIR$/case/case_om_distribution_list.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="303"> <state relative-caret-position="256">
<caret line="49" column="53" lean-forward="true" selection-start-line="49" selection-start-column="53" selection-end-line="49" selection-end-column="53" /> <caret line="33" column="49" lean-forward="true" selection-start-line="33" selection-start-column="49" selection-end-line="33" selection-end-column="49" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
...@@ -78,33 +63,19 @@ ...@@ -78,33 +63,19 @@
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/test_yaml/__init__.py"> <entry file="file://$PROJECT_DIR$/interface/login.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/interface/interface.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="207"> <state relative-caret-position="460">
<caret line="9" column="16" lean-forward="true" selection-start-line="9" selection-start-column="16" selection-end-line="9" selection-end-column="16" /> <caret line="20" column="23" lean-forward="true" selection-start-line="20" selection-start-column="23" selection-end-line="20" selection-end-column="23" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/test_yaml/om_distribution.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280">
<caret line="196" column="25" lean-forward="true" selection-start-line="196" selection-start-column="25" selection-end-line="196" selection-end-column="25" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/allcase.py"> <entry file="file://$PROJECT_DIR$/allcase.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="657"> <state relative-caret-position="-861">
<caret line="148" column="24" lean-forward="true" selection-start-line="148" selection-start-column="24" selection-end-line="148" selection-end-column="24" /> <caret line="81" column="26" selection-start-line="81" selection-start-column="26" selection-end-line="81" selection-end-column="26" />
<folding> <folding>
<element signature="e#15#30#0" expanded="true" /> <element signature="e#15#30#0" expanded="true" />
</folding> </folding>
...@@ -113,22 +84,22 @@ ...@@ -113,22 +84,22 @@
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/case/case_hera_modify.py"> <entry file="file://$PROJECT_DIR$/interface/interface_method.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="461"> <state relative-caret-position="598">
<caret line="29" column="43" lean-forward="true" selection-start-line="29" selection-start-column="43" selection-end-line="29" selection-end-column="43" /> <caret line="26" lean-forward="true" selection-start-line="26" selection-end-line="26" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/test_yaml/zhuanzhen_celue.yaml"> <entry file="file://$PROJECT_DIR$/case/case_hera_customer_pool.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="322"> <state relative-caret-position="359">
<caret line="14" column="11" lean-forward="true" selection-start-line="14" selection-start-column="11" selection-end-line="14" selection-end-column="11" /> <caret line="39" column="49" selection-start-line="39" selection-start-column="49" selection-end-line="39" selection-end-column="49" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
...@@ -172,22 +143,25 @@ ...@@ -172,22 +143,25 @@
<option value="$PROJECT_DIR$/test_yaml/zhuanzhen_celue.yaml" /> <option value="$PROJECT_DIR$/test_yaml/zhuanzhen_celue.yaml" />
<option value="$PROJECT_DIR$/test_yaml/modify.yaml" /> <option value="$PROJECT_DIR$/test_yaml/modify.yaml" />
<option value="$PROJECT_DIR$/case/case_modify.py" /> <option value="$PROJECT_DIR$/case/case_modify.py" />
<option value="$PROJECT_DIR$/case/case_om_distribution_list.py" />
<option value="$PROJECT_DIR$/case/case_hera_celue_test.py" />
<option value="$PROJECT_DIR$/case/case_hera_customer_pool.py" /> <option value="$PROJECT_DIR$/case/case_hera_customer_pool.py" />
<option value="$PROJECT_DIR$/case/case_hera_modify.py" /> <option value="$PROJECT_DIR$/case/case_hera_modify.py" />
<option value="$PROJECT_DIR$/test_yaml/customer_pool.yaml" /> <option value="$PROJECT_DIR$/test_yaml/customer_pool.yaml" />
<option value="$PROJECT_DIR$/interface/interface.py" />
<option value="$PROJECT_DIR$/test_yaml/om_distribution.yaml" /> <option value="$PROJECT_DIR$/test_yaml/om_distribution.yaml" />
<option value="$PROJECT_DIR$/allcase.py" /> <option value="$PROJECT_DIR$/allcase.py" />
<option value="$PROJECT_DIR$/case/login.py" />
<option value="$PROJECT_DIR$/case/case_hera_celue_test.py" />
<option value="$PROJECT_DIR$/interface/interface.py" />
<option value="$PROJECT_DIR$/interface/interface_method.py" />
<option value="$PROJECT_DIR$/case/case_om_distribution_list.py" />
<option value="$PROJECT_DIR$/interface/login.py" />
</list> </list>
</option> </option>
</component> </component>
<component name="ProjectFrameBounds" fullScreen="true"> <component name="ProjectFrameBounds" fullScreen="true">
<option name="x" value="-258" /> <option name="x" value="-32" />
<option name="y" value="-1080" /> <option name="y" value="-994" />
<option name="width" value="1920" /> <option name="width" value="1440" />
<option name="height" value="1080" /> <option name="height" value="781" />
</component> </component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" /> <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView"> <component name="ProjectView">
...@@ -195,7 +169,6 @@ ...@@ -195,7 +169,6 @@
<foldersAlwaysOnTop value="true" /> <foldersAlwaysOnTop value="true" />
</navigator> </navigator>
<panes> <panes>
<pane id="Scope" />
<pane id="ProjectPane"> <pane id="ProjectPane">
<subPane> <subPane>
<expand> <expand>
...@@ -227,6 +200,7 @@ ...@@ -227,6 +200,7 @@
<select /> <select />
</subPane> </subPane>
</pane> </pane>
<pane id="Scope" />
</panes> </panes>
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
...@@ -252,7 +226,7 @@ ...@@ -252,7 +226,7 @@
</list> </list>
</option> </option>
</component> </component>
<component name="RunManager" selected="JavaScript Debug.转诊.html"> <component name="RunManager" selected="Python tests.Unittests in case_om_distribution_list.py">
<configuration name="转诊.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/gm-zhuanzhen-test/report/转诊.html" useBuiltInWebServerPort="true"> <configuration name="转诊.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/gm-zhuanzhen-test/report/转诊.html" useBuiltInWebServerPort="true">
<method v="2" /> <method v="2" />
</configuration> </configuration>
...@@ -278,19 +252,26 @@ ...@@ -278,19 +252,26 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="Unittests for case_om_distribution_list.case.test_01_distribution_list" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true"> <configuration name="login" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="gm-zhuanzhen-test" /> <module name="gm-zhuanzhen-test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/case" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/interface" />
<option name="IS_MODULE_SDK" value="true" /> <option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" /> <option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" /> <option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="_new_additionalArguments" value="&quot;&quot;" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/interface/login.py" />
<option name="_new_target" value="&quot;case_om_distribution_list.case.test_01_distribution_list&quot;" /> <option name="PARAMETERS" value="" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="Unittests in case_hera_customer_pool.py" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true"> <configuration name="Unittests in case_hera_customer_pool.py" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true">
...@@ -325,11 +306,11 @@ ...@@ -325,11 +306,11 @@
</configuration> </configuration>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Python tests.Unittests in case_om_distribution_list.py" />
<item itemvalue="Python.login" />
<item itemvalue="JavaScript Debug.转诊.html" /> <item itemvalue="JavaScript Debug.转诊.html" />
<item itemvalue="Python.allcase" /> <item itemvalue="Python.allcase" />
<item itemvalue="Python tests.Unittests in case_om_distribution_list.py" />
<item itemvalue="Python tests.Unittests in case_hera_customer_pool.py" /> <item itemvalue="Python tests.Unittests in case_hera_customer_pool.py" />
<item itemvalue="Python tests.Unittests for case_om_distribution_list.case.test_01_distribution_list" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -356,7 +337,8 @@ ...@@ -356,7 +337,8 @@
<workItem from="1623737728653" duration="28000" /> <workItem from="1623737728653" duration="28000" />
<workItem from="1626079439429" duration="1379000" /> <workItem from="1626079439429" duration="1379000" />
<workItem from="1628248246990" duration="9177000" /> <workItem from="1628248246990" duration="9177000" />
<workItem from="1628576843797" duration="16421000" /> <workItem from="1628576843797" duration="18619000" />
<workItem from="1628845892767" duration="9348000" />
</task> </task>
<task id="LOCAL-00001" summary="测试git联通"> <task id="LOCAL-00001" summary="测试git联通">
<created>1614849671013</created> <created>1614849671013</created>
...@@ -491,16 +473,24 @@ ...@@ -491,16 +473,24 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1628751780795</updated> <updated>1628751780795</updated>
</task> </task>
<option name="localTasksCounter" value="20" /> <task id="LOCAL-00020" summary="修改用例问题">
<created>1628756864207</created>
<option name="number" value="00020" />
<option name="presentableId" value="LOCAL-00020" />
<option name="project" value="LOCAL" />
<updated>1628756864207</updated>
</task>
<task id="LOCAL-00021" summary="修改测试用例">
<created>1628756884443</created>
<option name="number" value="00021" />
<option name="presentableId" value="LOCAL-00021" />
<option name="project" value="LOCAL" />
<updated>1628756884443</updated>
</task>
<option name="localTasksCounter" value="22" />
<servers /> <servers />
</component> </component>
<component name="TestHistory"> <component name="TestHistory">
<history-entry file="Unittests_in_case_hera_customer_pool_py - 2021.08.12 at 14h 33m 43s.xml">
<configuration name="Unittests in case_hera_customer_pool.py" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_in_case_hera_customer_pool_py - 2021.08.12 at 14h 35m 06s.xml">
<configuration name="Unittests in case_hera_customer_pool.py" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_in_case_hera_customer_pool_py - 2021.08.12 at 14h 41m 50s.xml"> <history-entry file="Unittests_in_case_hera_customer_pool_py - 2021.08.12 at 14h 41m 50s.xml">
<configuration name="Unittests in case_hera_customer_pool.py" configurationId="tests" /> <configuration name="Unittests in case_hera_customer_pool.py" configurationId="tests" />
</history-entry> </history-entry>
...@@ -525,9 +515,15 @@ ...@@ -525,9 +515,15 @@
<history-entry file="Unittests_in_case_om_distribution_list_py - 2021.08.12 at 15h 02m 35s.xml"> <history-entry file="Unittests_in_case_om_distribution_list_py - 2021.08.12 at 15h 02m 35s.xml">
<configuration name="Unittests in case_om_distribution_list.py" configurationId="tests" /> <configuration name="Unittests in case_om_distribution_list.py" configurationId="tests" />
</history-entry> </history-entry>
<history-entry file="Unittests_in_case_om_distribution_list_py - 2021.08.16 at 18h 14m 51s.xml">
<configuration name="Unittests in case_om_distribution_list.py" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_in_case_om_distribution_list_py - 2021.08.16 at 18h 15m 51s.xml">
<configuration name="Unittests in case_om_distribution_list.py" configurationId="tests" />
</history-entry>
</component> </component>
<component name="TimeTrackingManager"> <component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="115481000" /> <option name="totallyTimeSpent" value="127027000" />
</component> </component>
<component name="TodoView"> <component name="TodoView">
<todo-panel id="selected-file"> <todo-panel id="selected-file">
...@@ -543,7 +539,7 @@ ...@@ -543,7 +539,7 @@
<editor active="true" /> <editor active="true" />
<layout> <layout>
<window_info id="Favorites" order="0" side_tool="true" /> <window_info id="Favorites" order="0" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="1" visible="true" weight="0.1773163" /> <window_info content_ui="combo" id="Project" order="1" visible="true" weight="0.17891374" />
<window_info id="Structure" order="2" side_tool="true" weight="0.25" /> <window_info id="Structure" order="2" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Database Changes" order="0" /> <window_info anchor="bottom" id="Database Changes" order="0" />
<window_info anchor="bottom" id="Terminal" order="1" weight="0.47357512" /> <window_info anchor="bottom" id="Terminal" order="1" weight="0.47357512" />
...@@ -553,7 +549,7 @@ ...@@ -553,7 +549,7 @@
<window_info anchor="bottom" id="Docker" order="5" show_stripe_button="false" /> <window_info anchor="bottom" id="Docker" order="5" show_stripe_button="false" />
<window_info anchor="bottom" id="Message" order="6" /> <window_info anchor="bottom" id="Message" order="6" />
<window_info anchor="bottom" id="Find" order="7" weight="0.32952926" /> <window_info anchor="bottom" id="Find" order="7" weight="0.32952926" />
<window_info anchor="bottom" id="Run" order="8" weight="0.5089109" /> <window_info active="true" anchor="bottom" id="Run" order="8" visible="true" weight="0.5089109" />
<window_info anchor="bottom" id="Debug" order="9" weight="0.3990099" /> <window_info anchor="bottom" id="Debug" order="9" weight="0.3990099" />
<window_info anchor="bottom" id="Cvs" order="10" weight="0.25" /> <window_info anchor="bottom" id="Cvs" order="10" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="11" weight="0.4" /> <window_info anchor="bottom" id="Inspection" order="11" weight="0.4" />
...@@ -582,6 +578,7 @@ ...@@ -582,6 +578,7 @@
<MESSAGE value="om后台接口提交" /> <MESSAGE value="om后台接口提交" />
<MESSAGE value="666" /> <MESSAGE value="666" />
<MESSAGE value="注释报警" /> <MESSAGE value="注释报警" />
<MESSAGE value="修改用例问题" />
<MESSAGE value="修改测试用例" /> <MESSAGE value="修改测试用例" />
<option name="LAST_COMMIT_MESSAGE" value="修改测试用例" /> <option name="LAST_COMMIT_MESSAGE" value="修改测试用例" />
</component> </component>
...@@ -664,9 +661,6 @@ ...@@ -664,9 +661,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/interface/__init__.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/report/转诊.html"> <entry file="file://$PROJECT_DIR$/report/转诊.html">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="276"> <state relative-caret-position="276">
...@@ -692,36 +686,37 @@ ...@@ -692,36 +686,37 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/case/case_hera_celue_test.py"> <entry file="file://$PROJECT_DIR$/test_yaml/om_distribution.yaml">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="440"> <state relative-caret-position="280">
<caret line="46" column="58" lean-forward="true" selection-start-line="46" selection-start-column="58" selection-end-line="46" selection-end-column="58" /> <caret line="196" column="25" lean-forward="true" selection-start-line="196" selection-start-column="25" selection-end-line="196" selection-end-column="25" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/case/case_hera_customer_pool.py"> <entry file="file://$PROJECT_DIR$/test_yaml/customer_pool.yaml">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="107"> <state relative-caret-position="454">
<caret line="27" column="6" selection-start-line="27" selection-start-column="6" selection-end-line="27" selection-end-column="6" /> <caret line="1646" column="22" lean-forward="true" selection-start-line="1646" selection-start-column="22" selection-end-line="1646" selection-end-column="22" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/interface/interface.py"> <entry file="file://$PROJECT_DIR$/test_yaml/modify.yaml">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="207"> <state relative-caret-position="368">
<caret line="9" column="16" lean-forward="true" selection-start-line="9" selection-start-column="16" selection-end-line="9" selection-end-column="16" /> <caret line="16" column="15" lean-forward="true" selection-start-line="16" selection-start-column="15" selection-end-line="16" selection-end-column="15" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/test_yaml/__init__.py"> <entry file="file://$PROJECT_DIR$/test_yaml/__init__.py">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor" />
</entry> </entry>
<entry file="file://$PROJECT_DIR$/test_yaml/zhuanzhen_celue.yaml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="322">
<caret line="14" column="11" lean-forward="true" selection-start-line="14" selection-start-column="11" selection-end-line="14" selection-end-column="11" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/case/case_hera_modify.py"> <entry file="file://$PROJECT_DIR$/case/case_hera_modify.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="461"> <state relative-caret-position="461">
...@@ -732,50 +727,62 @@ ...@@ -732,50 +727,62 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/test_yaml/zhuanzhen_celue.yaml"> <entry file="file://$PROJECT_DIR$/case/login.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/interface/__init__.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/case/case_hera_celue_test.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="322"> <state relative-caret-position="920">
<caret line="14" column="11" lean-forward="true" selection-start-line="14" selection-start-column="11" selection-end-line="14" selection-end-column="11" /> <caret line="40" column="47" lean-forward="true" selection-start-line="40" selection-start-column="47" selection-end-line="40" selection-end-column="47" />
<folding>
<element signature="e#0#15#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/case/case_om_distribution_list.py"> <entry file="file://$PROJECT_DIR$/case/case_hera_customer_pool.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="303"> <state relative-caret-position="359">
<caret line="49" column="53" lean-forward="true" selection-start-line="49" selection-start-column="53" selection-end-line="49" selection-end-column="53" /> <caret line="39" column="49" selection-start-line="39" selection-start-column="49" selection-end-line="39" selection-end-column="49" />
<folding> <folding>
<element signature="e#0#15#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/test_yaml/customer_pool.yaml"> <entry file="file://$PROJECT_DIR$/allcase.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="266"> <state relative-caret-position="-861">
<caret line="1646" column="22" lean-forward="true" selection-start-line="1646" selection-start-column="22" selection-end-line="1646" selection-end-column="22" /> <caret line="81" column="26" selection-start-line="81" selection-start-column="26" selection-end-line="81" selection-end-column="26" />
<folding>
<element signature="e#15#30#0" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/test_yaml/modify.yaml"> <entry file="file://$PROJECT_DIR$/interface/interface_method.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="368"> <state relative-caret-position="598">
<caret line="16" column="15" lean-forward="true" selection-start-line="16" selection-start-column="15" selection-end-line="16" selection-end-column="15" /> <caret line="26" lean-forward="true" selection-start-line="26" selection-end-line="26" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/test_yaml/om_distribution.yaml"> <entry file="file://$PROJECT_DIR$/interface/login.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="280"> <state relative-caret-position="460">
<caret line="196" column="25" lean-forward="true" selection-start-line="196" selection-start-column="25" selection-end-line="196" selection-end-column="25" /> <caret line="20" column="23" lean-forward="true" selection-start-line="20" selection-start-column="23" selection-end-line="20" selection-end-column="23" />
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/allcase.py"> <entry file="file://$PROJECT_DIR$/case/case_om_distribution_list.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="657"> <state relative-caret-position="256">
<caret line="148" column="24" lean-forward="true" selection-start-line="148" selection-start-column="24" selection-end-line="148" selection-end-column="24" /> <caret line="33" column="49" lean-forward="true" selection-start-line="33" selection-start-column="49" selection-end-line="33" selection-end-column="49" />
<folding> <folding>
<element signature="e#15#30#0" expanded="true" /> <element signature="e#0#15#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
......
...@@ -4,12 +4,13 @@ import sys,os ...@@ -4,12 +4,13 @@ import sys,os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import unittest import unittest
from interface import interface from interface import interface_method
from requests.cookies import cookiejar_from_dict from requests.cookies import cookiejar_from_dict
from pprint import pprint from pprint import pprint
from ddt import ddt,data from ddt import ddt,data
import jsonpath import jsonpath
import yaml import yaml
from interface.login import my_session
#获取上级目录路径 #获取上级目录路径
path = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
...@@ -35,9 +36,9 @@ class Case(unittest.TestCase): ...@@ -35,9 +36,9 @@ class Case(unittest.TestCase):
print("预期响应数据:开始") print("预期响应数据:开始")
pprint(contents) pprint(contents)
print("预期响应数据:结束") print("预期响应数据:结束")
URL = interface.hera_host+interface.recommend_hospitals URL = interface_method.hera_host + interface_method.recommend_hospitals
body = contents.get("request").get("body") body = contents.get("request").get("body")
cookies = interface.hera_cookies cookies = interface_method.hera_cookies
result = requests.post(url=URL, cookies=cookiejar_from_dict(cookies), data=body, verify=False) result = requests.post(url=URL, cookies=cookiejar_from_dict(cookies), data=body, verify=False)
res = result.json() res = result.json()
......
import requests import requests
import unittest import unittest
from interface import interface from interface import interface_method
from ddt import ddt,data from ddt import ddt,data
import os import os
from pprint import pprint from pprint import pprint
...@@ -32,11 +32,11 @@ class Case(unittest.TestCase): ...@@ -32,11 +32,11 @@ class Case(unittest.TestCase):
# print("预期响应数据:开始") # print("预期响应数据:开始")
# pprint(contents) # pprint(contents)
# print("预期响应数据:结束") # print("预期响应数据:结束")
URL = interface.hera_host+interface.customer_pool_interface URL = interface_method.hera_host + interface_method.customer_pool_interface
body = contents.get("request").get("body") body = contents.get("request").get("body")
body = str(body).replace('True',"'true'").replace('False',"'false'").replace('None',"''") body = str(body).replace('True',"'true'").replace('False',"'false'").replace('None',"''")
print(body) print(body)
cookies = interface.hera_cookies cookies = interface_method.hera_cookies
result = requests.post(url=URL, cookies=cookiejar_from_dict(cookies), data=eval(body),verify=False) result = requests.post(url=URL, cookies=cookiejar_from_dict(cookies), data=eval(body),verify=False)
res = result.json() res = result.json()
print("实际返回数据:开始") print("实际返回数据:开始")
......
import requests import requests
import unittest import unittest
from interface import interface from interface import interface_method
from ddt import ddt,data from ddt import ddt,data
import os import os
from pprint import pprint from pprint import pprint
...@@ -32,10 +32,10 @@ class Case(unittest.TestCase): ...@@ -32,10 +32,10 @@ class Case(unittest.TestCase):
# print("预期响应数据:开始") # print("预期响应数据:开始")
# pprint(contents) # pprint(contents)
# print("预期响应数据:结束") # print("预期响应数据:结束")
URL = interface.hera_host+interface.modify URL = interface_method.hera_host + interface_method.modify
body = contents.get("request").get("body") body = contents.get("request").get("body")
print(body) print(body)
cookies = interface.hera_cookies cookies = interface_method.hera_cookies
header = { header = {
"content-type":"text/html" "content-type":"text/html"
} }
......
...@@ -4,13 +4,16 @@ import sys,os ...@@ -4,13 +4,16 @@ import sys,os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import unittest import unittest
from interface import interface from interface import interface_method
from interface.login import my_session
from requests.cookies import cookiejar_from_dict from requests.cookies import cookiejar_from_dict
from pprint import pprint from pprint import pprint
from ddt import ddt,data from ddt import ddt,data
import jsonpath import jsonpath
import yaml import yaml
#获取上级目录路径 #获取上级目录路径
path = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
# 拼接需要的目录 # 拼接需要的目录
...@@ -30,10 +33,10 @@ class case(unittest.TestCase): ...@@ -30,10 +33,10 @@ class case(unittest.TestCase):
@data(*file3) @data(*file3)
def test_01_distribution_list(self,contents): def test_01_distribution_list(self,contents):
'om后台客服客户池客户列表接口' 'om后台客服客户池客户列表接口'
URL = interface.om_host + interface.om_distribution_list URL = interface_method.om_host + interface_method.om_distribution_list
body = contents.get("request").get("body") body = contents.get("request").get("body")
cookies = interface.om_cookies cookies = interface_method.om_cookies
result = requests.get(url=URL,cookies=cookies,params=body,verify=False) result = my_session.get(url=URL,params=body)
res = result.json() res = result.json()
print("真实数据返回开始") print("真实数据返回开始")
pprint(res) pprint(res)
......
...@@ -19,7 +19,8 @@ modify = "/bdtransfer/modify/186363/?is_private=0" ...@@ -19,7 +19,8 @@ modify = "/bdtransfer/modify/186363/?is_private=0"
# om后台客服客户池已分配客户列表接口 # om后台客服客户池已分配客户列表接口
om_distribution_list = "/achelous/api/bdtransfer/consultant_list" om_distribution_list = "/achelous/api/bdtransfer/consultant_list"
# 登录按钮
om_login = "/achelous/account/login"
import sys,os
print(sys.path)
from interface import interface_method
import requests
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import json
class login:
def login_method(self):
# 接口名称
URL = interface_method.om_host + interface_method.om_login
body = {
"username":"yijiali",
"password":"a1234567890"
}
my_session=requests.session()
result = my_session.post(url=URL, data=body,verify=False)
res = result.json()
print(res)
return my_session
my_session = login().login_method()
my_session.verify=False
print(my_session.cookies)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment