Home | History | Annotate | Download | only in enterprise_LongevityTrackerServer
      1 # Copyright 2016 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 AUTHOR = "krishnargv"
      6 NAME = "enterprise_LongevityTrackerServer.chromesign_20min"
      7 PURPOSE = "Tracks Chrome OS performance over a 20min period."
      8 TIME = "LONG"
      9 TEST_CATEGORY = "Performance"
     10 TEST_CLASS = "performance"
     11 TEST_TYPE = "server"
     12 ATTRIBUTES = "suite:longevity"
     13 DEPENDENCIES = "chromesign"
     14 JOB_RETRIES = 3
     15 
     16 DOC = """
     17 This test enrolls ChromeOS device into kiosk mode and captures device resource
     18 data including cpu and memory usage, and temperature data after the kiosk app
     19 auto launches. This test runs for 20 minutes, the perf metrics are captured every 60 seconds.
     20 """
     21 
     22 
     23 def run_test(machine):
     24     host = hosts.create_host(machine)
     25     # Kiosk app attributes include app name, extension id and extension page
     26     # See README.txt for perf_params format
     27     perf_params = {
     28         'perf_capture_iterations': 1,
     29         'perf_capture_duration': 1200,
     30         'sample_interval': 60,
     31         'metric_interval': 300,
     32         'test_type': 'single_sample',
     33         'kiosk_app_attributes': ('chromesign:'
     34                             'odjaaghiehpobimgdjjfofmablbaleem:'
     35                             'viewer.html')
     36     }
     37 
     38     job.run_test('enterprise_LongevityTrackerServer',
     39             host=host,
     40             perf_params=perf_params,
     41             tag='chromesign_20min')
     42 
     43 parallel_simple(run_test, machines)