public class DomainTestObject extends TestObject
ignoreTheObjectState, ref
Constructor and Description |
---|
DomainTestObject(RegisteredObjectReference ror)
For internal use.
|
DomainTestObject(RemoteProxyReference rpr)
For internal use.
|
DomainTestObject(TestContext.Reference tcRef,
java.lang.String domainName)
For internal use.
|
DomainTestObject(TestObjectReference ref)
For internal use.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getImplementationName()
Returns the name of the domain implementation.
|
java.lang.Object |
getName()
Returns the name of the domain.
|
TestContext.Reference |
getTestContextReference()
Returns the
testContextReference . |
TestObject[] |
getTopObjects()
Returns an array of references to the top objects in the domain.
|
boolean |
hasImageVPSupport()
Determines whether the domain has support for Image Verification Point.
|
java.lang.Object |
invokeConstructor(java.lang.String className)
Invokes a constructor for a class in the context of the domain.
|
java.lang.Object |
invokeConstructor(java.lang.String className,
java.lang.String signature,
java.lang.Object[] args)
Invokes a constructor for a class in the context of the domain.
|
java.lang.Object |
invokeStaticMethod(java.lang.String className,
java.lang.String method)
Invokes a static method on a class in the context of the domain.
|
java.lang.Object |
invokeStaticMethod(java.lang.String className,
java.lang.String method,
java.lang.String signature,
java.lang.Object[] args)
Invokes a static method on a class in the context of the domain.
|
compare, compare, compareAndLog, compareAndLog, equals, exists, find, find, find, findAndInvoke, findAndInvoke, findAndInvokeProxy, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getProperty, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getTopMappableParent, getTopParent, hashCode, invoke, invoke, invoke, invoke, invokeProxy, invokeProxy, invokeProxy, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, unregister, updateTestData, waitForExistence, waitForExistence
public DomainTestObject(RemoteProxyReference rpr)
public DomainTestObject(RegisteredObjectReference ror)
public DomainTestObject(TestObjectReference ref)
public DomainTestObject(TestContext.Reference tcRef, java.lang.String domainName)
public java.lang.Object getName()
public java.lang.Object getImplementationName()
public TestContext.Reference getTestContextReference()
testContextReference
.public TestObject[] getTopObjects()
TestObject
and can support more methods. The references to the objects are
released by calling one of the unregister methods.
Returns a 0-length array if no top objects are available.
public java.lang.Object invokeStaticMethod(java.lang.String className, java.lang.String method, java.lang.String signature, java.lang.Object[] args)
invokeStaticMethod
returns a reference to the object in the software under test.
References to these objects must be
released by calling one of the unregister methods.
className
- the name of the class containing the static methodmethod
- the name of the static method on a class in the context of the domainsignature
- the signature of the static method being invokedargs
- the parameters of the static method being invokedTestObject.unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
public java.lang.Object invokeStaticMethod(java.lang.String className, java.lang.String method)
invokeStaticMethod
returns a reference to the object in the software under test.
References to these objects are
released by calling one of the unregister methods.
className
- the name of the class containing the static methodmethod
- the name of the static method on a class in the context of the domainTestObject.unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
public java.lang.Object invokeConstructor(java.lang.String className, java.lang.String signature, java.lang.Object[] args)
invokeConstructor
returns a reference to the object in the software under test.
Referenced objects must be
released by calling one of the unregister methods.
Note that using invokeConstructor
to construct a value
class object in the software under test is not efficient because
you can create value class objects locally.
className
- the name of the class containing the static methodsignature
- the signature of the static method being invokedargs
- the parameters of the static method being invokedTestObject.unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
public java.lang.Object invokeConstructor(java.lang.String className)
invokeConstructor
returns a reference to the object in the software under test.
Referenced objects must be
released by calling one of the unregister methods.
Note that using invokeConstructor
to construct a value
class object in the software under test is not efficient because
value class objects can be created locally.
className
- the name of the class in the context of the domainTestObject.unregister()
,
RationalTestScript.unregister(Object[])
,
RationalTestScript.unregisterAll()
,
RationalTestScript.getRegisteredTestObjects()
public boolean hasImageVPSupport()
true
if the Image VP is supported; false
otherwise.