Class NeoPerspective
java.lang.Object
com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
com.onenetwork.platform.tools.test.ui.neo.components.NeoContainer
com.onenetwork.platform.tools.test.ui.neo.components.NeoFrame
com.onenetwork.platform.tools.test.ui.neo.components.NeoPerspective
- All Implemented Interfaces:
IPerspective
public class NeoPerspective extends NeoFrame implements IPerspective
Represents an individual perspective within the Neo Desktop. It is simply a thin extension
of
NeoFrame
, which holds all the functionality for fetching NeoComponent
s.-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPONENT_NAME
protected java.lang.String
perspectiveClass
protected java.lang.String
title
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoFrame
iframeEl, parentFrame
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoContainer
ACTIVE_PERSPECTIVE
Fields inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
context, driver, element
-
Constructor Summary
Constructors Constructor Description NeoPerspective(NeoUIContext context, org.openqa.selenium.WebElement perspectiveEl)
-
Method Summary
Modifier and Type Method Description void
close()
org.openqa.selenium.WebElement
getEl()
NeoAlertInboxSlideout
getNeoAlertInbox()
Returns an instance marked by the top element of the Alert Inbox perspectivejava.lang.String
getPerspectiveClass()
NeoContainer
getProblemContainer()
Deprecated.NeoProblemSummary
getProblemSummary()
Simple method to return the instance of Problem Summaryjava.lang.String
getTitle()
the title of currently activeNeoPerspective
void
runTest(java.lang.String testName)
Executes a React unit test by executing the runTest() function on a perspective.void
runTests()
Executes all React unit tests by executing the runTests() function on a perspective.void
verifyResult()
Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoFrame
getDriver, getIFrameEl, getSearchContext, getUIContext, switchDriver
Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoContainer
getAdvancedTable, getButton, getDashboard, getFieldByLabel, getFieldByLabel, getGrid, getGrids, getLink, getNeoMessagePanel, getNeoPivotTable, getNeoTabbedPane, getReport, getReports, getWindow, isRequired, openFilterPanel
Methods inherited from class com.onenetwork.platform.tools.test.ui.neo.components.NeoComponent
getFieldErrorMessage, getTooltipMessage, isDisplayed, setMultipleValues, setValue
-
Field Details
-
COMPONENT_NAME
public static final java.lang.String COMPONENT_NAME- See Also:
- Constant Field Values
-
perspectiveClass
protected java.lang.String perspectiveClass -
title
protected java.lang.String title
-
-
Constructor Details
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceIPerspective
-
runTest
public void runTest(java.lang.String testName)Executes a React unit test by executing the runTest() function on a perspective. This method should only be called after the perspective containing the unit test has been opened with a method likeNeoDesktop.openPerspectiveFromMenu(String...)
. It will throw an exception containing the test result if it fails.- Parameters:
testName
- The name of the unit test
-
runTests
public void runTests()Executes all React unit tests by executing the runTests() function on a perspective. This method should only be called after the perspective containing the unit tests has been opened with a method likeNeoDesktop.openPerspectiveFromMenu(String...)
. It will throw an exception containing the test results if any test fails. -
verifyResult
public void verifyResult() -
getPerspectiveClass
public java.lang.String getPerspectiveClass()- Specified by:
getPerspectiveClass
in interfaceIPerspective
-
getTitle
public java.lang.String getTitle()the title of currently activeNeoPerspective
- Specified by:
getTitle
in interfaceIPerspective
- Returns:
String
-
getEl
public org.openqa.selenium.WebElement getEl()- Specified by:
getEl
in interfaceIPerspective
- Overrides:
getEl
in classNeoComponent
- See Also:
NeoComponent.getEl()
-
getNeoAlertInbox
Returns an instance marked by the top element of the Alert Inbox perspective- Returns:
NeoAlertInboxSlideout
-
getProblemContainer
Deprecated.Simple method to return the instance of Problem Container- Returns:
NeoContainer
-
getProblemSummary
Simple method to return the instance of Problem Summary- Returns:
NeoProblemSummary
-