public final class ResourceUIUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ICON_RESOURCE_NAME |
static String |
INITIAL_VERSION |
protected static boolean |
IS_BEFORE_TEST |
static String |
RESOURCE_NAME_PREFIX |
protected static String |
UPDATED_RESOURCE_ICON_NAME |
Modifier and Type | Method and Description |
---|---|
static List<String> |
catalogFilterResourceCategoriesChecBox(ResourceCategoriesNameEnum enumName) |
static RestResponse |
checkInResourceInUI(ResourceReqDetails resource,
User user) |
static void |
clickButton(String selectButton) |
static void |
clickButtonBlue() |
static void |
clickMore() |
static void |
clickOnHTMLElementByDataTestId(String dataTestId)
Click on HTML element.
|
static RestResponse |
createResource(ResourceReqDetails resource,
User user) |
static RestResponse |
createResourceInUI(ResourceReqDetails resource,
User user) |
static RestResponse |
createResourceNG(ResourceReqDetails resource,
User user) |
static void |
defineBoolenDefaultValue(String Value) |
static void |
defineDefaultValueByType(String Value) |
static void |
defineNewSelectList(String Text) |
static String |
definePropertyName(String name) |
static void |
defineResourceCategory(String category,
String datatestsid) |
static void |
defineResourceName(String resourceName) |
static String |
defineUserId(String userId) |
static void |
defineVendorRelease(String resourceVendorRelease) |
static void |
deleteVersionInUI() |
static void |
fillGeneralInfoValuesAndIcon(ResourceReqDetails resource,
User user) |
static void |
fillNewResourceValues(ResourceReqDetails resource,
User user) |
static void |
fillResourceGeneralInformationPage(ResourceReqDetails resource,
User user) |
static List<org.openqa.selenium.WebElement> |
getAllObjectsOnWorkspace(org.openqa.selenium.WebDriver driver,
ResourceReqDetails resource) |
static String |
getErrorMessageText(String text) |
static org.openqa.selenium.WebElement |
getErrorMessageText(org.openqa.selenium.WebDriver driver,
String text) |
static org.apache.commons.lang3.tuple.ImmutablePair<String,String> |
getFirstRIPos(ResourceReqDetails createResourceInUI,
User user) |
static void |
getGeneralInfo(ResourceReqDetails resource,
User user) |
static void |
getGeneralInfoForTags(ResourceReqDetails resource,
User user) |
protected static String |
getRandomComponentName(String prefix)
Import VF
|
static void |
getVFCGeneralInfo(ResourceReqDetails resource,
User user) |
static void |
getVFCGeneralInfoAndValidate(ResourceReqDetails resource,
User user) |
static void |
importFileWithSendKey(String FilePath,
String FileName,
CreateAndImportButtonsEnum type) |
static void |
importFileWithSendKeyBrowse(String FilePath,
String FileName) |
static void |
importVfc(ResourceReqDetails resourceMetaData,
String filePath,
String fileName,
User user)
Import VFC
|
static String |
lifeCycleStateUI() |
static void |
moveToHTMLElementByClassName(String className)
Move to HTML element by class name.
|
static org.openqa.selenium.WebElement |
rihtPanelAPI() |
static void |
scrollDownPage() |
static org.openqa.selenium.WebElement |
scrollElement(org.openqa.selenium.WebDriver driver) |
static Boolean |
searchCheckOutWorkspace(ResourceReqDetails resource,
User user,
CheckBoxStatusEnum checkBoxStatusEnum) |
static org.openqa.selenium.WebElement |
searchVFNameInWorkspace(ResourceReqDetails resource,
User user) |
static void |
selectRandomResourceIcon() |
static void |
selectResourceIcon(String resourceIcon) |
static void |
selectTabInRightPallete(String className) |
static RestResponse |
updateResourceInformationPage(ResourceReqDetails resource,
User user) |
static void |
validateWithRightPalett(ResourceReqDetails resource,
User user) |
static org.openqa.selenium.WebElement |
waitFunctionForaGetElements(String element,
int timeout) |
static org.openqa.selenium.WebElement |
waitfunctionforallelements(String element) |
static org.openqa.selenium.WebElement |
Waitfunctionforbuttons(String element,
int timeout) |
static void |
waitOpenCard(String requiredElementUniqueId) |
static org.openqa.selenium.WebElement |
waitSearch() |
static org.openqa.selenium.WebElement |
waitSubmitforTestingCard() |
static org.openqa.selenium.WebElement |
waitToButtonSubmitForTesting() |
static org.openqa.selenium.WebElement |
waitToCatalogMenu() |
static org.openqa.selenium.WebElement |
waitToDeleteVersion() |
static org.openqa.selenium.WebElement |
waitToFinishButtonEnabled() |
static org.openqa.selenium.WebElement |
waitToHomeMenu() |
static org.openqa.selenium.WebElement |
waitToNextButtonEnabled() |
static org.openqa.selenium.WebElement |
waitViewCard() |
public static final String RESOURCE_NAME_PREFIX
protected static final boolean IS_BEFORE_TEST
public static final String INITIAL_VERSION
public static final String ICON_RESOURCE_NAME
protected static final String UPDATED_RESOURCE_ICON_NAME
public static void defineResourceName(String resourceName)
public static void defineResourceCategory(String category, String datatestsid)
public static void importFileWithSendKey(String FilePath, String FileName, CreateAndImportButtonsEnum type) throws Exception
Exception
public static void importFileWithSendKeyBrowse(String FilePath, String FileName) throws Exception
Exception
public static void defineVendorRelease(String resourceVendorRelease)
public static void selectResourceIcon(String resourceIcon) throws Exception
Exception
public static void selectRandomResourceIcon() throws Exception
Exception
public static List<org.openqa.selenium.WebElement> getAllObjectsOnWorkspace(org.openqa.selenium.WebDriver driver, ResourceReqDetails resource) throws Exception
Exception
public static String getErrorMessageText(String text) throws Exception
Exception
public static org.openqa.selenium.WebElement scrollElement(org.openqa.selenium.WebDriver driver) throws Exception
Exception
public static void scrollDownPage() throws AWTException, InterruptedException
AWTException
InterruptedException
public static void defineNewSelectList(String Text)
public static void defineDefaultValueByType(String Value)
public static void defineBoolenDefaultValue(String Value)
public static void clickButtonBlue()
public static void clickButton(String selectButton)
public static org.openqa.selenium.WebElement Waitfunctionforbuttons(String element, int timeout)
public static org.openqa.selenium.WebElement waitToButtonSubmitForTesting()
public static org.openqa.selenium.WebElement waitToFinishButtonEnabled()
public static org.openqa.selenium.WebElement waitToNextButtonEnabled()
public static org.openqa.selenium.WebElement waitToHomeMenu()
public static org.openqa.selenium.WebElement waitToCatalogMenu()
public static org.openqa.selenium.WebElement waitSearch()
public static org.openqa.selenium.WebElement waitSubmitforTestingCard()
public static org.openqa.selenium.WebElement waitViewCard()
public static void waitOpenCard(String requiredElementUniqueId) throws Exception
Exception
public static void fillResourceGeneralInformationPage(ResourceReqDetails resource, User user)
public static void fillNewResourceValues(ResourceReqDetails resource, User user) throws Exception
Exception
public static org.openqa.selenium.WebElement waitfunctionforallelements(String element)
public static org.openqa.selenium.WebElement waitFunctionForaGetElements(String element, int timeout)
public static void getVFCGeneralInfo(ResourceReqDetails resource, User user) throws InterruptedException
InterruptedException
public static void getGeneralInfo(ResourceReqDetails resource, User user)
public static void getGeneralInfoForTags(ResourceReqDetails resource, User user)
public static org.openqa.selenium.WebElement searchVFNameInWorkspace(ResourceReqDetails resource, User user) throws Exception
Exception
public static Boolean searchCheckOutWorkspace(ResourceReqDetails resource, User user, CheckBoxStatusEnum checkBoxStatusEnum) throws Exception
Exception
public static void validateWithRightPalett(ResourceReqDetails resource, User user)
public static void clickMore()
public static RestResponse createResourceInUI(ResourceReqDetails resource, User user) throws Exception, AWTException
Exception
AWTException
public static RestResponse createResource(ResourceReqDetails resource, User user) throws Exception, AWTException
Exception
AWTException
public static RestResponse updateResourceInformationPage(ResourceReqDetails resource, User user) throws Exception, AWTException
Exception
AWTException
public static RestResponse checkInResourceInUI(ResourceReqDetails resource, User user) throws Exception
Exception
public static String lifeCycleStateUI() throws InterruptedException
InterruptedException
public static List<String> catalogFilterResourceCategoriesChecBox(ResourceCategoriesNameEnum enumName) throws Exception
Exception
public static void selectTabInRightPallete(String className) throws Exception
Exception
public static org.openqa.selenium.WebElement waitToDeleteVersion()
public static org.openqa.selenium.WebElement rihtPanelAPI()
public static void clickOnHTMLElementByDataTestId(String dataTestId) throws Exception
dataTestId
- Exception
public static void moveToHTMLElementByClassName(String className)
className
- public static void importVfc(ResourceReqDetails resourceMetaData, String filePath, String fileName, User user) throws Exception
user
- filePath
- fileName
- Exception
protected static String getRandomComponentName(String prefix)
user
- filePath
- fileName
- Exception
public static org.apache.commons.lang3.tuple.ImmutablePair<String,String> getFirstRIPos(ResourceReqDetails createResourceInUI, User user)
public static org.openqa.selenium.WebElement getErrorMessageText(org.openqa.selenium.WebDriver driver, String text) throws Exception
Exception
public static void fillGeneralInfoValuesAndIcon(ResourceReqDetails resource, User user) throws Exception
Exception
public static void getVFCGeneralInfoAndValidate(ResourceReqDetails resource, User user) throws InterruptedException
InterruptedException
public static RestResponse createResourceNG(ResourceReqDetails resource, User user) throws Exception, AWTException
Exception
AWTException
Copyright © 2017. All rights reserved.