Faker Actions related to Yoda
quoteYoda
Description: This function will generate a random yoda Quote
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | quoteYoda |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random yoda Quote", input = InputType.YES, condition = InputType.NO)
public void quoteYoda() {
try {
String strObj = Input;
String quote = faker.get(key).yoda().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 Witcher item: " + "\n" + ex.getMessage(), Status.DEBUG);
}
}