Пример #1
0
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
Пример #2
0
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
Пример #3
0
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
Пример #4
0
def generateReportID():
    return otime.timestamp() + '_' + randomStr(20)
Пример #5
0
def generateReportID():
    return otime.timestamp() + '_' + randomStr(20)