|
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.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 |
|---|
ref |
| 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 | |
|---|---|
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(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.
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 ProcessTestObject
getProperties 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||