|
IBM Rational Functional Tester Version 6.1 IBM Rational Functional Tester API Reference Project Version 2.0 |
||||||||||
| 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.ProcessTestObject
Provides, in a host-independent manner, access to process information that is specific to the operating system.
| Constructor Summary | |
ProcessTestObject(com.rational.test.ft.sys.OSProcessInformation process)
Constructs a ProcessTestObject from a process. |
|
ProcessTestObject(com.rational.test.ft.object.TestObjectReference ref)
Constructs a ProcessTestObject from a reference to a TestObject. |
|
| Method Summary | |
DomainTestObject |
getDomain()
Returns the DomainImplementation for the ProcessTestObject. |
long |
getProcessId()
Returns the process Id (as a long). |
java.util.Hashtable |
getProperties()
Returns a Hashtable containing the properties of the ProcessTestObject. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns a property of the ProcessTestObject. |
boolean |
isAlive()
Returns true if the process is still alive, false
if it has terminated. |
void |
kill()
Ends the process. |
java.lang.String |
toString()
Returns a String representing the ProcessTestObject. |
void |
waitForExistence(double maximum_find_object_time,
double find_object_wait_between_retry)
Normally, waits until an object exists, but for a process this actually never waits. |
| Methods inherited from class com.rational.test.ft.object.interfaces.TestObject |
equals, exists, find, find, find, findAndInvoke, findAndInvoke, findAndInvokeProxy, getChildren, getDescribedObject, getDescribedObjects, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getTopMappableParent, getTopParent, invoke, invoke, invokeProxy, invokeProxy, isMappedObject, isSameObject, setIndexer, setIndexer, setProperty, unregister, updateTestData, waitForExistence |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ProcessTestObject(com.rational.test.ft.object.TestObjectReference ref)
ProcessTestObject from a reference to a TestObject. This
reference must contain a process reference.
For internal use.
public ProcessTestObject(com.rational.test.ft.sys.OSProcessInformation process)
ProcessTestObject from a process.
For internal use.
| Method Detail |
public java.lang.Object getProperty(java.lang.String propertyName)
ProcessTestObject.
The process ID can be accessed as the .pid property.
getProperty in class TestObjectpropertyName - the name of the propertyTestObject.unregister(),
RationalTestScript.unregisterAll(),
RationalTestScript.unregister(Object[]),
RationalTestScript.getRegisteredTestObjects()public boolean isAlive()
true if the process is still alive, false
if it has terminated.
public java.lang.String toString()
String representing the ProcessTestObject.
toString in class TestObjectpublic java.util.Hashtable getProperties()
Hashtable containing the properties of the ProcessTestObject.
getProperties in class TestObjectpublic DomainTestObject getDomain()
DomainImplementation for the ProcessTestObject.
getDomain in class TestObjectpublic void kill()
public long getProcessId()
public void waitForExistence(double maximum_find_object_time,
double find_object_wait_between_retry)
RationalTestScript onObjectNotFound methods are not supported.
waitForExistence in class TestObjectmaximum_find_object_time - the maximum amount of time (in seconds)
to wait while finding the objectfind_object_wait_between_retry - the amount of time (in seconds)
to wait between attempts to find the object
ObjectNotFoundExceptionisAlive()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||