예제 #1
0
                                else:
                                    alertNotFoundSet.add(alert)
                        if inplaceFlag != 0:
                            wf.write(line)
                    if inplaceFlag != 0:
                        wf.close()


#==main==================
wflog = open(output_filename, 'w', -1, encoding='utf-8')
teocommon.teoconsolefilelog(wflog, "Start time: " + str(datetime.now()) + '\n')
teocommon.teoconsolefilelog(wflog, "publichtml_dir = " + publichtml_dir + '\n')
teocommon.teoconsolefilelog(wflog,
                            "inplaceFlag = " + str(inplaceFlag) + "\n\n")

messageDict = Case00_commonJobs.addDataToDict('message_ko.properties')
run(wflog, publichtml_dir, inplaceFlag)

if alertNotFoundSet:
    teocommon.teoconsolefilelog(wflog, '\nalertNotFoundSet:\n')
    for i, alert in enumerate(alertNotFoundSet):
        teocommon.teoconsolefilelog(wflog,
                                    str(i + 1) + '\t@=@>' + alert + '\n')

if inplaceFlag:
    print('\nINPLACE APPLIED!!!')
teocommon.teoconsolefilelog(
    wflog, '\nalertTotalCount = ' + str(alertTotalCount) + '\n')
teocommon.teoconsolefilelog(wflog, 'justChanged = ' + str(justChanged) + '\n')

teocommon.teoconsolefilelog(wflog, "\nEnd time: " + str(datetime.now()) + '\n')
                                if keyFound != '':
                                    pass
                                else:
                                    alertNotFoundSet.add(alert)
                        if inplaceFlag != 0:
                            wf.write(line)
                    if inplaceFlag != 0:
                        wf.close()

#==main==================
wflog = open(output_filename, 'w', -1, encoding='utf-8')
teocommon.teoconsolefilelog(wflog,"Start time: " + str(datetime.now()) + '\n')
teocommon.teoconsolefilelog(wflog,"publichtml_dir = " + publichtml_dir + '\n')
teocommon.teoconsolefilelog(wflog,"inplaceFlag = " + str(inplaceFlag) + "\n\n")

messageDict = Case00_commonJobs.addDataToDict('message_ko.properties')
run(wflog, publichtml_dir, inplaceFlag)

if alertNotFoundSet:
    teocommon.teoconsolefilelog(wflog,'\nalertNotFoundSet:\n')
    for i, alert in enumerate(alertNotFoundSet):
        teocommon.teoconsolefilelog(wflog,str(i+1)+'\t@=@>'+alert+'\n')

if inplaceFlag:
    print('\nINPLACE APPLIED!!!')
teocommon.teoconsolefilelog(wflog,'\nalertTotalCount = ' + str(alertTotalCount)+'\n')
teocommon.teoconsolefilelog(wflog,'justChanged = ' + str(justChanged)+'\n')

teocommon.teoconsolefilelog(wflog,"\nEnd time: " + str(datetime.now())+'\n')
wflog.close()
                                        checkFlag = 2;
                                        titleCannotFound += 1
                                        titleNotFoundSet.add(originalTitle)
                                        print ('\t\tCANNOTFOUND '+ file+' title='+title )
                                    elif checkFlag == 9:
                                        break
                        if inplaceFlag != 0:
                            wf.write(line)
                    if inplaceFlag != 0:
                        wf.close()

#==main==================
print ("Start time: " + str(datetime.now()))
print ("inplaceFlag = " + str(inplaceFlag) + "\n")

labelDict = Case00_commonJobs.addDataToDict('label_ko.properties')
run(publichtml_dir, inplaceFlag)
print('\nTotal Title Count = ' + str(titleCount))
print('showLabelFound = ' + str(showLabelFound))
print('Title Changed = ' + str(titleChanged))
print('Title CANNOTFOUND = ' + str(titleCannotFound))
for i, (jsp, lineNo) in enumerate(zip(jspNames, jspLines)):
    print('  '+str(i+1)+'\t'+jsp+'\tat '+str(lineNo)+' : '+jspValues[i]+'-->'+jspKeys[i])
for j, (screen, level) in enumerate(zip(checkFlagScreens, checkFlagLevels)):
    print('    Special CheckFlagNo '+str(j+1)+': '+screen+' with checkFlag=' + str(level))
    
if inplaceFlag != 0:
    print('\n INPLACE APPLIED!!!')
print('=================')
for value in titleNotFoundSet:
    print(value)