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 = "harpreet"
6NAME = "enterprise_LongevityTrackerServer.riseplayer"
7PURPOSE = "Tracks Chrome OS performance over long periods."
8TIME = "LONG"
9TEST_CATEGORY = "Performance"
10TEST_CLASS = "performance"
11TEST_TYPE = "server"
12ATTRIBUTES = "suite:kiosk_longevity"
13
14DOC = """
15This test enrolls ChromeOS device into kiosk mode and captures device resource
16data including cpu and memory usage, and temperature data after the kiosk app
17auto launches.
18"""
19
20
21def run_test(machine):
22    host = hosts.create_host(machine)
23    # Kiosk app attributes include app name, extension id and extension page
24    # See README.txt for perf_params format
25    perf_params = {
26    	'perf_capture_iterations': 1,
27		'perf_capture_duration': 1200,
28		'sample_interval': 60,
29		'metric_interval': 300,
30		'test_type': 'single_sample',
31		'kiosk_app_attributes': ('riseplayer:'
32				'mfpgpdablffhbfofnhlpgmokokbahooi:'
33				'index.html')
34    }
35
36    job.run_test('enterprise_LongevityTrackerServer',
37    		host=host,
38    		perf_params=perf_params,
39            tag='riseplayer')
40
41
42parallel_simple(run_test, machines)
43