def uploadReport(self):
     from FTPUploadTask import childTask
     task = childTask('task')
     task.addPara('Host', self.logServer)
     task.addPara('User', self._commonDomain + '\\' + self._commonUser)
     task.addPara('Passwd', self._commonPassword)
     task.addPara('Repository', "/filtertestResults")
     task.addPara('FolderPath', self.curReportPath)
     task.addPara('baseDir', self.AUT_platform)
     task.run()
            
        return detailReportPath, detailReportHierarchy
    
    def uploadReport(self):
        from FTPUploadTask import childTask
        task = childTask('task')
        task.addPara('Host', self.logServer)
        task.addPara('User', self._commonDomain + '\\' + self._commonUser)
        task.addPara('Passwd', self._commonPassword)
        task.addPara('Repository', "/filtertestResults")
        task.addPara('FolderPath', self.curReportPath)
        task.addPara('baseDir', self.AUT_platform)
        task.run()
        
    def _cleanReport(self):
        try:
            if (os.path.exists(self.htmlReportFileRoot)):
                self.logger.info('Clean Html Report %s' % self.htmlReportFileRoot)
                shutil.rmtree(self.htmlReportFileRoot)
        except WindowsError, (errno,strerror):
            self.logger.error("catch WindowsError: error(%s): %s" % (errno,strerror))


##################This section is mainly for debug -- Begin #############################
if __name__ == '__main__':
    ro=childTask('PSFReporter', 1)
    ro.addPara('FeatureOwner', 'jacky')
    ro.run()

##################This section is mainly for debug -- End #############################