You can extend the proxy methods that are listed in Table 1:
| Java | .Net |
|---|---|
| String getTestObjectClassName() | String GetTestObjectClassName() |
The GetTestObjectClassName() returns the canonical name of the TestObject that needs to be mapped for a proxy. The TestObject can be either a new or existing TestObject.
The following Java™ sample returns the canonical name of the TestObject as TOGGLEGUITESTOBJECT_CLASSNAME:
import com.rational.test.ft.domain.*;
public class someProxy extends baseProxy
{
.
.
public String getTestObjectClassName()
{
return ProxyTestObject.TOGGLEGUITESTOBJECT_CLASSNAME;
}
.
.
}
The following .Net sample returns the canonical name of the TestObject as TOGGLEGUITESTOBJECT_CLASSNAME:
using Rational.Test.Ft.Domain;
public class AnyProxy:BaseProxy
{
.
.
.
public override String GetTestObjectClassName()
{
return ProxyTestObject.TOGGLEGUITESTOBJECT_CLASSNAME;
}
.
.
}