GetInArgCount Function

Class

QapJava.

Action

Returns the number of arguments passed to the InvokeJava method from 4Test. This method must be called in Java. The Java class can retrieve each argument by calling QapJava.getInArg.

Syntax

iArgCnt = QapJava.getInArgCount();
Variable Description
iArgCnt The number of arguments passed to InvokeJava from 4Test. INTEGER.

Notes

QapJava.getInArgCount returns the number of arguments passed to the InvokeJava method from 4Test. It can optionally return the first or second argument passed to InvokeJava from 4Test.

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);
}
...