def setUpClass(self):
     global domain, driver, dataoper, u1_name, u1_pwd, u2_name, u2_pwd
     domain = "qatest01"
     driver = WebDriver("open","firefox","local")
     driver.open(domain, "slash")
     dataoper = DataReader('USER_INFO.xml')
     u1_name = dataoper.readxml('u1', 0, 'username')
     u1_pwd = dataoper.readxml('u1', 0, 'password')
     u2_name = dataoper.readxml('u2', 0, 'username')
     u2_pwd = dataoper.readxml('u2', 0, 'password')
 def setUpClass(self):
     global domain, driver
     domain = "qatest01"
     driver = WebDriver("open", "firefox", "local")
     driver.open(domain, "slash")  # 打开浏览器,并打开forest
 def setUpClass(self):
     global driver
     driver = WebDriver("open","firefox","local")
     driver.open("qatest01", "slash")