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 5from autotest_lib.server import utils 6from autotest_lib.client.common_lib.cros.cfm.usb import cfm_usb_devices 7 8AUTHOR = "denniswu@chromium.org" 9NAME = "enterprise_CFM_PTZStress.PTZPro2" 10TIME = "SHORT" 11TEST_CATEGORY = "Functional" 12TEST_CLASS = "enterprise" 13TEST_TYPE = "server" 14ATTRIBUTES = "suite:hotrod" 15DEPENDENCIES = "meet_app, ptzpro2" 16JOB_RETRIES = 1 17 18DOC = """ 19Test scenario: 20 1. Enroll the device and start a meeting. 21 2. During meeting PTZ the camera according to the control file. 22Verify the following functionalities: 23 1. Camera is enumerated. 24 2. Verify PTZ signals are sent to the camera. 25""" 26 27args_dict = utils.args_to_dict(args) 28 29test_config = { 30 'camera': cfm_usb_devices.PTZ_PRO_2_CAMERA, 31 'repeat': 10, 32 'motion_duration': 2, 33 'usb_trace_path': '/tmp/camera.mon.out' 34} 35 36ptz_motion_sequence = ['panLeft', 'panStop', 'tiltUp', 'tiltStop', 'zoomIn', 'resetPosition'] 37 38def run_test(machine): 39 host = hosts.create_host(machine) 40 job.run_test('enterprise_CFM_PTZStress', 41 host=host, 42 test_config=test_config, 43 ptz_motion_sequence=ptz_motion_sequence) 44 45parallel_simple(run_test, machines) 46