TestsPoolPoller

public final class TestsPoolPoller
extends Object implements IRemoteTest, IConfigurationReceiver, ISystemStatusCheckerReceiver, IMetricCollectorReceiver

java.lang.Object
   ↳ com.android.tradefed.invoker.shard.TestsPoolPoller


Trình bao bọc kiểm thử cho phép thực thi tất cả các kiểm thử của một nhóm kiểm thử. Các chương trình kiểm thử có thể được chia sẻ bằng một TestsPoolPoller khác, vì vậy, bạn cần phải đồng bộ hoá.

VIỆC CẦN LÀM: Thêm tính năng xử lý cho mô-đun/kiểm thử mã thông báo.

Tóm tắt

Hàm khởi tạo công khai

TestsPoolPoller( tests, CountDownLatch tracker)

Hàm khởi tạo cung cấp nhóm IRemoteTest.

TestsPoolPoller( tests, tokenTests, CountDownLatch tracker)

Phương thức công khai

void run(TestInformation info, ITestInvocationListener listener)

void setConfiguration(IConfiguration configuration)

Chèn IConfiguration đang sử dụng.

void setLogRegistry(ILogRegistry registry)
void setMetricCollectors( collectors)

Đặt danh sách IMetricCollector được xác định cho lần chạy kiểm thử.

void setSystemStatusChecker( systemCheckers)

Đặt ISystemStatusChecker từ cấu hình cho kiểm thử.

Hàm khởi tạo công khai

TestsPoolPoller

public TestsPoolPoller ( tests, 
                CountDownLatch tracker)

Hàm khởi tạo cung cấp nhóm IRemoteTest.

Tham số
tests : Vùng chứa tất cả các bài kiểm thử của IRemoteTest.

tracker CountDownLatch: một ERROR(/CountDownLatch) được chia sẻ để lấy số lượng trình kiểm tra đang chạy.

TestsPoolPoller

public TestsPoolPoller ( tests, 
                 tokenTests, 
                CountDownLatch tracker)

Tham số
tests

tokenTests

tracker CountDownLatch

Phương thức công khai

chạy

public void run (TestInformation info, 
                ITestInvocationListener listener)

Tham số
info TestInformation

listener ITestInvocationListener

Gửi
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Chèn IConfiguration đang sử dụng.

Tham số
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

Tham số
registry ILogRegistry

setMetricCollectors

public void setMetricCollectors ( collectors)

Đặt danh sách IMetricCollector được xác định cho lần chạy kiểm thử.

Tham số
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

Đặt ISystemStatusChecker từ cấu hình cho kiểm thử.

Tham số
systemCheckers