• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_20min"
7PURPOSE = "Tracks Chrome OS performance over a 20min period."
8TIME = "LONG"
9TEST_CATEGORY = "Performance"
10TEST_CLASS = "performance"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:longevity"
13DEPENDENCIES = "chromesign"
14JOB_RETRIES = 3
15
16DOC = """
17This test enrolls ChromeOS device into kiosk mode and captures device resource
18data including cpu and memory usage, and temperature data after the kiosk app
19auto launches. This test runs for 20 minutes, the perf metrics are captured every 60 seconds.
20"""
21
22
23def 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
43parallel_simple(run_test, machines)