|
IBM Rational Functional Tester Version 8.2.1 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.Object com.rational.test.ft.object.interfaces.TestObject com.rational.test.ft.object.interfaces.ProcessTestObject
public class ProcessTestObject
Provides, in a host-independent manner, access to process information that is specific to the operating system.
Field Summary |
---|
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject |
---|
ignoreTheObjectState, ref |
Constructor Summary | |
---|---|
ProcessTestObject(TestObjectReference ref)
Constructs a ProcessTestObject from a reference to a TestObject . |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcessTestObject(TestObjectReference ref)
ProcessTestObject
from a reference to a TestObject
. This
reference must contain a process reference.
For internal use.
Method Detail |
---|
public java.lang.Object getProperty(java.lang.String propertyName)
ProcessTestObject
.
getProperty
in class TestObject
propertyName
- - The property name whose value we want to get.ProcessTestObject
.
The process ID can be accessed as the .pid
property.classicsJava().getProperty("class");
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();
public java.lang.String toString()
toString
in class TestObject
String
representing the ProcessTestObject
.ProcessTestObject =classicsJava().getProcess(); ps.toString();
public java.util.Hashtable getProperties()
Hashtable
for the properties of the ProcessTestObject
getProperties
in class TestObject
Hashtable
containing the properties of the ProcessTestObject
.ProcessTestObject =classicsJava().getProcess(); ps.getProperties();
public DomainTestObject getDomain()
DomainImplementation
for the ProcessTestObject
.
getDomain
in class TestObject
DomainTestObject
Implementation for the ProcessTestObject.ProcessTestObject ps =classicsJava().getProcess; ps.getDomain();
public void kill()
ProcessTestObject ps =classicsJava().getProcess; ps.kill();
public long getProcessId()
RationalTestScript onObjectNotFound
methods are not supported.
long
The process id of the Process.ProcessTestObject ps =classicsJava().getProcess; ps.getProcessId();
public void waitForExistence(double maximum_find_object_time, double find_object_wait_between_retry)
waitForExistence
in class TestObject
ObjectNotFoundException
maximum_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);
isAlive()
public boolean exists()
true
if the object is available now, and the process
is alive.
exists
in class TestObject
true
if the object is available now, and the process
is alive.ProcessTestObject =classicsJava().getProcess(); ps.exists();
ClientTestObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |