|
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.Object com.rational.test.ft.object.interfaces.TestObject com.rational.test.ft.object.interfaces.ClientTestObject com.rational.test.ft.object.interfaces.GuiTestObject com.rational.test.ft.object.interfaces.DocumentTestObject
public class DocumentTestObject
Provides script access to the general browser, which is the HTML Browser TestObject
class.
Field Summary |
---|
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject |
---|
ref |
Constructor Summary | |
---|---|
DocumentTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use. |
|
DocumentTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
For internal use. |
|
DocumentTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
For internal use. |
|
DocumentTestObject(TestObject obj)
For internal use. |
|
DocumentTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use. |
Method Summary | |
---|---|
int |
getAjaxCompletedRequests()
Return the count of completed AJAX request |
int |
getAjaxPendingRequests()
Return the number of pending AJAX request. |
java.lang.String |
invokeScript(java.lang.String method)
Execute JavaScript in the given page |
void |
setAjaxTrace(boolean value)
To turn the AJAX Request tracing facility ON or OFF. |
void |
waitForAjaxCompletedRequests(int noOfCompletedRequests)
Wait untill the specified count of AJAX request are completed |
void |
waitForAjaxPendingRequests()
Wait until all pending request gets completed. |
void |
waitForAjaxPendingRequests(int noOfPendingRequests)
Wait for the specified count of pending requests |
Methods inherited from class com.rational.test.ft.object.interfaces.GuiTestObject |
---|
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint |
Methods inherited from class com.rational.test.ft.object.interfaces.ClientTestObject |
---|
exists, find, find, findAndInvoke, findAndInvokeProxy, invoke, invokeProxy, unregister, waitForExistence |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DocumentTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
DocumentTestObject
.
public DocumentTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
DocumentTestObject
.
public DocumentTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
DocumentTestObject
.
public DocumentTestObject(com.rational.test.ft.object.TestObjectReference ref)
DocumentTestObject
from another TestObjectReference
.
Both are references to the same object.
public DocumentTestObject(TestObject obj)
TestObject
from another. Both are references to the same object.
Method Detail |
---|
public void setAjaxTrace(boolean value)
value
- true
for turning ON, false
for turning OFFgetAjaxPendingRequests()
API. Similarly,
the number completed AJAX requests also get stored and can be retrieve using getAjaxCompletedRequests()
API.document_ibmIndia().setAjaxTrace(true);
public int getAjaxPendingRequests()
document_ibmIndia().setAjaxTrace(true);
int pendingRequest = document_ibmIndia().getAjaxPendingRequests();
document_ibmIndia().setAjaxTrace(false);
public void waitForAjaxPendingRequests()
document_ibmIndia().setAjaxTrace(true);
document_ibmIndia().waitForAjaxPendingRequests();
document_ibmIndia().setAjaxTrace(false);
public void waitForAjaxPendingRequests(int noOfPendingRequests)
AjaxWaitTimeOutException()
- on timeout.noOfPendingRequests
- - number of allowed pending requests
document_ibmIndia().setAjaxTrace(true);
document_ibmIndia().waitForAjaxPendingRequests(2);
document_ibmIndia().setAjaxTrace(false);
getAjaxPendingRequests()
public int getAjaxCompletedRequests()
document_ibmIndia().setAjaxTrace(true);
int numCompletedRequest = document_ibmIndia().getAjaxCompletedRequests();
document_ibmIndia().setAjaxTrace(false);
public void waitForAjaxCompletedRequests(int noOfCompletedRequests)
AjaxWaitTimeOutException()
- on timeout.noOfCompletedRequests
- - number of completed requests to wait
document_ibmIndia().setAjaxTrace(true);
int numCompletedRequest = document_ibmIndia().waitForAjaxCompletedRequests(2);
document_ibmIndia().setAjaxTrace(false);
public java.lang.String invokeScript(java.lang.String method)
method
- java.lang.String the JavaScript method name DocumentTestObject
object.
Internally uses EvalString() API provided by the Browsers to execute the script.document_ibmIndia().invokeScript("verifyCred('username', 'password')");
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |