Learn
Motor Sınıfı
TestService
Hizmet

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Yöntemler
Check(condition: boolean,description: string,source: Instance,line: number):()
Checkpoint(text: string,source: Instance,line: number):()
Done():()
Error(description: string,source: Instance,line: number):()
Fail(description: string,source: Instance,line: number):()
Message(text: string,source: Instance,line: number):()
RegisterTest(testOptions: Dictionary):TestCase
Require(condition: boolean,description: string,source: Instance,line: number):()
Run():()
Artık Kullanılmayan
TakeSnapshot(snapshotname: string,source: Instance):()
Warn(condition: boolean,description: string,source: Instance,line: number):()
Devralınan Üyeler

API Referansı
Özellikler
AutoRuns
Paralel oku
TestService.AutoRuns:boolean

Description
Paralel oku
TestService.Description:string

ErrorCount
Salt Okunur
Çoğaltılmamış
Paralel oku
TestService.ErrorCount:number

ExecuteWithStudioRun
Paralel oku
TestService.ExecuteWithStudioRun:boolean

Is30FpsThrottleEnabled
Artık Kullanılmayan

IsPhysicsEnvironmentalThrottled
Paralel oku
TestService.IsPhysicsEnvironmentalThrottled:boolean

IsSleepAllowed
Paralel oku
TestService.IsSleepAllowed:boolean

NumberOfPlayers
Paralel oku
TestService.NumberOfPlayers:number

SimulateSecondsLag
Paralel oku
TestService.SimulateSecondsLag:number

TestCount
Salt Okunur
Çoğaltılmamış
Paralel oku
TestService.TestCount:number

ThrottlePhysicsToRealtime
Paralel oku
TestService.ThrottlePhysicsToRealtime:boolean

Timeout
Paralel oku
TestService.Timeout:number

WarnCount
Salt Okunur
Çoğaltılmamış
Paralel oku
TestService.WarnCount:number

Yöntemler
Check
TestService:Check(
condition:boolean, description:string, source:Instance, line:number
):()
Parametreler
condition:boolean
description:string
source:Instance
Varsayılan değer: "nil"
line:number
Varsayılan değer: 0
Dönüşler
()
Kod Örnekleri
TestService:Kontrol
local TestService = game:GetService("TestService")
TestService:Check(false, "örnek")

Checkpoint
TestService:Checkpoint(
text:string, source:Instance, line:number
):()
Parametreler
text:string
source:Instance
Varsayılan değer: "nil"
line:number
Varsayılan değer: 0
Dönüşler
()
Kod Örnekleri
TestService:Kontrol Noktası
local TestService = game:GetService("TestService")
TestService:Checkpoint("örnek")

Done
TestService:Done():()
Dönüşler
()
Kod Örnekleri
TestService:Tamamlandı
local TestService = game:GetService("TestService")
TestService:Done()

Error
TestService:Error(
description:string, source:Instance, line:number
):()
Parametreler
description:string
source:Instance
Varsayılan değer: "nil"
line:number
Varsayılan değer: 0
Dönüşler
()
Kod Örnekleri
TestService:Hata
local TestService = game:GetService("TestService")
TestService:Error("bu bir hata")

Fail
TestService:Fail(
description:string, source:Instance, line:number
):()
Parametreler
description:string
source:Instance
Varsayılan değer: "nil"
line:number
Varsayılan değer: 0
Dönüşler
()

isFeatureEnabled
TestService:isFeatureEnabled(name:string):boolean
Parametreler
name:string
Dönüşler

Message
TestService:Message(
text:string, source:Instance, line:number
):()
Parametreler
text:string
source:Instance
Varsayılan değer: "nil"
line:number
Varsayılan değer: 0
Dönüşler
()
Kod Örnekleri
TestServisi:Mesaj
local TestService = game:GetService("TestService")
TestService:Message("örnek")

RegisterTest
TestService:RegisterTest(testOptions:Dictionary):TestCase
Parametreler
testOptions:Dictionary
Dönüşler
TestCase

Require
TestService:Require(
condition:boolean, description:string, source:Instance, line:number
):()
Parametreler
condition:boolean
description:string
source:Instance
Varsayılan değer: "nil"
line:number
Varsayılan değer: 0
Dönüşler
()
Kod Örnekleri
TestService:Gerekli
local TestService = game:GetService("TestService")
TestService:Require(false, "örnek")

Run
Artık Kullanılmayan

RunAsync
Bekletir
Eklenti Güvenliği
TestService:RunAsync():()
Dönüşler
()

ScopeTime
TestService:ScopeTime():Dictionary
Dönüşler

TakeSnapshot
TestService:TakeSnapshot(
snapshotname:string, source:Instance
):()
Parametreler
snapshotname:string
source:Instance
Varsayılan değer: "nil"
Dönüşler
()

Warn
TestService:Warn(
condition:boolean, description:string, source:Instance, line:number
):()
Parametreler
condition:boolean
description:string
source:Instance
Varsayılan değer: "nil"
line:number
Varsayılan değer: 0
Dönüşler
()
Kod Örnekleri
TestServisi:Uyar
local TestService = game:GetService("TestService")
TestService:Warn(false, "bu işlem geçersizdir")

Olaylar
ServerCollectConditionalResult
TestService.ServerCollectConditionalResult(
condition:boolean, text:string, script:Instance, line:number
Parametreler
condition:boolean
text:string
script:Instance
line:number

ServerCollectResult
TestService.ServerCollectResult(
text:string, script:Instance, line:number
Parametreler
text:string
script:Instance
line:number

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.