# -*- encoding=utf8 -*-
from common.common_func import commonFuc

__author__ = "meimengting"

"""
case_tag:api,medical-web11111,sit,on
"""

from airtest.core.api import *
# import sys
# sys.path.append('..')
from common.db.db import dbOP
# import time
# using("common_steps.air")
# import common_steps
# result_db = dbOP().selectSql('exp_expert', [0, 20])

"""
enc_user_id可替换成接口实际所需要id，默认是u779700044448
获取token和时间戳
"""
# enc_user_id = 'u97969333801'
# token = common_steps.check_token(enc_user_id)
# timestamp = str(int(time.time()))

# "按照环境将url管理起来，更改api url后的接口名即可"
# url = common_steps.get_api_url()
# url = url + "/newapi/router/medical/expert/info"

"""
querystring: 业务参数
headers: header参数
"""
# exId = result_db[0][0]
# exName = result_db[0][1]
# querystring = {"expertIds": exId}
# headers = {
#     'clientInfo': '{"birthday":"2018-11-18","screenwidth":"375","clientVersion":"2.4.2","screenheight":"667","partner":"meitunmama","clientip":"10.180.81.127","traderName":"iPhone 6S","clientAppVersion":"2.4.2","clientYunyuVersion":"7.9.6","clientSystem":"ios","nettype":"wifi","deviceCode":"1f4b3860acfa303bca0407f5128bc5ea0f529fec"}',
#     'platform': "1",
#     'signature': "144c6b3c78fc20ad57da1ebdb879615b",
#     'token': token,
#     'timestamp': timestamp,
#     }

"""
get方法
"""
# result = common_steps.get(url, headers, querystring)

"""
出参校验
"""
# check_dict = {"rtn_code": 0, "rtn_msg": "请求成功", "expertName": str(exName)}
# commonFuc().check_result(check_dict, result)