Engine Class
TestService
*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่
สรุป
คุณสมบัติ
วิธีการ
Checkpoint(text: string,source: Instance,line: number):() |
Done():() |
isFeatureEnabled(name: string):boolean |
RegisterTest(testOptions: Dictionary):TestCase |
Run():() |
RunAsync():() |
TakeSnapshot(snapshotname: string,source: Instance):() |
เหตุการณ์
ServerCollectConditionalResult(condition: boolean,text: string,script: Instance,line: number):RBXScriptSignal |
ServerCollectResult(text: string,script: Instance,line: number):RBXScriptSignal |
เอกสารอ้างอิงเกี่ยวกับ API
คุณสมบัติ
Is30FpsThrottleEnabled
วิธีการ
Check
ส่งค่ากลับ
()
ตัวอย่างโค้ด
TestService:ตรวจสอบ
local TestService = game:GetService("TestService")
TestService:Check(false, "ตัวอย่าง")Checkpoint
ส่งค่ากลับ
()
ตัวอย่างโค้ด
TestService:Checkpoint
local TestService = game:GetService("TestService")
-- แสดงข้อความที่จุดตรวจ
TestService:Checkpoint("example")Done
TestService:Done():()
ส่งค่ากลับ
()
ตัวอย่างโค้ด
TestService:เสร็จสิ้น
local TestService = game:GetService("TestService")
TestService:Done()Error
Fail
isFeatureEnabled
Message
RegisterTest
พารามิเตอร์
ส่งค่ากลับ
TestCase
Require
ส่งค่ากลับ
()
ตัวอย่างโค้ด
TestService:Require
local TestService = game:GetService("TestService")
TestService:Require(false, "ตัวอย่าง")Run
RunAsync
TestService:RunAsync():()
ส่งค่ากลับ
()
TakeSnapshot
Warn
ส่งค่ากลับ
()
ตัวอย่างโค้ด
TestService:Warn
local TestService = game:GetService("TestService")
TestService:Warn(false, "this action is invalid")เหตุการณ์
ServerCollectConditionalResult