Skip to content

Faker Actions related to Space

planet

Description: This function will generate a random planet name

Input Format : DatasheetName:ColumnName

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

moon

Description: This function will generate a random moon name

Input Format : DatasheetName:ColumnName

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

galaxy

Description: This function will generate a random galaxy name

Input Format : DatasheetName:ColumnName

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

nebula

Description: This function will generate a random nebula name

Input Format : DatasheetName:ColumnName

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

starCluster

Description: This function will generate a random star cluster name

Input Format : DatasheetName:ColumnName

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

constellation

Description: This function will generate a random constellation name

Input Format : DatasheetName:ColumnName

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

star

Description: This function will generate a random star name

Input Format : DatasheetName:ColumnName

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

spaceAgency

Description: This function will generate a random space agency name

Input Format : DatasheetName:ColumnName

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

spaceAgencyAbbreviation

Description: This function will generate a random space agency abbreviation

Input Format : DatasheetName:ColumnName

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

spaceCompany

Description: This function will generate a random space company name

Input Format : DatasheetName:ColumnName

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

distanceMeasurement

Description: This function will generate a random distance measurement

Input Format : DatasheetName:ColumnName

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

meteorite

Description: This function will generate a random meteorite name

Input Format : DatasheetName:ColumnName

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

nasaSpaceCraft

Description: This function will generate a random nasa space craft name

Input Format : DatasheetName:ColumnName

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