IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester Proxy SDK Reference

Project Version 2.3

com.rational.test.ft.domain
Class ProxyUtilities

java.lang.Object   extended by com.rational.test.ft.domain.ProxyUtilities

public class ProxyUtilities
extends java.lang.Object

Since:
RFT1.0

Field Summary
static com.rational.test.ft.util.FtDebug debug
           
 
Constructor Summary
ProxyUtilities()
           
 
Method Summary
static java.lang.String convertToIdentifier(java.lang.String base, int max)
           
static java.lang.String getIdentifier(java.lang.String base, int max)
          This method no longer converts the given string to an identifier that converts the character which causes the compilation error to a valid character.
static int getMaxDatapoolItemCount()
           
static boolean setTextFromGlass(ProxyTestObject proxy, java.lang.String text)
          Attempt to clear the existing text in supplied text field proxy using high level actions and set the text to teh supplied text value.
static boolean setTextFromGlass(ProxyTestObject proxy, java.lang.String text, java.lang.String clearTextKeys)
          The same as the sister method setTextFromGlass, except that this method futher allows the key sequence used to clear text from the control to be specified.
static boolean setTextFromGlassOnBaseChannel(ProxyTestObject proxy, java.lang.String text)
          Attempt to clear the existing text in supplied text field proxy using high level actions and set the text to teh supplied text value.
static boolean setTextFromGlassOnBaseChannel(ProxyTestObject proxy, java.lang.String text, java.lang.String clearTextKeys)
          The same as the sister method setTextFromGlassOnBaseChannel, except that this method futher allows the key sequence used to clear text from the control to be specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static final com.rational.test.ft.util.FtDebug debug
Constructor Detail

ProxyUtilities

public ProxyUtilities()
Method Detail

getIdentifier

public static java.lang.String getIdentifier(java.lang.String base,                                              int max)
This method no longer converts the given string to an identifier that converts the character which causes the compilation error to a valid character. From RFT 8.1 onwards this method just returns the substring that will start at index 0 and end at length of the base if base's length is less than max otherwise max. This changes is made to show the object's name in th Simplified Script as it is visible in the control. Use ProxyUtilities.converToIdentifier for converting to the given name to a compilation error free identifier.

Since:
RFT1.0

convertToIdentifier

public static java.lang.String convertToIdentifier(java.lang.String base,                                                    int max)

setTextFromGlass

public static boolean setTextFromGlass(ProxyTestObject proxy,                                        java.lang.String text)
Attempt to clear the existing text in supplied text field proxy using high level actions and set the text to teh supplied text value. The boolean result specified the success of this action.

Parameters:
proxy - The proxy for the editable text field to be updated.
text - The inputChars to be sent to the text field after it has been cleared.
Returns:
A true value is returned if the text operations succeed.
Since:
RFT2.0

setTextFromGlass

public static boolean setTextFromGlass(ProxyTestObject proxy,                                        java.lang.String text,                                        java.lang.String clearTextKeys)
The same as the sister method setTextFromGlass, except that this method futher allows the key sequence used to clear text from the control to be specified.

Parameters:
proxy - The proxy for the editable text field to be updated.
text - The inputChars to be sent to the text field after it has been cleared.
clearTextKeys - The key sequence that should be used to clear text from the controls display.
Returns:
A true value is returned if the text operations succeed.
Since:
RFT2.0

setTextFromGlassOnBaseChannel

public static boolean setTextFromGlassOnBaseChannel(ProxyTestObject proxy,                                                     java.lang.String text)
Attempt to clear the existing text in supplied text field proxy using high level actions and set the text to teh supplied text value. The boolean result specified the success of this action.

Parameters:
proxy - The proxy for the editable text field to be updated.
text - The inputChars to be sent to the text field after it has been cleared.
Returns:
A true value is returned if the text operations succeed.
Since:
RFT2.0

setTextFromGlassOnBaseChannel

public static boolean setTextFromGlassOnBaseChannel(ProxyTestObject proxy,                                                     java.lang.String text,                                                     java.lang.String clearTextKeys)
The same as the sister method setTextFromGlassOnBaseChannel, except that this method futher allows the key sequence used to clear text from the control to be specified.

Parameters:
proxy - The proxy for the editable text field to be updated.
text - The inputChars to be sent to the text field after it has been cleared.
clearTextKeys - The key sequence that should be used to clear text from the controls display.
Returns:
A true value is returned if the text operations succeed.
Since:
RFT2.0

getMaxDatapoolItemCount

public static int getMaxDatapoolItemCount()