ArtTest

public class ArtTest
extends Object implements IRemoteTest, IShardableTest

java.lang.Object
   ↳ com.android.tradefed.testtype.ArtTest


สรุป

ช่อง

protected mExecutedTestNames

protected File mRunnerDir

protected int mShardCount

protected int mShardIndex

protected TestInformation mTestInfo

protected mTests

เครื่องมือสร้างสาธารณะ

ArtTest()

เมธอดสาธารณะ

void run(TestInformation testInfo, ITestInvocationListener listener)

เรียกใช้การทดสอบและรายงานผลลัพธ์ไปยัง Listener

split(int shardCount)

เวอร์ชันอื่นของ split() ซึ่งระบุ shardCount ที่พยายามเรียกใช้ด้วย

ช่อง

mExecutedTestNames

protected  mExecutedTestNames

mRunnerDir

protected File mRunnerDir

mShardCount

protected int mShardCount

mShardIndex

protected int mShardIndex

mTestInfo

protected TestInformation mTestInfo

mTests

protected  mTests

เครื่องมือสร้างสาธารณะ

ArtTest

public ArtTest ()

เมธอดสาธารณะ

โฮมรัน

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

เรียกใช้การทดสอบและรายงานผลลัพธ์ไปยัง Listener

พารามิเตอร์
testInfo TestInformation: ออบเจ็กต์ TestInformation ที่มีข้อมูลที่เป็นประโยชน์ในการเรียกใช้ การทดสอบ

listener ITestInvocationListener: ITestInvocationListener ของผลการทดสอบ

การขว้าง
DeviceNotAvailableException

แยก

public  split (int shardCount)

เวอร์ชันอื่นของ split() ซึ่งระบุ shardCount ที่พยายามเรียกใช้ด้วย ซึ่งจะมีประโยชน์สำหรับโปรแกรมเรียกใช้การทดสอบบางรายการที่บางครั้งไม่สามารถตัดสินใจได้โดยพลการ

พารามิเตอร์
shardCount int: จำนวนชาร์ดที่พยายาม

คิกรีเทิร์น
ชุดการทดสอบย่อยที่จะดำเนินการแยกกัน หรือ null หากการทดสอบ ยังไม่สามารถแยกส่วนได้ในขณะนี้