def setUp(self): #self.driver = webdriver.Firefox() self.driver = appobjectcaiwu.GetInstance() self.driver.implicitly_wait(30) conf = ConfigParser.ConfigParser() conf.read("C:/edaixi_testdata/userdata_caiwu.conf") global CAIWU_URL, USER_NAME, PASS_WORD CAIWU_URL = conf.get("caiwusection", "uihostname") USER_NAME = conf.get("caiwusection", "uirdt5username") PASS_WORD = conf.get("caiwusection", "uirdt5password") print CAIWU_URL, USER_NAME, PASS_WORD self.base_url = CAIWU_URL #self.base_url = "http://caiwu05.edaixi.cn:81/" self.verificationErrors = [] self.accept_next_alert = True
def setUp(self): #self.driver = webdriver.Firefox() self.driver = appobjectcaiwu.GetInstance() self.driver.implicitly_wait(30) conf = ConfigParser.ConfigParser() conf.read("C:/edaixi_testdata/userdata_caiwu.conf") global CAIWU_URL, MasterUSER_NAME, MasterPASS_WORD, mysqlhostname, mysqlusername, mysqlpassword, mysqldatabase CAIWU_URL = conf.get("caiwusection", "uihostname") MasterUSER_NAME = conf.get("caiwusection", "uimasterusername") MasterPASS_WORD = conf.get("caiwusection", "uimasterpassword") print CAIWU_URL, MasterUSER_NAME, MasterPASS_WORD mysqlhostname = conf.get("databaseconn", "mysqlhostname") mysqlusername = conf.get("databaseconn", "mysqlusername") mysqlpassword = conf.get("databaseconn", "mysqlpassword") mysqldatabase = conf.get("databaseconn", "mysqlcaiwudb") print mysqlhostname, mysqlusername, mysqlpassword, mysqldatabase self.base_url = CAIWU_URL #self.base_url = "http://wuliu05.edaixi.cn:81/" self.verificationErrors = [] self.accept_next_alert = True