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