def test003(self): c_customerAdd(self) customer=readExcel("customer",3,2) c_customerName(self,customer) c_submit(self) assert customerWindowsText(self,customer) windowsClick(self) windowsClick(self) assert customerNull(self)
def test002(self): l_leadsAdd(self) l_leadsConName(self, readExcel("leads", 2, 2)) l_submit(self) l_submit(self) assert leadsWindowsText(self) windowsClick(self) l_leadsNameClick(self) assert leadsNull(self)
def test002(self): c_customerAdd(self) customer=readExcel("customer",2,2) c_customerName(self,customer) c_submit(self) assert customerWindowsText(self,customer) windowsClick(self) c_ownershipClick(self) assert customerRename(self)
def test001(self): l_leadsAdd(self) l_leadsConName(self, readExcel("leads", 1, 2)) l_submit(self) assert leadsRight(self)
def case004(self): l_inputUserName(self, readExcel("login", 4, 2)) l_inputPasswd(self, readExcel("login", 4, 3)) l_submit(self) assert loginNull(self)
def case003(self): l_inputUserName(self, readExcel("login", 3, 2)) l_inputPasswd(self, int(readExcel("login", 3, 3))) l_submit(self) assert loginError(self)
def case002(self): l_inputUserName(self, readExcel("login", 2, 2)) l_inputPasswd(self, int(readExcel("login", 2, 3))) l_submit(self) assert loginRiht(self)
def case001(self): #TestCase类定义了,如果遇到叫test开头的方法就会在setUp方法只会依次按顺序运行 l_inputUserName(self, readExcel("login", 1, 2)) l_inputPasswd(self, int(readExcel("login", 1, 3))) l_submit(self) assert loginRiht(self)
def test001(self): #setUp之后运行 c_customerAdd(self) c_customerName(self,readExcel("customer",1,2)) c_submit(self) assert customerRight(self)