Share this page

# lr.get_object

Informational Functions

Captures a Java CORBA object and dumps it to a data file. (CORBA only)

    Object lr.get_object( String type, int file_count );

## Arguments

Name | Comments
--- | ---
type | The full class name of the object to capture.
file_count | the data file containing the object status.

The lr.get_object method captures a Java CORBA object and dumps it to a data file. This method is generated automatically by VuGen for CORBA objects that could not be correlated or created during recording. VuGen captures the full status of the object and dumps it into a data file under the Vuser directory. The file is called undefbyteX.dat, where the X is the index of the current object. During test run, the object is recreated with its original status using the stored dat file.

This function is not programmable. It is generated by VuGen during recording and automatically associated with the applicable binary files.

## Return Values

This method returns an object.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, the lr.get_object method retrieves the properties for the object myLimpopo.DateB and saves them in the undefbyte3.dat file. The created object, dateb, is used in the next statement.

Copy code

    dateb = (myLimpopo.DateB)lr.get_object("myLimpopo.DateB", 3);
    hipopotamus.setBirthday(_dateb);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: