Faker Actions related to Esports
esportsTeam
Description: This function will generate a random esports team name
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | esportsTeam |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random esports team name", input = InputType.YES, condition = InputType.NO)
public void esportsTeam() {
try {
String strObj = Input;
String team = faker.get(key).esports().team();
Report.updateTestLog(Action, "Generated data: " + team, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, team);
} catch (Exception ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
Report.updateTestLog(Action, "Error generating data: " + "\n" + ex.getMessage(), Status.DEBUG);
}
}
esportsPlayer
Description: This function will generate a random esports player name
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | esportsPlayer |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random esports player name", input = InputType.YES, condition = InputType.NO)
public void esportsPlayer() {
try {
String strObj = Input;
String player = faker.get(key).esports().player();
Report.updateTestLog(Action, "Generated data: " + player, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, player);
} catch (Exception ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
Report.updateTestLog(Action, "Error generating data: " + "\n" + ex.getMessage(), Status.DEBUG);
}
}
esportsGame
Description: This function will generate a random esports game name
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | esportsGame |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random esports game name", input = InputType.YES, condition = InputType.NO)
public void esportsGame() {
try {
String strObj = Input;
String game = faker.get(key).esports().game();
Report.updateTestLog(Action, "Generated data: " + game, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, game);
} catch (Exception ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
Report.updateTestLog(Action, "Error generating data: " + "\n" + ex.getMessage(), Status.DEBUG);
}
}
esportsEvent
Description: This function will generate a random esports event name
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | esportsEvent |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random esports event name", input = InputType.YES, condition = InputType.NO)
public void esportsEvent() {
try {
String strObj = Input;
String event = faker.get(key).esports().event();
Report.updateTestLog(Action, "Generated data: " + event, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, event);
} catch (Exception ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
Report.updateTestLog(Action, "Error generating data: " + "\n" + ex.getMessage(), Status.DEBUG);
}
}
esportsLeague
Description: This function will generate a random esports league name
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | esportsLeague |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random esports league", input = InputType.YES, condition = InputType.NO)
public void esportsLeague() {
try {
String strObj = Input;
String league = faker.get(key).esports().league();
Report.updateTestLog(Action, "Generated data: " + league, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, league);
} catch (Exception ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
Report.updateTestLog(Action, "Error generating data: " + "\n" + ex.getMessage(), Status.DEBUG);
}
}