Faker Actions related to Rock Band
nameRockBand
Description: This function will generate a random RockBand name
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | nameRockBand |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random RockBand name", input = InputType.YES, condition = InputType.NO)
public void nameRockBand() {
try {
String strObj = Input;
String name = faker.get(key).rockBand().name();
Report.updateTestLog(Action, "Generated data: " + name, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, name);
} catch (Exception ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
Report.updateTestLog(Action, "Error generating Rick and Morty quote: " + "\n" + ex.getMessage(), Status.DEBUG);
}
}