public class HtmlTestDomainImplementation
extends com.rational.test.ft.domain.TestDomainImplementation
TestDomain implementation for HTML. Access to specific browsers
is provided by a native implementation of the domain, which is exposed by using a handle
to a native interface.| Modifier and Type | Class and Description |
|---|---|
class |
HtmlTestDomainImplementation.FlexChannelElementInfo |
class |
HtmlTestDomainImplementation.GetFlexWindowHandleRunnable |
| Modifier and Type | Field and Description |
|---|---|
boolean |
ChromeNativeEnabled |
protected static com.rational.test.ft.util.FtDebug |
debug |
static java.lang.String |
DOJO_SUB_DOMAIN_NAME |
java.util.Vector |
htmlsubdomainInstancess |
java.util.Hashtable |
htmlsubdomains |
boolean |
isEdge |
boolean |
JSApproachEnabled |
java.util.HashMap |
JshandleMap |
java.util.ArrayList |
jsPropexclusionList |
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator |
jsWrapperProxy |
int |
myParentPid |
static java.lang.String |
NAME |
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator |
webguiCommunicator |
| Constructor and Description |
|---|
HtmlTestDomainImplementation() |
HtmlTestDomainImplementation(long nativeHandle) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTestContext() |
void |
disableAllCustomDomains() |
void |
disableCustomDomain(java.lang.String domainName) |
void |
disableCustomDomains(java.lang.String[] domainNames) |
void |
enableAllCustomDomains() |
void |
enableCustomDomain(java.lang.String domainName) |
void |
enableCustomDomains(java.lang.String[] domainNames) |
int |
getActionRecordingFlags()
Returns bits that control the recording of actions.
|
com.rational.test.ft.domain.ProxyTestObject |
getCustomProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
java.lang.String customObjectClass,
CachedData cachedData) |
com.rational.test.ft.domain.ProxyTestObject |
getDescribedObject(com.rational.test.ft.domain.DescribedObject describedObject) |
com.rational.test.ft.domain.ProxyTestObject |
getDojoProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
Creates the proxy that handles the object indicated by the
nativeHandle. |
com.rational.test.ft.domain.DomainProxy |
getDomainProxy()
Returns the proxy for this domain object.
|
java.lang.Object |
getFlexFireFoxWindowHandle(java.lang.String playerId,
long browserHwnd,
long serverExplorerHwnd) |
java.lang.Object |
getFlexWindowHandle(java.lang.String playerId,
long browserHwnd,
long serverExplorerHwnd) |
HtmlTestSubDomainImplementation |
getHtmlTestSubDomainObject(HtmlTestDomainImplementation domain,
java.lang.String domainClassName) |
java.lang.String |
getImplementationName()
Returns the name of the domain implementation.
|
java.lang.String |
getMyBrowserName() |
long |
getNativeHandle() |
com.rational.test.ft.domain.ProxyTestObject |
getProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap) |
com.rational.test.ft.domain.ProxyTestObject |
getProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap,
boolean includeCustomProxies)
Creates the proxy that handles the object indicated by the
nativeHandle. |
com.rational.test.ft.domain.ProxyTestObject |
getProxy(long nativeHandle,
long docHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap,
boolean includeCustomProxies) |
com.rational.test.ft.domain.ProxyTestObject |
getProxy(java.lang.Object theObject)
Returns a proxy object for the specified object.
|
java.lang.String |
getTargetDomain(com.rational.test.ft.sys.graphical.Window win) |
com.rational.test.ft.domain.ProxyTestObject |
getTopLevelObject(com.rational.test.ft.sys.graphical.Window window) |
com.rational.test.ft.domain.ProxyTestObject |
getTopLevelObject(com.rational.test.ft.sys.graphical.Window window,
com.rational.test.ft.sys.graphical.Window pointWindow) |
java.util.Enumeration |
getTopLevelObjects()
Returns an enumeration of top-level objects in this domain.
|
long[] |
getWebUiBrowserHandles(com.rational.test.ft.domain.html.chrome.IBrowserCommunicator communicator) |
void |
HtmlTestDomainImplementationInit(long nativeHandle)
Constructor using specific native domain implementation.
|
void |
initWebGUIPlayback() |
boolean |
isChromeDocumentWindow(com.rational.test.ft.sys.graphical.Window window) |
boolean |
isDomainEnabled(java.lang.String domainName) |
boolean |
isIEBrowser() |
boolean |
isJswindow(com.rational.test.ft.sys.graphical.Window window) |
boolean |
isMyBrowserFirefox() |
boolean |
isNativeMessagingEnabled()
This would be true for the approaches where we use Native Messaging
to communicate with the browser.(i.e NON-Applet approach)
|
void |
onEmbeddedBrowserDestroyed(int browserHandle) |
java.util.ArrayList |
populatExclusionList() |
void |
registerProxies(java.util.Enumeration proxies)
Registers proxies for this domain implementation.
|
void |
setNativeHandle(long nativeHandle) |
protected static com.rational.test.ft.util.FtDebug debug
public static final java.lang.String NAME
public static java.lang.String DOJO_SUB_DOMAIN_NAME
public java.util.Vector htmlsubdomainInstancess
public java.util.Hashtable htmlsubdomains
public com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jsWrapperProxy
public boolean JSApproachEnabled
public boolean ChromeNativeEnabled
public boolean isEdge
public java.util.HashMap JshandleMap
public java.util.ArrayList jsPropexclusionList
public com.rational.test.ft.domain.html.chrome.IBrowserCommunicator webguiCommunicator
public int myParentPid
public HtmlTestDomainImplementation()
public HtmlTestDomainImplementation(long nativeHandle)
public long getNativeHandle()
public void setNativeHandle(long nativeHandle)
public void initWebGUIPlayback()
public void createTestContext()
public java.util.ArrayList populatExclusionList()
public void HtmlTestDomainImplementationInit(long nativeHandle)
nativeHandle - Handle to native interface for the domain implementation.public HtmlTestSubDomainImplementation getHtmlTestSubDomainObject(HtmlTestDomainImplementation domain, java.lang.String domainClassName)
public com.rational.test.ft.domain.ProxyTestObject getDescribedObject(com.rational.test.ft.domain.DescribedObject describedObject)
getDescribedObject in class com.rational.test.ft.domain.TestDomainImplementationpublic final java.lang.String getImplementationName()
getImplementationName in class com.rational.test.ft.domain.TestDomainImplementationpublic boolean isIEBrowser()
public int getActionRecordingFlags()
getActionRecordingFlags in class com.rational.test.ft.domain.TestDomainImplementationpublic final com.rational.test.ft.domain.ProxyTestObject getProxy(java.lang.Object theObject)
null object should be returned.getProxy in class com.rational.test.ft.domain.TestDomainImplementationtheObject - The object to return a proxy object for.public com.rational.test.ft.domain.ProxyTestObject getProxy(long nativeHandle,
long docHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap,
boolean includeCustomProxies)
public com.rational.test.ft.domain.ProxyTestObject getProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap,
boolean includeCustomProxies)
nativeHandle.nativeHandle - Handle to native interface for HTML Objectchannel - Channel on which native interface is called.public com.rational.test.ft.domain.ProxyTestObject getProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
public com.rational.test.ft.domain.ProxyTestObject getDojoProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
nativeHandle.nativeHandle - Handle to native interface for HTML Objectchannel - Channel on which native interface is called.public com.rational.test.ft.domain.ProxyTestObject getCustomProxy(long nativeHandle,
com.rational.test.ft.domain.IChannel channel,
java.lang.String customObjectClass,
CachedData cachedData)
public final com.rational.test.ft.domain.DomainProxy getDomainProxy()
getDomainProxy in class com.rational.test.ft.domain.TestDomainImplementationpublic final void registerProxies(java.util.Enumeration proxies)
registerProxies in class com.rational.test.ft.domain.TestDomainImplementationpublic com.rational.test.ft.domain.ProxyTestObject getTopLevelObject(com.rational.test.ft.sys.graphical.Window window,
com.rational.test.ft.sys.graphical.Window pointWindow)
getTopLevelObject in class com.rational.test.ft.domain.TestDomainImplementationpublic boolean isChromeDocumentWindow(com.rational.test.ft.sys.graphical.Window window)
public com.rational.test.ft.domain.ProxyTestObject getTopLevelObject(com.rational.test.ft.sys.graphical.Window window)
getTopLevelObject in class com.rational.test.ft.domain.TestDomainImplementationpublic boolean isJswindow(com.rational.test.ft.sys.graphical.Window window)
public java.util.Enumeration getTopLevelObjects()
getTopLevelObjects in class com.rational.test.ft.domain.TestDomainImplementationpublic long[] getWebUiBrowserHandles(com.rational.test.ft.domain.html.chrome.IBrowserCommunicator communicator)
public java.lang.String getTargetDomain(com.rational.test.ft.sys.graphical.Window win)
public java.lang.Object getFlexWindowHandle(java.lang.String playerId,
long browserHwnd,
long serverExplorerHwnd)
public java.lang.Object getFlexFireFoxWindowHandle(java.lang.String playerId,
long browserHwnd,
long serverExplorerHwnd)
public boolean isDomainEnabled(java.lang.String domainName)
public void disableCustomDomain(java.lang.String domainName)
public void enableCustomDomain(java.lang.String domainName)
public void disableAllCustomDomains()
public void enableAllCustomDomains()
public void enableCustomDomains(java.lang.String[] domainNames)
public void disableCustomDomains(java.lang.String[] domainNames)
public void onEmbeddedBrowserDestroyed(int browserHandle)
public java.lang.String getMyBrowserName()
public boolean isMyBrowserFirefox()
public boolean isNativeMessagingEnabled()