Skip to content

Faker Actions related to Witcher

characterWitcher

Description: This function will generate a random Witcher character

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 characterWitcher DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random Witcher character", input = InputType.YES, condition = InputType.NO)
    public void characterWitcher() {
        try {
            String strObj = Input;
            String character = faker.get(key).witcher().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 Witcher character: " + "\n" + ex.getMessage(), Status.DEBUG);
        }
    }

locationWitcher

Description: This function will generate a random Witcher location

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 locationWitcher DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random Witcher location", input = InputType.YES, condition = InputType.NO)
    public void locationWitcher() {
        try {
            String strObj = Input;
            String location = faker.get(key).witcher().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 Witcher location: " + "\n" + ex.getMessage(), Status.DEBUG);
        }
    }

quoteWitcher

Description: This function will generate a random Witcher location

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 quoteWitcher DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.DATA, desc = "Generate a random Witcher quote", input = InputType.YES, condition = InputType.NO)
public void quoteWitcher() {
    try {
        String strObj = Input;
        String quote = faker.get(key).witcher().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 Witcher quote: " + "\n" + ex.getMessage(), Status.DEBUG);
    }
}

witcher

Description: This function will generate a random Witcher

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 witcher DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random Witcher", input = InputType.YES, condition = InputType.NO)
    public void witcher() {
        try {
            String strObj = Input;
            String item = faker.get(key).witcher().witcher();
            Report.updateTestLog(Action, "Generated data: " + item, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, item);
        } catch (Exception ex) {
            Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
            Report.updateTestLog(Action, "Error generating Witcher item: " + "\n" + ex.getMessage(), Status.DEBUG);
        }
    }

monsterWitcher

Description: This function will generate a random Witcher monster

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 monsterWitcher DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random Witcher monster", input = InputType.YES, condition = InputType.NO)
    public void monsterWitcher() {
        try {
            String strObj = Input;
            String monster = faker.get(key).witcher().monster();
            Report.updateTestLog(Action, "Generated data: " + monster, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, monster);
        } catch (Exception ex) {
            Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
            Report.updateTestLog(Action, "Error generating Witcher item: " + "\n" + ex.getMessage(), Status.DEBUG);
        }
    }

schoolWitcher

Description: This function will generate a random Witcher school

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 schoolWitcher DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random Witcher school", input = InputType.YES, condition = InputType.NO)
    public void schoolWitcher() {
        try {
            String strObj = Input;
            String school = faker.get(key).witcher().school();
            Report.updateTestLog(Action, "Generated data: " + school, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, school);
        } catch (Exception ex) {
            Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Exception during data generation", ex);
            Report.updateTestLog(Action, "Error generating Witcher item: " + "\n" + ex.getMessage(), Status.DEBUG);
        }
    }