Thank you Alex.
Good to know that there is something that can be used for that case too.
The methods I call do not return values, and since Runner.CallMethod seems to be deprecated, I wanted to know what to use instead.
This is what I have now (DelphiScript), the argument ATests contains an array of strings with method names:
procedure RunTests(ATests: OleVariant);
var i: integer;
begin
try
try
// Set up
Log.AppendFolder('Foo');
// Run tests
for i := VarArrayLowBound(ATests, 1) to VarArrayHighBound(ATests, 1) do begin
if aqString.GetLength(ATests) > 0 then begin
Runner.CallMethod(ATests);
end;
end;
except
Log.Error(ExceptionMessage);
end;
finally
// Tear down
Log.PopLogFolder;
end;
end;
Is there a better way to call the methods than using "Runner.CallMethod(ATests);" ?
Thank you,
Johan