cryptoService, cucumberExpressionService, SECURE_MASK, userNameService| Constructor and Description |
|---|
FileSteps() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkFile(String file,
String encoding,
String regexp,
List<GherkinStepCondition> conditions)
Checks that a file in the default downloaded files folder matches the given regexp.
|
void |
cleanDownloadDirectory(List<GherkinStepCondition> conditions)
Empties the default downloaded files folder.
|
void |
removefileInDownloadDirectory(String file,
List<GherkinStepCondition> conditions)
Remove a file in the default downloaded files folder
|
void |
uploadFile(Page.PageElement pageElement,
String filename,
List<GherkinStepCondition> conditions)
Waits the full download of a file.
|
void |
waitDownloadFile(String file,
int timeout,
List<GherkinStepCondition> conditions)
Waits the full download of a file with a maximum timeout in seconds.
|
checkAlert, checkElementPresence, checkElementVisible, checkInputText, checkInputText, checkMandatoryTextField, checkRadioList, checkRadioList, checkStep, checkText, checkTextContains, checkTextSelectedInList, clearText, clearText, clearText, clearText, clickOn, clickOn, clickOnByJs, clickOnByJs, clickOnByJs, clickOnByJs, displayConcernedElementsAtTheBeginningOfMethod, displayMessageAtTheBeginningOfMethod, displayMessageAtTheBeginningOfMethod, expectText, expectText, expectTextContains, expectTextContains, getAlertMessage, getDriver, getTextOrKey, passOver, readValueTextField, runAllStepsInLoop, saveElementValue, saveElementValue, selectCheckbox, selectCheckbox, setText, setText, setText, switchFrame, updateDateValidated, updateList, updateRadioList, updateRadioList, updateText, updateText, updateText, updateText, uploadFile@Lorsque(value="Je vide le repertoire des t\u00e9l\u00e9chargements(\\?)") @Given(value="I clean download directory(\\?)") public void cleanDownloadDirectory(List<GherkinStepCondition> conditions)
conditions - List of 'expected' values condition and 'actual' values (GherkinStepCondition).@Lorsque(value="Je supprime le fichier {string} dans repertoire des t\u00e9l\u00e9chargements(\\?)")
@Given(value="I remove {string} file in download directory(\\?)")
public void removefileInDownloadDirectory(String file,
List<GherkinStepCondition> conditions)
file - The name of the file removed.conditions - List of 'expected' values condition and 'actual' values (GherkinStepCondition).@Alors(value="Le fichier {string} encod\u00e9 en {string} v\u00e9rifie {string}(\\?)")
@Then(value="The file {string} encoded in {string} matches {string}(\\?)")
public void checkFile(String file,
String encoding,
String regexp,
List<GherkinStepCondition> conditions)
throws TechnicalException,
FailureException
file - The name of the fileencoding - The file encodingregexp - The pattern to matchconditions - List of 'expected' values condition and 'actual' values (GherkinStepCondition).FailureException - if the scenario encounters a functional errorTechnicalException - is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_FILE_NOT_MATCHES" message (with screenshot, no exception)@Lorsque(value="J\'attends que le fichier nomm\u00e9 {string} soit t\u00e9l\u00e9charg\u00e9 avec un timeout de {int} seconde(s)(\\?)")
@Then(value="I wait file named {string} to be downloaded with timeout of {int} second(s)(\\?)")
public void waitDownloadFile(String file,
int timeout,
List<GherkinStepCondition> conditions)
throws InterruptedException,
FailureException,
TechnicalException
file - The name of the file to downloadtimeout - The maximum timeoutconditions - List of 'expected' values condition and 'actual' values (GherkinStepCondition).InterruptedException - Exception for the sleepFailureException - if the scenario encounters a functional errorTechnicalException - is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_DOWNLOADED_FILE_NOT_FOUND" message (with screenshot, no exception)@Lorsque(value="J\'utilise l\'\u00e9l\u00e9ment {page-element} pour uploader le fichier {string}(\\?)")
@Then(value="I use {page-element} element to upload {string} file(\\?)")
public void uploadFile(Page.PageElement pageElement,
String filename,
List<GherkinStepCondition> conditions)
throws FailureException,
TechnicalException
pageElement - The concerned page of field AND key of PageElement concerned (sample: $demo.DemoPage-button)filename - The name of the file to upload (from the default downloaded files directory)conditions - List of 'expected' values condition and 'actual' values (GherkinStepCondition).FailureException - if the scenario encounters a functional errorTechnicalException - is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
Exception with "FAIL_MESSAGE_UPLOADING_FILE" message (with screenshot, no exception)Copyright © 2023 NoraUi. All rights reserved.