IStrictShardableTest

public interface IStrictShardableTest
implements IRemoteTest

com.android.tradefed.testtype.IStrictShardableTest


A IRemoteTest that can be sharded into separately executable sub-tests. The splitting into sub-tests is expected to be deterministic and each sub-test should be independent in order to allow for execution of different shards on different hosts.

Summary

Public methods

abstract IRemoteTest getTestShard(int shardCount, int shardIndex)

Returns a IRemoteTest for a single shard.

Public methods

getTestShard

public abstract IRemoteTest getTestShard (int shardCount, 
                int shardIndex)

Returns a IRemoteTest for a single shard. This must be deterministic and always return the same IRemoteTest for the same input.

Parameters
shardCount int: the number of total shards

shardIndex int: the index of a test shard to return. The value is in range [0, shardCount).

Returns
IRemoteTest a IRemoteTest