def setUp(self): a = Login_B() self.aa = Home_Page(a) self.aa.jumpBusinessmanagement() self.cc = business_process(a) self.cc.jump_ResourceAllocation() self.dd = Allocation(a)
def setUp(self): a = Login_B() self.aa = Home_Page(a) self.aa.jumpBusinessmanagement() self.cc = business_process(a) self.cc.jump_ResourceProvide() self.dd = Provide(a)
def setUp(self): a=Login_B() self.aa=Home_Page(a) self.aa.jumpBusinessmanagement() self.cc=business_process(a) self.cc.jump_channelAddmachine() self.dd=Add(a)
def login_and_add(self): a = Login_B() self.aa = Home_Page(a) self.aa.jumpBusinessmanagement() self.cc = business_process(a) self.cc.jump_channelnewbuilt() self.dd = New(a)
def setUp(self): a = Login_B() self.aa = Home_Page(a) self.aa.jumpBusinessmanagement() self.cc = business_process(a) self.cc.jump_channelrelocate() self.dd = Relocate(a)
def setUp(self): '''初始化登陆''' a = Login_B() #登陆 self.obh = Home_Page(a) #将登陆用的drvier赋给self.obh self.obh.jumpBusinessmanagement() #跳转到业务管理 self.cc = jump_channel_list_page(a) # self.cc.jump()
def setUp(self): # 进入类型管理 b = Login_B() obj = Home_Page(b) obj.jumpBusinessmanagement() self.obb = model_page(b) self.oba = addmodel_page(b) self.obc = modifymodel_page(b) self.obb.skip() self.status = {"开": 1, "关": 2} # 状态
def test(self): a = Login_B() tt = Home_Page(a) # tt.jumpBusinessmanagement() tt.get_element_by_xpath( '''//*[@id="app"]//dl/dd[text()='业务运营']''').click() # self.a.find_element_by_xpath('''//*[@id="app"]//dl/dd[text()='业务运营']''').click() time.sleep(1) tt.get_element_by_xpath( '''//*[@id="app"]//span[text()='角色管理']''').click() time.sleep(1) tt.get_element_by_xpath( '''//*[@id="app"]//span[text()='角色列表']''').click() time.sleep(1) kk = tt.get_element_by_xpath( '''//*[@id="app"]//input[@placeholder='请选择用户角色']''') Select(kk).select_by_index(4)
def test_aa(self): list = [{ "user": "******", "password": "******" }, { "user": "******", "password": "******" }, { "user": "******", "password": "******" }, { "user": "******", "password": "******" }] rr1 = len(list) for i in range(rr1): try: a = Login_B(list[i]["user"], list[i]["password"]) self.aa = Home_Page(a) self.aa.jumpBusinessmanagement() self.cc = business_process(a) self.cc.jump_channelnewbuilt() self.dd = New(a) time.sleep(2) self.dd.group() channel_no = self.dd.channelno() print channel_no # title=self.dd.title(channel_no) type = self.dd.channeltype() level = self.dd.channellevel() changsuo = self.dd.place1() mianji = self.dd.areainput() limit = self.dd.kailimit() limit1 = self.dd.shiwanlimit() chongzhi = self.dd.Recharge() limit2 = self.dd.people_limit() latitude = self.dd.latitude() longitude = self.dd.longitude() zhanshinum = self.dd.zhanshi() address = self.dd.channeladdress() name = self.dd.name() sex = self.dd.sex() phone = self.dd.phone() cardid = self.dd.cardid() tt = datetime.datetime.now() kk = tt.year age = str(int(kk) - int(cardid[6:10])) address1 = self.dd.Contact_address() self.dd.Photo() cardnum = self.dd.cardnum() cardnaccount = self.dd.cardnaccount() self.dd.deposit() self.dd.gameJurisdiction() self.dd.gametime() self.dd.Resources() self.dd.appendix() self.dd.Submission() time.sleep(2) except Exception as e: print e