Skip to content

Faker Actions related to Company

companyName

Description: This function will generate a random company name

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companyName DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random company name", input = InputType.YES, condition = InputType.NO)
    public void companyName() {
        try {
            String strObj = Input;
            String companyName = faker.get(key).company().name();
            Report.updateTestLog(Action, "Generated data: " + companyName, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, companyName);
        } 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);
        }
    }

companyIndustry

Description: This function will generate a random company industry

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companyIndustry DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random company industry", input = InputType.YES, condition = InputType.NO)
    public void companyIndustry() {
        try {
            String strObj = Input;
            String companyIndustry = faker.get(key).company().industry();
            Report.updateTestLog(Action, "Generated data: " + companyIndustry, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, companyIndustry);
        } 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);
        }
    }

companyCatchPhrase

Description: This function will generate a random company catchphrase

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companyCatchPhrase DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random company catchphrase", input = InputType.YES, condition = InputType.NO)
    public void companyCatchPhrase() {
        try {
            String strObj = Input;
            String companyCatchPhrase = faker.get(key).company().catchPhrase();
            Report.updateTestLog(Action, "Generated data: " + companyCatchPhrase, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, companyCatchPhrase);
        } 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);
        }
    }

companyBuzzword

Description: This function will generate a random company buzzword

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companyBuzzword DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random company buzzword", input = InputType.YES, condition = InputType.NO)
    public void companyBuzzword() {
        try {
            String strObj = Input;
            String companyBuzzword = faker.get(key).company().buzzword();
            Report.updateTestLog(Action, "Generated data: " + companyBuzzword, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, companyBuzzword);
        } 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);
        }
    }

companyBS

Description: This function will generate a random company BS (business speak)

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companyBS DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random BS (business speak)", input = InputType.YES, condition = InputType.NO)
    public void companyBS() {
        try {
            String strObj = Input;
            String bs = faker.get(key).company().bs();
            Report.updateTestLog(Action, "Generated data: " + bs, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, bs);
        } 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);
        }
    }

Description: This function will generate a random company logo URL

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companyLogo DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random company logo URL", input = InputType.YES, condition = InputType.NO)
    public void companyLogo() {
        try {
            String strObj = Input;
            String logo = faker.get(key).company().logo();
            Report.updateTestLog(Action, "Generated data: " + logo, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, logo);
        } 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);
        }
    }

profession

Description: This function will generate a random profession

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 profession DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random profession", input = InputType.YES, condition = InputType.NO)
    public void profession() {
        try {
            String strObj = Input;
            String profession = faker.get(key).company().profession();
            Report.updateTestLog(Action, "Generated data: " + profession, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, profession);
        } 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);
        }
    }

companySuffix

Description: This function will generate a random company suffix

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companySuffix DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random company suffix", input = InputType.YES, condition = InputType.NO)
    public void companySuffix() {
        try {
            String strObj = Input;
            String suffix = faker.get(key).company().suffix();
            Report.updateTestLog(Action, "Generated data: " + suffix, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, suffix);
        } 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);
        }
    }

companyUrl

Description: This function will generate a random company URL

Input Format : DatasheetName:ColumnName

ObjectName Action Input Condition Reference
Synthetic Data 🟢 companyUrl DatasheetName:ColumnName ⬅ Store in Datasheet
@Action(object = ObjectType.FAKER, desc = "Generate a random company URL", input = InputType.YES, condition = InputType.NO)
    public void companyUrl() {
        try {
            String strObj = Input;
            String url = faker.get(key).company().url();
            Report.updateTestLog(Action, "Generated data: " + url, Status.DONE);
            String sheetName = strObj.split(":", 2)[0];
            String columnName = strObj.split(":", 2)[1];
            userData.putData(sheetName, columnName, url);
        } 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);
        }
    }