Commit 98ba8dd9 authored by 刘琴's avatar 刘琴

查询所有线索+新增线索(必填项)+查询单个线索

parent 9ce59f5d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +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$" />
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" /> <orderEntry type="jdk" jdkName="Python 3.7" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
<component name="PyDocumentationSettings"> <component name="PyDocumentationSettings">
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" />
</project> </project>
\ No newline at end of file
Index: run.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+>import pytest\nimport os\n\n\nif __name__ == '__main__':\n run_config = [\n \"-s\", \"./script/ji_yun_ying_app\", \"--alluredir\", \"./report/xml\", \"--host=http://172.10.62.94:3000\",\n ]\n pytest.main(run_config)\n # os模块运行allure命令,来生成html格式的报告(根据刚刚生成的配置信息)\n # os.system(\"/Users/huangqiang/WorkPlace/allure-2.13.8/bin/allure generate ./report/xml -o ./report/html --clean\")\n
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- run.py (revision afc678929e714343bc935d0e182aeb8e4de75fff)
+++ run.py (date 1618196902142)
@@ -8,4 +8,4 @@
]
pytest.main(run_config)
# os模块运行allure命令,来生成html格式的报告(根据刚刚生成的配置信息)
- # os.system("/Users/huangqiang/WorkPlace/allure-2.13.8/bin/allure generate ./report/xml -o ./report/html --clean")
+ os.system("/Users/huangqiang/WorkPlace/allure-2.13.8/bin/allure generate ./report/xml -o ./report/html --clean")
\ No newline at end of file
<changelist name="Uncommitted_changes_before_Checkout_at_2021_4_12,_11_11_[Default_Changelist]1" date="1618197069375" recycled="true" deleted="true">
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Checkout_at_2021_4_12,_11_11_[Default_Changelist]1/shelved.patch" />
<option name="DESCRIPTION" value="Uncommitted changes before Checkout at 2021/4/12, 11:11 [Default Changelist]" />
</changelist>
\ No newline at end of file
...@@ -19,20 +19,24 @@ ...@@ -19,20 +19,24 @@
<select /> <select />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="54f4d37d-1724-4813-a1e2-24e200088c5f" name="Default Changelist" comment="修改响应"> <list default="true" id="54f4d37d-1724-4813-a1e2-24e200088c5f" name="Default Changelist" comment="让他天天">
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/common_liuqin/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/common_liuqin/helpler.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/conftest.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue/test_my_new_clue.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/jk_interface_test.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/jk_interface_test.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Checkout_at_2021_4_12,_11_11_[Default_Changelist]1/shelved.patch" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Checkout_at_2021_4_12__11_11__Default_Changelist_1.xml" beforeDir="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$/create_case.py" beforeDir="false" afterPath="$PROJECT_DIR$/create_case.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/run.py" beforeDir="false" afterPath="$PROJECT_DIR$/run.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/run.py" beforeDir="false" afterPath="$PROJECT_DIR$/run.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/conftest.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/conftest.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/conftest.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/conftest.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/defalut_account.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/defalut_account.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/defalut_account.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/defalut_account.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class/test_auth_choose_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class/test_auth_choose_class.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/test_clue/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/case_data_handler_liuqin/myNewClue_handler.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_class/test_auth_classes.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_class/test_auth_classes.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_class/test_auth_students_classes.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_class/test_auth_students_classes.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_login.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_login.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_students.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_students.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_public_class/xin_global_static.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_public_class/xin_global_static.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/jky_user.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/jky_user.yaml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/jky_user.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/jky_user.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/patriarch_user" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/patriarch_user" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/patriarch_user" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/patriarch_user" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/xin_patriarch_login.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/xin_patriarch_login.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -60,9 +64,18 @@ ...@@ -60,9 +64,18 @@
</option> </option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component> </component>
<component name="GitSEFilterConfiguration">
<file-type-list>
<filtered-out-file-type name="LOCAL_BRANCH" />
<filtered-out-file-type name="REMOTE_BRANCH" />
<filtered-out-file-type name="TAG" />
<filtered-out-file-type name="COMMIT_BY_MESSAGE" />
</file-type-list>
</component>
<component name="JupyterTrust" id="84ff9241-66df-46ff-a870-bc6f5256d48c" /> <component name="JupyterTrust" id="84ff9241-66df-46ff-a870-bc6f5256d48c" />
<component name="ProjectId" id="1nPqpGaEWLImTlIS6FQ5yJzJajR" /> <component name="ProjectId" id="1nPqpGaEWLImTlIS6FQ5yJzJajR" />
<component name="ProjectLevelVcsManager"> <component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
<ConfirmationsSetting value="2" id="新增" /> <ConfirmationsSetting value="2" id="新增" />
</component> </component>
<component name="ProjectViewState"> <component name="ProjectViewState">
...@@ -74,7 +87,7 @@ ...@@ -74,7 +87,7 @@
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" /> <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/script" /> <property name="last_opened_file_path" value="$PROJECT_DIR$/../../geek_mine" />
<property name="node.js.detected.package.eslint" value="true" /> <property name="node.js.detected.package.eslint" value="true" />
<property name="node.js.detected.package.tslint" value="true" /> <property name="node.js.detected.package.tslint" value="true" />
<property name="node.js.path.for.package.eslint" value="project" /> <property name="node.js.path.for.package.eslint" value="project" />
...@@ -82,7 +95,7 @@ ...@@ -82,7 +95,7 @@
<property name="node.js.selected.package.eslint" value="(autodetect)" /> <property name="node.js.selected.package.eslint" value="(autodetect)" />
<property name="node.js.selected.package.tslint" value="(autodetect)" /> <property name="node.js.selected.package.tslint" value="(autodetect)" />
<property name="run.code.analysis.last.selected.profile" value="aDefault" /> <property name="run.code.analysis.last.selected.profile" value="aDefault" />
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" /> <property name="settings.editor.selected.configurable" value="preferences.sourceCode" />
<property name="vue.rearranger.settings.migration" value="true" /> <property name="vue.rearranger.settings.migration" value="true" />
</component> </component>
<component name="RecentsManager"> <component name="RecentsManager">
...@@ -97,7 +110,7 @@ ...@@ -97,7 +110,7 @@
</key> </key>
</component> </component>
<component name="RunManager" selected="Python.run"> <component name="RunManager" selected="Python.run">
<configuration name="run" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="conftest" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
...@@ -105,12 +118,11 @@ ...@@ -105,12 +118,11 @@
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
</envs> </envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin" />
<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" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/conftest.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/run.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
...@@ -119,7 +131,7 @@ ...@@ -119,7 +131,7 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="xin_add_class" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="helpler (1)" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
...@@ -127,12 +139,11 @@ ...@@ -127,12 +139,11 @@
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
</envs> </envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/common_liuqin" />
<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" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/common_liuqin/helpler.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_add_class.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
...@@ -141,7 +152,7 @@ ...@@ -141,7 +152,7 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="xin_course" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="helpler" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
...@@ -149,12 +160,11 @@ ...@@ -149,12 +160,11 @@
<env name="PYTHONUNBUFFERED" value="1" /> <env name="PYTHONUNBUFFERED" value="1" />
</envs> </envs>
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/common_liuqin" />
<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" /> <option name="SCRIPT_NAME" value="E:\interface\jk_interface_test\script\ji_yun_ying_pc\service_crm_liuqin\common_liuqin\helpler.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle/xin_course.py" />
<option name="PARAMETERS" value="" /> <option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="EMULATE_TERMINAL" value="false" />
...@@ -163,54 +173,58 @@ ...@@ -163,54 +173,58 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="pytest for test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time" type="tests" factoryName="py.test" temporary="true" nameIsGenerated="true"> <configuration name="run" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<option name="SDK_HOME" value="" /> <envs>
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class" /> <env name="PYTHONUNBUFFERED" value="1" />
<option name="IS_MODULE_SDK" value="true" /> </envs>
<option name="SDK_HOME" value="C:\Users\liuqin\AppData\Local\Programs\Python\Python37\python.exe" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="false" />
<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_keywords" value="&quot;&quot;" /> <option name="SCRIPT_NAME" value="$PROJECT_DIR$/run.py" />
<option name="_new_parameters" value="&quot;&quot;" /> <option name="PARAMETERS" value="" />
<option name="_new_additionalArguments" value="&quot;&quot;" /> <option name="SHOW_COMMAND_LINE" value="false" />
<option name="_new_target" value="&quot;test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time&quot;" /> <option name="EMULATE_TERMINAL" value="false" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" /> <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="pytest in test_auth_students.py" type="tests" factoryName="py.test" temporary="true" nameIsGenerated="true"> <configuration name="pytest in test_my_new_clue.py" type="tests" factoryName="py.test" temporary="true" nameIsGenerated="true">
<module name="jk_interface_test" /> <module name="jk_interface_test" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" /> <option name="PARENT_ENVS" value="true" />
<option name="SDK_HOME" value="" /> <option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue" />
<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" />
<option name="_new_keywords" value="&quot;&quot;" /> <option name="_new_keywords" value="&quot;&quot;" />
<option name="_new_parameters" value="&quot;&quot;" /> <option name="_new_parameters" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;&quot;" /> <option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_students.py&quot;" /> <option name="_new_target" value="&quot;$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue/test_my_new_clue.py&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" /> <option name="_new_targetType" value="&quot;PATH&quot;" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<list> <list>
<item itemvalue="Python.run" /> <item itemvalue="Python.run" />
<item itemvalue="Python 测试.pytest in test_auth_students.py" /> <item itemvalue="Python.helpler" />
<item itemvalue="Python.xin_add_class" /> <item itemvalue="Python.helpler (1)" />
<item itemvalue="Python.xin_course" /> <item itemvalue="Python tests.pytest in test_my_new_clue.py" />
<item itemvalue="Python 测试.pytest for test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time" /> <item itemvalue="Python.conftest" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Python.run" /> <item itemvalue="Python.run" />
<item itemvalue="Python 测试.pytest for test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time" /> <item itemvalue="Python.conftest" />
<item itemvalue="Python.xin_course" /> <item itemvalue="Python.helpler (1)" />
<item itemvalue="Python.xin_add_class" /> <item itemvalue="Python tests.pytest in test_my_new_clue.py" />
<item itemvalue="Python 测试.pytest in test_auth_students.py" /> <item itemvalue="Python.helpler" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -289,98 +303,6 @@ ...@@ -289,98 +303,6 @@
<MESSAGE value="修改响应" /> <MESSAGE value="修改响应" />
<option name="LAST_COMMIT_MESSAGE" value="修改响应" /> <option name="LAST_COMMIT_MESSAGE" value="修改响应" />
</component> </component>
<component name="WindowStateProjectService">
<state x="-1534" y="178" width="1092" height="715" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1618228181033">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state x="-1534" y="178" width="1092" height="715" key="#com.intellij.execution.impl.EditConfigurationsDialog/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618228181033" />
<state x="360" y="197" key="#com.intellij.execution.impl.EditConfigurationsDialog/0.23.1792.1017@0.23.1792.1017" timestamp="1611302358176" />
<state x="-1232" y="373" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1" timestamp="1618311021866">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state x="-1232" y="373" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618311021866" />
<state x="642" y="389" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/0.23.1792.1020@0.23.1792.1020" timestamp="1617160990990" />
<state x="-1828" y="92" width="1736" height="856" key="DiffContextDialog" timestamp="1618380610767">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state x="-1828" y="92" width="1736" height="856" key="DiffContextDialog/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618380610767" />
<state x="683" y="296" key="FileChooserDialogImpl" timestamp="1611303152470">
<screen x="0" y="23" width="1792" height="1017" />
</state>
<state x="683" y="296" key="FileChooserDialogImpl/0.23.1792.1017@0.23.1792.1017" timestamp="1611303152470" />
<state width="1876" height="284" key="GridCell.Tab.0.bottom" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state width="1876" height="284" key="GridCell.Tab.0.bottom/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618386323492" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1009@0.23.1792.1009" timestamp="1618223069056" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714625" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419626" />
<state width="1771" height="319" key="GridCell.Tab.0.bottom/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360303" />
<state width="1771" height="322" key="GridCell.Tab.0.bottom/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706598" />
<state width="1771" height="322" key="GridCell.Tab.0.bottom/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434843" />
<state width="1876" height="284" key="GridCell.Tab.0.center" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state width="1876" height="284" key="GridCell.Tab.0.center/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618386323492" />
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1009@0.23.1792.1009" timestamp="1618223069055" />
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714624" />
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419625" />
<state width="1771" height="319" key="GridCell.Tab.0.center/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360303" />
<state width="1771" height="322" key="GridCell.Tab.0.center/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706597" />
<state width="1771" height="322" key="GridCell.Tab.0.center/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1876" height="284" key="GridCell.Tab.0.left" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state width="1876" height="284" key="GridCell.Tab.0.left/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618386323492" />
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1009@0.23.1792.1009" timestamp="1618223069055" />
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714624" />
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419624" />
<state width="1771" height="319" key="GridCell.Tab.0.left/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360302" />
<state width="1771" height="322" key="GridCell.Tab.0.left/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706585" />
<state width="1771" height="322" key="GridCell.Tab.0.left/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1876" height="284" key="GridCell.Tab.0.right" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state width="1876" height="284" key="GridCell.Tab.0.right/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618386323492" />
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1009@0.23.1792.1009" timestamp="1618223069056" />
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1012@0.23.1792.1012" timestamp="1617964714625" />
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1015@0.23.1792.1015" timestamp="1617278419625" />
<state width="1771" height="319" key="GridCell.Tab.0.right/0.23.1792.1020@0.23.1792.1020" timestamp="1617161360303" />
<state width="1771" height="322" key="GridCell.Tab.0.right/0.23.1792.1024@0.23.1792.1024" timestamp="1617095706598" />
<state width="1771" height="322" key="GridCell.Tab.0.right/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1771" height="338" key="GridCell.Tab.1.bottom" timestamp="1618195326172">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.bottom/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326172" />
<state width="1771" height="338" key="GridCell.Tab.1.center" timestamp="1618195326172">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.center/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326172" />
<state width="1771" height="338" key="GridCell.Tab.1.left" timestamp="1618195326171">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.left/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326171" />
<state width="1771" height="338" key="GridCell.Tab.1.right" timestamp="1618195326172">
<screen x="0" y="23" width="1792" height="1009" />
</state>
<state width="1771" height="338" key="GridCell.Tab.1.right/0.23.1792.1009@0.23.1792.1009" timestamp="1618195326172" />
<state x="-1495" y="154" key="SettingsEditor" timestamp="1618228208032">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state x="-1495" y="154" key="SettingsEditor/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618228208032" />
<state x="397" y="173" key="SettingsEditor/0.23.1792.1015@0.23.1792.1015" timestamp="1611303202671" />
<state x="397" y="173" key="SettingsEditor/0.23.1792.1017@0.23.1792.1017" timestamp="1611302888504" />
<state x="-1389" y="250" key="Vcs.Push.Dialog.v2" timestamp="1618380671449">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state x="-1389" y="250" key="Vcs.Push.Dialog.v2/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618380671449" />
<state x="496" y="266" key="Vcs.Push.Dialog.v2/0.23.1792.1009@0.23.1792.1009" timestamp="1618198928993" />
<state x="496" y="267" key="Vcs.Push.Dialog.v2/0.23.1792.1015@0.23.1792.1015" timestamp="1611382527150" />
<state x="-1159" y="476" width="672" height="678" key="search.everywhere.popup" timestamp="1618385663915">
<screen x="-1920" y="0" width="1920" height="1040" />
</state>
<state x="-1159" y="476" width="672" height="678" key="search.everywhere.popup/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618385663915" />
</component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
<breakpoints> <breakpoints>
...@@ -392,13 +314,4 @@ ...@@ -392,13 +314,4 @@
</breakpoints> </breakpoints>
</breakpoint-manager> </breakpoint-manager>
</component> </component>
<component name="com.intellij.coverage.CoverageDataManagerImpl">
<SUITE FILE_PATH="coverage/jk_interface_test$xin_course.coverage" NAME="xin_course Coverage Results" MODIFIED="1618368096576" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle" />
<SUITE FILE_PATH="coverage/jk_interface_test$pytest_for_test_auth_choose_class_TestChooseClasses_test_choose_before_notwork_time.coverage" NAME="pytest for test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time Coverage Results" MODIFIED="1618385761473" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class" />
<SUITE FILE_PATH="coverage/jk_interface_test$pytest_in_test_auth_students_py.coverage" NAME="pytest in test_auth_students.py Coverage Results" MODIFIED="1618364910281" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login" />
<SUITE FILE_PATH="coverage/jk_interface_test$xin_update_course.coverage" NAME="xin_update_course Coverage Results" MODIFIED="1618312820048" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle" />
<SUITE FILE_PATH="coverage/jk_interface_test$run.coverage" NAME="run Coverage Results" MODIFIED="1618386323487" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/jk_interface_test$xin_add_class.coverage" NAME="xin_add_class Coverage Results" MODIFIED="1618366452812" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle" />
<SUITE FILE_PATH="coverage/jk_interface_test$run__1_.coverage" NAME="run (1) Coverage Results" MODIFIED="1618312934600" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/script/xin_project_patriarch_app" />
</component>
</project> </project>
\ No newline at end of file
...@@ -7,8 +7,9 @@ from common.common_util import replace_string ...@@ -7,8 +7,9 @@ from common.common_util import replace_string
def get_cases(path): def get_cases(path):
with open(path, 'r', encoding='utf-8') as file: with open(path, 'r', encoding='utf8') as file:
case_content_json = json.loads(file.read()) # print(file.read())
case_content_json = json.loads(re.findall("\{.*\}", file.read())[0])
entries = case_content_json.get("log").get("entries") entries = case_content_json.get("log").get("entries")
step_lists = [] step_lists = []
for entry in entries: for entry in entries:
...@@ -145,7 +146,7 @@ ${import_datas} ...@@ -145,7 +146,7 @@ ${import_datas}
""" """
if __name__ == '__main__': if __name__ == '__main__':
file_path = "/Users/huangqiang/Desktop/order.har" file_path = "D:/lq_url2.har"
current_method = get_current_method() current_method = get_current_method()
create_file(get_cases(file_path), is_assert=False) create_file(get_cases(file_path), is_assert=False)
...@@ -3,12 +3,18 @@ import os ...@@ -3,12 +3,18 @@ import os
if __name__ == '__main__': if __name__ == '__main__':
run_config = [ run_config = [
"-s", "script/xin_project_patriarch_app", "-s", r"script\ji_yun_ying_pc\service_crm_liuqin\testcase_clue\test_my_new_clue.py",
"--clean-alluredir",
"--alluredir", "./report/xml", "--alluredir", "./report/xml",
"--host", "http://172.10.62.94", "--host", "http://192.168.32.31",
"--account", "b", "--account", "A",
"--db", "36" "--db", "36"
] ]
x = pytest.main(run_config) x = pytest.main(run_config)
# os模块运行allure命令,来生成html格式的报告(根据刚刚生成的配置信息) # os模块运行allure命令,来生成html格式的报告(根据刚刚生成的配置信息)
os.system("allure generate ./report/xml -o ./report/html --clean") os.system("allure generate ./report/xml -o ./report/html --clean")
...@@ -10,7 +10,8 @@ from script.base_api.service_user.departments import departments_schools_get ...@@ -10,7 +10,8 @@ from script.base_api.service_user.departments import departments_schools_get
def pytest_addoption(parser): def pytest_addoption(parser):
# 注册一个命令行选项host # 注册一个命令行选项host
parser.addoption("--host", default="http://172.10.62.94", dest="env", help="set test run env") # parser.addoption("--host", default="http://172.10.62.94", dest="env", help="set test run env")
parser.addoption("--host", default="https://yf1.jkwljy.com", dest="env", help="set test run env")
# 注册一个命令行选项db # 注册一个命令行选项db
parser.addoption("--db", default="yf1", dest="db", help="set test database") parser.addoption("--db", default="yf1", dest="db", help="set test database")
# 注册一个命令行选项account # 注册一个命令行选项account
......
...@@ -4,6 +4,7 @@ accounts = { ...@@ -4,6 +4,7 @@ accounts = {
"A": { "A": {
# 极运营默认账号 # 极运营默认账号
"jyy_account": { "jyy_account": {
# "account": "18224499511",
"account": "15360956010", "account": "15360956010",
"password": "88888888" "password": "88888888"
}, },
......
from script.ji_yun_ying_pc.service_crm_liuqin.common_liuqin.helpler import get_mobile, get_time, get_tomorrow_datetime
class Add_My_New_Clue():
def __init__(self,contactInfo=get_mobile(),studentName="lq{}".format(get_time()),belong="PERSON",contactType="PHONE",studentSex="NONE",
collectPerson="刘琴1", createSchoolAreaId=3015,introduceStudentNo=None,otherRemark=None,
homeProvinceId=None,homeProvince=None,homeCityId=None,homeCity=None,homeDistrictId=None,
homeDistrict=None,homeCountyId=None,homeCounty=None,homeAddress=None,schoolId=None,schoolName=None,
publicClass=None,publicTeacher=None,publicGrade=None,birthday=None,testPaperUrls=None,
score=None,sourceId=101,intentionLevel="B",introduceStudentId=None,introduceStudentName=None,
remark=None,classRank=None,gradeRank=None,recentScore=None,parentsHope=None,
studyHabit=None,city=510100,schoolProvinceName="四川省",schoolProvinceId=510000,
schoolCityId=510000,schoolCityName="成都"
):
self.add_clue_data={
"belong": belong,
"studentName": studentName,
"studentSex": studentSex,
"contactType": contactType,
"contactInfo": contactInfo,
"homeProvinceId": homeProvinceId,
"homeProvince": homeProvince,
"homeCityId":homeCityId ,
"homeCity": homeCity,
"homeDistrictId": homeDistrictId,
"homeDistrict": homeDistrict,
"homeCountyId": homeCountyId,
"homeCounty": homeCounty,
"homeAddress": homeAddress,
"schoolId": schoolId,
"schoolName": schoolName,
"publicClass": publicClass,
"publicTeacher": publicTeacher,
"publicGrade": publicGrade,
"birthday": birthday,
"testPaperUrls": testPaperUrls,
"score": score,
"sourceId": sourceId,
"intentionLevel": intentionLevel,
"introduceStudentId": introduceStudentId,
"introduceStudentName": introduceStudentName,
"introduceStudentNo": introduceStudentNo,
"collectPerson": collectPerson,
"createSchoolAreaId": createSchoolAreaId,
"otherRemark": otherRemark,
"remark": remark,
"classRank": classRank,
"gradeRank": gradeRank,
"recentScore": recentScore,
"parentsHope": parentsHope,
"studyHabit": studyHabit,
"city": city,
"schoolProvinceName": schoolProvinceName,
"schoolProvinceId": schoolProvinceId,
"schoolCityId": schoolCityId,
"schoolCityName": schoolCityName
}
"""
"belong": "PERSON",
"studentName": "lq112",
"studentSex": "NONE",
"contactType": "PHONE",
"contactInfo": "13500000002",
"homeProvinceId": "",
"homeProvince": "",
"homeCityId": "",
"homeCity": "",
"homeDistrictId": "",
"homeDistrict": "",
"homeCountyId": "",
"homeCounty": "",
"homeAddress": "",
"schoolId": "",
"schoolName": "",
"publicClass": "",
"publicTeacher": "",
"publicGrade": "",
"birthday": "",
"testPaperUrls": "",
"score": "",
"sourceId": 101,
"intentionLevel": "B",
"introduceStudentId": "",
"introduceStudentName": "",
"introduceStudentNo": "",
"collectPerson": "刘琴1",
"createSchoolAreaId": 2371,
"otherRemark": "",
"remark": "",
"classRank": "",
"gradeRank": "",
"recentScore": "",
"parentsHope": "",
"studyHabit": "",
"city": 510100,
"schoolProvinceName": "四川省",
"schoolProvinceId": 510000,
"schoolCityId": 510100,
"schoolCityName": "成都"
"""
# class Eidt_My_New_Clue():
# def __init__(self,clueId,id,studentName="刘琴修改后{}".format(get_time()),studentSex="NONE",introduceStudentId=None,introduceStudentNo=None,introduceStudentName=None,
# collectPerson="刘琴1",intentionLevel="B",sourceId=101,sourceName="自然口碑",remark="",otherRemark="",birthday="",publicClass="",publicTeacher="",
# publicGrade=None,contactInfo="15395946456",contactType="PHONE",schoolName="",homeProvinceId=None,homeProvince=None,homeCityId=None,homeCity=None,
# homeDistrictId=None,homeDistrict=None,homeCountyId=None,homeCounty=None,homeAddress=None,testPaperUrls="",score=None,lastClueId=None,
# nextClueId=None,nextFollowTime=get_tomorrow_datetime(),schoolId="",schoolProvinceId=510000,schoolProvinceName="",schoolCityId=510000,schoolCityName=None,
# schoolAreaId=None,schoolAreaName=None,classRank=None,gradeRank=None,recentScore=None,studyHabit=None,parentsHope=None,city=510000,studentId=10577103,
# primUserId=697348,secondUserId=None,areaId=None,studentNo=624780,secondContactType=None,secondContactInfo=None,createSchoolAreaId=2398,
# belongSchoolAreaId=3015,citys=[{"id": 510000,"name": "四川省", "parentId": None, "type": 10},{"id": 510100,"name": "成都市","parentId": 510000,"type": 20}],cityName="四川省-成都市",belong="PERSON"
# )
#
# self.edit_clue_data={
# {
# "clueId": 402988,
# "studentName": studentName,
# "studentSex":studentSex ,
# "introduceStudentId": introduceStudentId,
# "introduceStudentNo": introduceStudentNo,
# "introduceStudentName": introduceStudentName,
# "collectPerson": collectPerson,
# "intentionLevel": intentionLevel,
# "sourceId": sourceId,
# "sourceName": sourceName,
# "remark": remark,
# "otherRemark": otherRemark,
# "birthday": birthday,
# "publicClass": publicClass,
# "publicTeacher": publicTeacher,
# "publicGrade": publicGrade,
# "contactInfo": contactInfo,
# "contactType": contactType,
# "schoolName": schoolName,
# "homeProvinceId": homeProvinceId,
# "homeProvince": homeProvince,
# "homeCityId": homeCityId,
# "homeCity": homeCity,
# "homeDistrictId": homeDistrictId,
# "homeDistrict": homeDistrict,
# "homeCountyId": homeCountyId,
# "homeCounty": homeCounty,
# "homeAddress": homeAddress,
# "testPaperUrls": testPaperUrls,
# "score": score,
# "lastClueId": lastClueId,
# "nextClueId": nextClueId,
# "nextFollowTime": "2021-04-25 23:59:59",
# "schoolId": "",
# "schoolProvinceId": schoolProvinceId,
# "schoolProvinceName": schoolProvinceName,
# "schoolCityId": schoolCityId,
# "schoolCityName": "",
# "schoolAreaId": schoolAreaId,
# "schoolAreaName": schoolAreaName,
# "classRank": classRank,
# "gradeRank": gradeRank,
# "recentScore": recentScore,
# "studyHabit": studyHabit,
# "parentsHope":parentsHope,
# "city": city,
# "studentId": studentId,
# "primUserId": 697348,
# "secondUserId": secondUserId,
# "areaId": areaId,
# "studentNo": 624780,
# "secondContactType": secondContactType,
# "secondContactInfo": secondContactInfo,
# "createSchoolAreaId": createSchoolAreaId,
# "belongSchoolAreaId": belongSchoolAreaId,
# "citys": citys,
# "cityName": cityName,
# "id": id,
# "belong": belong
# }
# }
"""
{
"clueId": 402988,
"studentName": "lq1619365961",
"studentSex": "NONE",
"introduceStudentId": null,
"introduceStudentNo": null,
"introduceStudentName": null,
"collectPerson": "刘琴1",
"intentionLevel": "B",
"sourceId": 101,
"sourceName": "自然口碑",
"remark": "",
"otherRemark": "",
"birthday": null,
"publicClass": "",
"publicTeacher": "",
"publicGrade": null,
"contactInfo": "15395946456",
"contactType": "PHONE",
"schoolName": "",
"homeProvinceId": null,
"homeProvince": null,
"homeCityId": null,
"homeCity": null,
"homeDistrictId": null,
"homeDistrict": null,
"homeCountyId": null,
"homeCounty": null,
"homeAddress": null,
"testPaperUrls": "",
"score": null,
"lastClueId": null,
"nextClueId": null,
"nextFollowTime": "2021-04-25 23:59:59",
"schoolId": "",
"schoolProvinceId": 510000,
"schoolProvinceName": null,
"schoolCityId": 510000,
"schoolCityName": "",
"schoolAreaId": null,
"schoolAreaName": null,
"classRank": "",
"gradeRank": "",
"recentScore": "",
"studyHabit": "",
"parentsHope": "",
"city": 510100,
"studentId": 10577103,
"primUserId": 697348,
"secondUserId": null,
"areaId": null,
"studentNo": 624780,
"secondContactType": null,
"secondContactInfo": null,
"createSchoolAreaId": 2398,
"belongSchoolAreaId": 3015,
"citys": [{
"id": 510000,
"name": "四川省",
"parentId": null,
"type": 10
}, {
"id": 510100,
"name": "成都市",
"parentId": 510000,
"type": 20
}],
"cityName": "四川省-成都市",
"id": 402988,
"belong": "PERSON"
}
"""
if __name__ == '__main__':
print(type(Add_My_New_Clue().add_clue_data))
import random
import time
import datetime
def get_mobile():
"""获取手机号"""
mobile = '1' + random.choice(['3','5','7','8','9'])
for i in range(9):
num = random.randint(0,9)
mobile += str(num)
return mobile
def get_time():
ts =str(int(time.time()))
return ts
def get_tomorrow_datetime():
temp_date = datetime.datetime.now() # 获取当前时间 年月日时分秒
date1 = (temp_date + datetime.timedelta(days=+1)).strftime("%Y-%m-%d %H:%M:%S")
return date1
if __name__ == '__main__':
print(get_mobile())
print(get_time())
print(get_tomorrow_datetime())
\ No newline at end of file
import pytest
from jsonpath import jsonpath
from script.base_api import clue_manualInputAdd_post, clue_queryAll_post
from script.default_header import jyy_header
from script.ji_yun_ying_pc.service_crm_liuqin.case_data_handler_liuqin.myNewClue_handler import Add_My_New_Clue
@pytest.fixture
def add_my_clue():
"""添加我的新线索"""
json_data = Add_My_New_Clue().add_clue_data
studentName = json_data['studentName']
contactInfo=json_data['contactInfo']
res = clue_manualInputAdd_post(body=json_data,header=jyy_header)
yield {'studentName':studentName,'contactInfo':contactInfo}
@pytest.fixture()
def query_all_following_clues(add_my_clue):
"""查询我的线索-跟进中"""
query_data = {"belong": "PERSON", "status": "FOLLOWING", "pageNum": 1, "pageSize": 10,
"orderType": "desc", "orderField": "id", "schoolAreas": [3015]}
res_query_data = clue_queryAll_post(body=query_data,header=jyy_header)
contactInfo=jsonpath(res_query_data,'$..contactInfo')[0]
studentName=jsonpath(res_query_data,'$..studentName')[0]
id=jsonpath(res_query_data,'$..id')[0]
yield {'contactInfo':contactInfo,'studentName':studentName,'id':id}
import json
import pytest
import requests
from jsonpath import jsonpath
from pytest_assume.plugin import assume
from init_base_api import query_sql
from script.base_api import clue_manualInputAdd_post, clue_queryAll_post, clue_manualInputEdit_post, clue_query_id_get
from script.default_header import jyy_header
from script.ji_yun_ying_pc.service_crm_liuqin.case_data_handler_liuqin.myNewClue_handler import Add_My_New_Clue
# def jyy_login():
# url = 'https://yf1.jkwljy.com/service-user/auth/employee'
# json_data = {"type":"employee","identityType":1,"ip":"0.0.0.0","account":"18224499511","password":"88888888","assistant":False}
# res = requests.post(url,json=json_data)
# res = res.json()
# token = jsonpath(res,'$..token')[0]
# return token
#
#
class TestMyNewClue():
"""
测试“我的新线索”
"""
def test_add_new_clue_success(self):
# 新增线索成功
json_data = Add_My_New_Clue().add_clue_data
clue_name=json_data['studentName']
clue_contactInfo=json_data['contactInfo']
res = clue_manualInputAdd_post(body=json_data,header=jyy_header)
query_phone={"belong":"PERSON","status":"FOLLOWING","pageNum":1,"pageSize":10,"studentName":clue_contactInfo,"orderType":"desc","orderField":"id","schoolAreas":[3015]}
res_query_data = clue_queryAll_post(body=query_phone,header=jyy_header)
res_contactInfo=jsonpath(res_query_data,'$..contactInfo')[0]
with assume:assert res['code']==0
with assume:assert res['msg']=='成功'
with assume:assert res_contactInfo==clue_contactInfo
#
#
#
# def test_edit_my_new_clue(self):
# """编辑线索"""
# res = clue_manualInputEdit_post(header=jyy_header)
def test_query_following_clue(self):
"""
查询所有【我的新线索-跟进中】线索
"""
query_data={"belong":"PERSON","status":"FOLLOWING","pageNum":1,"pageSize":10,"orderType":"desc","orderField":"id","schoolAreas":[3015]}
res = clue_queryAll_post(body=query_data,header=jyy_header)
with assume:assert res['code']==0
with assume:assert res['msg']=="成功"
@pytest.mark.usefixtures
def test_query_single_clue(self,query_all_following_clues):
"""
查询单个线索
"""
first_clue_id = query_all_following_clues['id']
params_data = {'clueId':first_clue_id}
res = clue_query_id_get(params=params_data,header=jyy_header)
res_clueId = jsonpath(res,'$..clueId')
with assume:assert res['code']==0
with assume:assert res['msg']=="成功"
with assume:assert res_clueId==first_clue_id
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
server: http://172.10.62.94 server: http://172.10.62.94
user: 13555555555 user: 13555555555
- headers: - headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyMTc1IiwidGVybWluYWwiOiJwYyIsInV1aWQiOiI0NGIxZTk5ZTJhOTk0ZTVhYmY2MzdiZTFmZGVkN2NiZCIsInRpbWVzdGFtcCI6MTYxODM4NjMyNTk4MX0.vFTRtWmeXXXW9238IaAzIQHuZz6bYTpCLbN1pHcYky0 Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyMTc1IiwidGVybWluYWwiOiJwYyIsInV1aWQiOiJkMjk5ZWRiNDJlNTU0OTRkYjc3NmE0NTkwM2YwNTIyZCIsInRpbWVzdGFtcCI6MTYxODM5NzI4NDU2Mn0.ZtC_9ky3c_XDMSqL3qfC-YbACj3OOtWyfPhKyzQ5x24
Content-Type: application/json;charset=UTF-8 Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31 server: http://192.168.32.31
user: 13555555555 user: 13555555555
...@@ -1336,3 +1336,51 @@ ...@@ -1336,3 +1336,51 @@
server: http://192.168.32.31 server: http://192.168.32.31
user: '16714154557' user: '16714154557'
userId: 696660 userId: 696660
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzIiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI4YTEwZDU1Nzk0ODg0ZDA2OWRmY2ZlYzM5MGYyZmVhYyIsInRpbWVzdGFtcCI6MTYxODM5NzY3MTE2NH0.8J6ndWn8PcGu7oWV2fX8nwvetkBUDcs0CYwf0EALXpc
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '18914185429'
userId: 696672
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzMiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJmNTE1NDVhODU0MWE0MjYwYjg4MGM4N2UxMzI1YTNjMiIsInRpbWVzdGFtcCI6MTYxODM5NzY3OTc3Mn0.5q_Z8bMz_i-4gQ3bgn7fH1PHnwS8LZZlvjIQM2mU7wU
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '13314185438'
userId: 696673
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzQiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJkNGQ4NzY4N2NlMTI0OTVjOTY3NjFiNmYxZmZlOGEzNyIsInRpbWVzdGFtcCI6MTYxODM5NzY4NjY3NX0.hUTR-us7tDjN6omEvCJdlnbHe1cjW9t2qZywlqgJQyY
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '13314185440'
userId: 696674
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzUiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJiMWVlYTAxOTc5MGQ0MmIzYmZhMjg1YTcxNDQ3ZTMxNyIsInRpbWVzdGFtcCI6MTYxODM5NzY5MjMyNH0.tYM7B8u9JucPTQNFEbj7wW0mlYI2V62ofEA_gwgdozo
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '16714185448'
userId: 696675
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzYiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJhYmVlMDZjODJjNTc0NTBhYTJiNDFjZjhlZDY2ODYwMyIsInRpbWVzdGFtcCI6MTYxODM5Nzg1MDczNn0.Qm3mSD5Yr6BTKBcqZdPSSHQ8xGrv9NmiABG08okwszg
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '18914185729'
userId: 696676
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzciLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJmM2VhY2EyN2VmYmY0OGM3OGQ0MmQyMWUxNTNkMzM1MSIsInRpbWVzdGFtcCI6MTYxODM5Nzg1OTExOX0._srG28HiJVk1yXr2Lo3uBQ36WYm8pxw6JwBBqd0fqBI
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '13314185738'
userId: 696677
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzgiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI4ZTdkYmI4MTJiZjk0ZjM4YmY4MzNjODk0NzAzOWYyZSIsInRpbWVzdGFtcCI6MTYxODM5Nzg2NjE3MX0.xXWEN_5QE27plPNV_3GkHbEBrPXgZWZSMZscuL24JRM
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '13314185739'
userId: 696678
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NzkiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI1Y2YyOTg4MWIzNjQ0ZThkODljM2IwY2U3MTBmZjdiYyIsInRpbWVzdGFtcCI6MTYxODM5Nzg3MjEzN30.ibDQY3IGwDnNCC9ng9qAJejEiYWajKkMiSQAh0LVgRo
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '16714185748'
userId: 696679
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