Call Command

Description:

This command calls a subroutine from within a Script.

Format:

Call subroutineName(parameters);

Parameters:

subroutineName

The name of the called subroutine.

parameters

The subroutine parameters, comma-separated.

Example:

string szFirstName;
string szLastName;
integer iID;

subroutine MySubroutine()
    log "in MySubroutine";
endsubroutine

subroutine LogNameAndId(szFirstName, szLastName, iID)
    log "Hello " + szFirstName + szLastName + ", your ID is: " + ToString(iID);
endsubroutine

BEGIN

Call MySubroutine();
Call LogNameAndId("John", "Smith", 12);

Output:

in MySubroutine
Hello John Smith, your ID is: 12





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap