예제 #1
0
    def __init__(self):
        '''
        Constructor
        '''
        self.logFoundPa = re.compile('REGRESSION RESULTS')
        self.myHTMLParser = HTTPHandler.HTMLHandler()
        self.content = None

        self.patterns = [
            (
                re.compile('CHANGES/FIXES [A-Z :<>/tdrb-]+'),
                # start of content of CHANGES/FIXES SINCE PREVIOUS BUILD
                re.compile('<tr><td>-+[\r<>/tdrb ]+REGRESSION RESULTS')),
            # end of content of CHANGES/FIXES SINCE PREVIOUS BUILD
            (
                re.compile('REGRESSION RESULTS:'),
                #start of content of REGRESSION RESULTS
                re.compile('<tr><td>-+[\r<>/tdrb ]+FUNCTIONAL TESTS')),
            # end of content of REGRESSION RESULTS
        ]
예제 #2
0
    def __init__(self):
        ''' doc '''
        print 'loading...'
        self.username = raw_input('Please enter your EID: ')
        self.password = getpass.getpass('Please enter your windows password: ')
        self.url_sasn_program = URL_PL_SASN_PROGRAM
        self.srcURL = None
        self.featureBranch = None
        self.cmpURL = URL_LSV_PROGRAM
        self.finalReportPath = FINAL_REPORT_PATH
        self.firstTestReportPath = FIRST_TEST_REPORT_PATH
        self.LSVReportPath = LSV_FINAL_REPORT_PATH
        self.createFinalReportPath = CREATE_FINAL_REPORT_PATH
        self.savedReportPath = URL_SAVED_REPORT
        self.templatePath = TEMPLATE_PATH
        self.finalPath = FINAL_PATH
        self.resultPath = RESULT_PATH
        self.pipeLineInfo = {}

        self.httpHandler = HTTPHandler.HTTPHandler(URL_LOG_IN, self.username,
                                                   self.password)
        self.myHTMLParser = HTTPHandler.HTMLHandler()
        self.contentProcessor = ContentProcessor.ContentProcessor()