Modifier and Type | Method and Description |
---|---|
static Page |
Page.getInstance(String className)
Finds a Page by its name (not the full qualified name).
|
Page.PageElement |
IPage.getPageElementByKey(String key) |
Page.PageElement |
Page.getPageElementByKey(String key) |
Modifier and Type | Method and Description |
---|---|
void |
CommonSteps.checkAlert(String messageOrKey)
Checks that a given page displays a html alert with a message.
|
void |
CommonSteps.checkAlert(String page,
List<GherkinStepCondition> conditions)
Checks that a given page displays a html alert.
|
void |
CommonSteps.checkElementNotDisplayed(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitInvisibilityOf(Page.PageElement, Boolean, List)
"I wait invisibility of {string}(\\?)"
Checks if an html element is not visible. |
void |
CommonSteps.checkElementNotPresent(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitPresenceOfElementLocated(Page.PageElement, Boolean, List)
"The element {page-element} {should-shouldnot} be present(\\?)"
Checks if an html element is not present. |
void |
CommonSteps.checkElementPresent(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitPresenceOfElementLocated(Page.PageElement, Boolean, List)
"The element {page-element} {should-shouldnot} be present(\\?)"
Checks if an html element is present. |
void |
CommonSteps.checkElementVisible(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Deprecated.
As of release 4.1, replaced by
WaitSteps.waitVisibilityOf(Page.PageElement pageElement, Boolean not, List)
"I wait visibility of {string}(\\?)"
Checks if an html element is visible. |
void |
FileSteps.checkFile(String file,
String encoding,
String regexp,
List<GherkinStepCondition> conditions)
Checks that a file in the default downloaded files folder matches the given regexp.
|
protected boolean |
Step.checkInputText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if input text contains expected value.
|
void |
CommonSteps.checkInputText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if html input text contains expected value.
|
protected boolean |
Step.checkInputText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if input text contains expected value.
|
void |
CommonSteps.checkMandatoryField(Page.PageElement pageElement,
String type,
List<GherkinStepCondition> conditions)
Checks that mandatory field is no empty with conditions.
|
void |
CommonSteps.checkMandatoryFields(Map<String,String> mandatoryFields)
Check all mandatory fields.
|
void |
CommonSteps.checkNotEmpty(String data,
String textOrKey,
List<GherkinStepCondition> conditions)
Generic method to check that the value given in parameters is not empty.
|
void |
CommonSteps.checkRadioList(Page.PageElement pageElement,
String valueOrKey,
List<GherkinStepCondition> conditions)
Checks if radio list expected value with conditions.
|
void |
CommonSteps.checkRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues)
Checks if radio list expected value using a map of keys/printed values.
|
protected boolean |
Step.checkRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues,
Object... args)
Checks that given value is matching the selected radio list button by value (value corresponding to key "index").
|
protected void |
Step.checkText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if HTML text equals expected value.
|
protected void |
Step.checkTextContains(Page.PageElement pageElement,
String textOrKey,
Object... args)
Checks if HTML text contains expected value.
|
void |
ContextSteps.checkThatValueInContextContains(String srcValueOrKey,
String compareValueOrKey,
List<GherkinStepCondition> conditions)
Check that value (or value in context) contains value (or value in context).
|
void |
ContextSteps.checkThatValueInContextEqualsIgnoreCaseTo(String srcValueOrKey,
String compareValueOrKey,
List<GherkinStepCondition> conditions)
Check that value (or value in context) equals ignore case to value (or value in context).
|
void |
ContextSteps.checkThatValueInContextEqualsTo(String srcValueOrKey,
String compareValueOrKey,
List<GherkinStepCondition> conditions)
Check that value (or value in context) equals to value (or value in context).
|
protected void |
Step.clearText(int timeOutInSeconds,
Page.PageElement pageElement,
CharSequence keysToSend,
Object... args)
Update a html input text with "".
|
protected void |
Step.clearText(int timeOutInSeconds,
Page.PageElement pageElement,
Object... args)
Update a html input text with "".
|
protected void |
Step.clearText(Page.PageElement pageElement,
CharSequence keysToSend,
Object... args)
Update a html input text with "".
|
void |
CommonSteps.clearText(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Clears a html element with conditions.
|
protected void |
Step.clearText(Page.PageElement pageElement,
Object... args)
Update a html input text with "".
|
protected void |
Step.clickOn(int timeOutInSeconds,
Page.PageElement toClick,
Object... args)
Click on html element.
|
void |
CommonSteps.clickOn(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element if all 'expected' parameters equals 'actual' parameters in conditions.
|
protected void |
Step.clickOn(Page.PageElement toClick,
Object... args)
Click on html element.
|
void |
CommonSteps.clickOnAndSwitchWindow(Page.PageElement pageElement,
String windowKey,
List<GherkinStepCondition> conditions)
Click on html element and switch window when the scenario contain more one windows (one more application for example), if all 'expected' parameters equals 'actual' parameters in conditions.
|
protected void |
Step.clickOnByJs(int timeOutInSeconds,
Page.PageElement toClick,
Object... args)
Click on html element by Javascript.
|
protected void |
Step.clickOnByJs(int timeOutInSeconds,
Page page,
String xpath)
Click on html element by Javascript.
|
void |
CommonSteps.clickOnByJs(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Click on html element using Javascript if all 'expected' parameters equals 'actual' parameters in conditions.
|
protected void |
Step.clickOnByJs(Page.PageElement toClick,
Object... args)
Click on html element by Javascript.
|
protected void |
Step.clickOnByJs(Page page,
String xpath)
Click on html element by Javascript.
|
void |
CommonSteps.clickOnXpathByJs(String xpath,
Page page,
List<GherkinStepCondition> conditions)
Click on html element using Javascript if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
ContextSteps.copyContext(String srcValueOrKey,
String targetKey,
List<GherkinStepCondition> conditions)
Copy source value or value in context.
|
protected void |
Step.expectText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element equals expected value.
|
void |
ExpectSteps.expectText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Checks if an html element contains expected value.
|
protected void |
Step.expectText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element equals expected value.
|
protected void |
Step.expectTextContains(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element contains expected value.
|
protected void |
Step.expectTextContains(Page.PageElement pageElement,
String textOrKey,
Object... args)
Expects that an element contains expected value.
|
void |
ContextSteps.generateAndSaveTextWithRamdomValueMatchRegexp(String randRegex,
String targetKey,
List<GherkinStepCondition> conditions)
Save in context a text generated with ramdom match a regExp.
|
protected String |
Step.getTextOrKey(String textOrKey) |
void |
CommonSteps.passOver(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Simulates the mouse over a html element
|
protected void |
Step.passOver(Page.PageElement element,
Object... args)
Passes over a specific page element triggering 'mouseover' js event.
|
protected void |
Step.runAllStepsInLoop(List<GherkinConditionedLoopedStep> loopedSteps)
Runs a bunch of steps for a Gherkin loop.
|
void |
CommonSteps.saveElementValue(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Save field in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
protected void |
Step.saveElementValue(Page.PageElement pageElement,
Object... args)
Save value in memory using default target key (Page key + field).
|
protected void |
Step.saveElementValue(Page.PageElement pageElement,
String targetKey,
Object... args)
Save value in memory.
|
void |
CommonSteps.saveValue(Page.PageElement pageElement,
String targetKey,
List<GherkinStepCondition> conditions)
Save field in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
RESTSteps.saveValue(String method,
String pageKey,
String uri,
String targetKey,
List<GherkinStepCondition> conditions)
Save result of REST API in memory if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
CommonSteps.saveValueInDataOutputProvider(Page.PageElement pageElement,
String targetColumn,
List<GherkinStepCondition> conditions)
Save field in data output provider if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
RESTSteps.saveValueInDataOutputProvider(String method,
String pageKey,
String uri,
String targetColumn,
List<GherkinStepCondition> conditions)
Save result of REST API in dataOutputProvider if all 'expected' parameters equals 'actual' parameters in conditions.
|
void |
ScreenSteps.saveWebElementInScreenshot(Page.PageElement pageElement,
String screenName,
List<GherkinStepCondition> conditions)
Save a screenshot of one element only and add to DOWNLOAD_FILES_FOLDER folder.
|
protected void |
Step.selectCheckbox(Page.PageElement element,
boolean checked,
Object... args)
Checks a checkbox type element.
|
void |
CommonSteps.selectCheckbox(Page.PageElement pageElement,
String value,
List<GherkinStepCondition> conditions)
Updates the value of a html checkbox element with conditions.
|
void |
CommonSteps.selectCheckbox(Page.PageElement pageElement,
String value,
Map<String,Boolean> values)
Updates the value of a html checkbox element with conditions regarding the provided keys/values map.
|
protected void |
Step.selectCheckbox(Page.PageElement element,
String valueKeyOrKey,
Map<String,Boolean> values,
Object... args)
Checks a checkbox type element (value corresponding to key "valueKey").
|
protected void |
Step.setText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Set a html input text with a text.
|
protected void |
Step.setText(Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Set a html input text with a text.
|
void |
CommonSteps.setText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
protected void |
Step.setText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Set a html input text with a text.
|
void |
CommonSteps.setText(String pageElement,
String textOrKey,
List<GherkinStepCondition> conditions) |
static void |
CucumberHooks.setUpScenario(io.cucumber.core.api.Scenario scenario) |
void |
CommonSteps.switchFrame(Page.PageElement pageElement,
List<GherkinStepCondition> conditions)
Switches to the given frame.
|
protected void |
Step.switchFrame(Page.PageElement element,
Object... args)
Switches to the given frame.
|
void |
CommonSteps.updateDate(Page.PageElement pageElement,
String dateType,
String dateOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a date.
|
protected void |
Step.updateDateValidated(Page.PageElement pageElement,
String dateType,
String date,
Object... args)
Update a html input text value with a date.
|
void |
CommonSteps.updateList(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html select input text with a text data (if it exists in html "option" list).
|
protected void |
Step.updateList(Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html select with a text value.
|
void |
CommonSteps.updateRadioList(Page.PageElement pageElement,
String valueOrKey,
List<GherkinStepCondition> conditions)
Updates the value of a html radio element with conditions.
|
void |
CommonSteps.updateRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues)
Updates the value of html radio element with conditions using a map of keys/printed values.
|
protected void |
Step.updateRadioList(Page.PageElement pageElement,
String valueKeyOrKey,
Map<String,String> printedValues,
Object... args)
Update html radio button by value (value corresponding to key "index").
|
protected void |
Step.updateRadioList(Page.PageElement pageElement,
String valueOrKey,
Object... args)
Update html radio button by text "input".
|
protected void |
Step.updateText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Update a html input text with a text.
|
protected void |
Step.updateText(int timeOutInSeconds,
Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html input text with a text.
|
protected void |
Step.updateText(Page.PageElement pageElement,
String textOrKey,
CharSequence keysToSend,
Object... args)
Update a html input text with a text.
|
void |
CommonSteps.updateText(Page.PageElement pageElement,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a given text.
|
protected void |
Step.updateText(Page.PageElement pageElement,
String textOrKey,
Object... args)
Update a html input text with a text.
|
void |
CommonSteps.updateTextAndSeleniumKeys(Page.PageElement pageElement,
org.openqa.selenium.Keys key,
String textOrKey,
List<GherkinStepCondition> conditions)
Update a html input text with a given text and then press org.openqa.selenium.Keys (ENTER, ESCAPE, ...).
|
void |
CommonSteps.updateTextWithRamdomValueMatchRegexp(Page.PageElement pageElement,
String randRegex,
List<GherkinStepCondition> conditions)
Update a html input text with a random text.
|
void |
FileSteps.uploadFile(Page.PageElement pageElement,
String filename,
List<GherkinStepCondition> conditions)
Waits the full download of a file.
|
protected void |
Step.uploadFile(Page.PageElement pageElement,
String fileOrKey,
Object... args)
Updates a html file input with the path of the file to upload.
|
void |
MailSteps.validActivationEmail(String mailHost,
String mailUser,
String mailPassword,
String senderMail,
String subjectMail,
String firstCssQuery,
List<GherkinStepCondition> conditions)
Valid activation email.
|
void |
FileSteps.waitDownloadFile(String file,
int timeout,
List<GherkinStepCondition> conditions)
Waits the full download of a file with a maximum timeout in seconds.
|
void |
WaitSteps.waitInvisibilityOf(Page.PageElement pageElement,
Boolean not,
int timeOutInSeconds,
List<GherkinStepCondition> conditions)
Waits invisibility of element with timeout of x seconds.
|
void |
WaitSteps.waitInvisibilityOf(Page.PageElement pageElement,
Boolean not,
List<GherkinStepCondition> conditions) |
void |
WaitSteps.waitStalenessOf(Page.PageElement pageElement,
Boolean not,
int time,
List<GherkinStepCondition> conditions)
Waits staleness of element with timeout of x seconds.
|
void |
WaitSteps.waitTextToBePresentInElementValue(Page.PageElement pageElement,
Boolean not,
String text,
List<GherkinStepCondition> conditions)
Waits text to be present in element value.
|
Modifier and Type | Method and Description |
---|---|
static org.openqa.selenium.Cookie |
Auth.getAuthenticationCookie(String domainUrl)
Returns a Cookie object by retrieving data from -Dcookie maven parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
BrowserSteps.closeAllWindowsAndSwitchTo(String key)
Closes all windows except the given one.
|
void |
BrowserSteps.closeAllWindowsAndSwitchTo(String key,
List<GherkinStepCondition> conditions)
Closes all browser windows and switches to target window with conditions.
|
void |
BrowserSteps.closeWindowAndSwitchTo(String key,
List<GherkinStepCondition> conditions)
Closes window and switches to target window with conditions.
|
void |
BrowserSteps.closeWindowAndSwitchTo(String key,
String backTo)
Closes a specific window and go to the given url.
|
void |
BrowserSteps.goToUrl(String pageKey)
Go to Url.
|
void |
BrowserSteps.openUrlIfDifferent(String pageKey,
List<GherkinStepCondition> conditions)
Open Url if different with conditions.
|
void |
BrowserSteps.restartWebDriverAndSwitchTo(String backTo)
Restart WebDriver with a
Context.clear() and go to the given url. |
void |
BrowserSteps.restartWebDriverAndSwitchTo(String backTo,
List<GherkinStepCondition> conditions)
Restart WebDriver with a
Context.clear() and switches to target window with conditions. |
void |
BrowserSteps.switchWindow(String windowKey,
List<GherkinStepCondition> conditions)
Switch window when the scenario contain more one windows (one more application for example).
|
Modifier and Type | Method and Description |
---|---|
void |
NoraUiCommandLineInterface.runCli(Class<?> context,
Class<?> counter,
String... args) |
Modifier and Type | Method and Description |
---|---|
static void |
NoraUiInjector.createInjector(com.google.inject.Injector injector) |
Modifier and Type | Method and Description |
---|---|
static Map<Integer,Map<String,ModelList>> |
DataUtils.fusionProcessor(Class<Model> model,
Constructor<Model> modelConstructor) |
Class<Model> |
DataProvider.getModel(String modelPackagesCsv) |
Class<Model> |
CommonDataProvider.getModel(String modelPackagesCsv) |
int |
DataInputProvider.getNbLines()
Gets the number of readable lines of current opened file.
|
void |
DataProvider.prepare(String scenario) |
String[] |
DataInputProvider.readLine(int line,
boolean readResult) |
String |
DataInputProvider.readValue(String column,
int line)
Reads a cell of opened input file.
|
void |
DataOutputProvider.writeDataResult(String column,
int line,
String value)
Writes a data in the output file.
|
void |
DataOutputProvider.writeFailedResult(int line,
String value)
Writes a fail message in the output file.
|
void |
DataOutputProvider.writeSuccessResult(int line)
Writes a successful message in the output file.
|
void |
DataOutputProvider.writeWarningResult(int line,
String value)
Writes a warning message in the output file.
|
Modifier and Type | Method and Description |
---|---|
void |
OutputConsoleDataProvider.prepare(String scenario) |
Modifier and Type | Method and Description |
---|---|
String |
CsvDataProvider.readValue(String column,
int line)
Reads a cell of opened input file.
|
Modifier and Type | Method and Description |
---|---|
int |
DBDataProvider.getNbLines()
Gets the number of readable lines of current opened file.
|
void |
DBDataProvider.prepare(String scenario) |
String[] |
DBDataProvider.readLine(int line,
boolean readResult) |
String |
DBDataProvider.readValue(String column,
int line)
Reads a cell of opened input file.
|
protected static void |
DBDataProvider.sqlSanitized4readOnly(String sqlInput) |
Constructor and Description |
---|
DBDataProvider(String type,
String user,
String password,
String hostname,
String port,
String database) |
Modifier and Type | Method and Description |
---|---|
int |
ExcelDataProvider.getNbLines()
Gets the number of readable lines of current opened file.
|
protected void |
ExcelDataProvider.openInputData() |
void |
InputExcelDataProvider.prepare(String scenario) |
void |
OutputExcelDataProvider.prepare(String scenario) |
String[] |
ExcelDataProvider.readLine(int line,
boolean readResult) |
String |
ExcelDataProvider.readValue(String column,
int line)
Reads a cell of opened input file.
|
Modifier and Type | Method and Description |
---|---|
Class<Model> |
InputGherkinDataProvider.getModel(String modelPackages) |
int |
InputGherkinDataProvider.getNbLines()
Gets the number of readable lines of current opened file.
|
void |
InputGherkinDataProvider.prepare(String scenario) |
String[] |
InputGherkinDataProvider.readLine(int line,
boolean readResult) |
String |
InputGherkinDataProvider.readValue(String column,
int line)
Reads a cell of opened input file.
|
Modifier and Type | Method and Description |
---|---|
void |
RestDataProvider.prepare(String scenario) |
Constructor and Description |
---|
Success(O object,
String message) |
Modifier and Type | Method and Description |
---|---|
List<MavenRunCounter.Counter> |
MavenRunCounter.count(List<String> versionControlSystemsBlacklist,
List<String> blacklist,
List<String> manager,
File scenarioFolder)
Runs the counting process to figure out expected test runs results (Runs, Failures, Errors, Skipped).
|
static void |
Counter.main(String[] args) |
Modifier and Type | Method and Description |
---|---|
String |
CryptoService.decrypt(String text)
decrypt given text as plainText (encrypted), use cryptoKey as string in context and return decrypted plainText.
|
String |
CryptoService.decrypt(String cryptoKey,
String encrypted)
decrypt given cryptoKey as string and text as plainText (encrypted) and return decrypted plainText.
|
String |
CryptoService.encrypt(String text)
encrypt given text as plainText, use cryptoKey as string in context and return encrypted plainText.
|
String |
CryptoService.encrypt(String cryptoKey,
String text)
encrypt given cryptoKey as string and text as plainText and return encrypted plainText.
|
String |
HttpService.get(String url) |
String |
HttpService.get(String baseUrl,
String uri) |
String |
HttpService.post(String url,
String json) |
String |
HttpService.post(String baseUrl,
String uri,
String json) |
Modifier and Type | Method and Description |
---|---|
String |
CryptoServiceImpl.decrypt(String encrypted)
decrypt given text as plainText (encrypted), use cryptoKey as string in context and return decrypted plainText.
|
String |
CryptoServiceImpl.decrypt(String cryptoKey,
String encrypted)
decrypt given cryptoKey as string and text as plainText (encrypted) and return decrypted plainText.
|
String |
CryptoServiceImpl.encrypt(String text)
encrypt given text as plainText, use cryptoKey as string in context and return encrypted plainText.
|
String |
CryptoServiceImpl.encrypt(String cryptoKey,
String text)
encrypt given cryptoKey as string and text as plainText and return encrypted plainText.
|
String |
HttpServiceImpl.get(String url) |
String |
HttpServiceImpl.get(String baseUrl,
String uri) |
String |
HttpServiceImpl.post(String url,
String json) |
String |
HttpServiceImpl.post(String baseUrl,
String uri,
String json) |
Modifier and Type | Method and Description |
---|---|
String |
Security.createSha1(File file) |
void |
Security.createSha1CheckSumFile(File file) |
static String |
Messages.format(String templateMessage,
Object... args)
Format given message with provided arguments
|
void |
Context.initializeRobot(Class<?> clazz) |
int |
ShellCommand.run() |
Copyright © 2023 NoraUi. All rights reserved.