Commit 87275d03 authored by 小刘's avatar 小刘

配置修改

parent 91329bea
...@@ -19,20 +19,12 @@ ...@@ -19,20 +19,12 @@
<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="修改allure显示标题">
<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$/run.py" beforeDir="false" afterPath="$PROJECT_DIR$/run.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/run.py" beforeDir="false" afterPath="$PROJECT_DIR$/run.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/conftest.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/conftest.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/conftest.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/conftest.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/defalut_account.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/defalut_account.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/defalut_account.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/defalut_account.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class/test_auth_choose_class.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_choose_class/test_auth_choose_class.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/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_students_classes.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_class/test_auth_students_classes.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_login.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_login.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_students.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/test_xin_students_login/test_auth_students.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_public_class/xin_global_static.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_patriarch_app/xin_patriach_static/xin_public_class/xin_global_static.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/jky_user.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/jky_user.yaml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/xin_project_patriarch_app/xin_static/xin_user/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" />
...@@ -226,7 +218,7 @@ ...@@ -226,7 +218,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="30744000" /> <workItem from="1618282801919" duration="33613000" />
</task> </task>
<task id="LOCAL-00001" summary="增加依赖文件"> <task id="LOCAL-00001" summary="增加依赖文件">
<created>1611309477574</created> <created>1611309477574</created>
...@@ -263,7 +255,14 @@ ...@@ -263,7 +255,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1618380459940</updated> <updated>1618380459940</updated>
</task> </task>
<option name="localTasksCounter" value="6" /> <task id="LOCAL-00006" summary="修改allure显示标题">
<created>1618386745051</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1618386745051</updated>
</task>
<option name="localTasksCounter" value="7" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -287,7 +286,8 @@ ...@@ -287,7 +286,8 @@
<MESSAGE value="项目迁移" /> <MESSAGE value="项目迁移" />
<MESSAGE value="底层路径修改" /> <MESSAGE value="底层路径修改" />
<MESSAGE value="修改响应" /> <MESSAGE value="修改响应" />
<option name="LAST_COMMIT_MESSAGE" value="修改响应" /> <MESSAGE value="修改allure显示标题" />
<option name="LAST_COMMIT_MESSAGE" value="修改allure显示标题" />
</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">
...@@ -370,10 +370,10 @@ ...@@ -370,10 +370,10 @@
<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="1618380671449"> <state x="-1389" y="250" key="Vcs.Push.Dialog.v2" timestamp="1618386757342">
<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="1618380671449" /> <state x="-1389" y="250" key="Vcs.Push.Dialog.v2/-1920.0.1920.1040/0.0.1920.1040@-1920.0.1920.1040" timestamp="1618386757342" />
<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="1618385663915"> <state x="-1159" y="476" width="672" height="678" key="search.everywhere.popup" timestamp="1618385663915">
......
...@@ -4,9 +4,10 @@ import os ...@@ -4,9 +4,10 @@ import os
if __name__ == '__main__': if __name__ == '__main__':
run_config = [ run_config = [
"-s", "script/xin_project_patriarch_app", "-s", "script/xin_project_patriarch_app/xin_patriarch_app",
"--clean-alluredir",
"--alluredir", "./report/xml", "--alluredir", "./report/xml",
"--host", "http://172.10.62.94", "--host", "http://192.168.32.31",
"--account", "b", "--account", "b",
"--db", "36" "--db", "36"
] ]
......
...@@ -10,7 +10,7 @@ from script.base_api.service_user.departments import departments_schools_get ...@@ -10,7 +10,7 @@ from script.base_api.service_user.departments import departments_schools_get
def pytest_addoption(parser): def pytest_addoption(parser):
# 注册一个命令行选项host # 注册一个命令行选项host
parser.addoption("--host", default="http://172.10.62.94", dest="env", help="set test run env") parser.addoption("--host", default="http://192.168.32.31", dest="env", help="set test run env")
# 注册一个命令行选项db # 注册一个命令行选项db
parser.addoption("--db", default="yf1", dest="db", help="set test database") parser.addoption("--db", default="yf1", dest="db", help="set test database")
# 注册一个命令行选项account # 注册一个命令行选项account
......
...@@ -4,7 +4,7 @@ accounts = { ...@@ -4,7 +4,7 @@ accounts = {
"A": { "A": {
# 极运营默认账号 # 极运营默认账号
"jyy_account": { "jyy_account": {
"account": "15360956010", "account": "13555555555",
"password": "88888888" "password": "88888888"
}, },
# 极运营app默认账号 # 极运营app默认账号
......
...@@ -3,7 +3,6 @@ import time ...@@ -3,7 +3,6 @@ import time
import allure 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_choose_class.xin_choose_classes import ChooseClasses from script.xin_project_patriarch_app.xin_patriarch_app.xin_patriach_static.xin_choose_class.xin_choose_classes import ChooseClasses
...@@ -241,3 +240,31 @@ class TestChooseClasses: ...@@ -241,3 +240,31 @@ 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')
@allure.story('选课列表-班级')
@allure.title('购买了新生班,看不到常规班')
@allure.description('学生购买了新生班,不能看到常规班')
def test_choose_buy_new_not_groove(self):
studentPho = '144' + datetime.datetime.now().strftime('%d%H%M%S')
students_data = CreateStudent(server=self.server, contactInfo=studentPho).create_student()
userId = students_data['data']['list'][0]['studentId']
course_id = CreateCourse(server=self.server,
productType='主线课程',
classType='新生',
courseType='常规班课',
year=StaticGlobal.YEAR,
term=StaticGlobal.TERM).create_course()['data']['content'][0]['courseId']
class_id = CreateClass(server=self.server, courseId=course_id).create_class()['classId']
order_id = SaveOrder(server=self.server, studentId=userId, amount=100, details=[{
"classId": class_id,
"num": 10,
"discountId": "",
"category": "CLASS"
}]).save_order()['data']
PayOrder(server=self.server, orderId=order_id, payInfos=[
{
"payChannel": "CASH",
"payAmount": 100
}
]).pay_order()
time.sleep(2)
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