def setUp(self):
     #self.driver = webdriver.Firefox()
     self.driver = appobjectwuliu.GetInstance()
     self.driver.implicitly_wait(30)
     conf = ConfigParser.ConfigParser()
     conf.read(wuliu_utiltools.getwuliuconfigpath()) 
     #conf.read("C:/edaixi_testdata/userdata_wuliu.conf")
     global WULIU_URL,USER_NAME,PASS_WORD,mysqlhostname,mysqlusername,mysqlpassword,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")
     mysqlrongchangdb  = conf.get("databaseconn", "mysqlrongchangdb")
     
     print mysqlhostname,mysqlusername,mysqlpassword,mysqlrongchangdb
     
     
     self.base_url = WULIU_URL
     #self.base_url = "http://wuliu05.edaixi.cn:81/"
     self.verificationErrors = []
     self.accept_next_alert = True
#-*-coding:utf-8-*- 
#coding=utf-8

from selenium import webdriver
import threading,wuliu_utiltools
import MySQLdb,ConfigParser
import csv
from test.test_multiprocessing import initializer
#This module /class is config and test data for wuliu automation testing sripts

conf = ConfigParser.ConfigParser()
conf.read(wuliu_utiltools.getwuliuconfigpath())  
mysqlhostname = conf.get("databaseconn", "mysqlhostname")
mysqlusername = conf.get("databaseconn", "mysqlusername")
mysqlpassword = conf.get("databaseconn", "mysqlpassword")
mysqlrongchangdb  = conf.get("databaseconn", "mysqlrongchangdb")
        
        
#@staticmethod  
def GetInstance():  
    instance = None  
    mutex = threading.Lock() 
    if(instance == None):  
            mutex.acquire()   
            if(instance == None):  
                #printInfo(u'�始化�例')  
                print u"initial singleton .........."
                #instance = webdriver.Firefox()
                #instance = webdriver.Ie()
                instance = webdriver.Chrome()
            else: