배우기
엔진 클래스
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")
-- 'example' 메시지를 전송합니다.
TestService:Message("example")

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'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.