noraui.data.excel.InputExcelDataProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of noraui Show documentation
Show all versions of noraui Show documentation
Non-Regression Automation for User Interfaces
package noraui.data.excel;
import noraui.exception.TechnicalException;
import noraui.exception.data.EmptyDataFileContentException;
import noraui.exception.data.WrongDataFileFormatException;
import noraui.utils.Messages;
public class InputExcelDataProvider extends ExcelDataProvider {
private static final String EXCEL_INPUT_DATA_PROVIDER_USED = "EXCEL_INPUT_DATA_PROVIDER_USED";
public InputExcelDataProvider() {
super();
logger.info(Messages.getMessage(EXCEL_INPUT_DATA_PROVIDER_USED));
}
/**
* {@inheritDoc}
*/
@Override
public void prepare(String scenario) throws TechnicalException {
scenarioName = scenario;
try {
openInputData();
initColumns();
} catch (EmptyDataFileContentException | WrongDataFileFormatException e) {
logger.error(Messages.getMessage(TechnicalException.TECHNICAL_ERROR_MESSAGE_DATA_IOEXCEPTION), e);
System.exit(-1);
}
}
}