def test_edit_appoint_meeting_msg(self):
     u"""编辑指定会议的详细信息接口(只允许创建人修改未结束的会议)"""
     # 先预约会议
     appointment_meeting()
     logger.info('预约会议')
     # 由于预约会议没有返回会议详细信息,所以此步骤为获取刚刚预约的会议的详细信息
     appoint_meeting_msg = select_appointment_meeting_msg()
     logger.info('获取预约会议信息')
     # 获取meetingId
     meetingId = get_appointment_meetingId(appoint_meeting_msg)
     logger.info('通过预约会议信息获取meetingId')
     # 获取会议接入码
     meeting_access_code = get_meeting_access_code(appoint_meeting_msg)
     logger.info('获取会议接入码')
     # 需要更改的会议开始和结束时间
     params_meeting_start_time = get_meeting_start_time()
     params_meeting_end_time = get_meeting_end_time()
     new_params = dict(meetingId, **meeting_access_code, **self.params, **params_meeting_start_time, **params_meeting_end_time)
     logger.warning(params_log + str(new_params))
     r = requests.post(self.url, new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
     # 关闭会议
     end_meeting(meetingId)
     logger.info('关闭会议')
Ejemplo n.º 2
0
 def test_product_rate_detail(self):
     u"""费率说明接口"""
     logger.warning(params_log + str(self.params))
     r = requests.post(url=self.url, data=self.params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_select_conversation(self):
     u"""会话查询接口"""
     logger.warning(params_log + str(self.params))
     r = requests.post(self.url, data=self.params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 4
0
 def test_login(self):
     u"""用户登录接口"""
     logger.warning(params_log + str(self.login_params))
     r = requests.post(self.login_url, self.login_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.login_res['status'])
     assert_equal(res['msg'], self.login_res['msg'])
Ejemplo n.º 5
0
 def test_circular_notice(self):
     u"""循环通知接口"""
     logger.warning(params_log + str(self.params))
     r = requests.post(url=self.url, data=self.params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 6
0
 def test_forget_password(self):
     u"""用户忘记密码接口"""
     logger.warning(params_log + str(self.params))
     r = requests.post(self.url, self.params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 7
0
 def test_select_meeting_modify_records(self):
     u"""会议变更记录查询接口"""
     # 将meetingId写死了(9280),是一个之前做过编辑操作的预约会议
     logger.warning(params_log + str(self.params))
     r = requests.post(self.url, self.params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_select_by_from_username(self):
     u"""群组列表查询接口"""
     logger.warning(params_log + str(self.params))
     r = requests.post(self.url, data=self.params)
     logger.info('进行接口请求')
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 9
0
 def test_select_team_member(self):
     u"""查询团队成员接口"""
     teamId = get_team_id()
     logger.warning(params_log + str(teamId))
     r = requests.post(url=self.url, data=teamId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_task_interface_search_need_relevance_meeting(self):
     u"""任务界面查询需要关联的会议接口"""
     params = get_token()
     logger.warning(params_log + str(params))
     r = requests.post(self.url, params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 11
0
 def test_create_group(self):
     u"""创建群组接口"""
     logger.warning(params_log + str(self.params))
     r = requests.post(self.url, data=self.params)
     logger.info('进行接口请求')
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_select_order_detail(self):
     u"""查询订单详情接口"""
     orderId = create_times_order_and_return_orderId()
     logger.warning(params_log + str(orderId))
     r = requests.post(url=self.url, data=orderId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 13
0
 def test_logout_device_user(self):
     u"""注销设备用户接口"""
     userid = get_user_id()
     logger.warning(params_log + str(userid))
     r = requests.post(self.url, userid)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 14
0
 def test_calculate_add_seat_year(self):
     u"""席位扩充时长计算接口"""
     teamId = get_team_id()
     logger.warning(params_log + str(teamId))
     r = requests.post(url=self.url, data=teamId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 15
0
 def test_select_team_and_team_member_list(self):
     u"""查询用户团队及团队成员列表接口"""
     userToken = get_token()
     logger.warning(params_log + str(userToken))
     r = requests.post(url=self.url, data=userToken)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 16
0
 def test_sign_in_device_user(self):
     u"""注册设备用户接口"""
     Udid = random_device_Udid()
     new_params = dict(Udid, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 17
0
 def test_logout(self):
     u"""用户退出接口"""
     user_token = get_token()
     logger.info('获取token')
     logger.warning(params_log + str(user_token))
     r = requests.post(self.url, user_token)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 18
0
 def test_tablet_user_fast_login(self):
     u"""平板用户快速登录接口"""
     deviceUdid = random_device_Udid()
     new_params = dict(deviceUdid, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(self.url, new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 19
0
 def test_markup_delete_team(self):
     u"""标记删除团队接口(回收团队会议室号)"""
     create_team()
     teamId = get_team_id()
     logger.warning(params_log + str(teamId))
     r = requests.post(url=self.url, data=teamId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 20
0
 def test_leave_message(self):
     u"""发送意见接口"""
     userToken = get_token()
     new_params = dict(userToken, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 21
0
 def test_create_times_order_by_productId(self):
     u"""创建购买时长的接口(根据产品id)"""
     userToken = get_token()
     new_params = dict(userToken, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 22
0
 def test_create_seat_order(self):
     u"""创建购买席位订单的接口"""
     teamId = get_team_id()
     userToken = get_token()
     new_params = dict(userToken, **teamId, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_select_task_copy_to_me(self):
     u"""查询抄送给我的任务接口"""
     userToken = get_token()
     logger.info('获取token')
     new_params = dict(userToken, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(self.url, new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_meeting_status_search_with_me(self):
     u"""根据会议状态的查询和我相关的会议接口"""
     userToken = get_token()
     logger.info('获取token')
     new_params = dict(self.params, **userToken)
     logger.warning(params_log + str(new_params))
     r = requests.post(self.url, new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 25
0
 def test_compile_user_msg(self):
     u"""编辑用户信息接口"""
     userToken = get_token()
     logger.info('获取token')
     new_params = dict(self.params, **userToken)
     logger.warning(params_log + str(new_params))
     r = requests.post(self.url, new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 26
0
 def test_exit_team(self):
     u"""团队成员退出接口"""
     create_team()
     teamId = get_team_id()
     new_params = dict(teamId, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 27
0
 def test_select_schedule(self):
     u"""获取用户指定日期的日程列表接口"""
     now_date = get_date()
     userToken = get_token()
     logger.info('获取token')
     params = dict(userToken, **now_date)
     logger.warning(params_log + str(params))
     r = requests.post(self.url, params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_delete_appointment_meeting_record(self):
     u"""删除指定的会议记录接口(只能删除自己创建的预约中的会议)"""
     meeting_id = get_meeting_id_with_create_fast_meeting()
     logger.info('创建快速会议并获取meetingId')
     user_token = get_token()
     logger.info('获取token')
     params = dict(user_token, **meeting_id)
     logger.warning(params_log + str(params))
     r = requests.post(self.url, params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Ejemplo n.º 29
0
 def test_select_task_modify_records(self):
     u"""任务变更记录查询接口"""
     taskId, meetingId = edit_appoint_task_msg()
     logger.info('获取taskId和meetingId')
     logger.warning(params_log + str(taskId))
     r = requests.post(self.url, taskId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
     end_meeting(meetingId)
     logger.info('结束会议')
     delete_by_taskId(taskId)
     logger.info('结束任务')
Ejemplo n.º 30
0
 def test_add_team_member(self):
     u"""添加团队成员接口"""
     create_team()
     teamId = get_team_id()
     userToken = get_token()
     new_params = dict(userToken, **teamId, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
     delete_team(teamId)
     logger.info('删除团队成功')