学ぶ
エンジンクラス
TestService
サービス

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。


概要
方法
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():()
非推奨
TakeSnapshot(snapshotname: string,source: Instance):()
Warn(condition: boolean,description: string,source: Instance,line: number):()
継承されたメンバー

APIリファレンス
プロパティ
AutoRuns
並列読み取り
TestService.AutoRuns:boolean

Description
並列読み取り
TestService.Description:string

ErrorCount
読み取り専用
複製されていません
並列読み取り
TestService.ErrorCount:number

ExecuteWithStudioRun
並列読み取り
TestService.ExecuteWithStudioRun:boolean

Is30FpsThrottleEnabled
非推奨

IsPhysicsEnvironmentalThrottled
並列読み取り
TestService.IsPhysicsEnvironmentalThrottled:boolean

IsSleepAllowed
並列読み取り
TestService.IsSleepAllowed:boolean

NumberOfPlayers
並列読み取り
TestService.NumberOfPlayers:number

SimulateSecondsLag
並列読み取り
TestService.SimulateSecondsLag:number

TestCount
読み取り専用
複製されていません
並列読み取り
TestService.TestCount:number

ThrottlePhysicsToRealtime
並列読み取り
TestService.ThrottlePhysicsToRealtime:boolean

Timeout
並列読み取り
TestService.Timeout:number

WarnCount
読み取り専用
複製されていません
並列読み取り
TestService.WarnCount:number

方法
Check
TestService:Check(
condition:boolean, description:string, source:Instance, line:number
):()
パラメータ
condition:boolean
description:string
source:Instance
既定値: "nil"
line:number
既定値: 0
戻り値
()
コードサンプル
テストサービス:チェック
local TestService = game:GetService("TestService")
TestService:Check(false, "example")

Checkpoint
TestService:Checkpoint(
text:string, source:Instance, line:number
):()
パラメータ
text:string
source:Instance
既定値: "nil"
line:number
既定値: 0
戻り値
()
コードサンプル
テストサービス:チェックポイント
local TestService = game:GetService("TestService")
TestService:Checkpoint("例")

Done
TestService:Done():()
戻り値
()
コードサンプル
テストサービス:完了
local TestService = game:GetService("TestService")
TestService:Done()

Error
TestService:Error(
description:string, source:Instance, line:number
):()
パラメータ
description:string
source:Instance
既定値: "nil"
line:number
既定値: 0
戻り値
()
コードサンプル
テストサービス:エラー
local TestService = game:GetService("TestService")
TestService:Error("これはエラーです")

Fail
TestService:Fail(
description:string, source:Instance, line:number
):()
パラメータ
description:string
source:Instance
既定値: "nil"
line:number
既定値: 0
戻り値
()

isFeatureEnabled
TestService:isFeatureEnabled(name:string):boolean
パラメータ
name:string
戻り値

Message
TestService:Message(
text:string, source:Instance, line:number
):()
パラメータ
text:string
source:Instance
既定値: "nil"
line:number
既定値: 0
戻り値
()
コードサンプル
テストサービス:メッセージ
local TestService = game:GetService("TestService")
TestService:Message("例")

RegisterTest
TestService:RegisterTest(testOptions:Dictionary):TestCase
パラメータ
testOptions:Dictionary
戻り値
TestCase

Require
TestService:Require(
condition:boolean, description:string, source:Instance, line:number
):()
パラメータ
condition:boolean
description:string
source:Instance
既定値: "nil"
line:number
既定値: 0
戻り値
()
コードサンプル
テストサービス:要求
local TestService = game:GetService("TestService")
TestService:Require(false, "example")

Run
非推奨

RunAsync
イールド
プラグインのセキュリティ
TestService:RunAsync():()
戻り値
()

ScopeTime
TestService:ScopeTime():Dictionary
戻り値

TakeSnapshot
TestService:TakeSnapshot(
snapshotname:string, source:Instance
):()
パラメータ
snapshotname:string
source:Instance
既定値: "nil"
戻り値
()

Warn
TestService:Warn(
condition:boolean, description:string, source:Instance, line:number
):()
パラメータ
condition:boolean
description:string
source:Instance
既定値: "nil"
line:number
既定値: 0
戻り値
()
コードサンプル
テストサービス:警告
local TestService = game:GetService("TestService")
TestService:Warn(false, "このアクションは無効です")

イベント
ServerCollectConditionalResult
TestService.ServerCollectConditionalResult(
condition:boolean, text:string, script:Instance, line:number
パラメータ
condition:boolean
text:string
script:Instance
line:number

ServerCollectResult
TestService.ServerCollectResult(
text:string, script:Instance, line:number
パラメータ
text:string
script:Instance
line:number

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。