Functions by Programming Task

The 4Test functions in the following table are organized by programming task.

Note: Functions may be listed under more than one programming task.
Task Functions
Agent information GetAgentType
Application state control

GetAppState

GetAppStateList

SetAppState

SetBaseState

SetBrowserType

SetDefaultBrowserType

SetGuiType

Array manipulation

ArrayFind

ArrayResize

ArraySize

ArraySort

Character and string conversions

Asc

Chr

Lower

PrintfToString

Str

Upper

Val

Data type manipulation

FieldsOfRecord

IsArray

IsList

IsNull

IsSet

TypeOf

ValuesOfEnum

Database

DB_ColumnPrivileges

DB_Columns

DB_Connect

DB_Disconnect

DB_ExecuteSql

DB_FetchNext

DB_FetchPrev

DB_FinishSql

DB_ForeignKeys

DB_GetConnectAttr

DB_PrimaryKeys

DB_ProcedureColumns

DB_Procedures

DB_SetConnectAttr

DB_SpecialColumns

DB_Statistics

DB_TablePrivileges

DB_Tables

Data driven DefaultRunDataDrivenTestCase
Date and time manipulation

AddDateTime

DateStr

DiffDateTime

ElapsedStr

FormatDateTime

GetDateTime

GetDateTimePart

MakeDateTime

MakeTime

Sleep

TimeStr

TransformDate

UseY2KRules

Distributed processing

Connect

Disconnect

DisconnectAll

GetConnected

GetMachine

GetMachineData

GetMachineName

IsConnected

SetMachine

SetMachineData

SetMultiAppStates

SetMultiBaseStates

SetUpMachine

Distributed Results Logging

GetTestsFailedCount

GetTestsPassedCount

GetTotalElapsedStr

GetTestPlanName

GetTotalWarningCount

GetTotalErrorCount

IsTestPlan

Exception handling

ExceptCalls

ExceptClear

ExceptData

ExceptLog

ExceptNum

ExceptPrint

File manipulation

The File functions listed in the left hand column have equivalent SYS_functions listed to the right that work with files on a target machine:

FileClose SYS_FileClose

FileOpen SYS_FileOpen

FileReadLine SYS_FileReadLine

FileReadValue SYS_FileReadValue

FileSetPointer SYS_FileSetPointer

FileWriteLine SYS_FileWriteLine

FileWriteValue SYS_FileWriteValue

IniFileClose SYS_IniFileClose

IniFileGetValue SYS_IniFileGetValue

IniFileOpen SYS_IniFileOpen

IniFileSetValue SYS_IniFileSetValue

IsFileRemote

Java functions

CaptureAllClasses

CaptureObjectClass

List manipulation

ListAppend

ListCount

ListDelete

ListFind

ListInsert

ListMerge

ListPrint

ListRead

ListSort

ListWrite

SYS_ListRead

SYS_ListWrite

Locale functions

GetLocale

SetLocale

SYS_GetLocale

Numeric operations

Abs

Max

Min

SetPrecision

Sqrt

Operating system calls

HOST_GetEnv

SYS_CompareBinary

SYS_CompareBitmap

SYS_CompareText

SYS_CopyFile

SYS_DirExists

SYS_Execute

SYS_FileExists

SYS_GetBitmapCRC

SYS_GetDir

SYS_GetDirContents

SYS_GetDrive

SYS_GetEnv

SYS_GetExecutableDir

SYS_GetFileContents

SYS_GetFreeDiskSpace

SYS_GetFreeMemory

SYS_GetMemoryInfo

SYS_GetName

SYS_GetRegistryValue

SYS_GetVersion

SYS_MakeDir

SYS_MoveFile

SYS_RemoveDir

SYS_RemoveFile

SYS_SetDir

SYS_SetDrive

SYS_SetEnv

SYS_SetRegistry

SYS_SetRegistryValue

SYS_VerifyText

Password encryption

Decrypt

Encrypt

Product version

GetPartnerBuildNum

GetPartnerVersion

SYS_GetAgentVersion

Random value operations

RandInt

RandPick

RandReal

RandSeed

RandStr

Registry operations

Reg_CreateKey

Reg_CreateValue

Reg_DeleteKey

Reg_DeleteKeysAll

Reg_DeleteValue

Reg_EnumKeys

Reg_EnumKeysAll

Reg_EnumValues

Reg_EnumValuesAll

SYS_GetRegistryKeyNames

SYS_GetRegistryValue

SYS_SetRegistryValue

Results file operations

AppError

FuzzyVerify

LogError

LogVerifyError

LogWarning

Print

Printf

PrintfToString

RaiseError

ResCloseList

ResExport

ResExportOnClose

ResExtract

ResOpenList

ResPrintList

SetAgentTrace

Verify

Runtime Status messages

PushTestInfo

PopTestInfo

SetTestStatus

Script information

GetArgs

GetBrowserType

GetDefaultBrowserType

GetExecutableDir

GetGuiName

GetGuiType

GetGuiVersion

GetProgramDir

GetProgramName

GetRel1ClassLibrary

GetStartupDir

GetTestCaseArg

GetTestCaseErrorCount

GetTestCaseName

GetTestCaseState

GetTestCaseWarningCount

Semaphores

Acquire

GetThreadData

GetThreadId

Release

SetThreadData

Set manipulation

IsInSet

SetAddMember

SetComplement

SetCount

SetDomain

SetExclude

SetIntersection

SetRemoveMember

SetUnion

Status

PopTestInfo

PushTestInfo

SetTestStatus

String manipulation

GetField

IsAlpha

IsDigit

IsSpace

Left

Len

Ltrim

MatchStr

Replicate

Right

Rtrim

Space

StrPos

StrTran

Stuff

SubStr

Tabs

Trim

Timers, time/date information

TimerCreate

TimerDestroy

TimerGetHandle

TimerGetName

TimerPause

TimerResume

TimerStart

TimerState

TimerStop

TimerStr

TimerValue

Web browser

GetBrowserType

GetBrowserTypeName

GetDefaultBrowserType

RunLinkTester

SetBrowserType

SetDefaultBrowserType

Window information

ClassOf

FindWinClass

FindWindow

WindowChildren

WindowGetAttrList

WindowIsDefined

WindowIsOfClass

WindowName

WindowParent

WindowTag

Year 2000 date transformations

ParseDateFormat

TransformDate

UseY2KRules