Class TLV
java.lang.Object
com.onenetwork.platform.tools.test.ui.components.Component
com.onenetwork.platform.tools.test.ui.components.Container
com.onenetwork.platform.tools.test.ui.components.Frame
com.onenetwork.platform.tools.test.ui.components.TLV
public class TLV extends Frame
Represents an instance of a TLV report.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TLV.DnDOperation
static class
TLV.TLV_CUSTOMIZATION_LEVEL
-
Field Summary
Fields Modifier and Type Field Description static org.openqa.selenium.By
ADD_CHILD_ICON_ID
static org.openqa.selenium.By
ADD_ICON_ID
static org.openqa.selenium.By
DELETE_ICON_ID
static org.openqa.selenium.By
EDIT_ICON_ID
static org.openqa.selenium.By
FILTER_ID
static org.openqa.selenium.By
FINISH_CUSTOMIZATION_BTN_ID
static org.openqa.selenium.By
HEADER_ROWS_ID
static org.openqa.selenium.By
HIDE_ICON_ID
static java.lang.String
MANAGE_CUSTOMIZATION
static org.openqa.selenium.By
MANAGE_CUSTOMIZATION_BTN_ID
static org.openqa.selenium.By
MOVE_DOWN_ICON_ID
static org.openqa.selenium.By
MOVE_UP_ICON_ID
static org.openqa.selenium.By
RESET_CUSTOMIZATION_BTN_ID
static org.openqa.selenium.By
ROWS_ID
static org.openqa.selenium.By
SAVE_BTN_ID
static org.openqa.selenium.By
SHOW_ICON_ID
static org.openqa.selenium.By
START_CUSTOMIZATION_BTN_ID
static org.openqa.selenium.By
TABLE_ID
Fields inherited from class com.onenetwork.platform.tools.test.ui.components.Frame
iframeEl, parentFrame
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addDMAbove(int rowIdx, java.lang.String name, java.lang.String expr)
void
addDMAbove(int rowIdx, java.lang.String name, java.lang.String expr, java.lang.Boolean isGroup)
void
addDMBelow(int rowIdx, java.lang.String name, java.lang.String expr)
void
addDMBelow(int rowIdx, java.lang.String name, java.lang.String expr, java.lang.Boolean isGroup)
void
clickDownPage()
void
clickDownPageNeo()
void
clickGraphCheckBox(int rowIdx)
void
clickGraphCheckBox(java.lang.String dmName, java.lang.String... hierarchyColumnValues)
void
clickNextPage()
void
clickNextPageNeo()
void
clickPrevPage()
void
clickPrevPageNeo()
void
clickUpPage()
void
clickUpPageNeo()
void
deleteDM(int rowIdx)
void
displayGraph(boolean display)
void
displayHeaderReport(boolean display)
void
dragAndDropDM(int sourceDMIndex, int targetDMIndex, TLV.DnDOperation operation)
TLV
dragAndDropDMForNeo(int sourceDMIndex, int targetDMIndex, TLV.DnDOperation operation, NeoDesktop neoDesktop, int offsetY)
void
editDM(int rowIdx, java.lang.String name, java.lang.String expr)
void
editDM(int rowIdx, java.lang.String name, java.lang.String expr, java.lang.Boolean isGroup)
void
executeSave()
void
executeSearch()
int
findDMIndex(int rowIdx, <any> condition)
void
finishCustomization()
java.util.List<java.lang.String>
getBuckets()
int
getBucketsCount()
org.openqa.selenium.WebElement
getCell(java.lang.String dmName, int colIdx)
int
getColumnHierarchyCount()
java.lang.String
getDMName(int rowIdx)
java.lang.String
getDMValue(int rowIdx, int colIdx)
java.util.List<java.lang.String>
getDMValuesByHierarchy(java.lang.String dmName, java.lang.String... hierarchyColumnValues)
org.openqa.selenium.WebElement
getErrorMessage()
FilterOverlay
getFilterOverlay()
org.openqa.selenium.WebElement
getHeaderReport()
java.util.List<org.openqa.selenium.WebElement>
getHiddenRows()
java.util.List<org.openqa.selenium.WebElement>
getRows()
org.openqa.selenium.WebElement
getTableEl()
Window
getWindow()
Returns the first visibleWindow
in the Container, or throws aNoSuchElementException
if none was found.void
hideDM(int rowIdx)
boolean
isGraphPresent()
java.lang.Boolean
isGroupDM(int rowIdx)
Tab
openManageCustomizationReport()
void
resetToDefault()
TLV
resetToDefaultForNeo(NeoDesktop neoDesktop)
In cases of Neo UI, after the TLV is refreshed, the elements of the old TLV throw StaleElementReference.void
setEditableDMValue(java.lang.String dataMeasureName, int dmInstance, int bucketIndex, java.lang.String val)
void
showDM(int rowIdx)
void
startCustomization()
void
startCustomization(TLV.TLV_CUSTOMIZATION_LEVEL level)
void
waitUntilReloaded()
void
waitUntilRowsUpdated()
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Frame
getDriver, getIFrameEl, getParentFrame, getSearchContext, getTLV, getUIContext, setParentFrame, switchDriver
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Container
clickAction, clickAction, clickMenuItem, clickOneLogo, createFieldFromLabel, findXTypeFromInput, getActions, getActions, getButton, getCC1InnerTab, getComponent, getDashboard, getFieldByLabel, getFieldByLabelCC15, getFieldByLabelFlux, getFieldByLabelNew, getFieldByMultiLineLabel, getFieldByName, getFieldError, getFilterOverlayPanel, getFormPanel, getGrid, getGridByClass, getGrids, getLink, getMenu, getMessagePanel, getMessagePanelFlux, getNotificationCollaboration, getProbelmDetail, getProblemList, getReadOnlyFieldByLabelCC15, getReport, getReports, getSearchPageContext, getTabPanel, getTabPanelByClass, getTemplateDisplay, getTreePanel, getWindows, getXTypeFromFormItem, getXTypeFromId, getXTypeFromLabel, isRequired, waitForSuccessMessage
Methods inherited from class com.onenetwork.platform.tools.test.ui.components.Component
getEl, getId, isDisplayed, isRequired
-
Field Details
-
FILTER_ID
public static org.openqa.selenium.By FILTER_ID -
TABLE_ID
public static org.openqa.selenium.By TABLE_ID -
HEADER_ROWS_ID
public static org.openqa.selenium.By HEADER_ROWS_ID -
ROWS_ID
public static org.openqa.selenium.By ROWS_ID -
START_CUSTOMIZATION_BTN_ID
public static org.openqa.selenium.By START_CUSTOMIZATION_BTN_ID -
FINISH_CUSTOMIZATION_BTN_ID
public static org.openqa.selenium.By FINISH_CUSTOMIZATION_BTN_ID -
RESET_CUSTOMIZATION_BTN_ID
public static org.openqa.selenium.By RESET_CUSTOMIZATION_BTN_ID -
MANAGE_CUSTOMIZATION_BTN_ID
public static org.openqa.selenium.By MANAGE_CUSTOMIZATION_BTN_ID -
SAVE_BTN_ID
public static org.openqa.selenium.By SAVE_BTN_ID -
ADD_ICON_ID
public static org.openqa.selenium.By ADD_ICON_ID -
EDIT_ICON_ID
public static org.openqa.selenium.By EDIT_ICON_ID -
DELETE_ICON_ID
public static org.openqa.selenium.By DELETE_ICON_ID -
HIDE_ICON_ID
public static org.openqa.selenium.By HIDE_ICON_ID -
SHOW_ICON_ID
public static org.openqa.selenium.By SHOW_ICON_ID -
MOVE_UP_ICON_ID
public static org.openqa.selenium.By MOVE_UP_ICON_ID -
MOVE_DOWN_ICON_ID
public static org.openqa.selenium.By MOVE_DOWN_ICON_ID -
ADD_CHILD_ICON_ID
public static org.openqa.selenium.By ADD_CHILD_ICON_ID -
MANAGE_CUSTOMIZATION
public static java.lang.String MANAGE_CUSTOMIZATION
-
-
Constructor Details
-
TLV
This constructor will initialize component class based on the current test browser. and delegate all API calls to the respective component class.- Parameters:
context
-iframeEl
-
-
-
Method Details
-
getFilterOverlay
-
getHeaderReport
public org.openqa.selenium.WebElement getHeaderReport() -
displayHeaderReport
public void displayHeaderReport(boolean display) -
isGraphPresent
public boolean isGraphPresent() -
displayGraph
public void displayGraph(boolean display) -
getTableEl
public org.openqa.selenium.WebElement getTableEl() -
executeSearch
public void executeSearch() -
getColumnHierarchyCount
public int getColumnHierarchyCount() -
getBuckets
public java.util.List<java.lang.String> getBuckets() -
getBucketsCount
public int getBucketsCount() -
getRows
public java.util.List<org.openqa.selenium.WebElement> getRows() -
getHiddenRows
public java.util.List<org.openqa.selenium.WebElement> getHiddenRows() -
startCustomization
public void startCustomization() -
startCustomization
-
finishCustomization
public void finishCustomization() -
resetToDefault
public void resetToDefault() -
resetToDefaultForNeo
In cases of Neo UI, after the TLV is refreshed, the elements of the old TLV throw StaleElementReference. Hence, this method after deleting the existing customization records, refreshes the TLV and then returns a fresh instance of TLV. Accepts a paramter ofNeoDesktop
to perform certain operations that require the context of the new NeoDesktop.- Parameters:
neoDesktop
-- Returns:
-
openManageCustomizationReport
-
executeSave
public void executeSave() -
getDMName
public java.lang.String getDMName(int rowIdx) -
getDMValue
public java.lang.String getDMValue(int rowIdx, int colIdx) -
findDMIndex
public int findDMIndex(int rowIdx, <any> condition) -
getDMValuesByHierarchy
public java.util.List<java.lang.String> getDMValuesByHierarchy(java.lang.String dmName, java.lang.String... hierarchyColumnValues) -
clickGraphCheckBox
public void clickGraphCheckBox(int rowIdx) -
clickGraphCheckBox
public void clickGraphCheckBox(java.lang.String dmName, java.lang.String... hierarchyColumnValues) -
getCell
public org.openqa.selenium.WebElement getCell(java.lang.String dmName, int colIdx) -
addDMAbove
public void addDMAbove(int rowIdx, java.lang.String name, java.lang.String expr) -
addDMAbove
public void addDMAbove(int rowIdx, java.lang.String name, java.lang.String expr, java.lang.Boolean isGroup) -
addDMBelow
public void addDMBelow(int rowIdx, java.lang.String name, java.lang.String expr) -
addDMBelow
public void addDMBelow(int rowIdx, java.lang.String name, java.lang.String expr, java.lang.Boolean isGroup) -
editDM
public void editDM(int rowIdx, java.lang.String name, java.lang.String expr) -
editDM
public void editDM(int rowIdx, java.lang.String name, java.lang.String expr, java.lang.Boolean isGroup) -
deleteDM
public void deleteDM(int rowIdx) -
hideDM
public void hideDM(int rowIdx) -
showDM
public void showDM(int rowIdx) -
waitUntilReloaded
public void waitUntilReloaded() -
waitUntilRowsUpdated
public void waitUntilRowsUpdated() -
setEditableDMValue
public void setEditableDMValue(java.lang.String dataMeasureName, int dmInstance, int bucketIndex, java.lang.String val) -
getErrorMessage
public org.openqa.selenium.WebElement getErrorMessage() -
clickNextPage
public void clickNextPage() -
clickDownPage
public void clickDownPage() -
clickUpPage
public void clickUpPage() -
clickPrevPage
public void clickPrevPage() -
clickNextPageNeo
public void clickNextPageNeo() -
clickDownPageNeo
public void clickDownPageNeo() -
clickUpPageNeo
public void clickUpPageNeo() -
clickPrevPageNeo
public void clickPrevPageNeo() -
dragAndDropDM
-
dragAndDropDMForNeo
public TLV dragAndDropDMForNeo(int sourceDMIndex, int targetDMIndex, TLV.DnDOperation operation, NeoDesktop neoDesktop, int offsetY) -
isGroupDM
public java.lang.Boolean isGroupDM(int rowIdx) -
getWindow
Description copied from class:Container
Returns the first visibleWindow
in the Container, or throws aNoSuchElementException
if none was found.
-