def setup_module(module): """ 模块初始化,初始化dubbo客户端 :param module: :return: """ authority_dubbo_service_ip = '192.168.5.109' authority_dubbo_service_port = '20880' # 全局变量,用于后面测试用例使用 global authority_dubbo_service_conn authority_dubbo_service_conn = \ dubbo(authority_dubbo_service_ip, authority_dubbo_service_port)
def setup_module(module): """ 模块初始化,初始化dubbo客户端 :param module: :return: """ uid_dubbo_service_ip = '10.112.162.127' uid_dubbo_service_port = '20300' # 全局变量,用于后面测试用例使用 global uid_dubbo_service_conn uid_dubbo_service_conn = \ dubbo(uid_dubbo_service_ip, uid_dubbo_service_port) # 设定连接超时时间 uid_dubbo_service_conn.set_connect_timeout(1000) # 单位秒 # 设定响应的编码 uid_dubbo_service_conn.set_encoding('gbk')