Beispiel #1
0
def _log_device(device_name):
    session_device_summary = session_log.device_summaries.get(device_name)

    if session_device_summary is None:
        session_device_summary = SessionDeviceSummary()
        session_device_summary.device_name = device_name

    session_log.device_summaries.update({device_name: session_device_summary})
Beispiel #2
0
def log_device_launch_start_time(device_name):
    _log_device(device_name)
    session_device_summary = session_log.device_summaries.get(device_name)

    if session_device_summary is None:
        session_device_summary = SessionDeviceSummary()

    if session_device_summary.launch_start_time is None:
        session_device_summary.launch_start_time = time.time()

    session_log.device_summaries.update({device_name: session_device_summary})
Beispiel #3
0
def log_test_apk_install_start_time_on_device(device_name):
    _log_device(device_name)
    session_device_summary = session_log.device_summaries.get(device_name)

    if session_device_summary is None:
        session_device_summary = SessionDeviceSummary()

    if session_device_summary.test_apk_install_start_time is None:
        session_device_summary.test_apk_install_start_time = time.time()

    session_log.device_summaries.update({device_name: session_device_summary})
Beispiel #4
0
def log_device_creation_end_time(device_name):
    _log_device(device_name)
    session_device_summary = session_log.device_summaries.get(device_name)

    if session_device_summary is None:
        session_device_summary = SessionDeviceSummary()

    if session_device_summary.creation_end_time is None:
        session_device_summary.creation_end_time = time.time()
        _update_device_creation_time(session_device_summary)

    session_log.device_summaries.update({device_name: session_device_summary})
Beispiel #5
0
def log_app_apk_install_end_time_on_device(device_name):
    _log_device(device_name)
    session_device_summary = session_log.device_summaries.get(device_name)

    if session_device_summary is None:
        session_device_summary = SessionDeviceSummary()

    if session_device_summary.apk_install_end_time is None:
        session_device_summary.apk_install_end_time = time.time()
        _update_app_apk_install_time_on_device(session_device_summary)

    session_log.device_summaries.update({device_name: session_device_summary})