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