|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester API Reference Project Version 2.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rational.test.ft.object.interfaces.TestObject
com.rational.test.ft.object.interfaces.DomainTestObject
public class DomainTestObject
Provides access to an object domain. An object domain provides information about a class of objects. A domain has a name and an implementation name. For example, all Java objects are in the Java domain, and the domain implementation can be named Java 1.2.2.
| Field Summary |
|---|
| Fields inherited from class com.rational.test.ft.object.interfaces.TestObject |
|---|
ref |
| Constructor Summary | |
|---|---|
DomainTestObject(com.rational.test.ft.sys.RegisteredObjectReference ror)
For internal use. |
|
DomainTestObject(com.rational.test.ft.sys.RemoteProxyReference rpr)
For internal use. |
|
DomainTestObject(com.rational.test.ft.sys.TestContext.Reference tcRef, java.lang.String domainName)
For internal use. |
|
DomainTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getImplementationName()
Returns the name of the domain implementation. |
java.lang.Object |
getName()
Returns the name of the domain. |
com.rational.test.ft.sys.TestContext.Reference |
getTestContextReference()
Returns the testContextReference. |
TestObject[] |
getTopObjects()
Returns an array of references to the top objects in the domain. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DomainTestObject(com.rational.test.ft.sys.RemoteProxyReference rpr)
public DomainTestObject(com.rational.test.ft.sys.RegisteredObjectReference ror)
public DomainTestObject(com.rational.test.ft.object.TestObjectReference ref)
public DomainTestObject(com.rational.test.ft.sys.TestContext.Reference tcRef, java.lang.String domainName)
| Method Detail |
|---|
public java.lang.Object getName()
public java.lang.Object getImplementationName()
public com.rational.test.ft.sys.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.
TestObject.unregister(),
RationalTestScript.unregister(Object[]),
RationalTestScript.unregisterAll(),
RationalTestScript.getRegisteredTestObjects()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 invoked TestObject.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 domain TestObject.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 invoked TestObject.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 domain TestObject.unregister(),
RationalTestScript.unregister(Object[]),
RationalTestScript.unregisterAll(),
RationalTestScript.getRegisteredTestObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||