GetInArg Function

Class

QapJava.

Action

Returns one of the arguments passed to InvokeJava from 4Test. Takes an index value to determine which argument to return. The index is zero-based.

Syntax

aArg = QapJava.getInArgCount(iIndex);
Variable Description
aArg The argument indicated by iIndex. OBJECT.
iIndex The argument to find, specified as the index number (0-based) of the argument in the list. INTEGER.

Example

import segue.qapjava.QapJava;
...
INTEGER iArgCnt;
...
iArgCnt = QapJava.getInArgCount();
if (iArgCnt > 0) {
 Boolean b = (Boolean)QapJava.getInArg(0);
 String s = (String)QapJava.getInArg(1);
}
...