Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
Arquivo: test.py Projeto: bbwdi/auto
    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