1c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot/* 2c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * Copyright (C) 2011 The Android Open Source Project 3c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * 4c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * Licensed under the Apache License, Version 2.0 (the "License"); 5c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * you may not use this file except in compliance with the License. 6c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * You may obtain a copy of the License at 7c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * 8c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * http://www.apache.org/licenses/LICENSE-2.0 9c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * 10c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * Unless required by applicable law or agreed to in writing, software 11c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * distributed under the License is distributed on an "AS IS" BASIS, 12c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * See the License for the specific language governing permissions and 14c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * limitations under the License. 15c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot */ 16c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabotpackage com.android.cts.tradefed.result; 17c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot 18c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot/** 19c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * Interface for a single CTS result summary. 20c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot */ 21c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabotpublic interface ITestSummary { 22c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot 23c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot /** 24c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * @return the session id 25c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot */ 26e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public int getId(); 27c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot 28c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot /** 298243ca2ba76bbf7663db8bd92d88bc4ab4fc43aaBrett Chabot * @return the starting timestamp, also known as result directory name 30c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot */ 31e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public String getTimestamp(); 32c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot 33c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot /** 34c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * @return the num of not executed tests 35c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot */ 36e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public int getNumIncomplete(); 37c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot 38c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot /** 39c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * @return the number of failed tests 40c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot */ 41e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public int getNumFailed(); 42c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot 43c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot /** 44c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot * @return the number of passed tests 45c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot */ 46e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public int getNumPassed(); 47c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot 48c51a350bf01d6880e70b4381eaa82fec3c72975eBrett Chabot /** 49c51a350bf01d6880e70b4381eaa82fec3c72975eBrett Chabot * @return the test plan associated with result 50c51a350bf01d6880e70b4381eaa82fec3c72975eBrett Chabot */ 51e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public String getTestPlan(); 52c51a350bf01d6880e70b4381eaa82fec3c72975eBrett Chabot 538243ca2ba76bbf7663db8bd92d88bc4ab4fc43aaBrett Chabot /** 548243ca2ba76bbf7663db8bd92d88bc4ab4fc43aaBrett Chabot * Return the user-friendly displayed start time stored in result XML. 558243ca2ba76bbf7663db8bd92d88bc4ab4fc43aaBrett Chabot * <p/> 568243ca2ba76bbf7663db8bd92d88bc4ab4fc43aaBrett Chabot * Expected format: {@link TimeUtil#getTimestamp()} 578243ca2ba76bbf7663db8bd92d88bc4ab4fc43aaBrett Chabot */ 58e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public String getStartTime(); 598243ca2ba76bbf7663db8bd92d88bc4ab4fc43aaBrett Chabot 6041bef2476ef7dbf3fb573ddb1ed7aa468d52e392Brett Chabot /** 6141bef2476ef7dbf3fb573ddb1ed7aa468d52e392Brett Chabot * @return a comma separated list of device serials associated with result 6241bef2476ef7dbf3fb573ddb1ed7aa468d52e392Brett Chabot */ 63e00a2b8d92832236fc647d74acf21b7f4b35677bStuart Scott public String getDeviceSerials(); 6441bef2476ef7dbf3fb573ddb1ed7aa468d52e392Brett Chabot 65c289464a34080a3ea1ef9679c3873a6a818dcb66Brett Chabot} 66