def setUp(self): self.config = systemSetting() # 系統參數 self.__http = HttpRequest() self.user = User(self.__http) self.agentDetail = member_and_agent.AgentDetail(self.__http) self.AgentSearch = member_and_agent.AgentSearch(self.__http) self.user.login()
def Master_Login(cls): cls.__http = HttpRequest() cls.user = User(cls.__http) cls.AgentSearch = member_and_agent.AgentSearch(cls.__http) # 搜尋代理商 cls.AgentDetail = member_and_agent.AgentDetail(cls.__http) # 代理商詳細資料 cls.memberVerify = member_and_agent.MemberVerifyPage( cls.__http) # 會員註冊審核 cls.user.login()
def setUp(self): self.config = systemSetting() # 系統參數 self.__http = HttpRequest() self.user = User(self.__http) self.memberDetail = member_and_agent.MemberDetail(self.__http) self.searchMember = member_and_agent.MemberSearch(self.__http) self.deposit = member_and_agent.MemberDeposit(self.__http) self.withDraw = member_and_agent.MemberWithdraw(self.__http) self.AgentDetail = member_and_agent.AgentDetail(self.__http) self.user.login()