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