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