CasewareDocs
New in Caseware Cloud EngagementsSee what's new

Execute

Executes an audit test.

Compatibility

Available as of IDEA version 12.0

Syntax

Execute() As Object

Return Value

Execution result descriptor. It implements the following properties:

Properties
Property Typ Description
State Integer

Following values are available:

Running = 0

Failed = 1

Completed = 2

UserCancelled = 3

Message String In case of failure (State == 1) contains error message.
User String Name of user on whose behalf the execution performs.

Example

Sub Main()
Dim ac As Object
Dim atExecutor As Object
Set ac = CreateObject("SmartAnalyzer.AutomationClient")
atId = "f4d65220-77f1-5969-8943-59c7bd448460"
tblName = "Sample-Weblog"
Set atExecutor = SA.GetAtExecutor(atId, tblName)
canExecute = atExecutor.CanExecute
IF canExecute <> 0 THEN
MsgBox"Test is not ready for execution; reason: " & canExecute & ", quit"
Exit Sub
END IF
MsgBox"Test is ready for execution"
Set result = atExecutor.Execute
MsgBox"Execution result: " & result.State
End Sub