Faker Actions related to Hacker
hackerAbbreviation
Description: This function will generate a random abbreviation used in hacker slang
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | hackerAbbreviation |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random abbreviation used in hacker slang", input = InputType.YES, condition = InputType.NO)
public void hackerAbbreviation() {
try {
String strObj = Input;
String abbreviation = faker.get(key).hacker().abbreviation();
Report.updateTestLog(Action, "Generated data: " + abbreviation, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, abbreviation);
} 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);
}
}
hackerAdjective
Description: This function will generate a random adjective used in hacker slang
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | hackerAdjective |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random adjective used in hacker slang", input = InputType.YES, condition = InputType.NO)
public void hackerAdjective() {
try {
String strObj = Input;
String adjective = faker.get(key).hacker().adjective();
Report.updateTestLog(Action, "Generated data: " + adjective, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, adjective);
} 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);
}
}
hackerNoun
Description: This function will generate a random noun used in hacker slang
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | hackerNoun |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random noun used in hacker slang", input = InputType.YES, condition = InputType.NO)
public void hackerNoun() {
try {
String strObj = Input;
String noun = faker.get(key).hacker().noun();
Report.updateTestLog(Action, "Generated data: " + noun, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, noun);
} 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);
}
}
hackerVerb
Description: This function will generate a random verb used in hacker slang
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | hackerVerb |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random verb used in hacker slang", input = InputType.YES, condition = InputType.NO)
public void hackerVerb() {
try {
String strObj = Input;
String verb = faker.get(key).hacker().verb();
Report.updateTestLog(Action, "Generated data: " + verb, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, verb);
} 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);
}
}
hackerIngVerb
Description: This function will generate a random ingverb used in hacker slang
Input Format : DatasheetName:ColumnName
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Synthetic Data | hackerIngVerb |
DatasheetName:ColumnName |
@Action(object = ObjectType.FAKER, desc = "Generate a random ingverb used in hacker slang", input = InputType.YES, condition = InputType.NO)
public void hackerIngVerb() {
try {
String strObj = Input;
String ingVerb = faker.get(key).hacker().ingverb();
Report.updateTestLog(Action, "Generated data: " + ingVerb, Status.DONE);
String sheetName = strObj.split(":", 2)[0];
String columnName = strObj.split(":", 2)[1];
userData.putData(sheetName, columnName, ingVerb);
} 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);
}
}