Faker Actions related to Robin
quoteRobin
Description: This function will generate a random Robin quote
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | quoteRobin |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random Robin quote", input = InputType.YES, condition = InputType.NO)
public void quoteRobin() {
try {
String strObj = Input;
String quote = faker.get(key).robin().quote();
Report.updateTestLog(Action, "Generated data: " + quote, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, quote);
} 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);
}
}