def oreport_filenames(): """ returns the filenames for the pcap file and the yamloo report returns yamloo_filename, pcap_filename """ base_filename = "%s_"+otime.timestamp()+".%s" yamloo_filename = base_filename % ("report", "yamloo") pcap_filename = base_filename % ("packets", "pcap") return yamloo_filename, pcap_filename
def oreport_filenames(file_name): """ returns the filenames for the pcap file and the yamloo report returns yamloo_filename, pcap_filename """ test_name = '.'.join(file_name.split(".")[:-1]) base_filename = "%s_%s_"+otime.timestamp()+".%s" yamloo_filename = base_filename % (test_name, "report", "yamloo") pcap_filename = base_filename % (test_name, "packets", "pcap") return yamloo_filename, pcap_filename
def oreport_filenames(file_name): """ returns the filenames for the pcap file and the yamloo report returns yamloo_filename, pcap_filename """ test_name = '.'.join(file_name.split(".")[:-1]) base_filename = "%s_%s_" + otime.timestamp() + ".%s" yamloo_filename = base_filename % (test_name, "report", "yamloo") pcap_filename = base_filename % (test_name, "packets", "pcap") return yamloo_filename, pcap_filename
def generateReportID(): return otime.timestamp() + '_' + randomStr(20)