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