Reference API Roblox

Engine API

Website

Related

Reference API Roblox

TestService

Summary

This class is a service. It is a singleton that may be acquired with GetService.
Tags: [Service]

Member index 25

HistoryMember
553AutoRuns: bool
486Description: string
553ErrorCount: int
553ExecuteWithStudioRun: bool
553IsSleepAllowed: bool
553NumberOfPlayers: int
553SimulateSecondsLag: double
553TestCount: int
553Timeout: double
553WarnCount: int
573Check(condition: bool, description: string, source: Instance = Instance, line: int = 0): null
573Checkpoint(text: string, source: Instance = Instance, line: int = 0): null
573Done(): null
573Error(description: string, source: Instance = Instance, line: int = 0): null
573Fail(description: string, source: Instance = Instance, line: int = 0): null
573Message(text: string, source: Instance = Instance, line: int = 0): null
573Require(condition: bool, description: string, source: Instance = Instance, line: int = 0): null
573Run(): null
486ScopeTime(): Dictionary
573Warn(condition: bool, description: string, source: Instance = Instance, line: int = 0): null
462isFeatureEnabled(name: string): bool
462ServerCollectConditionalResult(condition: bool, text: string, script: Instance, line: int)
462ServerCollectResult(text: string, script: Instance, line: int)
inherited from Instance
553Archivable: bool
619Capabilities: SecurityCapabilities
553ClassName: string
553Name: string
553Parent: Instance
619Sandboxed: bool
616UniqueId: UniqueId
553className: string
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
486GetAttributes(): Dictionary
486GetChildren(): Objects
462GetDebugId(scopeLength: int = 4): string
486GetDescendants(): Array
486GetFullName(): string
462GetPropertyChangedSignal(property: string): RBXScriptSignal
576GetTags(): Array
576HasTag(tag: string): bool
486IsA(className: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
580IsPropertyModified(name: string): bool
573Remove(): null
576RemoveTag(tag: string): null
580ResetPropertyToDefault(name: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
553children(): Objects
553clone(): Instance
573destroy(): null
553findFirstChild(name: string, recursive: bool = false): Instance
553getChildren(): Objects
462isA(className: string): bool
553isDescendantOf(ancestor: Instance): bool
573remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462Changed(property: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
553childAdded(child: Instance)

Removed member index 4

HistoryMember
214DoCommand(name: string): void
214GetCommandNames(): Array
214IsCommandChecked(name: string): bool
214IsCommandEnabled(name: string): bool

History 112

Members 25

AutoRuns

TypeDefault
booltrue

History 4

Check

Parameters (4)Default
conditionbool
descriptionstring
sourceInstanceInstance
lineint0
Returns (1)
null

History 4

Checkpoint

Parameters (3)Default
textstring
sourceInstanceInstance
lineint0
Returns (1)
null

History 4

Description

TypeDefault
string

History 3

Done

Parameters (0)
No parameters.
Returns (1)
null

History 3

Error

Parameters (3)Default
descriptionstring
sourceInstanceInstance
lineint0
Returns (1)
null

History 3

ErrorCount

TypeDefault
int0
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 4

Tags: [ReadOnly, NotReplicated]

ExecuteWithStudioRun

TypeDefault
boolfalse

History 4

Fail

Parameters (3)Default
descriptionstring
sourceInstanceInstance
lineint0
Returns (1)
null

History 3

IsSleepAllowed

TypeDefault
booltrue

History 4

Message

Parameters (3)Default
textstring
sourceInstanceInstance
lineint0
Returns (1)
null

History 4

NumberOfPlayers

TypeDefault
int0

History 8

Require

Parameters (4)Default
conditionbool
descriptionstring
sourceInstanceInstance
lineint0
Returns (1)
null

History 4

Run

Parameters (0)
No parameters.
Returns (1)
null
This function yields. It will block the calling thread until completion.

History 4

  • 573 Change ReturnType of Run from void to null
  • 462 Change ThreadSafety of Run from to Unsafe
  • 151 Change Security of Run from LocalUserSecurity to PluginSecurity
  • 52 Add Run
Tags: [Yields]

ScopeTime

Parameters (0)
No parameters.
Returns (1)
Dictionary

History 1

ServerCollectConditionalResult

Parameters (4)
conditionbool
textstring
scriptInstance
lineint

History 6

ServerCollectResult

Parameters (3)
textstring
scriptInstance
lineint

History 6

SimulateSecondsLag

TypeDefault
double0

History 4

TestCount

TypeDefault
int0
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 4

Tags: [ReadOnly, NotReplicated]

Timeout

TypeDefault
double10

History 4

Warn

Parameters (4)Default
conditionbool
descriptionstring
sourceInstanceInstance
lineint0
Returns (1)
null

History 4

WarnCount

TypeDefault
int0
This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 4

Tags: [ReadOnly, NotReplicated]

isFeatureEnabled

Parameters (1)
namestring
Returns (1)
bool

History 2

Removed members 4

DoCommand

Parameters (1)
namestring
Returns (1)
void

History 2

GetCommandNames

Parameters (0)
No parameters.
Returns (1)
Array

History 2

IsCommandChecked

Parameters (1)
namestring
Returns (1)
bool

History 2

IsCommandEnabled

Parameters (1)
namestring
Returns (1)
bool

History 2

Settings