public class InputGherkinDataProvider extends CommonDataProvider implements DataInputProvider
CommonDataProvider.ResultColumnNames
DataProvider.type
columns, dataInPath, dataOutPath, indexData, resultColumnName, scenarioName
Constructor and Description |
---|
InputGherkinDataProvider() |
Modifier and Type | Method and Description |
---|---|
String[] |
getExamples()
Gets prepared Gherkin examples.
|
Class<Model> |
getModel(String modelPackages) |
int |
getNbLines()
Gets the number of readable lines of current opened file.
|
void |
prepare(String scenario) |
String[] |
readLine(int line,
boolean readResult) |
String |
readValue(String column,
int line)
Reads a cell of opened input file.
|
getIndexData, getNbGherkinExample, getResultColumnName, isResultColumnNameAuthorized, setDataInPath, setDataOutPath, setIndexData, writeDataResult, writeFailedResult, writeSuccessResult, writeValue, writeWarningResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIndexData, getNbGherkinExample, getResultColumnName, isResultColumnNameAuthorized, setDataInPath, setDataOutPath, setIndexData
public void prepare(String scenario) throws TechnicalException
prepare
in interface DataProvider
TechnicalException
public int getNbLines() throws TechnicalException
getNbLines
in interface DataInputProvider
TechnicalException
- if Wrong data file (IOException, EmptyDataFileContentException or WrongDataFileFormatException)public String[] getExamples()
public String readValue(String column, int line) throws TechnicalException
readValue
in interface DataInputProvider
column
- index of the column to readline
- index of the line to readTechnicalException
- if Wrong data file (IOException, EmptyDataFileContentException or WrongDataFileFormatException)public String[] readLine(int line, boolean readResult) throws TechnicalException
readLine
in interface DataInputProvider
line
- id of the line to read (line=0 for reading headers ; line=1 for reading 1st line, ...)readResult
- true if result must be returned, false otherwiseTechnicalException
- if Wrong data file (IOException, EmptyDataFileContentException or WrongDataFileFormatException)public Class<Model> getModel(String modelPackages) throws TechnicalException
getModel
in interface DataProvider
getModel
in class CommonDataProvider
modelPackages
- The list of available package in which to search for a valid Model (in CSV format with ; separator).TechnicalException
- if Wrong data file (IOException, EmptyDataFileContentException or WrongDataFileFormatException)Copyright © 2023 NoraUi. All rights reserved.