|
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.script.ScriptCommandFlags
public class ScriptCommandFlags
This class provides a base set of command flags that may apply to a TestObject
based command.
For example, a TestObject
may be DISABLED
or NOT_SHOWING
, that is, invisible when an
action is performed against it. Actions must be performed against
the object when it is in the appropriate state. For example, you may want to wait
for an object to become ENABLED
before acting upon it.
Field Summary | |
---|---|
static int |
DEFAULT_FLAGS
Defines the expected default state. |
static int |
DISABLED
Specifies that a GUITestObject is disabled. |
static int |
ENABLED
Specifies that a GUITestObject is enabled. |
static int |
LOADED
Indicates that the browser is loaded. |
static int |
LOADING
Indicates that the browser is loading. |
static int |
MAY_EXIT
Marks a command as suitable for terminating the application under test. |
static int |
NO_FLAGS
Asserts that the state is not relevant in some cases. |
static int |
NOT_SHOWING
Specifies that a GUITestObject is not visible. |
static int |
READY
Indicates that the browser is ready. |
static int |
SHOWING
Specifies that a GUITestObject is visible. |
static int |
UNINITIALIZED
Indicates that the browser is uninitialized. |
static int |
UNIX_ONLY
Marks a command as suitable for running on a UNIX platform. |
static int |
WINDOWS_ONLY
Marks a command as run on a Windows platform only. |
Constructor Summary | |
---|---|
ScriptCommandFlags(long flags)
|
Method Summary | |
---|---|
boolean |
check(long expected)
|
long |
getFlags()
Propagates the flags. |
java.lang.String |
getFlagsText()
Returns the textual representation of the flags |
static java.lang.String |
getFlagsText(long flags)
|
static java.lang.String |
getFlagsText(long flags, java.lang.String orOperator)
|
int |
getReadyState()
Returns true if these flags reflect a READY
state in the associated browser. |
boolean |
isEnabled()
Returns true if these flags reflect an ENABLED
state in the associated TestObject . |
boolean |
isMayExit()
Returns true if these flags reflect a MAY_EXIT flag. |
boolean |
isShowing()
Returns true if these flags reflect a SHOWING
state in the associated TestObject . |
boolean |
isUnixOnly()
Returns true if these flags reflect a UNIX_ONLY flag. |
boolean |
isWindowsOnly()
Returns true if these flags reflect a WINDOWS_ONLY flag. |
void |
setEnabled(boolean enabled)
Sets the enabled bit to the specified setting. |
void |
setReady(int readyFlag)
Sets the ready bits to the specified setting. |
void |
setShowing(boolean showing)
Sets the showing bit to the specified setting. |
java.lang.String |
toString()
Returns a textual representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ENABLED
GUITestObject
is enabled. This is the default.
public static final int DISABLED
GUITestObject
is disabled. The default is for the object to be enabled.
public static final int SHOWING
GUITestObject
is visible. This is the default.
public static final int NOT_SHOWING
GUITestObject
is not visible. The default is for the object to be SHOWING
.
public static final int READY
public static final int LOADED
READY
.
public static final int LOADING
READY
.
public static final int UNINITIALIZED
READY
.
public static final int MAY_EXIT
public static final int WINDOWS_ONLY
public static final int UNIX_ONLY
public static final int DEFAULT_FLAGS
public static final int NO_FLAGS
Constructor Detail |
---|
public ScriptCommandFlags(long flags)
Method Detail |
---|
public boolean check(long expected)
public boolean isEnabled()
true
if these flags reflect an ENABLED
state in the associated TestObject
.
true
if the associated TestObject
is enabledpublic boolean isShowing()
true
if these flags reflect a SHOWING
state in the associated TestObject
.
true
if the associated TestObject
is showingpublic int getReadyState()
true
if these flags reflect a READY
state in the associated browser.
true
if the associated browser is READY
public boolean isMayExit()
true
if these flags reflect a MAY_EXIT
flag.
true
if the associated comand is MAY_EXIT
public boolean isWindowsOnly()
true
if these flags reflect a WINDOWS_ONLY
flag.
true
if the associated comand is WINDOWS_ONLY
public boolean isUnixOnly()
true
if these flags reflect a UNIX_ONLY
flag.
true
if the associated comand is UNIX_ONLY
public void setEnabled(boolean enabled)
public void setShowing(boolean showing)
public void setReady(int readyFlag)
READY
, LOADED
, LOADING
or UNINITIALIZED
.
readyFlag
- an appropriate browser state flagpublic java.lang.String getFlagsText()
public static java.lang.String getFlagsText(long flags)
public static java.lang.String getFlagsText(long flags, java.lang.String orOperator)
public java.lang.String toString()
toString
in class java.lang.Object
public long getFlags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |