public class ProcessTestObject extends TestObject
ignoreTheObjectState, ref| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Returns
true if the object is available now, and the process
is alive. |
DomainTestObject |
getDomain()
Returns the
DomainImplementation for the ProcessTestObject. |
long |
getProcessId()
Returns the ProcessID
The
RationalTestScript onObjectNotFound methods are not supported. |
java.util.Hashtable |
getProperties()
Returns the
Hashtable for the properties of the ProcessTestObject |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns a property of the
ProcessTestObject. |
boolean |
isAlive()
Checks whether the process is till alive.
|
void |
kill()
Kills the process
|
java.lang.String |
toString()
Returns the String discription of the process
|
void |
waitForExistence(double maximum_find_object_time,
double find_object_wait_between_retry)
Wait for the Existence of the Objects
|
compare, compare, compareAndLog, compareAndLog, equals, find, find, find, findAndInvoke, findAndInvoke, findAndInvokeProxy, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getTopMappableParent, getTopParent, hashCode, invoke, invoke, invoke, invoke, invokeProxy, invokeProxy, invokeProxy, isHtmlWebui, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, unregister, updateTestData, waitForExistencepublic 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.public java.lang.Object getProperty(java.lang.String propertyName)
ProcessTestObject.getProperty in class TestObjectpropertyName - - The property name whose value we want to get.ProcessTestObject.
The process ID can be accessed as the .pid property.classicsJava().getProperty("class"); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.TestObject.unregister(),
RationalTestScript.unregisterAll(),
RationalTestScript.unregister(Object[]),
RationalTestScript.getRegisteredTestObjects()public boolean isAlive()
true if the process is still alive, false
if it has terminated.ProcessTestObject =classicsJava().getProcess(); ps.isAlive(); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.public java.lang.String toString()
toString in class TestObjectString representing the ProcessTestObject.ProcessTestObject =classicsJava().getProcess(); ps.toString(); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.public java.util.Hashtable getProperties()
Hashtable for the properties of the ProcessTestObjectgetProperties in class TestObjectHashtable containing the properties of the ProcessTestObject.ProcessTestObject =classicsJava().getProcess(); ps.getProperties(); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.public DomainTestObject getDomain()
DomainImplementation for the ProcessTestObject.getDomain in class TestObjectDomainTestObject Implementation for the ProcessTestObject.ProcessTestObject ps =classicsJava().getProcess; ps.getDomain(); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.public void kill()
ProcessTestObject ps =classicsJava().getProcess; ps.kill(); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.public long getProcessId()
RationalTestScript onObjectNotFound methods are not supported.long The process id of the Process.ProcessTestObject ps =classicsJava().getProcess; ps.getProcessId(); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.public void waitForExistence(double maximum_find_object_time,
double find_object_wait_between_retry)
waitForExistence in class TestObjectObjectNotFoundExceptionmaximum_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 objectRationalTestScript onObjectNotFound methods are not supported.classicsJava().waitForExistence( 20,20); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.isAlive()public boolean exists()
true if the object is available now, and the process
is alive.exists in class TestObjecttrue if the object is available now, and the process
is alive.ProcessTestObject =classicsJava().getProcess(); ps.exists(); Here classicsJava is of type TopLevelTestObject and i have used
the ClassicjavaA as Application under test.ClientTestObject