Accessing Nested Java Objects

Sometimes you cannot retrieve 4Test-compatible information about a Java control with a single call to a 4Test method; instead, you need to call several nested methods, each returning an intermediate object to be passed to the next method. If any of these methods returns intermediate results that are not 4Test-compatible, you will not be able to perform these nested calls from 4Test.

You can use the following methods to access nested Java objects:

Method Agent What it does
InvokeJava Classic Agent This method allows you to invoke a Java class from 4Test for manipulating a nested Java object.
invokeMethods

Classic Agent

Open Agent

Allows you to perform nested calls inside Java, even if intermediate results are not 4Test-compatible.You can call invokeMethods for any Java object as long as you add the invokeMethods prototype inside the object's class declaration.