จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ConsoleResultReporter
public
class
ConsoleResultReporter
extends TestResultListener
implements
ILogSaverListener,
ITestInvocationListener
รายงานผลลัพธ์เพื่อพิมพ์ผลการทดสอบไปยังคอนโซล
พิมพ์การทำการทดสอบแต่ละครั้ง กรอบการทดสอบ และเมตริกการทดสอบ บันทึกการทดสอบ และตำแหน่งไฟล์ทดสอบ
สรุป
ช่างก่อสร้างสาธารณะ
ConsoleResultReporter
public ConsoleResultReporter ()
วิธีการสาธารณะ
สิ้นสุดการเรียกใช้
public void invocationEnded (long elapsedTime)
พารามิเตอร์ |
elapsedTime |
long |
เริ่มคำขอแล้ว
public void invocationStarted (IInvocationContext context)
พารามิเตอร์ |
context |
IInvocationContext |
การเชื่อมโยงบันทึก
public void logAssociation (String dataName,
LogFile logFile)
พารามิเตอร์ |
dataName |
String |
logFile |
LogFile |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
พารามิเตอร์ |
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
ผลการทดสอบ
public void testResult (TestDescription test,
TestResult result)
พารามิเตอร์ |
test |
TestDescription |
result |
TestResult |
สิ้นสุดการทดสอบแล้ว
public void testRunEnded (long elapsedTimeMillis,
metrics)
พารามิเตอร์ |
elapsedTimeMillis |
long |
metrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
พารามิเตอร์ |
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
พารามิเตอร์ |
errorMessage |
String |
เริ่มการทดสอบแล้ว
public void testRunStarted (String runName,
int testCount)
พารามิเตอร์ |
runName |
String |
testCount |
int |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-22 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":"อื่นๆ"
}]
{"lastModified": "\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15\u0e25\u0e48\u0e32\u0e2a\u0e38\u0e14 2024-08-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-08-22 UTC"]]