จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ExecutableTargetTest
public
class
ExecutableTargetTest
extends ExecutableBaseTest
implements
IDeviceTest
คลาสย่อยโดยตรงที่ทราบ
KUnitModuleTest |
เครื่องมือทดสอบสำหรับเรียกใช้โมดูลทดสอบ KUnit ในอุปกรณ์
|
KernelTargetTest |
โปรแกรมทดสอบสำหรับไฟล์ปฏิบัติการที่ทำงานบนเป้าหมายและการแยกวิเคราะห์ผลลัพธ์ของการทดสอบเคอร์เนล
|
|
โปรแกรมทดสอบสำหรับไฟล์ปฏิบัติการที่ทำงานบนเป้าหมาย รันเนอร์ใช้ IDeviceTest
เนื่องจากไบนารีทำงานในอุปกรณ์
สรุป
ช่อง
DEVICE_LOST_ERROR
public static final String DEVICE_LOST_ERROR
ROOT_LOST_ERROR
public static final String ROOT_LOST_ERROR
ตัวสร้างแบบสาธารณะ
ExecutableTargetTest
public ExecutableTargetTest ()
เมธอดสาธารณะ
findBinary
public String findBinary (String binary)
ค้นหาไบนารีเพื่อเรียกใช้
พารามิเตอร์ |
binary |
String : เส้นทางของไฟล์ไบนารีหรือชื่อไฟล์ไบนารี |
คิกรีเทิร์น |
String |
เส้นทางไปยังไบนารี หรือค่าว่างหากไม่พบ |
getCollectTestsOnly
public boolean getCollectTestsOnly ()
getDevice
public ITestDevice getDevice ()
นำอุปกรณ์ที่จะทดสอบ
runBinary
public void runBinary (String binaryPath,
ITestInvocationListener listener,
TestDescription description)
เรียกใช้ไบนารีที่เส้นทางที่ระบุ
พารามิเตอร์ |
binaryPath |
String : เส้นทางของไบนารี |
listener |
ITestInvocationListener : ตำแหน่งที่ควรรายงานผลลัพธ์ |
description |
TestDescription : อยู่ระหว่างการทดสอบ |
setDevice
public void setDevice (ITestDevice device)
ใส่อุปกรณ์ทดสอบ
shouldAbortRun
public FailureDescription shouldAbortRun (TestDescription description)
ตรวจสอบว่าควรสิ้นสุด testRun ก่อนกำหนดหรือไม่
พารามิเตอร์ |
description |
TestDescription : อยู่ระหว่างการทดสอบ |
วิธีการที่มีการป้องกัน
doesRunBinaryGenerateTestResults
protected boolean doesRunBinaryGenerateTestResults ()
doesRunBinaryGenerateTestRuns
protected boolean doesRunBinaryGenerateTestRuns ()
getSkipBinaryCheck
protected boolean getSkipBinaryCheck ()
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-22 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-12-22 UTC"],[],[]]