QapJava.
Returns a reference to a 4Test object that is used to invoke the function InvokeJava in a 4Test script. This function must be called in Java. The Java class can then use this reference to manipulate the 4Test object.
objRef = QapJava.getObject();
Variable | Description |
---|---|
objRef | The returned object reference or null (if not successful). OBJECT. |
QapJava.getObject returns a reference to the 4Test object that is used to invoke the function InvokeJava in your 4Test script.
If getObject returns the object reference, your Java class must indicate the successful outcome to 4Test by calling QapJava.success.
If getObject fails to get the object reference, it returns null. Your Java class must indicate the failed outcome to 4Test by calling QapJava.failure.
import segue.qapjava.QapJava; ... OBJECT objRef; ... objRef = QapJava.getObject(); if (objRef == null) { QapJava.failure; return; } ... QapJava.success; ...