public interface ITestObjectReference
TestObjectReference objects. These
include the mapped object reference, process reference, and remote proxy reference.TestObject.getObjectReference()| Modifier and Type | Method and Description |
|---|---|
ITestObjectReference |
getAnchor()
Returns an anchor object or
null |
com.rational.test.ft.object.map.SpyMappedTestObject |
getMappedTestObject()
Provide access to the TestObject related information.
|
com.rational.test.ft.sys.OSProcessInformation |
getProcess()
Provide access to the Process related information.
|
com.rational.test.ft.sys.RemoteProxyReference |
getRemoteProxyReference()
Provide access to the
RemoteProxyReference |
long |
getScriptCommandFlags()
Provide access to the script command flags
|
java.lang.Object |
getTarget()
Returns the target object of reference.
|
com.rational.test.ft.sys.TestContext.Reference |
getTestContextReference()
Provide access to the
TestContext.Reference |
boolean |
isBound()
Returns
true if the object is bound. |
boolean |
isDescribed()
Returns
true>if the object is described. |
boolean |
isProcess()
Returns
true if the object is a process-reference object. |
java.lang.Object getTarget()
this instance.
| ITestObjectReference instance | Return type |
|---|---|
| TOMappedObjectReference | SpyMappedTestObject |
| TOProcessReference | OSProcessInformation |
| TORemoteProxyReference | RemoteProxyReference |
| TODescribedObjectReference | null |
ITestObjectReference tof = classicsJava().getObjectReference();
Object target = tof.getTarget();
ITestObjectReference getAnchor()
null.ITestObjectReference objectITestObjectReference if this object is an instance of TOMappedObjectReference, otherwise null.
ITestObjectReference tof = classicsJava().getObjectReference();
Object anchor = tof.getAnchor();
boolean isBound()
true if the object is bound.true if the ITestObjectReference is boundTestObject need to be unregistered explicitly.
TestObject []to = classicsJava().find();
ITestObjectReference tof = to[0].getObjectReference();
boolean isBound = tof.isBound();
if(isBound)
to[0].unregister()
TestObject.unregister(),
TestObject.find()boolean isProcess()
true if the object is a process-reference object.true, if the object is process-reference objecttrue in case of ProcessTestObject,otherwise false
ProcessTestObject pto = classicsJava().getProcess();
ITestObjectReference tof = pto.getObjectReference();
boolean isProcess = tof.isProcess();
com.rational.test.ft.sys.TestContext.Reference getTestContextReference()
TestContext.ReferencetestContextReference for a bound object. Returns null if the object is not bound,
TestObject to = classicsJava().find();
ITestObjectReference tof = to.getObjectReference();
TestContext.Reference testContextRefence = tof.getTestContextReference();
com.rational.test.ft.sys.RemoteProxyReference getRemoteProxyReference()
RemoteProxyReferencethis is a Remote proxy reference, otherwise nullRemoteProxyReference if this is a remote proxy reference object;
if not, it returns null.
TestObject to = classicsJava().find();
ITestObjectReference tof = to.getObjectReference();
RemoteProxyReference rpf = tof.getRemoteProxyReference();
com.rational.test.ft.sys.OSProcessInformation getProcess()
null
ProcessTestObject pto = classicsJava().getProcess();
ITestObjectReference tof = pto.getObjectReference();
OSProcessInformation ospi = tof.getProcess();
com.rational.test.ft.object.map.SpyMappedTestObject getMappedTestObject()
null.
long getScriptCommandFlags()
ScriptCommandFlags.NO_FLAGSScriptCommandFlags
associated with the TestObject. If no flags are associated with this test object,
NO_FLAGS is returned.
TestObject may be ScriptCommandFlags.DISABLED or ScriptCommandFlags.NOT_SHOWING, that is, invisible when an
action is performed against it. Actions must be performed against the object when it is in the appropriate state. For example, you may want to wait
for an object to become ScriptCommandFlags.ENABLED before acting upon it.boolean isDescribed()
true>if the object is described.true if the proxy reference is described, false otherwisetrue if this is a described proxy reference object;
boolean isDescribed = classicsJava().getObjectReference().isDescribed();