Commit 91329bea authored by 小刘's avatar 小刘

修改allure显示标题

parent 1f7f7795
...@@ -19,34 +19,20 @@ ...@@ -19,34 +19,20 @@
<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 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$/common/run_method.py" beforeDir="false" afterPath="$PROJECT_DIR$/common/run_method.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/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/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_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_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/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_choose_class/xin_choose_classes.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_choose_class/xin_choose_classes.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_patriarch_app/xin_patriach_static/xin_query_class/xin_auth_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_query_class/xin_auth_class.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_query_class/xin_query_students_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_query_class/xin_query_students_class.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_students_message/xin_query_students_message.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_students_message/xin_query_students_message.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_apply/xin_pay_order.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_apply/xin_pay_order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_apply/xin_place_order.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_apply/xin_place_order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_apply/xin_save_order.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_apply/xin_save_order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_student.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_crm/xin_student.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_add_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_add_class.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_delete_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_delete_class.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_update_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_update_class.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle/xin_course.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle/xin_course.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle/xin_update_course.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle/xin_update_course.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_network.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_network.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_global/__init__.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_global/global.yaml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_global/xin_global.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_judge.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_judge.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_setting/xin_school.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_setting/xin_school.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" />
...@@ -61,9 +47,15 @@ ...@@ -61,9 +47,15 @@
</option> </option>
</component> </component>
<component name="Git.Settings"> <component name="Git.Settings">
<option name="PUSH_TAGS">
<GitPushTagMode>
<option name="argument" value="--follow-tags" />
<option name="title" value="Current Branch" />
</GitPushTagMode>
</option>
<option name="RECENT_BRANCH_BY_REPOSITORY"> <option name="RECENT_BRANCH_BY_REPOSITORY">
<map> <map>
<entry key="$PROJECT_DIR$" value="master" /> <entry key="$PROJECT_DIR$" value="develop_liuhuangxin_2021_4_13" />
</map> </map>
</option> </option>
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
...@@ -105,7 +97,7 @@ ...@@ -105,7 +97,7 @@
</key> </key>
</component> </component>
<component name="RunManager" selected="Python.run"> <component name="RunManager" selected="Python.run">
<configuration name="run (1)" type="PythonConfigurationType" factoryName="Python" 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" />
...@@ -113,12 +105,12 @@ ...@@ -113,12 +105,12 @@
<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" /> <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<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="SCRIPT_NAME" value="$PROJECT_DIR$/script/xin_project_patriarch_app/run.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" />
...@@ -127,7 +119,7 @@ ...@@ -127,7 +119,7 @@
<option name="INPUT_FILE" value="" /> <option name="INPUT_FILE" value="" />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="run" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true"> <configuration name="xin_add_class" 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" />
...@@ -135,12 +127,12 @@ ...@@ -135,12 +127,12 @@
<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/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle" />
<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="SCRIPT_NAME" value="$PROJECT_DIR$/run.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" />
...@@ -149,7 +141,7 @@ ...@@ -149,7 +141,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="xin_course" 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" />
...@@ -157,12 +149,12 @@ ...@@ -157,12 +149,12 @@
<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/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle" />
<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="SCRIPT_NAME" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_class_handle/xin_add_class.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" />
...@@ -171,26 +163,21 @@ ...@@ -171,26 +163,21 @@
<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="pytest for test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time" 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" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</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/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class" />
<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="SCRIPT_NAME" value="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_educational/xin_course_handle/xin_course.py" /> <option name="_new_keywords" value="&quot;&quot;" />
<option name="PARAMETERS" value="" /> <option name="_new_parameters" value="&quot;&quot;" />
<option name="SHOW_COMMAND_LINE" value="false" /> <option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="EMULATE_TERMINAL" value="false" /> <option name="_new_target" value="&quot;test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time&quot;" />
<option name="MODULE_MODE" value="false" /> <option name="_new_targetType" value="&quot;PYTHON&quot;" />
<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_auth_students.py" type="tests" factoryName="py.test" temporary="true" nameIsGenerated="true">
...@@ -212,18 +199,18 @@ ...@@ -212,18 +199,18 @@
</configuration> </configuration>
<list> <list>
<item itemvalue="Python.run" /> <item itemvalue="Python.run" />
<item itemvalue="Python.run (1)" />
<item itemvalue="Python 测试.pytest in test_auth_students.py" /> <item itemvalue="Python 测试.pytest in test_auth_students.py" />
<item itemvalue="Python.xin_add_class" /> <item itemvalue="Python.xin_add_class" />
<item itemvalue="Python.xin_course" /> <item itemvalue="Python.xin_course" />
<item itemvalue="Python 测试.pytest for test_auth_choose_class.TestChooseClasses.test_choose_before_notwork_time" />
</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.xin_course" /> <item itemvalue="Python.xin_course" />
<item itemvalue="Python.xin_add_class" /> <item itemvalue="Python.xin_add_class" />
<item itemvalue="Python 测试.pytest in test_auth_students.py" /> <item itemvalue="Python 测试.pytest in test_auth_students.py" />
<item itemvalue="Python.run (1)" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -239,7 +226,7 @@ ...@@ -239,7 +226,7 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1611302255574</updated> <updated>1611302255574</updated>
<workItem from="1618228149723" duration="2687000" /> <workItem from="1618228149723" duration="2687000" />
<workItem from="1618282801919" duration="18367000" /> <workItem from="1618282801919" duration="30744000" />
</task> </task>
<task id="LOCAL-00001" summary="增加依赖文件"> <task id="LOCAL-00001" summary="增加依赖文件">
<created>1611309477574</created> <created>1611309477574</created>
...@@ -262,7 +249,21 @@ ...@@ -262,7 +249,21 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1618313464566</updated> <updated>1618313464566</updated>
</task> </task>
<option name="localTasksCounter" value="4" /> <task id="LOCAL-00004" summary="底层路径修改">
<created>1618370991267</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1618370991267</updated>
</task>
<task id="LOCAL-00005" summary="修改响应">
<created>1618380459940</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1618380459940</updated>
</task>
<option name="localTasksCounter" value="6" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -284,7 +285,9 @@ ...@@ -284,7 +285,9 @@
<MESSAGE value="增加依赖文件" /> <MESSAGE value="增加依赖文件" />
<MESSAGE value="增加allure安装包" /> <MESSAGE value="增加allure安装包" />
<MESSAGE value="项目迁移" /> <MESSAGE value="项目迁移" />
<option name="LAST_COMMIT_MESSAGE" value="项目迁移" /> <MESSAGE value="底层路径修改" />
<MESSAGE value="修改响应" />
<option name="LAST_COMMIT_MESSAGE" value="修改响应" />
</component> </component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="-1534" y="178" width="1092" height="715" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1618228181033"> <state x="-1534" y="178" width="1092" height="715" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1618228181033">
...@@ -297,48 +300,48 @@ ...@@ -297,48 +300,48 @@
</state> </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="-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="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="1618228604666"> <state x="-1828" y="92" width="1736" height="856" key="DiffContextDialog" timestamp="1618380610767">
<screen x="-1920" y="0" width="1920" height="1040" /> <screen x="-1920" y="0" width="1920" height="1040" />
</state> </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="1618228604666" /> <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"> <state x="683" y="296" key="FileChooserDialogImpl" timestamp="1611303152470">
<screen x="0" y="23" width="1792" height="1017" /> <screen x="0" y="23" width="1792" height="1017" />
</state> </state>
<state x="683" y="296" key="FileChooserDialogImpl/0.23.1792.1017@0.23.1792.1017" timestamp="1611303152470" /> <state x="683" y="296" key="FileChooserDialogImpl/0.23.1792.1017@0.23.1792.1017" timestamp="1611303152470" />
<state width="1876" height="338" key="GridCell.Tab.0.bottom" timestamp="1618370706362"> <state width="1876" height="284" key="GridCell.Tab.0.bottom" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" /> <screen x="-1920" y="0" width="1920" height="1040" />
</state> </state>
<state width="1876" height="338" key="GridCell.Tab.0.bottom/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618370706362" /> <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.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.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.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="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.1024@0.23.1792.1024" timestamp="1617095706598" />
<state width="1771" height="322" key="GridCell.Tab.0.bottom/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434843" /> <state width="1771" height="322" key="GridCell.Tab.0.bottom/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434843" />
<state width="1876" height="338" key="GridCell.Tab.0.center" timestamp="1618370706361"> <state width="1876" height="284" key="GridCell.Tab.0.center" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" /> <screen x="-1920" y="0" width="1920" height="1040" />
</state> </state>
<state width="1876" height="338" key="GridCell.Tab.0.center/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618370706361" /> <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.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.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.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="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.1024@0.23.1792.1024" timestamp="1617095706597" />
<state width="1771" height="322" key="GridCell.Tab.0.center/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" /> <state width="1771" height="322" key="GridCell.Tab.0.center/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1876" height="338" key="GridCell.Tab.0.left" timestamp="1618370706360"> <state width="1876" height="284" key="GridCell.Tab.0.left" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" /> <screen x="-1920" y="0" width="1920" height="1040" />
</state> </state>
<state width="1876" height="338" key="GridCell.Tab.0.left/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618370706360" /> <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.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.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.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="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.1024@0.23.1792.1024" timestamp="1617095706585" />
<state width="1771" height="322" key="GridCell.Tab.0.left/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" /> <state width="1771" height="322" key="GridCell.Tab.0.left/0.23.1792.1026@0.23.1792.1026" timestamp="1617090434842" />
<state width="1876" height="338" key="GridCell.Tab.0.right" timestamp="1618370706361"> <state width="1876" height="284" key="GridCell.Tab.0.right" timestamp="1618386323492">
<screen x="-1920" y="0" width="1920" height="1040" /> <screen x="-1920" y="0" width="1920" height="1040" />
</state> </state>
<state width="1876" height="338" key="GridCell.Tab.0.right/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618370706361" /> <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.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.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.1015@0.23.1792.1015" timestamp="1617278419625" />
...@@ -367,16 +370,16 @@ ...@@ -367,16 +370,16 @@
<state x="-1495" y="154" key="SettingsEditor/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618228208032" /> <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.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="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="1618313533828"> <state x="-1389" y="250" key="Vcs.Push.Dialog.v2" timestamp="1618380671449">
<screen x="-1920" y="0" width="1920" height="1040" /> <screen x="-1920" y="0" width="1920" height="1040" />
</state> </state>
<state x="-1389" y="250" key="Vcs.Push.Dialog.v2/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618313533828" /> <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="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="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="1618370699893"> <state x="-1159" y="476" width="672" height="678" key="search.everywhere.popup" timestamp="1618385663915">
<screen x="-1920" y="0" width="1920" height="1040" /> <screen x="-1920" y="0" width="1920" height="1040" />
</state> </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="1618370699893" /> <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>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
...@@ -391,9 +394,10 @@ ...@@ -391,9 +394,10 @@
</component> </component>
<component name="com.intellij.coverage.CoverageDataManagerImpl"> <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$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$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$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="1618370706351" 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$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$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" /> <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> </component>
......
import datetime import datetime
import time import time
import allure
import jsonpath import jsonpath
import pytest import pytest
from pytest_assume.plugin import assume from pytest_assume.plugin import assume
...@@ -22,6 +23,8 @@ from script.xin_project_patriarch_app.xin_static.xin_time import Time_get ...@@ -22,6 +23,8 @@ from script.xin_project_patriarch_app.xin_static.xin_time import Time_get
""" """
@allure.epic('家长APP接口自动化测试')
@allure.feature('选课中心')
class TestChooseClasses: class TestChooseClasses:
global_class_id = None global_class_id = None
...@@ -44,6 +47,9 @@ class TestChooseClasses: ...@@ -44,6 +47,9 @@ class TestChooseClasses:
NetWork(server=self.server, resignClassIds=[class_id]).network_set() NetWork(server=self.server, resignClassIds=[class_id]).network_set()
# 断言校区 # 断言校区
@allure.story('选课中心-校区')
@allure.title('验证校区正确')
@allure.description('验证校区为学生在读班级中心校的同级中心校')
def test_choose_class_school(self): def test_choose_class_school(self):
query_data = QueryStudentsMessage(server=self.server, studentPno=self.studentPho).query_students_message() query_data = QueryStudentsMessage(server=self.server, studentPno=self.studentPho).query_students_message()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
...@@ -52,6 +58,9 @@ class TestChooseClasses: ...@@ -52,6 +58,9 @@ class TestChooseClasses:
with assume: assert self.studentPho in query_data['data'][0]['student']['phones'] with assume: assert self.studentPho in query_data['data'][0]['student']['phones']
# 断言班级没有网报时间,不显示 # 断言班级没有网报时间,不显示
@allure.story('选课列表-班级')
@allure.title('验证没有网报时间,不显示')
@allure.description('班级没有设置网报时间,不显示')
def test_choose_not_notwork_time(self): def test_choose_not_notwork_time(self):
course_id = CreateCourse(server=self.server, course_id = CreateCourse(server=self.server,
classType='专题', classType='专题',
...@@ -65,13 +74,21 @@ class TestChooseClasses: ...@@ -65,13 +74,21 @@ class TestChooseClasses:
with assume: assert TestChooseClasses.global_class_id not in jsonpath.jsonpath(choose_data, '$..id') with assume: assert TestChooseClasses.global_class_id not in jsonpath.jsonpath(choose_data, '$..id')
# 网报开始时间大于当前时间,不显示 # 网报开始时间大于当前时间,不显示
@allure.story('选课列表-班级')
@allure.title('验证网报开始时间大于当前时间,不显示')
@allure.description('班级网报开始时间大于当前时间,不显示')
def test_choose_before_notwork_time(self): def test_choose_before_notwork_time(self):
NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id], classSaleBeginDate=Time_get.get_after_want_time(day=2) + '00:00:00').network_set() NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id],
classSaleBeginDate=Time_get.get_after_want_time(day=2) + ' 00:00:00',
classSaleEndDate=Time_get.get_after_want_time(day=10, second=True)).network_set()
choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class() choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class()
with assume: assert choose_data['code'] == 0 with assume: assert choose_data['code'] == 0
with assume: assert TestChooseClasses.global_class_id not in jsonpath.jsonpath(choose_data, '$..id') with assume: assert TestChooseClasses.global_class_id not in jsonpath.jsonpath(choose_data, '$..id')
# 网报结束时间小于当前时间,不显示 # 网报结束时间小于当前时间,不显示
@allure.story('选课列表-班级')
@allure.title('验证网报结束时间小于当前时间,不显示')
@allure.description('班级网报结束时间小于当前时间,不显示')
def test_choose_after_notwork_time(self): def test_choose_after_notwork_time(self):
begin_time = Time_get.get_before_want_time(day=10) + ' 00:00:00' begin_time = Time_get.get_before_want_time(day=10) + ' 00:00:00'
end_time = Time_get.get_before_want_time(day=2) + ' 23:59:59' end_time = Time_get.get_before_want_time(day=2) + ' 23:59:59'
...@@ -81,6 +98,9 @@ class TestChooseClasses: ...@@ -81,6 +98,9 @@ class TestChooseClasses:
with assume: assert TestChooseClasses.global_class_id not in jsonpath.jsonpath(choose_data, '$..id') with assume: assert TestChooseClasses.global_class_id not in jsonpath.jsonpath(choose_data, '$..id')
# 当前时间在网报开始和结束之间 # 当前时间在网报开始和结束之间
@allure.story('选课列表-班级')
@allure.title('验证当前时间在网报开始和结束之间,显示')
@allure.description('验证当前时间在网报开始和结束之间,显示')
def test_choose_in_notwork_time(self): def test_choose_in_notwork_time(self):
NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id]).network_set() NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id]).network_set()
choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class() choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class()
...@@ -88,6 +108,9 @@ class TestChooseClasses: ...@@ -88,6 +108,9 @@ class TestChooseClasses:
with assume: assert TestChooseClasses.global_class_id in jsonpath.jsonpath(choose_data, '$..id') with assume: assert TestChooseClasses.global_class_id in jsonpath.jsonpath(choose_data, '$..id')
# 只设置了网报时间,没有设置报名时间 # 只设置了网报时间,没有设置报名时间
@allure.story('选课列表-班级')
@allure.title('班级只有网报时间,没有报名时间')
@allure.description('报名时间为空,班级显示')
def test_choose_not_sign_time(self): def test_choose_not_sign_time(self):
NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id], classSignBeginDate=' ', classSignEndDate=' ').network_set() NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id], classSignBeginDate=' ', classSignEndDate=' ').network_set()
choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class() choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class()
...@@ -98,6 +121,9 @@ class TestChooseClasses: ...@@ -98,6 +121,9 @@ class TestChooseClasses:
with assume: assert assert_data['id'] == TestChooseClasses.global_class_id with assume: assert assert_data['id'] == TestChooseClasses.global_class_id
# 改为正常的报名时间 # 改为正常的报名时间
@allure.story('选课列表-班级')
@allure.title('当期时间在报名时间之间')
@allure.description('当期时间在报名时间之间,正常显示')
def test_choose_normal_sign_time(self): def test_choose_normal_sign_time(self):
NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id]).network_set() NetWork(server=self.server, resignClassIds=[TestChooseClasses.global_class_id]).network_set()
choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class() choose_data = ChooseClasses(server=self.server, studentId=self.userId, schoolAreaId=self.schoolArea).choose_class()
...@@ -108,6 +134,9 @@ class TestChooseClasses: ...@@ -108,6 +134,9 @@ class TestChooseClasses:
with assume: assert assert_data['id'] == TestChooseClasses.global_class_id with assume: assert assert_data['id'] == TestChooseClasses.global_class_id
# 网报年级和学生在读年级不匹配,不显示 # 网报年级和学生在读年级不匹配,不显示
@allure.story('选课列表-班级')
@allure.title('网报年级和学生在读年级不匹配')
@allure.description('网报年级和学生在读年级不匹配,不显示')
def test_choose_not_grade(self): def test_choose_not_grade(self):
course_id = CreateCourse(server=self.server, course_id = CreateCourse(server=self.server,
classType='专题', classType='专题',
...@@ -123,6 +152,9 @@ class TestChooseClasses: ...@@ -123,6 +152,9 @@ class TestChooseClasses:
with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id') with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id')
# 不显示除新生班外的常规班 # 不显示除新生班外的常规班
@allure.story('选课列表-班级')
@allure.title('不显示除新生班外的常规班')
@allure.description('不显示除新生班外的常规班')
def test_choose_groove_class(self): def test_choose_groove_class(self):
course_id = CreateCourse(server=self.server, course_id = CreateCourse(server=self.server,
classType='极趣班', classType='极趣班',
...@@ -137,6 +169,9 @@ class TestChooseClasses: ...@@ -137,6 +169,9 @@ class TestChooseClasses:
with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id') with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id')
# 不显示精品班 # 不显示精品班
@allure.story('选课列表-班级')
@allure.title('不显示精品班')
@allure.description('不显示精品班')
def test_choose_boutique_class(self): def test_choose_boutique_class(self):
course_id = CreateCourse(server=self.server, course_id = CreateCourse(server=self.server,
classType='一对一定制班', classType='一对一定制班',
...@@ -151,6 +186,9 @@ class TestChooseClasses: ...@@ -151,6 +186,9 @@ class TestChooseClasses:
with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id') with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id')
# 购买精品班,查看精品班,不显示 # 购买精品班,查看精品班,不显示
@allure.story('选课列表-班级')
@allure.title('报名精品班,查看精品班')
@allure.description('不显示精品班')
def test_choose_buy_boutique_class(self): def test_choose_buy_boutique_class(self):
course_id = CreateCourse(server=self.server, course_id = CreateCourse(server=self.server,
classType='一对三定制班', classType='一对三定制班',
...@@ -178,6 +216,9 @@ class TestChooseClasses: ...@@ -178,6 +216,9 @@ class TestChooseClasses:
with assume: assert '极趣班' not in jsonpath.jsonpath(choose_data, '$..classType') with assume: assert '极趣班' not in jsonpath.jsonpath(choose_data, '$..classType')
with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id') with assume: assert class_id not in jsonpath.jsonpath(choose_data, '$..id')
@allure.story('选课列表-班级')
@allure.title('验证没有报常规班,可以看未来的副线和常规')
@allure.description('验证没有报常规班,可以看未来的副线和常规')
def test_choose_groove_term_class(self): def test_choose_groove_term_class(self):
create_class_data = [['副线课程', '专题', '专题班课', '数学', 2020, '寒'], create_class_data = [['副线课程', '专题', '专题班课', '数学', 2020, '寒'],
['副线课程', '专题', '专题班课', '数学', StaticGlobal.YEAR + 1, '秋'], ['副线课程', '专题', '专题班课', '数学', StaticGlobal.YEAR + 1, '秋'],
...@@ -200,7 +241,3 @@ class TestChooseClasses: ...@@ -200,7 +241,3 @@ class TestChooseClasses:
with assume: assert class_id[1] in jsonpath.jsonpath(choose_data, '$..id') with assume: assert class_id[1] in jsonpath.jsonpath(choose_data, '$..id')
with assume: assert class_id[2] in jsonpath.jsonpath(choose_data, '$..id') with assume: assert class_id[2] in jsonpath.jsonpath(choose_data, '$..id')
with assume: assert class_id[3] in jsonpath.jsonpath(choose_data, '$..id') with assume: assert class_id[3] in jsonpath.jsonpath(choose_data, '$..id')
if __name__ == '__main__':
pytest.main(['test_auth_choose_class.py', '-s'])
import datetime import datetime
import time import time
import allure
import jsonpath import jsonpath
import pytest
from pytest_assume.plugin import assume from pytest_assume.plugin import assume
from script.xin_project_patriarch_app.xin_patriarch_app.xin_patriach_static.xin_public_class.xin_global_static import StaticGlobal from script.xin_project_patriarch_app.xin_patriarch_app.xin_patriach_static.xin_public_class.xin_global_static import StaticGlobal
...@@ -19,6 +19,8 @@ from script.xin_project_patriarch_app.xin_static.xin_user.xin_patriarch_login im ...@@ -19,6 +19,8 @@ from script.xin_project_patriarch_app.xin_static.xin_user.xin_patriarch_login im
""" """
@allure.epic('家长APP接口自动化测试')
@allure.feature('学生在读班级列表')
class TestAuthNotBuyClasses: class TestAuthNotBuyClasses:
def setup_class(self): def setup_class(self):
self.server = StaticGlobal.SERVER self.server = StaticGlobal.SERVER
...@@ -31,6 +33,9 @@ class TestAuthNotBuyClasses: ...@@ -31,6 +33,9 @@ class TestAuthNotBuyClasses:
验证没有报班,班级列表为空 验证没有报班,班级列表为空
""" """
@allure.story('学生没有在读班级')
@allure.title('学生没有在读班级,列表为空')
@allure.description('学生没有在读班级,列表为空')
def test_query_new_students(self): def test_query_new_students(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
...@@ -43,6 +48,8 @@ class TestAuthNotBuyClasses: ...@@ -43,6 +48,8 @@ class TestAuthNotBuyClasses:
""" """
@allure.epic('家长APP接口自动化测试')
@allure.feature('学生在读班级列表')
class TestAuthHaveClasses: class TestAuthHaveClasses:
def setup_class(self): def setup_class(self):
self.server = StaticGlobal.SERVER self.server = StaticGlobal.SERVER
...@@ -62,9 +69,7 @@ class TestAuthHaveClasses: ...@@ -62,9 +69,7 @@ class TestAuthHaveClasses:
productType=class_data[0], productType=class_data[0],
classType=class_data[1], classType=class_data[1],
courseType=class_data[2], courseType=class_data[2],
subject=class_data[3], subject=class_data[3]).create_course()['data']['content'][0]['courseId']
year=StaticGlobal.YEAR,
term=StaticGlobal.TERM).create_course()['data']['content'][0]['courseId']
class_id = CreateClass(server=self.server, courseId=self.course_id).create_class()['classId'] class_id = CreateClass(server=self.server, courseId=self.course_id).create_class()['classId']
self.details.append({ self.details.append({
"classId": class_id, "classId": class_id,
...@@ -80,8 +85,11 @@ class TestAuthHaveClasses: ...@@ -80,8 +85,11 @@ class TestAuthHaveClasses:
"payAmount": 700 "payAmount": 700
} }
]).pay_order() ]).pay_order()
time.sleep(2) time.sleep(3)
@allure.story('学生有在读班级')
@allure.title('查询学生所有的班级')
@allure.description('查询学生所有的班级,验证有常规班')
def test_query_all(self): def test_query_all(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
...@@ -90,6 +98,9 @@ class TestAuthHaveClasses: ...@@ -90,6 +98,9 @@ class TestAuthHaveClasses:
with assume: assert '常规班课' in jsonpath.jsonpath(query_data, '$...courseType') with assume: assert '常规班课' in jsonpath.jsonpath(query_data, '$...courseType')
with assume: assert jsonpath.jsonpath(query_data, '$...classId')[0] == self.details[0]['classId'] with assume: assert jsonpath.jsonpath(query_data, '$...classId')[0] == self.details[0]['classId']
@allure.story('学生有在读班级')
@allure.title('数学科目筛选')
@allure.description('查询在读班级中有数学科目,没有语文科目')
def test_query_have_subject(self): def test_query_have_subject(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, subjects=['数学']).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, subjects=['数学']).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
...@@ -97,12 +108,19 @@ class TestAuthHaveClasses: ...@@ -97,12 +108,19 @@ class TestAuthHaveClasses:
with assume: assert jsonpath.jsonpath(query_data, '$...subject')[0] == '数学' with assume: assert jsonpath.jsonpath(query_data, '$...subject')[0] == '数学'
with assume: assert jsonpath.jsonpath(query_data, '$...subject')[0] != '语文' with assume: assert jsonpath.jsonpath(query_data, '$...subject')[0] != '语文'
@allure.story('学生有在读班级')
@allure.title('语文科目筛选')
@allure.description('查询在读班级中有语文科目,没有数学科目')
def test_query_not_subject(self): def test_query_not_subject(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, subjects=['语文']).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, subjects=['语文']).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
with assume: assert query_data['msg'] == '成功' with assume: assert query_data['msg'] == '成功'
with assume: assert query_data['data']['studentClassInfoDtoList'] != [] with assume: assert query_data['data']['studentClassInfoDtoList'] != []
with assume: assert jsonpath.jsonpath(query_data, '$...subject')[0] == '语文'
@allure.story('学生有在读班级')
@allure.title('常规班课筛选')
@allure.description('查询在读班级中班型只有常规班课')
def test_query_classType(self): def test_query_classType(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, courseTypes=['常规班课']).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, courseTypes=['常规班课']).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
...@@ -110,12 +128,18 @@ class TestAuthHaveClasses: ...@@ -110,12 +128,18 @@ class TestAuthHaveClasses:
with assume: assert jsonpath.jsonpath(query_data, '$...courseType')[0] == '常规班课' with assume: assert jsonpath.jsonpath(query_data, '$...courseType')[0] == '常规班课'
with assume: assert jsonpath.jsonpath(query_data, '$...courseType')[0] != '精品定制课' with assume: assert jsonpath.jsonpath(query_data, '$...courseType')[0] != '精品定制课'
@allure.story('学生有在读班级')
@allure.title('集训班课筛选')
@allure.description('查询在读班级中班型只有集训班')
def test_query_not_classType(self): def test_query_not_classType(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, courseTypes=['集训班课']).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, courseTypes=['集训班课']).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
with assume: assert query_data['msg'] == '成功' with assume: assert query_data['msg'] == '成功'
with assume: assert query_data['data']['studentClassInfoDtoList'] != [] with assume: assert query_data['data']['studentClassInfoDtoList'] != []
@allure.story('学生有在读班级')
@allure.title('春期段筛选')
@allure.description('查询在读班级中期段为春的班级')
def test_query_classTerm(self): def test_query_classTerm(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, classTerms=['春']).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, classTerms=['春']).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
...@@ -123,12 +147,18 @@ class TestAuthHaveClasses: ...@@ -123,12 +147,18 @@ class TestAuthHaveClasses:
with assume: assert jsonpath.jsonpath(query_data, '$...classTerm')[0] == '春' with assume: assert jsonpath.jsonpath(query_data, '$...classTerm')[0] == '春'
with assume: assert jsonpath.jsonpath(query_data, '$...classTerm')[0] != '秋' with assume: assert jsonpath.jsonpath(query_data, '$...classTerm')[0] != '秋'
@allure.story('学生有在读班级')
@allure.title('寒期段筛选')
@allure.description('查询在读班级中期段没有寒期段的班级')
def test_query_not_classTerm(self): def test_query_not_classTerm(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, classTerms=['寒']).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, classTerms=['寒']).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
with assume: assert query_data['msg'] == '成功' with assume: assert query_data['msg'] == '成功'
with assume: assert query_data['data']['studentClassInfoDtoList'] == [] with assume: assert query_data['data']['studentClassInfoDtoList'] == []
@allure.story('学生有在读班级')
@allure.title('科目、期段、班型筛选')
@allure.description('查询在读班级中符合筛选条件的班级')
def test_query_all_option(self): def test_query_all_option(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, subjects=['数学'], classTerms=['春'], courseTypes=['常规班课']).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, subjects=['数学'], classTerms=['春'], courseTypes=['常规班课']).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
...@@ -140,12 +170,11 @@ class TestAuthHaveClasses: ...@@ -140,12 +170,11 @@ class TestAuthHaveClasses:
with assume: assert '常规班课' in jsonpath.jsonpath(query_data, '$...courseType') with assume: assert '常规班课' in jsonpath.jsonpath(query_data, '$...courseType')
with assume: assert '副线班课' not in jsonpath.jsonpath(query_data, '$...courseType') with assume: assert '副线班课' not in jsonpath.jsonpath(query_data, '$...courseType')
@allure.story('学生有在读班级')
@allure.title('班级年级验证')
@allure.description('查询在读班级中年级正确')
def test_query_graduate(self): def test_query_graduate(self):
query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, classStatus=1).query_class_list() query_data = QueryClass(server=self.server, username=self.studentPho, studentId=self.userId, classStatus=1).query_class_list()
with assume: assert query_data['code'] == 0 with assume: assert query_data['code'] == 0
with assume: assert query_data['msg'] == '成功' with assume: assert query_data['msg'] == '成功'
with assume: assert query_data['data']['studentClassInfoDtoList'] == [] with assume: assert query_data['data']['studentClassInfoDtoList'] == []
if __name__ == '__main__':
pytest.main(['test_auth_classes.py -s'])
import datetime import datetime
import time import time
import pytest import allure
from pytest_assume.plugin import assume from pytest_assume.plugin import assume
from script.xin_project_patriarch_app.xin_patriarch_app.xin_patriach_static.xin_public_class.xin_global_static import StaticGlobal from script.xin_project_patriarch_app.xin_patriarch_app.xin_patriach_static.xin_public_class.xin_global_static import StaticGlobal
...@@ -18,6 +18,8 @@ from script.xin_project_patriarch_app.xin_static.xin_educational.xin_course_hand ...@@ -18,6 +18,8 @@ from script.xin_project_patriarch_app.xin_static.xin_educational.xin_course_hand
""" """
@allure.epic('家长APP接口自动化测试')
@allure.feature('学生在读班级详情')
class TestAuthStudentsClassMessage: class TestAuthStudentsClassMessage:
def setup_class(self): def setup_class(self):
self.server = StaticGlobal.SERVER self.server = StaticGlobal.SERVER
...@@ -46,6 +48,9 @@ class TestAuthStudentsClassMessage: ...@@ -46,6 +48,9 @@ class TestAuthStudentsClassMessage:
time.sleep(2) time.sleep(2)
# 断言班级名称 # 断言班级名称
@allure.story('在读班级详情')
@allure.title('验证班级名称正确')
@allure.description('验证班级名称显示正确')
def test_query_students_class(self): def test_query_students_class(self):
class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class() class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class()
with assume: assert class_data['code'] == 0 with assume: assert class_data['code'] == 0
...@@ -53,6 +58,9 @@ class TestAuthStudentsClassMessage: ...@@ -53,6 +58,9 @@ class TestAuthStudentsClassMessage:
with assume: assert class_data['data']['className'] == f'小黄断言班级名称极趣班{StaticGlobal.YEAR}{StaticGlobal.TERM}数学' with assume: assert class_data['data']['className'] == f'小黄断言班级名称极趣班{StaticGlobal.YEAR}{StaticGlobal.TERM}数学'
# 断言修改后班级名称 # 断言修改后班级名称
@allure.story('在读班级详情')
@allure.title('验证修改班级名称后显示正确')
@allure.description('验证修改班级名称后显示正确')
def test_query_students_update_className(self): def test_query_students_update_className(self):
UpdateClass(server=self.server, classId=self.class_id).update_class_className(value='修改后班级名称') UpdateClass(server=self.server, classId=self.class_id).update_class_className(value='修改后班级名称')
class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class() class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class()
...@@ -61,6 +69,9 @@ class TestAuthStudentsClassMessage: ...@@ -61,6 +69,9 @@ class TestAuthStudentsClassMessage:
with assume: assert class_data['data']['className'] == '修改后班级名称' with assume: assert class_data['data']['className'] == '修改后班级名称'
# 断言校区 # 断言校区
@allure.story('在读班级详情')
@allure.title('验证班级校区正确')
@allure.description('验证班级校区正确')
def test_query_students_school(self): def test_query_students_school(self):
class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class() class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class()
with assume: assert class_data['code'] == 0 with assume: assert class_data['code'] == 0
...@@ -68,6 +79,9 @@ class TestAuthStudentsClassMessage: ...@@ -68,6 +79,9 @@ class TestAuthStudentsClassMessage:
with assume: assert class_data['data']['schoolName'] == '测试成都校区' with assume: assert class_data['data']['schoolName'] == '测试成都校区'
# 断言没有老师 # 断言没有老师
@allure.story('在读班级详情')
@allure.title('验证班级没有老师')
@allure.description('验证班级没有老师显示正确')
def test_query_students_teacher(self): def test_query_students_teacher(self):
class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class() class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class()
with assume: assert class_data['code'] == 0 with assume: assert class_data['code'] == 0
...@@ -76,6 +90,9 @@ class TestAuthStudentsClassMessage: ...@@ -76,6 +90,9 @@ class TestAuthStudentsClassMessage:
with assume: assert class_data['data']['teacherName'] is None with assume: assert class_data['data']['teacherName'] is None
# 断言修改老师后的名字 # 断言修改老师后的名字
@allure.story('在读班级详情')
@allure.title('验证修改班级任课老师正确')
@allure.title('验证修改班级后老师显示正确')
def test_query_students_update_teacher(self): def test_query_students_update_teacher(self):
UpdateClass(server=self.server, classId=self.class_id).update_class_teacher(value={ UpdateClass(server=self.server, classId=self.class_id).update_class_teacher(value={
"id": 9384, "id": 9384,
...@@ -89,12 +106,11 @@ class TestAuthStudentsClassMessage: ...@@ -89,12 +106,11 @@ class TestAuthStudentsClassMessage:
with assume: assert class_data['data']['teacherName'] == '刘黄鑫' with assume: assert class_data['data']['teacherName'] == '刘黄鑫'
# 断言学科 # 断言学科
@allure.story('在读班级详情')
@allure.title('验证班级科目正确')
@allure.title('验证班级的科目显示正确')
def test_query_students_subject(self): def test_query_students_subject(self):
class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class() class_data = QueryStudentsClass(server=self.server, classId=self.class_id, studentId=self.userId, username=self.studentPho).query_student_class()
with assume: assert class_data['code'] == 0 with assume: assert class_data['code'] == 0
with assume: assert class_data['msg'] == '成功' with assume: assert class_data['msg'] == '成功'
with assume: assert class_data['data']['subject'] == '数学' with assume: assert class_data['data']['subject'] == '数学'
if __name__ == '__main__':
pytest.main(['test_auth_students_classes.py -s'])
...@@ -8,6 +8,8 @@ from script.xin_project_patriarch_app.xin_static.xin_service_user.xin_employees ...@@ -8,6 +8,8 @@ from script.xin_project_patriarch_app.xin_static.xin_service_user.xin_employees
from script.xin_project_patriarch_app.xin_static.xin_user.xin_patriarch_login import AuthHeaders from script.xin_project_patriarch_app.xin_static.xin_user.xin_patriarch_login import AuthHeaders
@allure.epic('家长APP接口自动化测试')
@allure.feature('登录模块')
@pytest.mark.run(order=1) @pytest.mark.run(order=1)
class TestAuthLogin: class TestAuthLogin:
def setup_class(self): def setup_class(self):
...@@ -16,36 +18,47 @@ class TestAuthLogin: ...@@ -16,36 +18,47 @@ class TestAuthLogin:
self.studentPho = '13364004418' self.studentPho = '13364004418'
CreateStudent(server=self.server, contactInfo=self.studentPho).create_student() CreateStudent(server=self.server, contactInfo=self.studentPho).create_student()
@pytest.mark.parametrize(['username', 'password'], [['13364004418', 'geek1234']]) @allure.story('登录验证')
def test_login01(self, username, password): @allure.title('用户名密码正确')
auth_data = AuthHeaders(server=self.server, username=username, password=password).get_auth_token() @allure.description('用户名密码正确,登录成功')
@allure.step('输入用户名:13364004418,密码:geek1234')
def test_login01(self):
auth_data = AuthHeaders(server=self.server, username='13364004418', password='geek1234').get_auth_token()
with assume: assert auth_data['code'] == 0 with assume: assert auth_data['code'] == 0
with assume: assert auth_data['msg'] == '成功' with assume: assert auth_data['msg'] == '成功'
@pytest.mark.parametrize(['username', 'password'], [['13364004418', '123']]) @allure.story('登录验证')
def test_login02(self, username, password): @allure.title('用户名正确,密码不正确')
auth_data = AuthHeaders(server=self.server, username=username, password=password).get_auth_token() @allure.description('用户名正确,密码不正确,登录失败')
@allure.step('输入用户名:13364004418,密码:123')
def test_login02(self):
auth_data = AuthHeaders(server=self.server, username='13364004418', password='123').get_auth_token()
with assume: assert auth_data['code'] != 0 with assume: assert auth_data['code'] != 0
with assume: assert auth_data['msg'] == '用户名或密码错误!' with assume: assert auth_data['msg'] == '用户名或密码错误!'
@pytest.mark.parametrize(['username', 'password'], [['11111111111', 'geek1234']]) @allure.story('登录验证')
def test_login03(self, username, password): @allure.title('用户名错误,密码正确')
auth_data = AuthHeaders(server=self.server, username=username, password=password).get_auth_token() @allure.description('用户名错误,密码正确,登录失败')
@allure.step('输入用户名:11111111111,密码:geek1234')
def test_login03(self):
auth_data = AuthHeaders(server=self.server, username='11111111111', password='geek1234').get_auth_token()
with assume: assert auth_data['code'] != 0 with assume: assert auth_data['code'] != 0
with assume: assert '该手机号未注册' in auth_data['msg'] with assume: assert '该手机号未注册' in auth_data['msg']
@pytest.mark.parametrize(['username', 'password'], [[' ', ' ']]) @allure.story('登录验证')
def test_login04(self, username, password): @allure.title('用户名密码为空')
auth_data = AuthHeaders(server=self.server, username=username, password=password).get_auth_token() @allure.description('用户名密码为空,登录失败')
@allure.step('接口不传用户名和密码')
def test_login04(self):
auth_data = AuthHeaders(server=self.server, username=' ', password=' ').get_auth_token()
with assume: assert auth_data['code'] != 0 with assume: assert auth_data['code'] != 0
with assume: assert '该手机号未注册' in auth_data['msg'] with assume: assert '该手机号未注册' in auth_data['msg']
@pytest.mark.parametrize(['username', 'password'], [['这是中文', 'geek1234']]) @allure.story('登录验证')
def test_login05(self, username, password): @allure.title('用户名为中文,密码正确')
auth_data = AuthHeaders(server=self.server, username=username, password=password).get_auth_token() @allure.description('用户名为中文,密码正确,登录失败')
@allure.step('用户名为中文,密码正确')
def test_login05(self):
auth_data = AuthHeaders(server=self.server, username='这是中文', password='geek1234').get_auth_token()
with assume: assert auth_data['code'] != 0 with assume: assert auth_data['code'] != 0
with assume: assert '该手机号未注册' in auth_data['msg'] with assume: assert '该手机号未注册' in auth_data['msg']
if __name__ == '__main__':
pytest.main(['xin_patriarch_login.py'])
import allure
import jsonpath import jsonpath
import pytest
import requests
from pytest_assume.plugin import assume from pytest_assume.plugin import assume
from script.base_api import app_students_phoneNumber_mobilePhoneNumberBounding_get, app_pushRelationship_post from script.base_api import app_students_phoneNumber_mobilePhoneNumberBounding_get, app_pushRelationship_post
...@@ -8,17 +7,25 @@ from script.xin_project_patriarch_app.xin_patriarch_app.xin_patriach_static.xin_ ...@@ -8,17 +7,25 @@ from script.xin_project_patriarch_app.xin_patriarch_app.xin_patriach_static.xin_
from script.xin_project_patriarch_app.xin_static.xin_user.xin_patriarch_login import AuthHeaders from script.xin_project_patriarch_app.xin_static.xin_user.xin_patriarch_login import AuthHeaders
@allure.epic('家长APP接口自动化测试')
@allure.feature('登录模块')
class TestAuthStudents: class TestAuthStudents:
def setup_class(self): def setup_class(self):
self.server = StaticGlobal.SERVER self.server = StaticGlobal.SERVER
self.header = AuthHeaders(server=self.server, username='13364004418', password='geek1234').get_auth_headers() self.header = AuthHeaders(server=self.server, username='13364004418', password='geek1234').get_auth_headers()
@allure.story('登录成功验证')
@allure.title('验证查询学生信息正确')
@allure.description('查询学生包含这个学生')
def test_students(self): def test_students(self):
students_data = app_students_phoneNumber_mobilePhoneNumberBounding_get(phoneNumber='13364004418', header=self.header, default_assert=False) students_data = app_students_phoneNumber_mobilePhoneNumberBounding_get(phoneNumber='13364004418', header=self.header, default_assert=False)
with assume: assert students_data['code'] == 0 with assume: assert students_data['code'] == 0
with assume: assert '小黄测试学生三年级' in jsonpath.jsonpath(students_data, '$..name') with assume: assert '小黄测试学生三年级' in jsonpath.jsonpath(students_data, '$..name')
with assume: assert students_data['data'][0]['student']['phones'][0] == '13364004418' with assume: assert students_data['data'][0]['student']['phones'][0] == '13364004418'
@allure.story('登录成功验证')
@allure.title('查询学生设备绑定关系')
@allure.description('查询学生设备绑定关系正确')
def test_push_relation(self): def test_push_relation(self):
push_data = { push_data = {
"deviceToken": "ApVZSpXWRryWKlLIbKILYE2C_KFiVLBblNotxrxF8GiT", "deviceToken": "ApVZSpXWRryWKlLIbKILYE2C_KFiVLBblNotxrxF8GiT",
...@@ -28,6 +35,3 @@ class TestAuthStudents: ...@@ -28,6 +35,3 @@ class TestAuthStudents:
push_data = app_pushRelationship_post(body=push_data, header=self.header, default_assert=False) push_data = app_pushRelationship_post(body=push_data, header=self.header, default_assert=False)
with assume: assert push_data['code'] == 0 with assume: assert push_data['code'] == 0
if __name__ == '__main__':
pytest.main(['test_auth_students.py'])
...@@ -2,4 +2,4 @@ class StaticGlobal: ...@@ -2,4 +2,4 @@ class StaticGlobal:
YEAR = 2021 YEAR = 2021
TERM = '春' TERM = '春'
SCHOOL = 3052 SCHOOL = 3052
SERVER = 'http://172.10.62.94' SERVER = 'http://192.168.32.31'
- headers: - headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyMTc1IiwidGVybWluYWwiOiJwYyIsInV1aWQiOiJiOTcwNzMzN2VlZjU0NzZlYTVhNTg5ODU0YTk5ZDQxMiIsInRpbWVzdGFtcCI6MTYxODM2OTc5Nzg5N30.d9Wkb6ovkbbOvOO8R71tgdMXWCy1sDwzFHaxAQSnaQk Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyMTc1IiwidGVybWluYWwiOiJwYyIsInV1aWQiOiJhMWFjZjZjZGEyYzc0NThlOTQwMTEyM2JkN2JhMWU3NyIsInRpbWVzdGFtcCI6MTYxODM4NTc2Mzk0M30.Bgt-BDVWP7YhrANafIBhqYRd956M0nBwpS7rJpC3_KU
Content-Type: application/json;charset=UTF-8 Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94 server: http://172.10.62.94
user: 13555555555 user: 13555555555
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyMTc1IiwidGVybWluYWwiOiJwYyIsInV1aWQiOiI0NGIxZTk5ZTJhOTk0ZTVhYmY2MzdiZTFmZGVkN2NiZCIsInRpbWVzdGFtcCI6MTYxODM4NjMyNTk4MX0.vFTRtWmeXXXW9238IaAzIQHuZz6bYTpCLbN1pHcYky0
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: 13555555555
...@@ -1060,3 +1060,279 @@ ...@@ -1060,3 +1060,279 @@
server: http://172.10.62.94 server: http://172.10.62.94
user: '16714112609' user: '16714112609'
userId: 694150 userId: 694150
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTEiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI3MDM5ZDUxNmM5YTM0MDkwYTJkMjhjNTA5MDYwYWUyNSIsInRpbWVzdGFtcCI6MTYxODM3MTIwODgwN30.VazrXOctp3PR2b0F5TctsYYQWlIWbSWhMcO_yAu2Rmw
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914113326'
userId: 694151
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTIiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIyMzRmODJiN2M1MmE0YTQ1ODZlZDg1OWJhYTQ0MGQyNyIsInRpbWVzdGFtcCI6MTYxODM3MTIyMTc5NH0.0vARpafEtNjGLQ1mwF_CWxH1bEIi6xGY_NwzbU8Mzso
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314113340'
userId: 694152
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTMiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI3MjgzYzAwM2U4MTA0NTE2OTc4Y2E0ZmEzMDNjMjBmMyIsInRpbWVzdGFtcCI6MTYxODM3MTIyOTg3OX0.VFx49xP_1FGsJAFzuDboQ-hShb5wDHhfYCDHheVezbI
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314113341'
userId: 694153
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTQiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJlMTUwYWUzNjZkNDk0ODU5OGZkMzNlOGRlMjRmNzI2NSIsInRpbWVzdGFtcCI6MTYxODM3MTIzNjg4Mn0.leUQYQghJw3BwAp_k-3EpgXdZfKLCSeFdZ5XE1YZQT4
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714113351'
userId: 694154
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTUiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIzOTllYTMyMmZiMjQ0YzkzYTAyNTNhY2JjYmM5YjE3MCIsInRpbWVzdGFtcCI6MTYxODM3ODMyNDIyMX0.OpHnAHhn3DEFiBGEOXjXXrEq6VGzIz7r0bU_ABl7cfk
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914133201'
userId: 694155
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTYiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJlZTdhYjA1YTM1NjY0NGFhOGFmMTA4OTM0MDQyMGM0MiIsInRpbWVzdGFtcCI6MTYxODM3ODMzNjMzOH0.8cD0Iqd1JZ8K0h1l1zlDyiCivNe7mA70mTfp9MPSMpc
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314133214'
userId: 694156
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTciLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIxZDliZjg4Yjg1NDY0NTJiOTQzMGU4YzQ4MGNmNGJlNiIsInRpbWVzdGFtcCI6MTYxODM3ODM0MzcyOX0.4caLpPFxdk9g6Gh9kuUqGvdsBb7dhzMgqBaci7eqtKA
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314133215'
userId: 694157
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTgiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJjN2JjZTk0Y2YxYjE0OGQyOWNmMDg2ZTQ4ODljMzE5YyIsInRpbWVzdGFtcCI6MTYxODM3ODM1MDM1NH0.I3nj9lbT_uIT6nAvI10xvinES2LlLnjNv3lBl33ARBg
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714133225'
userId: 694158
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNTkiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI5MzYwMmZiZWE1YTk0MDllOWUxZWU4MjE2MGExZDVhZiIsInRpbWVzdGFtcCI6MTYxODM4MDA1NjI5Nn0.oIA6HjzP_kXDHEl_WCqblUOB33_fkeQhsp3-zImXVyw
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914140052'
userId: 694159
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNjAiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJiOTc0NzYzNzE0YTI0MTYwOWVlMDFjMWI5ZDViYjk3ZCIsInRpbWVzdGFtcCI6MTYxODM4MDA3MDQyOX0.7Q6yqV_4qHr0XjkVZtzqD58SmhnKMtxE62YlwwTwd7M
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314140108'
userId: 694160
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNjEiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI1ODMxZjUxNDhhNTM0MGVlODdjYjYzZGVhODU1NThjYyIsInRpbWVzdGFtcCI6MTYxODM4MDA3Nzg2OH0.uTMPZI3cKOW_9EVhsPl2TQ6pnv4MsPqBaofc1UsiyVM
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314140110'
userId: 694161
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNjIiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJjNDNiZWQzN2VlMGM0MzgxOTg4NmYyNWY2ZDIwODk1MyIsInRpbWVzdGFtcCI6MTYxODM4MDA4MzY1N30.4loIB6epcXYSI_qKPaOROtynhOI_SYaO9JEHrxuyiq8
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714140119'
userId: 694162
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNjMiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI1N2Q5MTQ0ZjNmZTg0MWU3OGY1NjJmODhjOGQ5NDdkYiIsInRpbWVzdGFtcCI6MTYxODM4MDE0MDM2NH0.OxZRyevtvP8RdryLDq7Zbd5lzLxm0N0MlUvgjy56eRI
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914140218'
userId: 694163
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNjQiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIyZGQ3NTM2Y2IxNDU0Zjc0OWJhMmU5NjE5MmQ1YjdkMCIsInRpbWVzdGFtcCI6MTYxODM4MDE1Mzg2MX0.bL_lwUEAvnV2gnaiJ5SYzdY4yaa2dDnLLzuPc0KWQv4
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314140232'
userId: 694164
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNjUiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIzZDM0NmM4NGFmMWQ0M2YwYjhiN2RlZmM3N2U1Nzg0MiIsInRpbWVzdGFtcCI6MTYxODM4MDE2MjI3NX0.-aQ_sJX9i4wZFrj0EeZqrYYiCeV-7exuq7G6XSZ17iA
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314140233'
userId: 694165
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNjYiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJhODY1NWI0MTkwYWY0ZjZkYTEzNzkzZGJiOTM1ZDJmYyIsInRpbWVzdGFtcCI6MTYxODM4MDE2ODA5NX0.A7diRA7gD-rQG3rICAsz69mJX9A5MMvMHLTSmfWg1yA
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714140243'
userId: 694166
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzEiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJmNzUzMTczNDZlNWY0YWViYmI0ODFhNzljZjY1ODAwNyIsInRpbWVzdGFtcCI6MTYxODM4MTYxOTQwNH0.1DIGaB0UeiOoYJxmLWxDv58vzyPM7Op7hi2PjiXfGx0
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914142655'
userId: 694171
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzIiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIzODhmMjU2MDFlZWE0NjcxYjAyN2U4MTRhNWMzMTVmNSIsInRpbWVzdGFtcCI6MTYxODM4MTYzNjE0OH0.e4CGSOY4_iEQTsN3eQmuk5aSMXiByueOWCtkyEGPEI4
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314142714'
userId: 694172
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzMiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI4OTc3YWNmOTkzMzE0MTUyYWNmMGNkNDMyYTg1NTlmNSIsInRpbWVzdGFtcCI6MTYxODM4MTY0MzYxNH0.q8uLjWLnrU06npTtWFvCk5OAJP_iKSZRI4Qd1iBDaIk
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314142715'
userId: 694173
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzQiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI1ZjFiNTkxNmQwYWM0OWY3OGM4MTZjNjFkM2I0OThkNSIsInRpbWVzdGFtcCI6MTYxODM4MTY1ODQyOH0.xtbXGqtLcYTKAxRgXnPhb4XieN4YZYec8-QfWi3c-FE
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714142725'
userId: 694174
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzUiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIwYzRjZDI4NmVhMzY0OWZjOTBlYmUyMDdhY2VjYThmZCIsInRpbWVzdGFtcCI6MTYxODM4MzkwMDQ5MX0.NTcVLyno5GebTdXCu5qnZ-AmRDkUOLKIZoFBZh6nU58
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914150458'
userId: 694175
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzYiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI0ZjY5NGU3NDNlMDk0YzRiOTRkMTdkMzdkNmEwMjBhZCIsInRpbWVzdGFtcCI6MTYxODM4MzkyODk2Mn0.-qpK1ATqi7bmZJ5SK-zQa1XeqqAtAWIgAbBkJsm2bsU
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314150526'
userId: 694176
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzciLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIyNmM0ZmIyYjgxZDA0OTE2YTg1NGI3Y2JiNmU4NTM2YSIsInRpbWVzdGFtcCI6MTYxODM4Mzk0MTYyNn0.hzYRg3hjK2rIqNY9emNXPA6NkSehlzc9klVGew6XzQ4
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314150528'
userId: 694177
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzgiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJjYjlmNTBiNTFkMmU0YTU4ODQyZmI2OWVmMWNiYTRlYiIsInRpbWVzdGFtcCI6MTYxODM4Mzk1MDcyM30.iMRA5cnkeD13DPxYyib9iZAMrKeIWxta5vVrvEKy1LI
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714150545'
userId: 694178
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxNzkiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIwMDViMjIyNDViN2M0YTlmYjAzZTRlMTQyMTVkYjE1NSIsInRpbWVzdGFtcCI6MTYxODM4NDQ1MjA0NH0.rHGcsGrO2ZiGMA2F8D_bOfU4VR3oCF8KC0vOlaI9ruE
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914151407'
userId: 694179
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODAiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI4Y2RhN2YyYzBlNjU0NzM2OWNjNTE2ODI4NGEzZjAxNCIsInRpbWVzdGFtcCI6MTYxODM4NDQ3MDAzMH0.n3ddBamF7FODrwZM-pUFkH7r7eiSfmoeMjyNlHQoYb0
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314151426'
userId: 694180
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODEiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJiZjVlZmM0ZDAzMGU0YzQ4YTgyYTIxNmE5N2YwZDk1OCIsInRpbWVzdGFtcCI6MTYxODM4NDQ3OTI3NH0.OYT4zGK6hlJxpjzWtHvIueSPR1aXFuPTUWliBPr4x7g
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314151429'
userId: 694181
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODIiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJkYzVlOTMwMzM0NTI0OTI0YTVhOWYyNTY3NDAyZWIzMCIsInRpbWVzdGFtcCI6MTYxODM4NDQ4Nzg0OX0.T3FDGDSiLVTE-BcWmsOZ9W2IJxt_LG_mjlb91yAIQuM
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714151440'
userId: 694182
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODMiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJmOTU0NDU0NGEzZDk0YjI4OWM0NTU4Y2NmMDVjNmQ5YyIsInRpbWVzdGFtcCI6MTYxODM4NDU4MTgxMn0.3JnrM9dLblbzs7oAfXmbyLLk37zkVAvzNq8kAVvQA9A
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914151619'
userId: 694183
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODQiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIwN2M4M2FjMTJhZTk0ZmU1OWEzYjg5MTlhOThkYTJmMyIsInRpbWVzdGFtcCI6MTYxODM4NDYwOTk2Nn0.hz2j7IYRh-_gZtM6CSTZBqKIKTK9_xcNpmawyQvpIkI
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314151646'
userId: 694184
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODUiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIzMzdjZGRkOWU2MGE0YzQ3Yjc5OWE0NzgyZTczY2U4ZCIsInRpbWVzdGFtcCI6MTYxODM4NDYyMzUwM30.NwvqP4a3n-Pn1NVQnoZ-m-T4JzzZqh4tq3Acu9QttQQ
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314151649'
userId: 694185
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODYiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJiZjFkZDkwNGEyMGU0NGI3OGVmNTI1NDhiYTE2M2I0YSIsInRpbWVzdGFtcCI6MTYxODM4NDYzMDA1N30.jiK6ovJYZQT2Gh83BNSy6f9206UtiBrHbfzeaXc86bs
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714151705'
userId: 694186
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODciLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIwZGVhNTk3MDNlNWI0MTRmYWE0YTFmYjcxMWFkOGY1NSIsInRpbWVzdGFtcCI6MTYxODM4NDg2NDg3Nn0.uMV3bpuh4MRyoWP4NutVl7un0A5CLuyLYJx4s-w-VJ0
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914152102'
userId: 694187
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODgiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI3NDdjM2VkMmM5ZjA0M2EyYmE1NDk4YjQzMTE4Mzc0OSIsInRpbWVzdGFtcCI6MTYxODM4NDg4MDAzMn0.5wL5oTrfR28WA0aeYk5Q39csABJMHwKNTWygQNkROdY
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314152117'
userId: 694188
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxODkiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJhYjNiNWU1ZmJkMmE0NTZkOTY1YmRkOTBjMGY0ZjdmNSIsInRpbWVzdGFtcCI6MTYxODM4NDg4NzkzOX0.L80HesqddbtA4ZyFzT-SIByRewTvrE3HQGlHPHp3rio
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314152119'
userId: 694189
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxOTAiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI3MWVkNTdjNGQ0MTM0MTM4OWQ4MzM0OTE5NjBjM2JiOCIsInRpbWVzdGFtcCI6MTYxODM4NDg5Mzk2NX0.w_j1k1fmEav_QSJrpnXQ495JxPqAS1tpvtyB06VDNko
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714152129'
userId: 694190
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxOTEiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI2YjViZjllMTMzN2Q0YWMyYTZmOTAxMGYyNzY2MzcyMSIsInRpbWVzdGFtcCI6MTYxODM4NDk0Mjk2N30.TRTLmeW-pgvb1RlIZ3E9bJHR5cPZLpujWUcpP1cKrVg
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914152220'
userId: 694191
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxOTIiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIzYWU5YTE0MjE4Yzg0OTExOWQ2NmM3MWExYTNmMmMxMSIsInRpbWVzdGFtcCI6MTYxODM4NDk1ODIzN30.QP7F6TXyxXF5twwXfSoz_fYy7tUlCiQ4Yspgdh9fC84
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314152236'
userId: 694192
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxOTMiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIyZTVhMzkwZDlkMzc0ZGRjYmUyYTRhM2IwZGVlODVkOCIsInRpbWVzdGFtcCI6MTYxODM4NDk2NzQzNX0.HaZL8mSakzvSEd_5ltFjHXcvodm_gfY29IjX8DykNa8
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314152237'
userId: 694193
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxOTQiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJiNTJlNDRjMGUzZWI0ZjhhOWY0ZGE3ZDU0NjRiMjUxMSIsInRpbWVzdGFtcCI6MTYxODM4NDk4MjcxNn0.vtdR157vK_S6wUKdWpCpAqKfAolPAhN3DYIHFyCrAiU
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '16714152248'
userId: 694194
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxOTciLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI0ZWQzNWVhNzdiYWQ0M2Y0OTI1Y2VkMDNmYzY1Y2ExYiIsInRpbWVzdGFtcCI6MTYxODM4NTc4MzEwOH0.Gomke8kEYfef5nYIz9j9qfxAqLtloubYMbXJAuaVOL0
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '18914153620'
userId: 694197
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTQxOTgiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJjNDJlMWZiMWNjZDA0ZDI1YmMwZDA4OGE2NmFmODgzMCIsInRpbWVzdGFtcCI6MTYxODM4NTc5MDUwM30.bg_G-acPXGPma49DvSUEAhGuGZYD1vSJlLCCHHBrenM
Content-Type: application/json;charset=UTF-8
server: http://172.10.62.94
user: '13314153628'
userId: 694198
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NTciLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI5NTU0MGYxMTQyZDM0ZDRkYjM3ZmQ4YzYxNWFjNThiMyIsInRpbWVzdGFtcCI6MTYxODM4NjMyODkxMH0._CuN6x6luh_IwDR0UE7ZQvb0zUS8oixSNpC-EOBiqYM
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '18914154526'
userId: 696657
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NTgiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiJlMGM3NWFhMzA3OGQ0NTc0YTQ2MDEwZDhjOWJlNTY1OSIsInRpbWVzdGFtcCI6MTYxODM4NjM0NTI2M30.P94LlI4BEWh8GzYuVV2D_UOyjYafceUZ7yakORKULMI
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '13314154543'
userId: 696658
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NTkiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiI0MmFlNWZhZjlmMzA0YmZhYTE0YWIxYjFiNDg1YTFiZiIsInRpbWVzdGFtcCI6MTYxODM4NjM1NTU0Mn0.NfpaAvjUvvX4QtZ2KW9Gvl2d4TiwawRloyq2Y85OujM
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '13314154544'
userId: 696659
- headers:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI2OTY2NjAiLCJ0ZXJtaW5hbCI6ImFwcCIsInV1aWQiOiIwNWZiMWE0ODc4OWM0NmFmYWRhN2UwZDBmMjBmMGU5OSIsInRpbWVzdGFtcCI6MTYxODM4NjM2MjQwN30.hJXwjWHf_5TtdXwQF2-Jsomz2RbSvQVNqCEu0cPDTOQ
Content-Type: application/json;charset=UTF-8
server: http://192.168.32.31
user: '16714154557'
userId: 696660
import json
import allure
import requests import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning from requests.packages.urllib3.exceptions import InsecureRequestWarning
...@@ -23,8 +26,10 @@ class AuthHeaders: ...@@ -23,8 +26,10 @@ class AuthHeaders:
获取家长端APP的登录信息 获取家长端APP的登录信息
""" """
@allure.step('登录家长端APP')
def get_auth_token(self): def get_auth_token(self):
auth_data = requests.post(url=self.server + self.url, json=self.body, verify=False) auth_data = requests.post(url=self.server + self.url, json=self.body, verify=False)
allure.attach(body=json.dumps(auth_data.json(), ensure_ascii=False), name='响应信息', attachment_type=allure.attachment_type.JSON)
if auth_data.json()['code'] != 0: if auth_data.json()['code'] != 0:
return auth_data.json() return auth_data.json()
else: else:
......
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