DeviceCleaner
public class DeviceCleaner
extends BaseTargetPreparer
ทำการรีบูตหรือฟอร์แมตเป็นการล้างข้อมูลหลังการทดสอบ และเลือกปิดหน้าจอ
สรุป
คลาสที่ซ้อนกัน |
---|
enum | DeviceCleaner.CleanupAction |
enum | DeviceCleaner.PostCleanupAction |
วิธีการป้องกัน |
---|
void | clean ( ITestDevice device) ดำเนินการล้างข้อมูล ตามด้วยการดำเนินการหลังการล้างข้อมูล |
ผู้สร้างสาธารณะ
DeviceCleaner
public DeviceCleaner ()
วิธีการสาธารณะ
public void setUp (TestInformation testInfo)
พารามิเตอร์ |
---|
testInfo | TestInformation |
public void tearDown (TestInformation testInfo,
Throwable e)
พารามิเตอร์ |
---|
testInfo | TestInformation |
e | Throwable |
วิธีการป้องกัน
ทำความสะอาด
protected void clean (ITestDevice device)
ดำเนินการล้างข้อมูล ตามด้วยการดำเนินการหลังการล้างข้อมูล
พารามิเตอร์ |
---|
device | ITestDevice |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-08-15 UTC
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]