public class FlexUtil
extends java.lang.Object
and FlexUtil#getCaption
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FLEX_APP_NAME |
static java.lang.String |
FLEX_MENU_CLASSNAME |
static java.lang.String |
FLEX_MENUBAR_CLASSNAME |
static java.lang.String |
FLEX_MENUITEMRENDERER_CLASSNAME |
static java.lang.String |
FLEX_RUNTIMELOADER_PREFIX |
static java.lang.String |
FLEX_RUNTIMELOADER_SUFFIX |
static java.lang.String |
FLEX_RUNTIMELOADING_NAME |
static java.lang.String |
FLEX_SWFLOADER_CLASSNAME |
static java.lang.String |
FLEX_SWFLOADER_CLASSNAME_SUFFIX |
static java.lang.String |
PROPERTY_TYPE_AUTOMATIONCLASSNAME |
static java.lang.String |
PROPERTY_TYPE_AUTOMATIONINDEX |
static java.lang.String |
PROPERTY_TYPE_AUTOMATIONNAME |
static java.lang.String |
PROPERTY_TYPE_CLASSNAME |
static java.lang.String |
PROPERTY_TYPE_ID |
static java.lang.String |
PROPERTY_TYPE_LABEL |
static java.lang.String |
PROPERTY_TYPE_NUMAUTOMATIONCHILDREN |
Constructor and Description |
---|
FlexUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
doSelectMenubar(com.rational.test.ft.object.interfaces.TestObject menuObj,
java.lang.String menuItemPath)
Purpose: Perform a select operation on Flex menu items.
|
static com.rational.test.ft.object.interfaces.TestObject |
drillDownRealFlexObj(com.rational.test.ft.object.interfaces.TestObject flexObj)
Automated testing of Flex applications requires users to load supporting files in two different ways:
1) At compile-time for applications that are enabled for RFT
2) At run-time for applications that are not enabled for RFT
For the second way, the top flex window returned by getTopObjects() on Flex domain object, might be a Flex runtimeloading
object not the real application loaded.
|
static java.lang.String |
getCaption(com.rational.test.ft.object.interfaces.TestObject flexObj)
Take property 'automationName' of the top Flex application (FlexApplicationTestObject) as Caption, although there is
no caption for a flex application.
|
static com.rational.test.ft.object.interfaces.TestObject[] |
getChildren(com.rational.test.ft.object.interfaces.TestObject obj)
Called by RGuiObjectVector#getChildren for solving duplicate object problem.
|
static com.rational.test.ft.object.interfaces.flex.FlexObjectTestObject |
getMatchingMenuFromMenuBar(com.rational.test.ft.object.interfaces.TestObject flexmenuBar,
java.lang.String menuItemPath)
Purpose: Dig in a Flex menu bar to find out the corresponding menu inside it according menu path.
|
static com.rational.test.ft.object.interfaces.flex.FlexObjectTestObject |
getMatchingPathObject(java.lang.Object flexmenuBar,
java.lang.String path)
Retrieves the resulting object identified with the Path information applied to flexmenuBar.
|
static java.lang.String |
getName(com.rational.test.ft.object.interfaces.TestObject flexObj) |
static java.lang.String |
getObjectClassIndex(com.rational.test.ft.object.interfaces.TestObject flexObj)
returns the class Index for FlexObjectTestObject.
|
static java.lang.String |
getObjectClassName(com.rational.test.ft.object.interfaces.TestObject flexObj)
returns the class name for FlexObjectTestObject.
|
static java.lang.String |
getTextOfFlexMenuItem(com.rational.test.ft.object.interfaces.TestObject flexObj) |
static boolean |
isRuntimeLoader(java.lang.String className) |
static boolean |
isSWFLoader(java.lang.String className) |
public static final java.lang.String FLEX_APP_NAME
public static final java.lang.String FLEX_RUNTIMELOADING_NAME
public static final java.lang.String FLEX_RUNTIMELOADER_PREFIX
public static final java.lang.String FLEX_RUNTIMELOADER_SUFFIX
public static final java.lang.String FLEX_SWFLOADER_CLASSNAME_SUFFIX
public static final java.lang.String FLEX_SWFLOADER_CLASSNAME
public static final java.lang.String FLEX_MENUBAR_CLASSNAME
public static final java.lang.String FLEX_MENU_CLASSNAME
public static final java.lang.String FLEX_MENUITEMRENDERER_CLASSNAME
public static final java.lang.String PROPERTY_TYPE_AUTOMATIONCLASSNAME
public static final java.lang.String PROPERTY_TYPE_AUTOMATIONINDEX
public static final java.lang.String PROPERTY_TYPE_AUTOMATIONNAME
public static final java.lang.String PROPERTY_TYPE_CLASSNAME
public static final java.lang.String PROPERTY_TYPE_ID
public static final java.lang.String PROPERTY_TYPE_LABEL
public static final java.lang.String PROPERTY_TYPE_NUMAUTOMATIONCHILDREN
public static boolean isRuntimeLoader(java.lang.String className)
className
- -- usually extracted from a Flex TestObject.public static boolean isSWFLoader(java.lang.String className)
className
- -- usually extracted from a Flex TestObject.public static com.rational.test.ft.object.interfaces.TestObject drillDownRealFlexObj(com.rational.test.ft.object.interfaces.TestObject flexObj)
flexObj,
- top FlexApplicationTestObjectpublic static java.lang.String getCaption(com.rational.test.ft.object.interfaces.TestObject flexObj)
flexObj,
- a FlexObjectTestObjectpublic static java.lang.String getName(com.rational.test.ft.object.interfaces.TestObject flexObj)
public static java.lang.String getTextOfFlexMenuItem(com.rational.test.ft.object.interfaces.TestObject flexObj)
public static java.lang.String getObjectClassName(com.rational.test.ft.object.interfaces.TestObject flexObj)
flexObj,
- a FlexObjectTestObjectpublic static java.lang.String getObjectClassIndex(com.rational.test.ft.object.interfaces.TestObject flexObj)
public static com.rational.test.ft.object.interfaces.TestObject[] getChildren(com.rational.test.ft.object.interfaces.TestObject obj)
obj,
- FlexObjectTestObjectpublic static com.rational.test.ft.object.interfaces.flex.FlexObjectTestObject getMatchingPathObject(java.lang.Object flexmenuBar, java.lang.String path)
RGuiObjectRecognition.getMatchingPathObject(Object, String)
.
In R-String "Type=FlexMenuBar;index=1;Path=File->Exit", mx.controls.Menu matches 'File';
mx.controls.menuClasses.MenuItemRenderer matches 'Exit'.flexmenuBar,
- a FlexMenuBarTestObject (not considering FlexTreeTestObject)path
- public static com.rational.test.ft.object.interfaces.flex.FlexObjectTestObject getMatchingMenuFromMenuBar(com.rational.test.ft.object.interfaces.TestObject flexmenuBar, java.lang.String menuItemPath)
flexmenuBar
- menuItemPath
- public static void doSelectMenubar(com.rational.test.ft.object.interfaces.TestObject menuObj, java.lang.String menuItemPath) throws SAFSException
menuObj,
- a FlexMenuBarTestObjectmenuItemPath,
- menu path like "File->Open"SAFSException,
- thrown while the operation failedSAFSException
Copyright © SAS Institute. All Rights Reserved.