in gepard-core/src/main/java/com/epam/gepard/datadriven/feeders/SimpleMultiplierDataFeeder.java [73:96]
public DataDrivenParameterArray calculateParameterArray(final String className, final DataDrivenParameterArray inputParameterArray) {
//first fill the parameter array of this class
DataDrivenParameterArray myArray = null;
FileProvider fileProvider = new FileProvider();
try {
//now load test parameters.
myArray = loadTestParameters(className, fileProvider, arrayLoader);
} catch (IOException | IllegalArgumentException e) {
String error = "ERROR: During the load of: " + className + ", param file caused EX.\nReason:" + e.getMessage()
+ "\nCheck both testlist.txt and class.txt/csv file, Now exiting...\n";
DataFeederLoader.reportException(error, e);
myArray = null;
} catch (DataFeederException e) {
//the exception itself already notifies the DataFeederLoader class
myArray = null;
}
//my array is loaded, or null in case of error
DataDrivenParameterArray newArray = null;
if (myArray != null) {
//now recalculate the parent array
newArray = recalculateTheParentArray(inputParameterArray, myArray);
}
return newArray;
}