Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def test001(self):
     l_leadsAdd(self)
     l_leadsConName(self, readExcel("leads", 1, 2))
     l_submit(self)
     assert leadsRight(self)
Exemplo n.º 5
0
 def case004(self):
     l_inputUserName(self, readExcel("login", 4, 2))
     l_inputPasswd(self, readExcel("login", 4, 3))
     l_submit(self)
     assert loginNull(self)
Exemplo n.º 6
0
 def case003(self):
     l_inputUserName(self, readExcel("login", 3, 2))
     l_inputPasswd(self, int(readExcel("login", 3, 3)))
     l_submit(self)
     assert loginError(self)
Exemplo n.º 7
0
 def case002(self):
     l_inputUserName(self, readExcel("login", 2, 2))
     l_inputPasswd(self, int(readExcel("login", 2, 3)))
     l_submit(self)
     assert loginRiht(self)
Exemplo n.º 8
0
 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)
Exemplo n.º 9
0
 def test001(self): #setUp之后运行
     c_customerAdd(self)
     c_customerName(self,readExcel("customer",1,2))
     c_submit(self)
     assert customerRight(self)