Commit 4ca15137 authored by 刘琴's avatar 刘琴

编辑线索(图片数量和格式,必填项)

parent 8ba23e78
...@@ -19,10 +19,11 @@ ...@@ -19,10 +19,11 @@
<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$/run.py" beforeDir="false" afterPath="$PROJECT_DIR$/run.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/ji_yun_ying_pc/service_crm_liuqin/case_data_handler_liuqin/myNewClue_handler.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/case_data_handler_liuqin/myNewClue_handler.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/case_data_handler_liuqin/myNewClue_handler.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/case_data_handler_liuqin/myNewClue_handler.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/conftest.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/conftest.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue/test_my_new_clue.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue/test_my_new_clue.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue/test_my_new_clue.py" beforeDir="false" afterPath="$PROJECT_DIR$/script/ji_yun_ying_pc/service_crm_liuqin/testcase_clue/test_my_new_clue.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
...@@ -202,8 +203,8 @@ ...@@ -202,8 +203,8 @@
<item itemvalue="Python.run" /> <item itemvalue="Python.run" />
<item itemvalue="Python.helpler" /> <item itemvalue="Python.helpler" />
<item itemvalue="Python.helpler (1)" /> <item itemvalue="Python.helpler (1)" />
<item itemvalue="Python tests.pytest in test_my_new_clue.py" />
<item itemvalue="Python.conftest" /> <item itemvalue="Python.conftest" />
<item itemvalue="Python tests.pytest in test_my_new_clue.py" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
...@@ -271,7 +272,14 @@ ...@@ -271,7 +272,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1619698276810</updated> <updated>1619698276810</updated>
</task> </task>
<option name="localTasksCounter" value="7" /> <task id="LOCAL-00007" summary="编辑线索">
<created>1619777539691</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1619777539691</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -296,7 +304,8 @@ ...@@ -296,7 +304,8 @@
<MESSAGE value="底层路径修改" /> <MESSAGE value="底层路径修改" />
<MESSAGE value="修改响应" /> <MESSAGE value="修改响应" />
<MESSAGE value="查询所有线索+新增线索(必填项)+查询单个线索" /> <MESSAGE value="查询所有线索+新增线索(必填项)+查询单个线索" />
<option name="LAST_COMMIT_MESSAGE" value="查询所有线索+新增线索(必填项)+查询单个线索" /> <MESSAGE value="编辑线索" />
<option name="LAST_COMMIT_MESSAGE" value="编辑线索" />
</component> </component>
<component name="XDebuggerManager"> <component name="XDebuggerManager">
<breakpoint-manager> <breakpoint-manager>
......
...@@ -3,10 +3,11 @@ import os ...@@ -3,10 +3,11 @@ import os
if __name__ == '__main__': if __name__ == '__main__':
run_config = [ run_config = [
"-s", r"script\ji_yun_ying_pc\service_crm_liuqin\testcase_clue\test_my_new_clue.py", "-s", r"script\ji_yun_ying_pc\service_crm_liuqin\testcase_clue\test_my_new_clue.py::TestMyNewClue::test_edit_my_new_clue_with_wrong_file",
"--clean-alluredir", "--clean-alluredir",
"--alluredir", "./report/xml", "--alluredir", "./report/xml",
"--host", "http://192.168.32.31", # "--host", "http://192.168.32.31",
"--host", "https://yf1.jkwljy.com",
"--account", "A", "--account", "A",
"--db", "36" "--db", "36"
] ]
......
...@@ -4,8 +4,8 @@ accounts = { ...@@ -4,8 +4,8 @@ accounts = {
"A": { "A": {
# 极运营默认账号 # 极运营默认账号
"jyy_account": { "jyy_account": {
# "account": "18224499511", "account": "18224499511",
"account": "15360956010", # "account": "15360956010",
"password": "88888888" "password": "88888888"
}, },
# 极运营app默认账号 # 极运营app默认账号
......
...@@ -102,6 +102,69 @@ class Add_My_New_Clue(): ...@@ -102,6 +102,69 @@ class Add_My_New_Clue():
"schoolCityName": "成都" "schoolCityName": "成都"
""" """
class Add_My_New_All_Clue():
def __init__(self, contactInfo=get_mobile(), studentName="lq全{}".format(get_time()), belong="PERSON",
contactType="WECHAT", secondContactType="TEL",secondContactInfo="028-85568842",studentSex="F",
collectPerson="黄强测试人员", inChargeEmployeeId=8223, createSchoolAreaId=3015,
introduceStudentNo=218584, otherRemark=None,
homeProvinceId=510000, homeProvince="四川省", homeCityId=510600, homeCity="德阳市", homeDistrictId=510623,
homeDistrict="中江县", homeCountyId=510623101, homeCounty="南华镇", homeAddress="测试地址", schoolId=13187,
schoolName="华阳中学",
publicClass="测试班级", publicTeacher="测试老师", publicGrade="三年级", birthday="2013-05-02",
testPaperUrls="https://test-1257124244.cos.ap-chengdu.myqcloud.com/img/63a0757824c856b31312f9d8a0c60c52.jpeg",
score=999, sourceId=102, intentionLevel="C", introduceStudentId=10170940,
introduceStudentName="lq测试用",
remark="测试新增线索所有项", classRank="12", gradeRank="23", recentScore="111", parentsHope="222",
studyHabit="333", city=510100, schoolProvinceName="四川省", schoolProvinceId=510000,
schoolCityId=510000, schoolCityName="成都"
):
self.add_clue_data = {
"belong": belong,
"studentName": studentName,
"studentSex": studentSex,
"contactType": contactType,
"contactInfo": contactInfo,
"secondContactType": secondContactType,
"secondContactInfo": secondContactInfo,
"inChargeEmployeeId": inChargeEmployeeId,
"homeProvinceId": homeProvinceId,
"homeProvince": homeProvince,
"homeCityId": homeCityId,
"homeCity": homeCity,
"homeDistrictId": homeDistrictId,
"homeDistrict": homeDistrict,
"homeCountyId": homeCountyId,
"homeCounty": homeCounty,
"homeAddress": homeAddress,
"schoolId": schoolId,
"schoolName": schoolName,
"publicClass": publicClass,
"publicTeacher": publicTeacher,
"publicGrade": publicGrade,
"birthday": birthday,
"testPaperUrls": testPaperUrls,
"score": score,
"sourceId": sourceId,
"intentionLevel": intentionLevel,
"introduceStudentId": introduceStudentId,
"introduceStudentName": introduceStudentName,
"introduceStudentNo": introduceStudentNo,
"collectPerson": collectPerson,
"createSchoolAreaId": createSchoolAreaId,
"otherRemark": otherRemark,
"remark": remark,
"classRank": classRank,
"gradeRank": gradeRank,
"recentScore": recentScore,
"parentsHope": parentsHope,
"studyHabit": studyHabit,
"city": city,
"schoolProvinceName": schoolProvinceName,
"schoolProvinceId": schoolProvinceId,
"schoolCityId": schoolCityId,
"schoolCityName": schoolCityName
}
# class Eidt_My_New_Clue(): # class Eidt_My_New_Clue():
# def __init__(self,clueId,id,studentName="刘琴修改后{}".format(get_time()),studentSex="NONE",introduceStudentId=None,introduceStudentNo=None,introduceStudentName=None, # def __init__(self,clueId,id,studentName="刘琴修改后{}".format(get_time()),studentSex="NONE",introduceStudentId=None,introduceStudentNo=None,introduceStudentName=None,
# collectPerson="刘琴1",intentionLevel="B",sourceId=101,sourceName="自然口碑",remark="",otherRemark="",birthday="",publicClass="",publicTeacher="", # collectPerson="刘琴1",intentionLevel="B",sourceId=101,sourceName="自然口碑",remark="",otherRemark="",birthday="",publicClass="",publicTeacher="",
......
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