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 5AUTHOR = "krishnargv" 6NAME = "enterprise_LongevityTrackerServer.chromesign_3hr" 7PURPOSE = "Tracks Chrome OS performance over a 3hour period." 8TIME = "LONG" 9TEST_CATEGORY = "Performance" 10TEST_CLASS = "performance" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:kiosk_longevity" 13JOB_RETRIES = 3 14 15DOC = """ 16This test enrolls ChromeOS device into kiosk mode and captures device resource 17data including cpu and memory usage, and temperature data after the kiosk app 18auto launches. This test runs for 3 hours, the perf metrics are captured every 2 mins. 19""" 20 21 22def run_test(machine): 23 host = hosts.create_host(machine) 24 # Kiosk app attributes include app name, extension id and extension page 25 # See README.txt for perf_params format 26 perf_params = { 27 'perf_capture_iterations': 1, 28 'perf_capture_duration': 10800, 29 'sample_interval': 120, 30 'metric_interval': 1800, 31 'test_type': 'single_sample', 32 'kiosk_app_attributes': ('chromesign:' 33 'odjaaghiehpobimgdjjfofmablbaleem:' 34 'viewer.html') 35 } 36 37 job.run_test('enterprise_LongevityTrackerServer', 38 host=host, 39 perf_params=perf_params, 40 tag='chromesign_3hr') 41 42parallel_simple(run_test, machines)