def setUp(self):
     #self.driver = webdriver.Firefox()
     self.driver = appobjectwuliu.GetInstance()
     self.driver.implicitly_wait(30)
     conf = ConfigParser.ConfigParser()
     conf.read("C:/edaixi_testdata/userdata_wuliu.conf")
     global WULIU_URL, USER_NAME, PASS_WORD
     WULIU_URL = conf.get("wuliusection", "uihostname")
     USER_NAME = conf.get("wuliusection", "uiusername")
     PASS_WORD = conf.get("wuliusection", "uipassword")
     print WULIU_URL, USER_NAME, PASS_WORD
     self.base_url = WULIU_URL
     #self.base_url = "http://wuliu05.edaixi.cn:81/"
     self.verificationErrors = []
     self.accept_next_alert = True
示例#2
0
    def setUp(self):
        #self.driver = webdriver.Firefox()wuliu_testcase08_citylist_xiaoeyizhansiteLogistics
        self.driver = appobjectwuliu.GetInstance()
        self.driver.implicitly_wait(30)
        conf = ConfigParser.ConfigParser()
        conf.read("C:/edaixi_testdata/userdata_wuliu.conf")
        global WULIU_URL, USER_NAME, PASS_WORD, mysqlhostname, mysqlusername, mysqlpassword, mysqldatabase, mysqlrongchangdb
        WULIU_URL = conf.get("wuliusection", "uihostname")
        USER_NAME = conf.get("wuliusection", "uiusername")
        PASS_WORD = conf.get("wuliusection", "uipassword")
        print WULIU_URL, USER_NAME, PASS_WORD

        mysqlhostname = conf.get("databaseconn", "mysqlhostname")
        mysqlusername = conf.get("databaseconn", "mysqlusername")
        mysqlpassword = conf.get("databaseconn", "mysqlpassword")
        mysqldatabase = conf.get("databaseconn", "mysqlwuliudb")
        mysqlrongchangdb = conf.get("databaseconn", "mysqlrongchangdb")
        print mysqlhostname, mysqlusername, mysqlpassword, mysqldatabase, mysqlrongchangdb

        self.base_url = WULIU_URL
        #self.base_url = "http://wuliu05.edaixi.cn:81/"
        self.verificationErrors = []
        self.accept_next_alert = True