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